Searched refs:receivers (Results 1 – 13 of 13) sorted by relevance
85 ArrayList<BroadcastReceiver> receivers; in onReceive() local87 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() local112 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 …]
171 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()
100 List<ResolveInfo> receivers = pm.queryIntentActivities(getHttpIntent(), /* flags = */ 0); in assertNumberOfReceivers() local101 assertWithMessage("receivers").that(receivers).hasSize(n); in assertNumberOfReceivers()
108 packageInfo.receivers}) { in testApplicationInfoSame()133 checkInfoArray(expected.receivers, actual.receivers); in checkPkgInfoSame()
977 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()
21 repeated Receiver receivers = 12; field
73 legacyPackage.receivers); in testLegacyContentProvider()
100 val receivers = pkgManager.queryBroadcastReceivers( in <lambda>() constant102 if (receivers.size == 0) { in <lambda>()
490 private void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument491 mExpectedReceivers = receivers; in setExpectedReceivers()
493 private void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument494 mExpectedReceivers = receivers; in setExpectedReceivers()
238 legacyPackage.receivers); in testLegacy()
253 android_app.receivers.append(receiver)
12622 field @Nullable public android.content.pm.ActivityInfo[] receivers;