Searched refs:getShareLocationEnforcedAdmin (Results 1 – 7 of 7) sorted by relevance
103 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()
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()
201 assertThat(mEnabler.getShareLocationEnforcedAdmin(userId) != null).isTrue(); in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
71 mLocationEnabler.getShareLocationEnforcedAdmin( in onLocationModeChanged()
71 mLocationEnabler.getShareLocationEnforcedAdmin(userId); in onLocationModeChanged()
118 && mLocationEnabler.getShareLocationEnforcedAdmin(profileUserId) != null) in getLocationServices()
141 RestrictedLockUtils.EnforcedAdmin getShareLocationEnforcedAdmin(int userId) { in getShareLocationEnforcedAdmin() method in LocationEnabler