Home
last modified time | relevance | path

Searched refs:getShareLocationEnforcedAdmin (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationSwitchBarControllerTest.java103 doReturn(admin).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_hasEnforcedAdmin_shouldDisableSwitchByAdmin()
113 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_Restricted_shouldDisableSwitch()
123 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_notRestricted_shouldEnableSwitch()
133 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_locationOn_shouldCheckSwitch()
145 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_locationOff_shouldUncheckSwitch()
DLocationForWorkPreferenceControllerTest.java128 doReturn(admin).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_disabledByAdmin_shouldDisablePreference()
140 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_locationOff_shouldDisablePreference()
153 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_locationOn_shouldEnablePreference()
166 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_noRestriction_shouldCheckedPreference()
178 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_hasRestriction_shouldCheckedPreference()
DLocationEnablerTest.java205 assertThat(mEnabler.getShareLocationEnforcedAdmin(userId) != null).isTrue(); in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DLocationSwitchBarController.java69 mLocationEnabler.getShareLocationEnforcedAdmin(userId); in onLocationModeChanged()
DLocationForWorkPreferenceController.java81 mLocationEnabler.getShareLocationEnforcedAdmin( in onLocationModeChanged()
DLocationServicePreferenceController.java149 && mLocationEnabler.getShareLocationEnforcedAdmin(profileUserId) != null) in getLocationServices()
DLocationEnabler.java141 RestrictedLockUtils.EnforcedAdmin getShareLocationEnforcedAdmin(int userId) { in getShareLocationEnforcedAdmin() method in LocationEnabler
/packages/apps/Settings/src/com/android/settings/location/
DLocationSwitchBarController.java69 mLocationEnabler.getShareLocationEnforcedAdmin(userId); in onLocationModeChanged()
DLocationForWorkPreferenceController.java81 mLocationEnabler.getShareLocationEnforcedAdmin( in onLocationModeChanged()
DLocationEnabler.java141 RestrictedLockUtils.EnforcedAdmin getShareLocationEnforcedAdmin(int userId) { in getShareLocationEnforcedAdmin() method in LocationEnabler
DLocationServicePreferenceController.java149 && mLocationEnabler.getShareLocationEnforcedAdmin(profileUserId) != null) in getLocationServices()