Home
last modified time | relevance | path

Searched refs:isManagedProfileRestrictedByBase (Results 1 – 4 of 4) 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.java163 assertThat(mEnabler.isManagedProfileRestrictedByBase()).isFalse(); in isManagedProfileRestrictedByBase_notManagedProfile_shouldReturnFalse()
171 assertThat(mEnabler.isManagedProfileRestrictedByBase()).isFalse(); in isManagedProfileRestrictedByBase_notRestricted_shouldReturnFalse()
179 assertThat(mEnabler.isManagedProfileRestrictedByBase()).isTrue(); in isManagedProfileRestrictedByBase_hasManagedProfile_shouldReturnFalse()
/packages/apps/Settings/src/com/android/settings/location/
DLocationForWorkPreferenceController.java81 mLocationEnabler.isManagedProfileRestrictedByBase(); in onLocationModeChanged()
DLocationEnabler.java144 public boolean isManagedProfileRestrictedByBase() { in isManagedProfileRestrictedByBase() method in LocationEnabler