Home
last modified time | relevance | path

Searched refs:receivers (Results 1 – 13 of 13) sorted by relevance

/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DTestAppCallbacksReceiver.java85 ArrayList<BroadcastReceiver> receivers; in onReceive() local
87 receivers = sRealReceivers.get(action); in onReceive()
89 if (receivers == null || receivers.isEmpty()) { in onReceive()
93 Log.d(TAG, "Will dispatch intent to " + receivers.size() + " on handler thread"); in onReceive()
94 receivers.forEach((r) -> sHandler.post(() -> in onReceive()
111 ArrayList<BroadcastReceiver> receivers = sRealReceivers.get(action); in registerReceiver() local
112 if (receivers == null) { in registerReceiver()
113 receivers = new ArrayList<>(); in registerReceiver()
115 sRealReceivers.put(action, receivers); in registerReceiver()
117 receivers.add(receiver); in registerReceiver()
[all …]
DTestAppSystemServiceFactory.java171 int numberReceivers = (packageInfo.receivers == null ? 0 : packageInfo.receivers.length); in assertHasRequiredReceiver()
175 if (packageInfo.receivers != null) { in assertHasRequiredReceiver()
176 for (ActivityInfo receiver : packageInfo.receivers) { in assertHasRequiredReceiver()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DAppLinkTest.java100 List<ResolveInfo> receivers = pm.queryIntentActivities(getHttpIntent(), /* flags = */ 0); in assertNumberOfReceivers() local
101 assertWithMessage("receivers").that(receivers).hasSize(n); in assertNumberOfReceivers()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInfoTest.java108 packageInfo.receivers}) { in testApplicationInfoSame()
133 checkInfoArray(expected.receivers, actual.receivers); in checkPkgInfoSame()
DPackageManagerTest.java977 if (packageInfo.receivers != null) { in runTestGetPackageArchiveInfoSameApplicationInfo()
978 for (ActivityInfo ac : packageInfo.receivers) { in runTestGetPackageArchiveInfoSameApplicationInfo()
1201 ActivityInfo receiver = findPackageItemOrFail(pkgInfo.receivers, RECEIVER_NAME); in assertTestPackageInfo()
1512 Arrays.stream(info.receivers).forEach(i -> assertThat(i.metaData).isNull()); in testGetInfo_noMetaData_InPackage()
1592 findPackageItemOrFail(info.receivers, "android.content.cts.MockReceiver"))); in testGetInfo_checkMetaData_InPackage()
/cts/common/device-side/bedstead/testapp/src/library/main/proto/
Dtestapp_protos.proto21 repeated Receiver receivers = 12; field
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCellBroadcastDataMigrationTest.java73 legacyPackage.receivers); in testLegacyContentProvider()
/cts/tests/tests/hibernation/src/android/hibernation/cts/
DAppHibernationUtils.kt100 val receivers = pkgManager.queryBroadcastReceivers( in <lambda>() constant
102 if (receivers.size == 0) { in <lambda>()
/cts/tests/app/app/src/android/app/stubs/
DLaunchpadActivity.java490 private void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument
491 mExpectedReceivers = receivers; in setExpectedReceivers()
/cts/tests/tests/os/src/android/os/cts/
DLaunchpadActivity.java493 private void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument
494 mExpectedReceivers = receivers; in setExpectedReceivers()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreTest.java238 legacyPackage.receivers); in testLegacy()
/cts/common/device-side/bedstead/testapp/tools/index/
Dindex_testapps.py253 android_app.receivers.append(receiver)
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt12622 field @Nullable public android.content.pm.ActivityInfo[] receivers;