/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | BroadcastRecordTest.java | 107 for (final Object receiver : record.receivers) { in verifyRemaining() 147 final List<ResolveInfo> receivers = new ArrayList<>(); in createReceiverInfos() local 150 receivers.add(createResolveInfo(packages[i], in createReceiverInfos() 154 return receivers; in createReceiverInfos() 161 private static List<ResolveInfo> excludeReceivers(List<ResolveInfo> receivers, in excludeReceivers() argument 164 for (final ResolveInfo receiver : receivers) { in excludeReceivers() 175 private static BroadcastRecord createBroadcastRecord(List<ResolveInfo> receivers, int userId) { in createBroadcastRecord() argument 190 new ArrayList<>(receivers), // Make a copy to not affect the original list. in createBroadcastRecord()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastRecord.java | 68 final List receivers; // contains BroadcastFilter and ResolveInfo field in BroadcastRecord 217 final int N = receivers != null ? receivers.size() : 0; in dump() 221 Object o = receivers.get(i); in dump() 270 receivers = _receivers; in BroadcastRecord() 311 receivers = from.receivers; in BroadcastRecord() 345 for (int i = startingAt; i < receivers.size(); ) { in splitRecipientsLocked() 346 Object o = receivers.get(i); in splitRecipientsLocked() 352 receivers.remove(i); in splitRecipientsLocked() 392 if (receivers == null) { in cleanupDisabledPackageReceiversLocked() 404 for (int i = receivers.size() - 1; i >= 0; i--) { in cleanupDisabledPackageReceiversLocked() [all …]
|
D | BroadcastQueue.java | 539 if (r.nextReceiver < r.receivers.size()) { in finishReceiverLocked() 540 Object obj = r.receivers.get(r.nextReceiver); in finishReceiverLocked() 1026 final int N = r.receivers.size(); in processNextBroadcastLocked() 1030 Object target = r.receivers.get(i); in processNextBroadcastLocked() 1114 int numReceivers = (r.receivers != null) ? r.receivers.size() : 0; in processNextBroadcastLocked() 1142 if (r.receivers == null || r.nextReceiver >= numReceivers in processNextBroadcastLocked() 1222 final int receiverUid = r.getReceiverUid(r.receivers.get(r.nextReceiver)); in processNextBroadcastLocked() 1249 for (int i = 0; i < r.receivers.size(); i++) { in processNextBroadcastLocked() 1250 Slog.i(TAG_BROADCAST, " " + r.receivers.get(i)); in processNextBroadcastLocked() 1253 for (int i = 0; i < defer.receivers.size(); i++) { in processNextBroadcastLocked() [all …]
|
D | ActivityManagerService.java | 12499 ArrayList receivers = new ArrayList(); in registerReceiverWithFeature() local 12500 receivers.add(bf); in registerReceiverWithFeature() 12507 null, null, -1, -1, false, null, null, null, OP_NONE, null, receivers, in registerReceiverWithFeature() 12580 List<ResolveInfo> receivers = null; in collectReceiverComponents() local 12607 if (receivers == null) { in collectReceiverComponents() 12608 receivers = newReceivers; in collectReceiverComponents() 12617 for (int i=0; i<receivers.size(); i++) { in collectReceiverComponents() 12618 ResolveInfo ri = receivers.get(i); in collectReceiverComponents() 12641 receivers.add(ri); in collectReceiverComponents() 12644 receivers.add(ri); in collectReceiverComponents() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/demomode/ |
D | DemoModeController.kt | 54 private val receivers = mutableListOf<DemoMode>() in <lambda>() constant in com.android.systemui.demomode.DemoModeController 101 receivers.add(listener) in <lambda>() 115 receivers.remove(listener) in <lambda>() 132 copy = receivers.toList() in <lambda>() 146 copy = receivers.toList() in <lambda>() 186 copy = receivers.toList() in <lambda>()
|
/frameworks/base/telephony/java/android/telephony/mbms/vendor/ |
D | VendorUtils.java | 150 List<ResolveInfo> receivers = in getAppReceiverFromPackageName() local 152 if (receivers != null && receivers.size() > 0) { in getAppReceiverFromPackageName()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | AndroidPackageParsingEquivalenceTest.kt | 112 val firstReceiverNames = it.first?.receivers?.map { it.name } ?: emptyList() in packageInfoEquality() 113 val secondReceiverNames = it.second?.receivers?.map { it.name } ?: emptyList() in packageInfoEquality() 119 if (!it.first?.receivers.isNullOrEmpty() && !it.second?.receivers.isNullOrEmpty()) { in packageInfoEquality() 120 it.first?.receivers?.zip(it.second?.receivers!!)?.forEach { in packageInfoEquality()
|
D | AndroidPackageInfoFlagBehaviorTest.kt | 83 pkgInfo(PackageManager.GET_RECEIVERS) { listOf(it.receivers) }, in <lambda>()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | Partner.java | 141 List<ResolveInfo> receivers; in get() local 143 receivers = in get() 152 receivers = pm.queryBroadcastReceivers(intent, 0); in get() 155 for (ResolveInfo info : receivers) { in get()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierSmsUtils.java | 57 List<ResolveInfo> receivers = packageManager.queryIntentServices(intent, 0); in getImsRcsPackageForIntent() local 58 for (ResolveInfo info : receivers) { in getImsRcsPackageForIntent()
|
D | CarrierServicesSmsFilter.java | 188 List<ResolveInfo> receivers = packageManager.queryIntentServices(intent, 0); in getSystemAppForIntent() local 191 for (ResolveInfo info : receivers) { in getSystemAppForIntent()
|
D | CarrierSignalAgent.java | 327 private void broadcast(Intent intent, Set<ComponentName> receivers, boolean wakeup) { in broadcast() argument 329 for (ComponentName name : receivers) { in broadcast()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | SmsApplication.java | 265 HashMap<String, SmsApplicationData> receivers = new HashMap<String, SmsApplicationData>(); in getApplicationCollectionInternal() local 277 if (!receivers.containsKey(packageName)) { in getApplicationCollectionInternal() 281 receivers.put(packageName, smsApplicationData); in getApplicationCollectionInternal() 300 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal() 321 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal() 339 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal() 361 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal() 388 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal() 415 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal() 433 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageInfo.java | 166 public ActivityInfo[] receivers; field in PackageInfo 481 dest.writeTypedArray(receivers, parcelableFlags); in writeToParcel() 547 receivers = source.createTypedArray(ActivityInfo.CREATOR); in PackageInfo()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRules.java | 407 List<ResolveInfo> receivers = new ArrayList<ResolveInfo>(); in getCarrierPackageNamesForIntent() local 408 receivers.addAll(packageManager.queryBroadcastReceivers(intent, 0)); in getCarrierPackageNamesForIntent() 409 receivers.addAll(packageManager.queryIntentContentProviders(intent, 0)); in getCarrierPackageNamesForIntent() 410 receivers.addAll(packageManager.queryIntentActivities(intent, 0)); in getCarrierPackageNamesForIntent() 411 receivers.addAll(packageManager.queryIntentServices(intent, 0)); in getCarrierPackageNamesForIntent() 413 for (ResolveInfo resolveInfo : receivers) { in getCarrierPackageNamesForIntent()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/ |
D | PackageImpl.java | 335 int receiversSize = receivers.size(); in setPackageName() 337 receivers.get(index).setPackageName(this.packageName); in setPackageName() 365 int receiversSize = receivers.size(); in setAllComponentsDirectBootAware() 367 receivers.get(index).setDirectBootAware(allComponentsDirectBootAware); in setAllComponentsDirectBootAware() 456 int receiversSize = receivers.size(); in markNotActivitiesAsNotExportedIfSingleUser() 458 ParsedActivity receiver = receivers.get(index); in markNotActivitiesAsNotExportedIfSingleUser()
|
D | AndroidPackageUtils.java | 167 List<ParsedActivity> receivers = pkg.getReceivers(); in hasComponentClassName() local 168 int receiversSize = receivers.size(); in hasComponentClassName() 170 if (Objects.equals(className, receivers.get(index).getName())) { in hasComponentClassName()
|
/frameworks/base/services/profcollect/src/com/android/server/profcollect/ |
D | ProfcollectForwardingService.java | 338 List<ResolveInfo> receivers = in packProfileReport() local 340 if (receivers == null || receivers.isEmpty()) { in packProfileReport()
|
/frameworks/base/media/java/android/media/midi/ |
D | MidiDeviceServer.java | 448 MidiReceiver[] receivers = new MidiReceiver[mOutputPortCount]; in getOutputPortReceivers() local 449 System.arraycopy(mOutputPortDispatchers, 0, receivers, 0, mOutputPortCount); in getOutputPortReceivers() 450 return receivers; in getOutputPortReceivers()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CaptivePortalLoginActivity.java | 174 ArrayMap receivers = (ArrayMap) receiversField.get(loadedApk); in setWebViewProxy() local 175 for (Object receiverMap : receivers.values()) { in setWebViewProxy()
|
/frameworks/base/media/lib/signer/ |
D | README.txt | 16 o The stub library is effectively a PUBLIC API for unbundled CAST receivers
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | BroadcastTest.java | 90 public void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument 91 mExpectedReceivers = receivers; in setExpectedReceivers()
|
D | LaunchpadActivity.java | 428 private void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument 429 mExpectedReceivers = receivers; in setExpectedReceivers()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 907 Map<String, Integer> receivers = accounts.mReceiversForType.get(type); in registerAccountListener() local 908 if (receivers == null) { in registerAccountListener() 909 receivers = new HashMap<>(); in registerAccountListener() 910 accounts.mReceiversForType.put(type, receivers); in registerAccountListener() 912 Integer cnt = receivers.get(opPackageName); in registerAccountListener() 913 receivers.put(opPackageName, cnt != null ? cnt + 1 : 1); in registerAccountListener() 940 Map<String, Integer> receivers = accounts.mReceiversForType.get(type); in unregisterAccountListener() local 941 if (receivers == null || receivers.get(opPackageName) == null) { in unregisterAccountListener() 944 Integer cnt = receivers.get(opPackageName); in unregisterAccountListener() 946 receivers.remove(opPackageName); in unregisterAccountListener() [all …]
|
/frameworks/base/core/java/android/content/pm/parsing/ |
D | ParsingPackageImpl.java | 258 protected List<ParsedActivity> receivers = emptyList(); field in ParsingPackageImpl 617 Collections.sort(this.receivers, ORDER_COMPARATOR); in sortReceivers() 751 this.receivers = CollectionUtils.add(this.receivers, parsedReceiver); in addReceiver() 1170 dest.writeTypedList(this.receivers); 1294 this.receivers = in.createTypedArrayList(ParsedActivity.CREATOR); 1637 return receivers;
|