Home
last modified time | relevance | path

Searched refs:mOemLockManager (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DOemUnlockPreferenceController.java48 private final OemLockManager mOemLockManager; field in OemUnlockPreferenceController
61 mOemLockManager = (OemLockManager) context.getSystemService(Context.OEM_LOCK_SERVICE); in OemUnlockPreferenceController()
63 mOemLockManager = null; in OemUnlockPreferenceController()
80 return mOemLockManager != null; in isAvailable()
104 mOemLockManager.setOemUnlockAllowedByUser(false); in onPreferenceChange()
131 mOemLockManager.setOemUnlockAllowedByUser(false); in onActivityResult()
145 mOemLockManager.setOemUnlockAllowedByUser(true); in onOemUnlockConfirmed()
195 return mOemLockManager.isDeviceOemUnlocked(); in isBootloaderUnlocked()
222 return mOemLockManager.isOemUnlockAllowedByCarrier() in isOemUnlockAllowedByUserAndCarrier()
229 return mOemLockManager.isOemUnlockAllowed(); in isOemUnlockedAllowed()
/packages/apps/Settings/src/com/android/settings/development/
DOemUnlockPreferenceController.java47 private final OemLockManager mOemLockManager; field in OemUnlockPreferenceController
59 mOemLockManager = null; in OemUnlockPreferenceController()
61 mOemLockManager = (OemLockManager) context.getSystemService(Context.OEM_LOCK_SERVICE); in OemUnlockPreferenceController()
75 return mOemLockManager != null; in isAvailable()
99 mOemLockManager.setOemUnlockAllowedByUser(false); in onPreferenceChange()
126 mOemLockManager.setOemUnlockAllowedByUser(false); in onActivityResult()
140 mOemLockManager.setOemUnlockAllowedByUser(true); in onOemUnlockConfirmed()
190 return mOemLockManager.isDeviceOemUnlocked(); in isBootloaderUnlocked()
217 return mOemLockManager.isOemUnlockAllowedByCarrier() in isOemUnlockAllowedByUserAndCarrier()
224 return mOemLockManager.isOemUnlockAllowed(); in isOemUnlockedAllowed()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DMasterClearConfirmFragmentTest.java55 private OemLockManager mOemLockManager; field in MasterClearConfirmFragmentTest
71 ShadowApplication.getInstance().setSystemService(Context.OEM_LOCK_SERVICE, mOemLockManager); in setUp()
122 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(true); in confirmClicked_oemUnlockAllowed_doesNotWipePdb()
131 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(true); in confirmClicked_oemUnlockAllowed_sendsResetIntent()
141 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(false); in confirmClicked_noOemUnlockAllowed_notProvisioned_doesNotWipePdb()
150 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(false); in confirmClicked_noOemUnlockAllowed_notProvisioned_sendsResetIntent()
160 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(false); in confirmClicked_noOemUnlockAllowed_provisioned_wipesPdb()
171 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(false); in confirmClicked_noOemUnlockAllowed_provisioned_sendsResetIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DOemUnlockPreferenceControllerTest.java71 private OemLockManager mOemLockManager; field in OemUnlockPreferenceControllerTest
86 when(mContext.getSystemService(Context.OEM_LOCK_SERVICE)).thenReturn(mOemLockManager); in setup()
223 verify(mOemLockManager).setOemUnlockAllowedByUser(true); in onOemUnlockConfirmed_oemManagerShouldSetUnlockAllowedByUser()