Searched refs:mOemLockManager (Results 1 – 4 of 4) sorted by relevance
48 private final OemLockManager mOemLockManager; field in OemUnlockPreferenceController61 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()
47 private final OemLockManager mOemLockManager; field in OemUnlockPreferenceController59 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()
55 private OemLockManager mOemLockManager; field in MasterClearConfirmFragmentTest71 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()
71 private OemLockManager mOemLockManager; field in OemUnlockPreferenceControllerTest86 when(mContext.getSystemService(Context.OEM_LOCK_SERVICE)).thenReturn(mOemLockManager); in setup()223 verify(mOemLockManager).setOemUnlockAllowedByUser(true); in onOemUnlockConfirmed_oemManagerShouldSetUnlockAllowedByUser()