Searched refs:getShareLocationEnforcedAdmin (Results 1 – 9 of 9) sorted by relevance
104 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()
119 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()
120 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()
196 assertThat(mEnabler.getShareLocationEnforcedAdmin(userId) != null).isTrue(); in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
122 && mLocationEnabler.getShareLocationEnforcedAdmin(managedProfileId) == null) { in getLocationServices()131 .getShareLocationEnforcedAdmin(privateProfile.getIdentifier()) == null) { in getLocationServices()
71 mLocationEnabler.getShareLocationEnforcedAdmin( in onLocationModeChanged()
72 mLocationEnabler.getShareLocationEnforcedAdmin(userId); in onLocationModeChanged()
90 mLocationEnabler.getShareLocationEnforcedAdmin( in onLocationModeChanged()
153 public RestrictedLockUtils.EnforcedAdmin getShareLocationEnforcedAdmin(int userId) { in getShareLocationEnforcedAdmin() method in LocationEnabler