Searched refs:isManagedProfileRestrictedByBase (Results 1 – 4 of 4) sorted by relevance
120 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()
163 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()
81 mLocationEnabler.isManagedProfileRestrictedByBase(); in onLocationModeChanged()
144 public boolean isManagedProfileRestrictedByBase() { in isManagedProfileRestrictedByBase() method in LocationEnabler