Home
last modified time | relevance | path

Searched refs:isManagedProfileRestrictedByBase (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationForWorkPreferenceControllerTest.java120 doReturn(false).when(mEnabler).isManagedProfileRestrictedByBase(); in onLocationModeChanged_disabledByAdmin_shouldDisablePreference()
131 doReturn(false).when(mEnabler).isManagedProfileRestrictedByBase(); in onLocationModeChanged_locationOff_shouldDisablePreference()
144 doReturn(false).when(mEnabler).isManagedProfileRestrictedByBase(); in onLocationModeChanged_locationOn_shouldEnablePreference()
157 doReturn(false).when(mEnabler).isManagedProfileRestrictedByBase(); in onLocationModeChanged_noRestriction_shouldCheckedPreference()
169 doReturn(true).when(mEnabler).isManagedProfileRestrictedByBase(); in onLocationModeChanged_hasRestriction_shouldCheckedPreference()
DLocationEnablerTest.java168 assertThat(mEnabler.isManagedProfileRestrictedByBase()).isFalse(); in isManagedProfileRestrictedByBase_notManagedProfile_shouldReturnFalse()
176 assertThat(mEnabler.isManagedProfileRestrictedByBase()).isFalse(); in isManagedProfileRestrictedByBase_notRestricted_shouldReturnFalse()
184 assertThat(mEnabler.isManagedProfileRestrictedByBase()).isTrue(); in isManagedProfileRestrictedByBase_hasManagedProfile_shouldReturnFalse()
/packages/apps/Settings/src/com/android/settings/location/
DLocationForWorkPreferenceController.java78 mLocationEnabler.isManagedProfileRestrictedByBase(); in onLocationModeChanged()
DLocationEnabler.java135 boolean isManagedProfileRestrictedByBase() { in isManagedProfileRestrictedByBase() method in LocationEnabler
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DLocationForWorkPreferenceController.java83 final boolean isRestrictedByBase = mLocationEnabler.isManagedProfileRestrictedByBase(); in onLocationModeChanged()
DLocationEnabler.java135 boolean isManagedProfileRestrictedByBase() { in isManagedProfileRestrictedByBase() method in LocationEnabler