Searched refs:mOemLockManager (Results 1 – 5 of 5) sorted by relevance
35 private final OemLockManager mOemLockManager; field in OemUnlockPreferenceController41 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()
21 private final OemLockManager mOemLockManager; field in OemLockManagerCompat24 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()
54 private final OemLockManager mOemLockManager; field in OemUnlockPreferenceController67 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()
77 private OemLockManager mOemLockManager; field in FactoryResetConfirmFragmentTest97 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()
77 private OemLockManager mOemLockManager; field in OemUnlockPreferenceControllerTest93 when(mContext.getSystemService(Context.OEM_LOCK_SERVICE)).thenReturn(mOemLockManager); in setup()224 verify(mOemLockManager).setOemUnlockAllowedByUser(true); in onOemUnlockConfirmed_oemManagerShouldSetUnlockAllowedByUser()