Searched refs:hasShareLocationRestriction (Results 1 – 6 of 6) sorted by relevance
105 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_hasEnforcedAdmin_shouldDisableSwitchByAdmin()117 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_Restricted_shouldDisableSwitchByAdmin()127 doReturn(true).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_Restricted_shouldDisableSwitch()137 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_notRestricted_shouldEnableSwitch()147 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_locationOn_shouldCheckSwitch()159 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_locationOff_shouldUncheckSwitch()
121 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_disabledByAdmin_shouldDisablePreference()132 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_locationOff_shouldDisablePreference()145 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_locationOn_shouldEnablePreference()158 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_noRestriction_shouldCheckedPreference()170 doReturn(true).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_hasRestriction_shouldCheckedPreference()
169 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in isManagedProfileRestrictedByBase_notRestricted_shouldReturnFalse()177 doReturn(true).when(mEnabler).hasShareLocationRestriction(anyInt()); in isManagedProfileRestrictedByBase_hasManagedProfile_shouldReturnFalse()
147 && hasShareLocationRestriction(managedProfile.getIdentifier()); in isManagedProfileRestrictedByBase()167 public boolean hasShareLocationRestriction(int userId) { in hasShareLocationRestriction() method in LocationEnabler
74 mLocationEnabler.hasShareLocationRestriction(userId); in onLocationModeChanged()
101 .hasShareLocationRestriction(mPrivateProfileHandle.getIdentifier()); in onLocationModeChanged()