/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/broadcastreceivers/ |
D | BroadcastReceivedEvent.java | 115 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/ |
D | StartProfilesTest.java | 92 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 …]
|
D | DevicePolicyResourcesTest.java | 251 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/ |
D | DelegatedAdminReceiverQueryHelperTest.java | 66 … 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()
|
D | DeviceAdminReceiverQueryHelperTest.java | 66 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/ |
D | TestAppController.java | 51 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/ |
D | BroadcastReceiverInfo.java | 28 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/ |
D | Packages.java | 284 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/ |
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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | DeviceAdminPasswordFailedEventTest.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 | DeviceAdminBugreportFailedEventTest.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 | DeviceAdminLockTaskModeEnteringEventTest.java | 97 .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/ |
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/delegatedadminreceivers/ |
D | DelegatedAdminSecurityLogsAvailableEventTest.java | 93 … .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/ |
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()
|