Home
last modified time | relevance | path

Searched refs:lockNow (Results 1 – 13 of 13) sorted by relevance

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DLockTest.java74 () -> 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()
DDevicePolicySafetyCheckerTest.kt53 deviceState.dpc().devicePolicyManager().lockNow() in lockNow_isUnsafe_throwsUnsafeStateException()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DLockProfileReceiver.java38 dpm.lockNow(DevicePolicyManager.FLAG_EVICT_CREDENTIAL_ENCRYPTION_KEY); in onReceive()
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DDevicePolicySafetyCheckerIntegrationTester.java158 assertThrows(UnsafeStateException.class, () -> dpm.lockNow()); in testOnOperationSafetyStateChanged()
256 dpm.lockNow(/* flags= */ 0); in runCommonOrSpecificOperation()
258 dpm.lockNow(); in runCommonOrSpecificOperation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DScreenLockTestActivity.java92 mDevicePolicyManager.lockNow(); in handleAddDeviceAdminResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DRecentsRedactionActivity.java84 mDevicePolicyManager.lockNow(); in onCreate()
DByodHelperActivity.java335 mDevicePolicyManager.lockNow(); in onCreate()
362 mDevicePolicyManager.lockNow(); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorTestScreenManipulator.java145 mDevicePolicyManager.lockNow(); in turnScreenOff()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
DTelecomDefaultDialerTestActivity.java145 dpm.lockNow(); in onActivityResult()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDevicePolicyManagerWrapper.java121 doAnswer(answer).when(spy).lockNow(); in getWrapper()
122 doAnswer(answer).when(spy).lockNow(anyInt()); in getWrapper()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicy.kt289 fun lockNow() { in <lambda>() method
290 devicePolicyManager.lockNow() in <lambda>()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSecurityLoggingTest.java795 dpm.lockNow(); in generateLockingPolicyEvents()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt8139 …RequiresPermission(value="android.permission.LOCK_DEVICE", conditional=true) public void lockNow();
8140 …uiresPermission(value="android.permission.LOCK_DEVICE", conditional=true) public void lockNow(int);