Searched refs:getShareLocationEnforcedAdmin (Results 1 – 11 of 11) 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()
128 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()
205 assertThat(mEnabler.getShareLocationEnforcedAdmin(userId) != null).isTrue(); in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
69 mLocationEnabler.getShareLocationEnforcedAdmin(userId); in onLocationModeChanged()
81 mLocationEnabler.getShareLocationEnforcedAdmin( in onLocationModeChanged()
149 && mLocationEnabler.getShareLocationEnforcedAdmin(profileUserId) != null) in getLocationServices()
141 RestrictedLockUtils.EnforcedAdmin getShareLocationEnforcedAdmin(int userId) { in getShareLocationEnforcedAdmin() method in LocationEnabler