Home
last modified time | relevance | path

Searched refs:REASON (Results 1 – 4 of 4) sorted by relevance

/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/
DDeviceAdminOperationSafetyStateChangedEventTest.java44 private static final int REASON = 1; field in DeviceAdminOperationSafetyStateChangedEventTest
60 DEVICE_ADMIN_RECEIVER, sContext, REASON, IS_SAFE) in whereDeviceAdminReceiver_customValueOnLogger_works()
76 DEVICE_ADMIN_RECEIVER, sContext, REASON, IS_SAFE) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
80 DEVICE_ADMIN_RECEIVER, sContext, REASON, IS_SAFE) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
96 DEVICE_ADMIN_RECEIVER, sContext, REASON, IS_SAFE).log(); in whereDeviceAdminReceiver_defaultValue_works()
110 DEVICE_ADMIN_RECEIVER, sContext, REASON, IS_SAFE) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
114 DEVICE_ADMIN_RECEIVER, sContext, REASON, IS_SAFE) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
129 DEVICE_ADMIN_RECEIVER, sContext, REASON, IS_SAFE).log(); in whereReason_works()
133 .whereReason().isEqualTo(REASON); in whereReason_works()
135 assertThat(eventLogs.poll().reason()).isEqualTo(REASON); in whereReason_works()
[all …]
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java84 private static final String REASON = "test"; field in CloseSystemDialogsTest
318 mService.closeSystemDialogsViaWindowManager(REASON); in testCloseSystemDialogsViaWindowManager_whenTestInstrumentedViaShell_isSent()
320 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(REASON); in testCloseSystemDialogsViaWindowManager_whenTestInstrumentedViaShell_isSent()
329 () -> mService.closeSystemDialogsViaWindowManager(REASON)); in testCloseSystemDialogsViaWindowManager_whenRunningAsShell_isSent()
331 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(REASON); in testCloseSystemDialogsViaWindowManager_whenRunningAsShell_isSent()
341 () -> mService.closeSystemDialogsViaWindowManager(REASON)); in testCloseSystemDialogsViaWindowManager_whenTargetSdkCurrent_isBlockedAndThrows()
352 mService.closeSystemDialogsViaWindowManager(REASON); in testCloseSystemDialogsViaWindowManager_whenTargetSdk30_isBlockedButDoesNotThrow()
364 mService.closeSystemDialogsViaActivityManager(REASON); in testCloseSystemDialogsViaActivityManager_whenTestInstrumentedViaShell_isSent()
366 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(REASON); in testCloseSystemDialogsViaActivityManager_whenTestInstrumentedViaShell_isSent()
376 () -> mService.closeSystemDialogsViaActivityManager(REASON)); in testCloseSystemDialogsViaActivityManager_whenRunningAsShell_isSent()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibDeviceAdminReceiverTest.java91 private static final int REASON = 1; field in EventLibDeviceAdminReceiverTest
454 receiver.onOperationSafetyStateChanged(sContext, REASON, IS_SAFE); in operationSafetyStateChanged_logsOperationSafetyStateChangedEvent()
458 assertThat(eventLogs.poll().reason()).isEqualTo(REASON); in operationSafetyStateChanged_logsOperationSafetyStateChangedEvent()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dsystem-current.txt3906 field public static final String EXTRA_REASON = "android.intent.extra.REASON";