Searched refs:hasShareLocationRestriction (Results 1 – 4 of 4) sorted by relevance
104 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_hasEnforcedAdmin_shouldDisableSwitchByAdmin()114 doReturn(true).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_Restricted_shouldDisableSwitch()124 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_notRestricted_shouldEnableSwitch()134 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_locationOn_shouldCheckSwitch()146 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in onLocationModeChanged_locationOff_shouldUncheckSwitch()
174 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in isManagedProfileRestrictedByBase_notRestricted_shouldReturnFalse()182 doReturn(true).when(mEnabler).hasShareLocationRestriction(anyInt()); in isManagedProfileRestrictedByBase_hasManagedProfile_shouldReturnFalse()
138 && hasShareLocationRestriction(managedProfile.getIdentifier()); in isManagedProfileRestrictedByBase()152 boolean hasShareLocationRestriction(int userId) { in hasShareLocationRestriction() method in LocationEnabler
73 mLocationEnabler.hasShareLocationRestriction(userId); in onLocationModeChanged()