Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationSwitchBarControllerTest.java104 doReturn(admin).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_hasEnforcedAdmin_shouldDisableSwitchByAdmin()
116 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_Restricted_shouldDisableSwitchByAdmin()
126 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_Restricted_shouldDisableSwitch()
136 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_notRestricted_shouldEnableSwitch()
146 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_locationOn_shouldCheckSwitch()
158 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_locationOff_shouldUncheckSwitch()
DLocationForWorkPreferenceControllerTest.java119 doReturn(admin).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_disabledByAdmin_shouldDisablePreference()
130 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_locationOff_shouldDisablePreference()
143 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_locationOn_shouldEnablePreference()
156 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_noRestriction_shouldCheckedPreference()
168 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_hasRestriction_shouldCheckedPreference()
DLocationForPrivateProfilePreferenceControllerTest.java120 doReturn(admin).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_disabledByAdmin_shouldDisablePreference()
131 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_locationOff_shouldDisablePreference()
144 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_locationOn_shouldEnablePreference()
157 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_noRestriction_shouldCheckedPreference()
169 doReturn(null).when(mEnabler).getShareLocationEnforcedAdmin(anyInt()); in onLocationModeChanged_hasRestriction_shouldCheckedPreference()
DLocationEnablerTest.java196 assertThat(mEnabler.getShareLocationEnforcedAdmin(userId) != null).isTrue(); in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
/packages/apps/Settings/src/com/android/settings/location/
DLocationInjectedServiceBasePreferenceController.java122 && mLocationEnabler.getShareLocationEnforcedAdmin(managedProfileId) == null) { in getLocationServices()
131 .getShareLocationEnforcedAdmin(privateProfile.getIdentifier()) == null) { in getLocationServices()
DLocationForWorkPreferenceController.java71 mLocationEnabler.getShareLocationEnforcedAdmin( in onLocationModeChanged()
DLocationSwitchBarController.java72 mLocationEnabler.getShareLocationEnforcedAdmin(userId); in onLocationModeChanged()
DLocationForPrivateProfilePreferenceController.java90 mLocationEnabler.getShareLocationEnforcedAdmin( in onLocationModeChanged()
DLocationEnabler.java153 public RestrictedLockUtils.EnforcedAdmin getShareLocationEnforcedAdmin(int userId) { in getShareLocationEnforcedAdmin() method in LocationEnabler