Home
last modified time | relevance | path

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

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DOemUnlockPreferenceController.java35 private final OemLockManager mOemLockManager; field in OemUnlockPreferenceController
41 mOemLockManager = null; in OemUnlockPreferenceController()
44 mOemLockManager = (OemLockManager) context.getSystemService(Context.OEM_LOCK_SERVICE); in OemUnlockPreferenceController()
56 if (mOemLockManager == null) { in onPreferenceClick()
66 mOemLockManager.setOemUnlockAllowedByUser(false); in onPreferenceClick()
74 mOemLockManager.setOemUnlockAllowedByUser(true); in onOemUnlockConfirm()
113 return mOemLockManager != null && mOemLockManager.isDeviceOemUnlocked(); in isBootloaderUnlocked()
120 return mOemLockManager != null in isOemUnlockAllowedByUserAndCarrier()
121 && mOemLockManager.isOemUnlockAllowedByCarrier() in isOemUnlockAllowedByUserAndCarrier()
128 return mOemLockManager != null && mOemLockManager.isOemUnlockAllowed(); in isOemUnlockedAllowed()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DOemLockManagerCompat.java21 private final OemLockManager mOemLockManager; field in OemLockManagerCompat
24 mOemLockManager = context.getSystemService(OemLockManager.class); in OemLockManagerCompat()
28 mOemLockManager.setOemUnlockAllowedByUser(allowed); in setOemUnlockAllowedByUser()
32 return mOemLockManager.isOemUnlockAllowedByCarrier(); in isOemUnlockAllowedByCarrier()
36 return mOemLockManager.isDeviceOemUnlocked(); in isDeviceOemUnlocked()
40 return mOemLockManager.isOemUnlockAllowed(); in isOemUnlockAllowed()
/packages/apps/Settings/src/com/android/settings/development/
DOemUnlockPreferenceController.java54 private final OemLockManager mOemLockManager; field in OemUnlockPreferenceController
67 mOemLockManager = null; in OemUnlockPreferenceController()
70 mOemLockManager = (OemLockManager) context.getSystemService(Context.OEM_LOCK_SERVICE); 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()
202 return mOemLockManager.isDeviceOemUnlocked(); in isBootloaderUnlocked()
232 return mOemLockManager.isOemUnlockAllowedByCarrier() in isOemUnlockAllowedByUserAndCarrier()
239 return mOemLockManager.isOemUnlockAllowed(); in isOemUnlockedAllowed()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DFactoryResetConfirmFragmentTest.java77 private OemLockManager mOemLockManager; field in FactoryResetConfirmFragmentTest
97 when(mContext.getSystemService(OemLockManager.class)).thenReturn(mOemLockManager); in setUp()
151 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(true); in confirmClicked_oemUnlockAllowed_doesNotWipePdb()
160 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(true); in confirmClicked_oemUnlockAllowed_sendsResetIntent()
172 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(false); in confirmClicked_noOemUnlockAllowed_notProvisioned_doesNotWipePdb()
182 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(false); in confirmClicked_noOemUnlockAllowed_notProvisioned_sendsResetIntent()
194 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(false); in confirmClicked_noOemUnlockAllowed_provisioned_wipesPdb()
208 when(mOemLockManager.isOemUnlockAllowed()).thenReturn(false); in confirmClicked_noOemUnlockAllowed_provisioned_sendsResetIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DOemUnlockPreferenceControllerTest.java77 private OemLockManager mOemLockManager; field in OemUnlockPreferenceControllerTest
93 when(mContext.getSystemService(Context.OEM_LOCK_SERVICE)).thenReturn(mOemLockManager); in setup()
224 verify(mOemLockManager).setOemUnlockAllowedByUser(true); in onOemUnlockConfirmed_oemManagerShouldSetUnlockAllowedByUser()