/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/broadcastreceivers/ |
D | BroadcastReceivedEvent.java | 97 BroadcastReceiver broadcastReceiver, Context context, Intent intent) { in logger() argument 98 return new BroadcastReceivedEventLogger(broadcastReceiver, context, intent); in logger() 105 BroadcastReceiver broadcastReceiver, Context context, Intent intent) { in BroadcastReceivedEventLogger() argument 108 setBroadcastReceiver(broadcastReceiver); in BroadcastReceivedEventLogger() 113 BroadcastReceiver broadcastReceiver) { in setBroadcastReceiver() argument 114 mEvent.mBroadcastReceiver = new BroadcastReceiverInfo(broadcastReceiver); in setBroadcastReceiver() 153 public BroadcastReceiverInfo broadcastReceiver() { in broadcastReceiver() method in BroadcastReceivedEvent
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | Packages.java | 260 BlockingBroadcastReceiver broadcastReceiver = in install() local 272 return waitForPackageAddedBroadcast(broadcastReceiver); in install() 276 if (broadcastReceiver != null) { in install() 277 broadcastReceiver.unregisterQuietly(); in install() 283 private Package waitForPackageAddedBroadcast(BlockingBroadcastReceiver broadcastReceiver) { in waitForPackageAddedBroadcast() argument 284 if (broadcastReceiver == null) { in waitForPackageAddedBroadcast() 295 Intent intent = broadcastReceiver.awaitForBroadcast(); in waitForPackageAddedBroadcast() 370 BlockingBroadcastReceiver broadcastReceiver = in install() local 413 return waitForPackageAddedBroadcast(broadcastReceiver); in install() 417 if (broadcastReceiver != null) { in install() [all …]
|
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/ |
D | TestAppController.java | 42 BaseTestAppBroadcastReceiver broadcastReceiver = new BaseTestAppBroadcastReceiver(); in registerReceiver() local 43 sBroadcastReceivers.put(receiverId, broadcastReceiver); in registerReceiver() 45 context.registerReceiver(broadcastReceiver, intentFilter); in registerReceiver()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | StartProfilesTest.java | 92 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in startProfile_broadcastIsReceived_profileIsStarted() local 97 broadcastReceiver.awaitForBroadcastOrFail(START_PROFILE_BROADCAST_TIMEOUT); in startProfile_broadcastIsReceived_profileIsStarted() 119 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in stopProfile_profileIsStopped() local 123 broadcastReceiver.awaitForBroadcastOrFail(); in stopProfile_profileIsStopped() 136 try (BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in startUser_immediatelyAfterStopped_profileIsStarted() argument 143 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in startUser_immediatelyAfterStopped_profileIsStarted() local 146 Intent broadcast = broadcastReceiver.awaitForBroadcast(); in startUser_immediatelyAfterStopped_profileIsStarted() 221 try (BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in startProfile_tvProfile_profileIsStarted() argument 236 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in stopProfile_tvProfile_profileIsStopped() local 241 broadcastReceiver.awaitForBroadcast(); in stopProfile_tvProfile_profileIsStopped()
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/info/ |
D | BroadcastReceiverInfo.java | 28 public BroadcastReceiverInfo(BroadcastReceiver broadcastReceiver) { in BroadcastReceiverInfo() argument 29 this(broadcastReceiver.getClass()); in BroadcastReceiverInfo()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 641 final TestBroadcastReceiver broadcastReceiver = new TestBroadcastReceiver(); in testSendOrderedBroadcast2() local 642 broadcastReceiver.mIsOrderedBroadcasts = true; in testSendOrderedBroadcast2() 649 mContext.sendOrderedBroadcast(intent, null, broadcastReceiver, null, 1, in testSendOrderedBroadcast2() 660 assertTrue("Receiver didn't make any response.", broadcastReceiver.hadReceivedBroadCast()); in testSendOrderedBroadcast2() 661 assertEquals("Incorrect code: " + broadcastReceiver.getResultCode(), 3, in testSendOrderedBroadcast2() 662 broadcastReceiver.getResultCode()); in testSendOrderedBroadcast2() 663 assertEquals(ACTUAL_RESULT, broadcastReceiver.getResultData()); in testSendOrderedBroadcast2() 664 Bundle resultExtras = broadcastReceiver.getResultExtras(false); in testSendOrderedBroadcast2() 775 final FilteredReceiver broadcastReceiver = new FilteredReceiver(); in testRegisterReceiver1() local 779 mContext.registerReceiver(broadcastReceiver, filter); in testRegisterReceiver1() [all …]
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/ |
D | DeviceAdminTransferAffiliatedProfileOwnershipCompleteEventTest.java | 66 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_works() 87 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 102 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 122 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminBugreportSharingDeclinedEventTest.java | 92 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 110 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 123 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 140 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminDisableRequestedEventTest.java | 94 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 112 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 125 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 142 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminDisabledEventTest.java | 92 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 110 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 123 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 140 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminSecurityLogsAvailableEventTest.java | 93 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_works() 111 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 124 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 141 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminEnabledEventTest.java | 92 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 110 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 123 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 140 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminLockTaskModeExitingEventTest.java | 95 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 113 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 126 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 143 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminProfileProvisioningCompleteEventTest.java | 96 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 114 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 127 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 144 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminTransferOwnershipCompleteEventTest.java | 98 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_works() 118 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 132 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 151 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminReadyForUserInitializationEventTest.java | 96 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 114 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 127 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 144 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminOperationSafetyStateChangedEventTest.java | 66 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_works() 86 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 100 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 119 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminPasswordChangedEventTest.java | 96 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 114 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 127 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 144 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminUserStartedEventTest.java | 96 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 114 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 127 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 144 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminPasswordSucceededEventTest.java | 96 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 114 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 127 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 144 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminPasswordExpiringEventTest.java | 96 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_works() 114 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 127 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 144 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminSystemUpdatePendingEventTest.java | 100 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_works() 120 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 135 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 154 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
D | DeviceAdminUserSwitchedEventTest.java | 96 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 114 … .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className().isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 127 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works() 144 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/ |
D | TestUtils.java | 64 BroadcastReceiver broadcastReceiver = new BroadcastReceiver() { in startScanAndWaitForResults() local 75 mContext.registerReceiver(broadcastReceiver, intentFilter); in startScanAndWaitForResults() 83 mContext.unregisterReceiver(broadcastReceiver); in startScanAndWaitForResults() 91 mContext.unregisterReceiver(broadcastReceiver); in startScanAndWaitForResults() 96 mContext.unregisterReceiver(broadcastReceiver); in startScanAndWaitForResults()
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/broadcastreceivers/ |
D | BroadcastReceivedEventTest.java | 96 assertThat(eventLogs.poll().broadcastReceiver().className()).isEqualTo( in whereBroadcastReceiver_customValueOnLogger_works() 114 assertThat(eventLogs.poll().broadcastReceiver().className()).isEqualTo( in whereBroadcastReceiver_customValueOnLogger_skipsNonMatching() 127 assertThat(eventLogs.poll().broadcastReceiver().className()) in whereBroadcastReceiver_defaultValue_works() 144 assertThat(eventLogs.poll().broadcastReceiver().className()) in whereBroadcastReceiver_defaultValue_skipsNonMatching()
|