Searched refs:isOemUnlockedAllowed (Results 1 – 5 of 5) sorted by relevance
130 doReturn(true).when(mMainClearConfirm).isOemUnlockedAllowed(); in shouldWipePersistentDataBlock_oemUnlockAllowedAndFlagDiscabled_shouldReturnFalse()143 doReturn(true).when(mMainClearConfirm).isOemUnlockedAllowed(); in shouldWipePersistentDataBlock_oemUnlockAllowedAndFlagEnabled_shouldReturnTrue()154 doReturn(false).when(mMainClearConfirm).isOemUnlockedAllowed(); in shouldWipePersistentDataBlock_frpPolicyNotSupported_shouldReturnFalse()167 doReturn(false).when(mMainClearConfirm).isOemUnlockedAllowed(); in shouldWipePersistentDataBlock_hasFactoryResetProtectionPolicy_shouldReturnFalse()187 doReturn(false).when(mMainClearConfirm).isOemUnlockedAllowed(); in shouldWipePersistentDataBlock_isNotOrganizationOwnedDevice_shouldReturnTrue()
81 mPreference.setChecked(isOemUnlockedAllowed()); in updateState()127 private boolean isOemUnlockedAllowed() { in isOemUnlockedAllowed() method in OemUnlockPreferenceController
157 doReturn(true).when(mController).isOemUnlockedAllowed(); in updateState_preferenceShouldBeCheckedAndShouldBeDisabled()170 doReturn(false).when(mController).isOemUnlockedAllowed(); in updateState_preferenceShouldBeUncheckedAndShouldBeDisabled()183 doReturn(true).when(mController).isOemUnlockedAllowed(); in updateState_preferenceShouldBeCheckedAndShouldBeEnabled()
113 mPreference.setChecked(isOemUnlockedAllowed()); in updateState()238 boolean isOemUnlockedAllowed() { in isOemUnlockedAllowed() method in OemUnlockPreferenceController
164 if (!android.security.Flags.frpEnforcement() && isOemUnlockedAllowed()) { in shouldWipePersistentDataBlock()189 boolean isOemUnlockedAllowed() { in isOemUnlockedAllowed() method in MainClearConfirm