Home
last modified time | relevance | path

Searched refs:mReceivers (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DProcessReceiverRecord.java42 private final ArraySet<ReceiverList> mReceivers = new ArraySet<>(); field in ProcessReceiverRecord
95 return mReceivers.size(); in numberOfReceivers()
99 mReceivers.add(receiver); in addReceiver()
103 mReceivers.remove(receiver); in removeReceiver()
114 for (int i = mReceivers.size() - 1; i >= 0; i--) { in onCleanupApplicationRecordLocked()
115 mService.removeReceiverLocked(mReceivers.valueAt(i)); in onCleanupApplicationRecordLocked()
117 mReceivers.clear(); in onCleanupApplicationRecordLocked()
127 if (mReceivers.size() > 0) { in dump()
129 for (int i = 0, size = mReceivers.size(); i < size; i++) { in dump()
130 pw.print(prefix); pw.print(" - "); pw.println(mReceivers.valueAt(i)); in dump()
DReceiverList.java86 proto.write(ReceiverListProto.NUMBER_RECEIVERS, app.mReceivers.numberOfReceivers()); in dumpDebug()
109 pw.print(" #receivers="); pw.print(app.mReceivers.numberOfReceivers()); in dumpLocal()
DProcessRecord.java399 final ProcessReceiverRecord mReceivers; field in ProcessRecord
561 mReceivers.dump(pw, prefix, nowUptime); in dump()
619 mReceivers = new ProcessReceiverRecord(this); in ProcessRecord()
1196 mReceivers.onCleanupApplicationRecordLocked(); in onCleanupApplicationRecordLSP()
DBroadcastQueueModernImpl.java2079 queue.app.mReceivers.incrementCurReceivers(); in notifyStartedRunning()
2104 queue.app.mReceivers.decrementCurReceivers(); in notifyStoppedRunning()
DOomAdjuster.java3397 if (app.getWaitingToKill() != null && app.mReceivers.numberOfCurReceivers() == 0 in applyOomAdjLSP()
/frameworks/base/core/java/com/android/internal/midi/
DMidiDispatcher.java46 private final CopyOnWriteArrayList<MidiReceiver> mReceivers field in MidiDispatcher
52 mReceivers.add(receiver);
57 mReceivers.remove(receiver);
74 return mReceivers.size(); in getReceiverCount()
89 for (MidiReceiver receiver : mReceivers) { in onSend()
96 mReceivers.remove(receiver); in onSend()
106 for (MidiReceiver receiver : mReceivers) { in onFlush()
111 mReceivers.remove(receiver); in onFlush()
/frameworks/base/services/core/java/com/android/server/
DCountryDetectorService.java96 private final HashMap<IBinder, Receiver> mReceivers; field in CountryDetectorService
110 mReceivers = new HashMap<>(); in CountryDetectorService()
147 synchronized (mReceivers) { in addListener()
155 mReceivers.put(listener.asBinder(), r); in addListener()
156 if (mReceivers.size() == 1) { in addListener()
167 synchronized (mReceivers) { in removeListener()
168 mReceivers.remove(key); in removeListener()
169 if (mReceivers.isEmpty()) { in removeListener()
177 synchronized (mReceivers) { in notifyReceivers()
178 for (Receiver receiver : mReceivers.values()) { in notifyReceivers()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDarkIconDispatcherImpl.java49 private final ArrayMap<Object, DarkReceiver> mReceivers = new ArrayMap<>(); field in DarkIconDispatcherImpl
97 mReceivers.put(receiver, receiver); in addDarkReceiver()
105 mReceivers.put(imageView, receiver); in addDarkReceiver()
111 mReceivers.remove(object); in removeDarkReceiver()
115 mReceivers.remove(object); in removeDarkReceiver()
119 mReceivers.get(object).onDarkChanged(mTintAreas, mDarkIntensity, mIconTint); in applyDark()
120 mReceivers.get(object).onDarkChangedWithContrast(mTintAreas, mIconTint, mContrastTint); in applyDark()
161 for (int i = 0; i < mReceivers.size(); i++) { in applyIconTint()
162 mReceivers.valueAt(i).onDarkChanged(mTintAreas, mDarkIntensity, mIconTint); in applyIconTint()
163 mReceivers.valueAt(i).onDarkChangedWithContrast(mTintAreas, mIconTint, mContrastTint); in applyIconTint()
/frameworks/base/services/core/java/com/android/server/pm/resolution/
DComponentResolverSnapshot.java33 mReceivers = new ComponentResolver.ReceiverIntentResolver(orig.mReceivers, mUserManager, in ComponentResolverSnapshot()
DComponentResolverBase.java61 protected ComponentResolver.ReceiverIntentResolver mReceivers; field in ComponentResolverBase
83 component = mReceivers.mActivities.get(componentName); in componentExists()
109 return mReceivers.mActivities.get(component); in getReceiver()
245 return mReceivers.queryIntent(computer, intent, resolvedType, flags, userId); in queryReceivers()
253 return mReceivers.queryIntentForPackage(computer, intent, resolvedType, flags, receivers, in queryReceivers()
339 if (mReceivers.dump(pw, dumpState.getTitlePrinted() ? "\nReceiver Resolver Table:" in dumpReceiverResolvers()
DComponentResolver.java166 mReceivers = new ReceiverIntentResolver(userManager, userNeedsBadgingCache); in ComponentResolver()
367 mReceivers.addActivity(computer, a, "receiver", null); in addReceiversLocked()
746 mReceivers.removeActivity(a, "receiver"); in removeAllComponentsLocked()
1877 hasChanges |= mReceivers.updateMimeGroup(computer, packageName, group); in updateMimeGroup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSliceBroadcastRelayHandler.java131 private final CopyOnWriteArraySet<ComponentName> mReceivers = new CopyOnWriteArraySet<>(); field in SliceBroadcastRelayHandler.BroadcastRelay
141 mReceivers.add(receiver); in register()
153 for (ComponentName receiver : mReceivers) { in onReceive()
/frameworks/base/core/java/android/app/
DLoadedApk.java153 private final ArrayMap<Context, ArrayMap<BroadcastReceiver, ReceiverDispatcher>> mReceivers field in LoadedApk
1544 synchronized (mReceivers) { in removeContextRegistrations()
1546 mReceivers.remove(context); in removeContextRegistrations()
1603 synchronized (mReceivers) { in getReceiverDispatcher()
1607 map = mReceivers.get(context); in getReceiverDispatcher()
1618 mReceivers.put(context, map); in getReceiverDispatcher()
1632 synchronized (mReceivers) { in forgetReceiverDispatcher()
1633 ArrayMap<BroadcastReceiver, LoadedApk.ReceiverDispatcher> map = mReceivers.get(context); in forgetReceiverDispatcher()
1640 mReceivers.remove(context); in forgetReceiverDispatcher()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBroadcastQueueTest.java254 app.mReceivers.numberOfCurReceivers()); in tearDown()
368 assertTrue(r.mReceivers.numberOfCurReceivers() > 0); in makeActiveProcessRecord()
391 assertTrue(r.mReceivers.numberOfCurReceivers() > 0); in makeActiveProcessRecord()
DMockingOomAdjusterTests.java3216 final ProcessReceiverRecord receivers = app.mReceivers; in build()