Home
last modified time | relevance | path

Searched refs:hasShareLocationRestriction (Results 1 – 6 of 6) 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.java178 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in isManagedProfileRestrictedByBase_notRestricted_shouldReturnFalse()
186 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.java71 mLocationEnabler.hasShareLocationRestriction(userId); in onLocationModeChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DLocationEnabler.java138 && hasShareLocationRestriction(managedProfile.getIdentifier()); in isManagedProfileRestrictedByBase()
152 boolean hasShareLocationRestriction(int userId) { in hasShareLocationRestriction() method in LocationEnabler
DLocationSwitchBarController.java71 mLocationEnabler.hasShareLocationRestriction(userId); in onLocationModeChanged()