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.java105 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()
DLocationForPrivateProfilePreferenceControllerTest.java121 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()
DLocationEnablerTest.java169 doReturn(false).when(mEnabler).hasShareLocationRestriction(anyInt()); in isManagedProfileRestrictedByBase_notRestricted_shouldReturnFalse()
177 doReturn(true).when(mEnabler).hasShareLocationRestriction(anyInt()); in isManagedProfileRestrictedByBase_hasManagedProfile_shouldReturnFalse()
/packages/apps/Settings/src/com/android/settings/location/
DLocationEnabler.java147 && hasShareLocationRestriction(managedProfile.getIdentifier()); in isManagedProfileRestrictedByBase()
167 public boolean hasShareLocationRestriction(int userId) { in hasShareLocationRestriction() method in LocationEnabler
DLocationSwitchBarController.java74 mLocationEnabler.hasShareLocationRestriction(userId); in onLocationModeChanged()
DLocationForPrivateProfilePreferenceController.java101 .hasShareLocationRestriction(mPrivateProfileHandle.getIdentifier()); in onLocationModeChanged()