Searched refs:isManagedProfileRestrictedByBase (Results 1 – 6 of 6) 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()
168 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()
78 mLocationEnabler.isManagedProfileRestrictedByBase(); in onLocationModeChanged()
135 boolean isManagedProfileRestrictedByBase() { in isManagedProfileRestrictedByBase() method in LocationEnabler
83 final boolean isRestrictedByBase = mLocationEnabler.isManagedProfileRestrictedByBase(); in onLocationModeChanged()