Home
last modified time | relevance | path

Searched refs:broadcastReceiver (Results 1 – 25 of 45) sorted by relevance

12

/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/broadcastreceivers/
DBroadcastReceivedEvent.java97 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/
DPackages.java260 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/
DTestAppController.java42 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/
DStartProfilesTest.java92 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/
DBroadcastReceiverInfo.java28 public BroadcastReceiverInfo(BroadcastReceiver broadcastReceiver) { in BroadcastReceiverInfo() argument
29 this(broadcastReceiver.getClass()); in BroadcastReceiverInfo()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java641 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/
DDeviceAdminTransferAffiliatedProfileOwnershipCompleteEventTest.java66 .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()
DDeviceAdminBugreportSharingDeclinedEventTest.java92 … .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()
DDeviceAdminDisableRequestedEventTest.java94 … .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()
DDeviceAdminDisabledEventTest.java92 … .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()
DDeviceAdminSecurityLogsAvailableEventTest.java93 .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()
DDeviceAdminEnabledEventTest.java92 … .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()
DDeviceAdminLockTaskModeExitingEventTest.java95 … .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()
DDeviceAdminProfileProvisioningCompleteEventTest.java96 … .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()
DDeviceAdminTransferOwnershipCompleteEventTest.java98 .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()
DDeviceAdminReadyForUserInitializationEventTest.java96 … .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()
DDeviceAdminOperationSafetyStateChangedEventTest.java66 .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()
DDeviceAdminPasswordChangedEventTest.java96 … .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()
DDeviceAdminUserStartedEventTest.java96 … .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()
DDeviceAdminPasswordSucceededEventTest.java96 … .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()
DDeviceAdminPasswordExpiringEventTest.java96 .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()
DDeviceAdminSystemUpdatePendingEventTest.java100 .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()
DDeviceAdminUserSwitchedEventTest.java96 … .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/
DTestUtils.java64 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/
DBroadcastReceivedEventTest.java96 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()

12