Package org.robolectric.shadows
Class ShadowTimeManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowTimeManager
-
@Implements(value=android.app.time.TimeManager.class, minSdk=31, isInAndroidSdk=false) public class ShadowTimeManager extends Object
Shadow for internal AndroidTimeManager
class introduced in S.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIGURE_GEO_DETECTION_CAPABILITY
-
Constructor Summary
Constructors Constructor Description ShadowTimeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addTimeZoneDetectorListener(Executor executor, android.app.time.TimeManager.TimeZoneDetectorListener listener)
protected android.app.time.TimeZoneCapabilitiesAndConfig
getTimeZoneCapabilitiesAndConfig()
protected void
removeTimeZoneDetectorListener(android.app.time.TimeManager.TimeZoneDetectorListener listener)
void
setCapabilityState(String capability, int value)
Capabilites are predefined and not controlled by user, so they can't be changed via TimeManager API.protected void
suggestExternalTime(android.app.time.ExternalTimeSuggestion timeSuggestion)
protected boolean
updateTimeZoneConfiguration(android.app.time.TimeZoneConfiguration configuration)
-
-
-
Field Detail
-
CONFIGURE_GEO_DETECTION_CAPABILITY
public static final String CONFIGURE_GEO_DETECTION_CAPABILITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setCapabilityState
public void setCapabilityState(String capability, int value)
Capabilites are predefined and not controlled by user, so they can't be changed via TimeManager API.
-
getTimeZoneCapabilitiesAndConfig
@Implementation protected android.app.time.TimeZoneCapabilitiesAndConfig getTimeZoneCapabilitiesAndConfig()
-
updateTimeZoneConfiguration
@Implementation protected boolean updateTimeZoneConfiguration(android.app.time.TimeZoneConfiguration configuration)
-
addTimeZoneDetectorListener
@Implementation protected void addTimeZoneDetectorListener(Executor executor, android.app.time.TimeManager.TimeZoneDetectorListener listener)
-
removeTimeZoneDetectorListener
@Implementation protected void removeTimeZoneDetectorListener(android.app.time.TimeManager.TimeZoneDetectorListener listener)
-
suggestExternalTime
@Implementation protected void suggestExternalTime(android.app.time.ExternalTimeSuggestion timeSuggestion)
-
-