Searched refs:receivers (Results 1 – 9 of 9) 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 …]
140 int numberReceivers = (packageInfo.receivers == null ? 0 : packageInfo.receivers.length); in assertHasRequiredReceiver()144 if (packageInfo.receivers != null) { in assertHasRequiredReceiver()145 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()
75 mPackageInfo.receivers}) { in testApplicationInfoSame()96 checkInfoArray(expected.receivers, actual.receivers); in checkPkgInfoSame()
813 ActivityInfo receiver = findPackageItemOrFail(pkgInfo.receivers, RECEIVER_NAME); in assertTestPackageInfo()1130 Arrays.stream(info.receivers).forEach(i -> assertThat(i.metaData).isNull()); in testGetInfo_noMetaData_InPackage()1203 findPackageItemOrFail(info.receivers, "android.content.cts.MockReceiver"))); in testGetInfo_checkMetaData_InPackage()
73 legacyPackage.receivers); in testLegacyContentProvider()
493 private void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument494 mExpectedReceivers = receivers; in setExpectedReceivers()
500 private void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument501 mExpectedReceivers = receivers; in setExpectedReceivers()
240 legacyPackage.receivers); in testLegacy()