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 Android
TimeManager
class introduced in S.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addTimeZoneDetectorListener
(Executor executor, android.app.time.TimeManager.TimeZoneDetectorListener listener) protected android.app.time.TimeZoneCapabilitiesAndConfig
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 Details
-
CONFIGURE_GEO_DETECTION_CAPABILITY
- See Also:
-
-
Constructor Details
-
ShadowTimeManager
public ShadowTimeManager()
-
-
Method Details
-
setCapabilityState
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() throws ClassNotFoundException- Throws:
ClassNotFoundException
-
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)
-