Home
last modified time | relevance | path

Searched refs:hasShareLocationRestriction (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationSwitchBarControllerTest.java104 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()
DLocationEnablerTest.java174 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in isManagedProfileRestrictedByBase_notRestricted_shouldReturnFalse()
182 doReturn(true).when(mEnabler).hasShareLocationRestriction(anyInt()); in isManagedProfileRestrictedByBase_hasManagedProfile_shouldReturnFalse()
/packages/apps/Settings/src/com/android/settings/location/
DLocationEnabler.java138 && hasShareLocationRestriction(managedProfile.getIdentifier()); in isManagedProfileRestrictedByBase()
152 boolean hasShareLocationRestriction(int userId) { in hasShareLocationRestriction() method in LocationEnabler
DLocationSwitchBarController.java73 mLocationEnabler.hasShareLocationRestriction(userId); in onLocationModeChanged()