Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DBroadcastRecordTest.java107 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
188 new ArrayList<>(receivers), // Make a copy to not affect the original list. in createBroadcastRecord()
/frameworks/base/cmds/statsd/src/external/
DStatsPullerManager.cpp326 auto& receivers = mReceivers[tagId]; in RegisterReceiver() local
327 for (auto it = receivers.begin(); it != receivers.end(); it++) { in RegisterReceiver()
329 VLOG("Receiver already registered of %d", (int)receivers.size()); in RegisterReceiver()
347 receivers.push_back(receiverInfo); in RegisterReceiver()
355 VLOG("Puller for tagId %d registered of %d", tagId, (int)receivers.size()); in RegisterReceiver()
364 auto& receivers = mReceivers.find(tagId)->second; in UnRegisterReceiver() local
365 for (auto it = receivers.begin(); it != receivers.end(); it++) { in UnRegisterReceiver()
367 receivers.erase(it); in UnRegisterReceiver()
368 VLOG("Puller for tagId %d unregistered of %d", tagId, (int)receivers.size()); in UnRegisterReceiver()
383 vector<ReceiverInfo*> receivers = vector<ReceiverInfo*>(); in OnAlarmFired() local
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastRecord.java65 final List receivers; // contains BroadcastFilter and ResolveInfo field in BroadcastRecord
207 final int N = receivers != null ? receivers.size() : 0; in dump()
211 Object o = receivers.get(i); in dump()
256 receivers = _receivers; in BroadcastRecord()
294 receivers = from.receivers; in BroadcastRecord()
327 for (int i = startingAt; i < receivers.size(); ) { in splitRecipientsLocked()
328 Object o = receivers.get(i); in splitRecipientsLocked()
334 receivers.remove(i); in splitRecipientsLocked()
374 if (receivers == null) { in cleanupDisabledPackageReceiversLocked()
386 for (int i = receivers.size() - 1; i >= 0; i--) { in cleanupDisabledPackageReceiversLocked()
[all …]
DBroadcastQueue.java535 if (r.nextReceiver < r.receivers.size()) { in finishReceiverLocked()
536 Object obj = r.receivers.get(r.nextReceiver); in finishReceiverLocked()
982 final int N = r.receivers.size(); in processNextBroadcastLocked()
986 Object target = r.receivers.get(i); in processNextBroadcastLocked()
1066 int numReceivers = (r.receivers != null) ? r.receivers.size() : 0; in processNextBroadcastLocked()
1094 if (r.receivers == null || r.nextReceiver >= numReceivers in processNextBroadcastLocked()
1170 final int receiverUid = r.getReceiverUid(r.receivers.get(r.nextReceiver)); in processNextBroadcastLocked()
1197 for (int i = 0; i < r.receivers.size(); i++) { in processNextBroadcastLocked()
1198 Slog.i(TAG_BROADCAST, " " + r.receivers.get(i)); in processNextBroadcastLocked()
1201 for (int i = 0; i < defer.receivers.size(); i++) { in processNextBroadcastLocked()
[all …]
DProcessRecord.java254 final ArraySet<ReceiverList> receivers = new ArraySet<>(); field in ProcessRecord
558 if (receivers.size() > 0) { in dump()
560 for (int i=0; i<receivers.size(); i++) { in dump()
561 pw.print(prefix); pw.print(" - "); pw.println(receivers.valueAt(i)); in dump()
DActivityManagerService.java13759 for (int i = app.receivers.size() - 1; i >= 0; i--) { in cleanUpApplicationRecordLocked()
13760 removeReceiverLocked(app.receivers.valueAt(i)); in cleanUpApplicationRecordLocked()
13762 app.receivers.clear(); in cleanUpApplicationRecordLocked()
14509 final int totalReceiversForApp = rl.app.receivers.size(); in registerReceiver()
14515 rl.app.receivers.add(rl); in registerReceiver()
14558 ArrayList receivers = new ArrayList(); in registerReceiver() local
14559 receivers.add(bf); in registerReceiver()
14566 null, -1, -1, false, null, null, OP_NONE, null, receivers, in registerReceiver()
14600 rl.app.receivers.remove(rl); in unregisterReceiver()
14638 List<ResolveInfo> receivers = null; in collectReceiverComponents() local
[all …]
/frameworks/base/telephony/java/android/telephony/mbms/vendor/
DVendorUtils.java152 List<ResolveInfo> receivers = in getAppReceiverFromPackageName() local
154 if (receivers != null && receivers.size() > 0) { in getAppReceiverFromPackageName()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DPartner.java141 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/base/telephony/java/com/android/internal/telephony/
DSmsApplication.java257 HashMap<String, SmsApplicationData> receivers = new HashMap<String, SmsApplicationData>(); in getApplicationCollectionInternal() local
269 if (!receivers.containsKey(packageName)) { in getApplicationCollectionInternal()
273 receivers.put(packageName, smsApplicationData); in getApplicationCollectionInternal()
292 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
313 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
331 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
353 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
380 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
407 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
425 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierSmsUtils.java59 List<ResolveInfo> receivers = packageManager.queryIntentServices(intent, 0); in getCarrierImsPackageForIntent() local
60 for (ResolveInfo info : receivers) { in getCarrierImsPackageForIntent()
DCarrierServicesSmsFilter.java169 List<ResolveInfo> receivers = packageManager.queryIntentServices(intent, 0); in getSystemAppForIntent() local
172 for (ResolveInfo info : receivers) { in getSystemAppForIntent()
DCarrierSignalAgent.java299 private void broadcast(Intent intent, Set<ComponentName> receivers, boolean wakeup) { in broadcast() argument
301 for (ComponentName name : receivers) { in broadcast()
/frameworks/base/core/java/android/content/pm/
DPackageInfo.java166 public ActivityInfo[] receivers; field in PackageInfo
460 dest.writeTypedArray(receivers, parcelableFlags | Parcelable.PARCELABLE_ELIDE_DUPLICATES); in writeToParcel()
524 receivers = source.createTypedArray(ActivityInfo.CREATOR); in PackageInfo()
556 propagateApplicationInfo(applicationInfo, receivers); in PackageInfo()
DPackageParser.java735 final int N = p.receivers.size(); in generatePackageInfo()
740 final Activity a = p.receivers.get(i); in generatePackageInfo()
745 pi.receivers = ArrayUtils.trimToSize(res, num); in generatePackageInfo()
3800 owner.receivers.add(a); in parseBaseApplication()
3982 Collections.sort(owner.receivers, (r1, r2) -> Integer.compare(r2.order, r1.order)); in parseBaseApplication()
4088 owner.receivers.add(a); in parseSplitApplication()
6463 public final ArrayList<Activity> receivers = new ArrayList<Activity>(0); field in Package
6830 for (int i=receivers.size()-1; i>=0; i--) { in setPackageName()
6831 receivers.get(i).setPackageName(newName); in setPackageName()
6850 for (int i=receivers.size()-1; i>=0; i--) { in hasComponentClassName()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRules.java393 List<ResolveInfo> receivers = new ArrayList<ResolveInfo>(); in getCarrierPackageNamesForIntent() local
394 receivers.addAll(packageManager.queryBroadcastReceivers(intent, 0)); in getCarrierPackageNamesForIntent()
395 receivers.addAll(packageManager.queryIntentContentProviders(intent, 0)); in getCarrierPackageNamesForIntent()
396 receivers.addAll(packageManager.queryIntentActivities(intent, 0)); in getCarrierPackageNamesForIntent()
397 receivers.addAll(packageManager.queryIntentServices(intent, 0)); in getCarrierPackageNamesForIntent()
399 for (ResolveInfo resolveInfo : receivers) { in getCarrierPackageNamesForIntent()
/frameworks/base/media/java/android/media/midi/
DMidiDeviceServer.java448 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/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java240 assertEquals(a.receivers.size(), b.receivers.size()); in assertPackagesEqual()
241 for (int i = 0; i < a.receivers.size(); ++i) { in assertPackagesEqual()
242 assertActivitiesEqual(a.receivers.get(i), b.receivers.get(i)); in assertPackagesEqual()
465 pkg.receivers.add(new PackageParser.Activity(dummy, new ActivityInfo())); in setKnownFields()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageParserTest.java378 assertEquals(1, p.receivers.size()); in assertOneComponentOfEachType()
380 packageName, 0 /* intents */, p.receivers.get(0)); in assertOneComponentOfEachType()
442 assertMetadata(p.receivers.get(0).metaData, in checkPackageWithComponents()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java176 ArrayMap receivers = (ArrayMap) receiversField.get(loadedApk); in setWebViewProxy() local
177 for (Object receiverMap : receivers.values()) { in setWebViewProxy()
/frameworks/base/media/lib/signer/
DREADME.txt16 o The stub library is effectively a PUBLIC API for unbundled CAST receivers
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java90 public void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument
91 mExpectedReceivers = receivers; in setExpectedReceivers()
DLaunchpadActivity.java428 private void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument
429 mExpectedReceivers = receivers; in setExpectedReceivers()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java900 Map<String, Integer> receivers = accounts.mReceiversForType.get(type); in registerAccountListener() local
901 if (receivers == null) { in registerAccountListener()
902 receivers = new HashMap<>(); in registerAccountListener()
903 accounts.mReceiversForType.put(type, receivers); in registerAccountListener()
905 Integer cnt = receivers.get(opPackageName); in registerAccountListener()
906 receivers.put(opPackageName, cnt != null ? cnt + 1 : 1); in registerAccountListener()
933 Map<String, Integer> receivers = accounts.mReceiversForType.get(type); in unregisterAccountListener() local
934 if (receivers == null || receivers.get(opPackageName) == null) { in unregisterAccountListener()
937 Integer cnt = receivers.get(opPackageName); in unregisterAccountListener()
939 receivers.remove(opPackageName); in unregisterAccountListener()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DComponentResolver.java336 List<PackageParser.Activity> receivers, int userId) { in queryReceivers() argument
338 return mReceivers.queryIntentForPackage(intent, resolvedType, flags, receivers, userId); in queryReceivers()
622 final int receiversSize = pkg.receivers.size(); in addReceiversLocked()
625 PackageParser.Activity a = pkg.receivers.get(i); in addReceiversLocked()
1001 componentSize = pkg.receivers.size(); in removeAllComponentsLocked()
1004 PackageParser.Activity a = pkg.receivers.get(i); in removeAllComponentsLocked()
/frameworks/base/core/proto/android/app/
Denums.proto79 // perspective of oom_adj, receivers run at a higher foreground level, but

12