Searched refs:mTimeManager (Results 1 – 2 of 2) sorted by relevance
55 private TimeManager mTimeManager; field in LocationTimeZoneDetectionPreferenceControllerTest69 when(mContext.getSystemService(TimeManager.class)).thenReturn(mTimeManager); in setUp()86 verify(mTimeManager).updateTimeZoneConfiguration(expectedConfiguration); in setChecked_withTrue_shouldUpdateSetting_whenLocationIsEnabled()102 verifyZeroInteractions(mTimeManager); in setChecked_withTrue_shouldDoNothing_whenLocationIsDisabled()114 verify(mTimeManager).updateTimeZoneConfiguration(expectedConfiguration); in setChecked_withFalse_shouldUpdateSetting()124 when(mTimeManager.getTimeZoneCapabilitiesAndConfig()).thenReturn(capabilitiesAndConfig); in testLocationTimeZoneDetection_supported_shouldBeShown()136 when(mTimeManager.getTimeZoneCapabilitiesAndConfig()).thenReturn(capabilitiesAndConfig); in testLocationTimeZoneDetection_unsupported_shouldNotBeShown()152 when(mTimeManager.getTimeZoneCapabilitiesAndConfig()).thenReturn(capabilitiesAndConfig); in testLocationTimeZoneDetection_summary_geoDetectionEnabled()164 when(mTimeManager.getTimeZoneCapabilitiesAndConfig()).thenReturn(capabilitiesAndConfig); in testLocationTimeZoneDetection_toggleIsOn_whenGeoDetectionEnabledAnsMlsIsOff()
52 private final TimeManager mTimeManager; field in LocationTimeZoneDetectionPreferenceController60 mTimeManager = context.getSystemService(TimeManager.class); in LocationTimeZoneDetectionPreferenceController()71 mTimeManager.getTimeZoneCapabilitiesAndConfig(); in isChecked()87 return mTimeManager.updateTimeZoneConfiguration(configuration); in setChecked()102 mTimeManager.addTimeZoneDetectorListener(mainExecutor, this); in onStart()109 mTimeManager.removeTimeZoneDetectorListener(this); in onStop()204 mTimeZoneCapabilitiesAndConfig = mTimeManager.getTimeZoneCapabilitiesAndConfig(); in getTimeZoneCapabilitiesAndConfig()