Searched refs:lockNow (Results 1 – 13 of 13) sorted by relevance
74 () -> sDeviceState.dpc().devicePolicyManager().lockNow()); in lockNow_notPermitted_throwsException()83 sDeviceState.dpc().devicePolicyManager().lockNow(/* flags= */ 0); in lockNow_logsMetric()102 sDeviceState.dpc().devicePolicyManager().lockNow(); in lockNow_noPasswordSet_turnsScreenOff()117 sDeviceState.dpc().devicePolicyManager().lockNow(); in lockNow_automotive_noPasswordSet_doesNotTurnScreenOff()129 sDeviceState.dpc().devicePolicyManager().lockNow(); in lockNow_passwordSet_locksDevice()
53 deviceState.dpc().devicePolicyManager().lockNow() in lockNow_isUnsafe_throwsUnsafeStateException()
38 dpm.lockNow(DevicePolicyManager.FLAG_EVICT_CREDENTIAL_ENCRYPTION_KEY); in onReceive()
158 assertThrows(UnsafeStateException.class, () -> dpm.lockNow()); in testOnOperationSafetyStateChanged()256 dpm.lockNow(/* flags= */ 0); in runCommonOrSpecificOperation()258 dpm.lockNow(); in runCommonOrSpecificOperation()
92 mDevicePolicyManager.lockNow(); in handleAddDeviceAdminResult()
84 mDevicePolicyManager.lockNow(); in onCreate()
335 mDevicePolicyManager.lockNow(); in onCreate()362 mDevicePolicyManager.lockNow(); in onCreate()
145 mDevicePolicyManager.lockNow(); in turnScreenOff()
145 dpm.lockNow(); in onActivityResult()
121 doAnswer(answer).when(spy).lockNow(); in getWrapper()122 doAnswer(answer).when(spy).lockNow(anyInt()); in getWrapper()
289 fun lockNow() { in <lambda>() method290 devicePolicyManager.lockNow() in <lambda>()
795 dpm.lockNow(); in generateLockingPolicyEvents()
8139 …RequiresPermission(value="android.permission.LOCK_DEVICE", conditional=true) public void lockNow();8140 …uiresPermission(value="android.permission.LOCK_DEVICE", conditional=true) public void lockNow(int);