Home
last modified time | relevance | path

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

1234

/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/broadcastreceivers/
DBroadcastReceivedEvent.java115 BroadcastReceiver broadcastReceiver, Context context, Intent intent, int resultCode) { in logger() argument
116 return new BroadcastReceivedEventLogger(broadcastReceiver, context, intent, resultCode); in logger()
123 BroadcastReceiver broadcastReceiver, Context context, Intent intent, in BroadcastReceivedEventLogger() argument
128 setBroadcastReceiver(broadcastReceiver); in BroadcastReceivedEventLogger()
134 BroadcastReceiver broadcastReceiver) { in setBroadcastReceiver() argument
135 mEvent.mBroadcastReceiver = new BroadcastReceiverInfo(broadcastReceiver); in setBroadcastReceiver()
177 public BroadcastReceiverInfo broadcastReceiver() { in broadcastReceiver() method in BroadcastReceivedEvent
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DStartProfilesTest.java92 try (BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in startProfile_broadcastIsReceived_profileIsStarted() argument
97 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in startProfile_broadcastIsReceived_profileIsStarted() local
102 broadcastReceiver.awaitForBroadcastOrFail(START_PROFILE_BROADCAST_TIMEOUT); in startProfile_broadcastIsReceived_profileIsStarted()
124 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in stopProfile_profileIsStopped() local
128 broadcastReceiver.awaitForBroadcastOrFail(); in stopProfile_profileIsStopped()
141 try (BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in startUser_immediatelyAfterStopped_profileIsStarted() argument
148 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in startUser_immediatelyAfterStopped_profileIsStarted() local
151 Intent broadcast = broadcastReceiver.awaitForBroadcast(); in startUser_immediatelyAfterStopped_profileIsStarted()
227 try (BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in startProfile_tvProfile_profileIsStarted() argument
232 try (BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in startProfile_tvProfile_profileIsStarted() argument
[all …]
DDevicePolicyResourcesTest.java251 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in setDrawables_drawableChangedFromNull_sendsBroadcast() local
257 broadcastReceiver.awaitForBroadcastOrFail(); in setDrawables_drawableChangedFromNull_sendsBroadcast()
266 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in setDrawables_drawableChangedFromOtherDrawable_sendsBroadcast() local
272 broadcastReceiver.awaitForBroadcastOrFail(); in setDrawables_drawableChangedFromOtherDrawable_sendsBroadcast()
282 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in setDrawables_drawableNotChanged_doesNotSendBroadcast() local
288 assertThat(broadcastReceiver.awaitForBroadcast()).isNull(); in setDrawables_drawableNotChanged_doesNotSendBroadcast()
344 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in resetDrawables_drawableChanged_sendsBroadcast() local
349 broadcastReceiver.awaitForBroadcastOrFail(); in resetDrawables_drawableChanged_sendsBroadcast()
358 BlockingBroadcastReceiver broadcastReceiver = sDeviceState.registerBroadcastReceiver( in resetDrawables_drawableNotChanged_doesNotSendBroadcast() local
363 assertThat(broadcastReceiver.awaitForBroadcast()).isNull(); in resetDrawables_drawableNotChanged_doesNotSendBroadcast()
[all …]
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/
DDelegatedAdminReceiverQueryHelperTest.java66 … delegatedAdminReceiverQueryHelper.broadcastReceiver().receiverClass().isSameClassAs(CLASS_1); in matches_broadcastReceiver_doesMatch_returnsTrue()
77 … delegatedAdminReceiverQueryHelper.broadcastReceiver().receiverClass().isSameClassAs(CLASS_1); in matches_broadcastReceiver_doesNotMatch_returnsFalse()
88 … delegatedAdminReceiverQueryHelper.broadcastReceiver().receiverClass().isSameClassAs(CLASS_1); in parcel_parcelsCorrectly()
97 .where().broadcastReceiver().receiverClass().isSameClassAs(CLASS_1) in delegatedAdminReceiverQueryBase_queries()
116 .broadcastReceiver().receiverClass().className().isNotNull(); in isEmptyQuery_hasBroadcastReceiverQuery_returnsFalse()
DDeviceAdminReceiverQueryHelperTest.java66 deviceAdminReceiverQueryHelper.broadcastReceiver().receiverClass().isSameClassAs(CLASS_1); in matches_broadcastReceiver_doesMatch_returnsTrue()
77 deviceAdminReceiverQueryHelper.broadcastReceiver().receiverClass().isSameClassAs(CLASS_1); in matches_broadcastReceiver_doesNotMatch_returnsFalse()
88 deviceAdminReceiverQueryHelper.broadcastReceiver().receiverClass().isSameClassAs(CLASS_1); in parcel_parcelsCorrectly()
97 .where().broadcastReceiver().receiverClass().isSameClassAs(CLASS_1) in deviceAdminReceiverQueryBase_queries()
116 .broadcastReceiver().receiverClass().className().isNotNull(); in isEmptyQuery_hasBroadcastReceiverQuery_returnsFalse()
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DTestAppController.java51 BaseTestAppBroadcastReceiver broadcastReceiver = new BaseTestAppBroadcastReceiver(); in registerReceiver() local
52 sBroadcastReceivers.put(receiverId, broadcastReceiver); in registerReceiver()
54 context.registerReceiver(broadcastReceiver, intentFilter, flags); in registerReceiver()
/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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackages.java284 BlockingBroadcastReceiver broadcastReceiver = in install() local
310 installedPackage = waitForPackageAddedBroadcast(broadcastReceiver); in install()
316 if (broadcastReceiver != null) { in install()
317 broadcastReceiver.unregisterQuietly(); in install()
398 BlockingBroadcastReceiver broadcastReceiver = in install() local
459 if (broadcastReceiver != null) { in install()
460 broadcastReceiver.unregisterQuietly(); in install()
469 BlockingBroadcastReceiver broadcastReceiver = in installUsingAdb() local
497 installedPackage = waitForPackageAddedBroadcast(broadcastReceiver); in installUsingAdb()
503 if (broadcastReceiver != null) { in installUsingAdb()
[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()
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()
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()
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()
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()
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()
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()
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()
DDeviceAdminPasswordFailedEventTest.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()
DDeviceAdminBugreportFailedEventTest.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()
DDeviceAdminLockTaskModeEnteringEventTest.java97 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_works()
115 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
129 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works()
146 .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/delegatedadminreceivers/
DDelegatedAdminSecurityLogsAvailableEventTest.java93 … .whereDelegatedAdminReceiver().broadcastReceiver().receiverClass().className() in whereDelegatedAdminReceiver_customValueOnLogger_works()
111 … .whereDelegatedAdminReceiver().broadcastReceiver().receiverClass().className() in whereDelegatedAdminReceiver_customValueOnLogger_skipsNonMatching()
124 … .whereDelegatedAdminReceiver().broadcastReceiver().receiverClass().className() in whereDelegatedAdminReceiver_defaultValue_works()
141 … .whereDelegatedAdminReceiver().broadcastReceiver().receiverClass().className() in whereDelegatedAdminReceiver_defaultValue_skipsNonMatching()
/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()

1234