Home
last modified time | relevance | path

Searched refs:observers (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DPackageObserverHelper.java55 ArraySet<PackageListObserver> observers; in notifyAdded() local
57 observers = mActiveSnapshot; in notifyAdded()
59 final int size = observers.size(); in notifyAdded()
61 observers.valueAt(index).onPackageAdded(packageName, uid); in notifyAdded()
66 ArraySet<PackageListObserver> observers; in notifyChanged() local
68 observers = mActiveSnapshot; in notifyChanged()
70 final int size = observers.size(); in notifyChanged()
72 observers.valueAt(index).onPackageChanged(packageName, uid); in notifyChanged()
77 ArraySet<PackageListObserver> observers; in notifyRemoved() local
79 observers = mActiveSnapshot; in notifyRemoved()
[all …]
/frameworks/base/packages/SettingsLib/DataStore/src/com/android/settingslib/datastore/
DKeyedObserver.kt109 @GuardedBy("itself") private val observers = WeakHashMap<KeyedObserver<K?>, Executor>() in addObserver() constant in com.android.settingslib.datastore.KeyedDataObservable
115 val oldExecutor = synchronized(observers) { observers.put(observer, executor) } in addObserver()
132 synchronized(observers) { observers.remove(observer) } in addObserver()
137 val observers = keyedObservers[key] in addObserver() constant
138 if (observers?.remove(observer) != null && observers.isEmpty()) { in addObserver()
146 val observers = synchronized(observers) { observers.entries.toTypedArray() } in addObserver() constant
148 for (entry in observers) { in addObserver()
170 val observers = synchronized(observers) { observers.entries.toTypedArray() } in addObserver() constant
174 for (entry in observers) { in addObserver()
DObserver.kt75 @GuardedBy("itself") private val observers = WeakHashMap<Observer, Executor>() in addObserver() constant in com.android.settingslib.datastore.DataObservable
78 val oldExecutor = synchronized(observers) { observers.put(observer, executor) } in addObserver()
85 synchronized(observers) { observers.remove(observer) } in addObserver()
90 val entries = synchronized(observers) { observers.entries.toTypedArray() } in addObserver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/widgets/
DCommunalAppWidgetHost.kt51 @GuardedBy("observers") private val observers = mutableSetOf<Observer>() in <lambda>() constant
86 synchronized(observers) { in <lambda>()
87 observers.forEach { observer -> observer.onAllocateAppWidgetId(appWidgetId) } in <lambda>()
96 synchronized(observers) { in <lambda>()
97 observers.forEach { observer -> observer.onDeleteAppWidgetId(appWidgetId) } in <lambda>()
105 synchronized(observers) { in <lambda>()
106 observers.forEach { observer -> observer.onHostStartListening() } in <lambda>()
114 synchronized(observers) { in <lambda>()
115 observers.forEach { observer -> observer.onHostStopListening() } in <lambda>()
121 synchronized(observers) { observers.add(observer) } in <lambda>()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DAbstractItemHierarchy.java35 private final ArrayList<Observer> observers = new ArrayList<>(); field in AbstractItemHierarchy
60 observers.add(observer); in registerObserver()
65 observers.remove(observer); in unregisterObserver()
70 for (Observer observer : observers) { in notifyChanged()
86 for (Observer observer : observers) { in notifyItemRangeChanged()
102 for (Observer observer : observers) { in notifyItemRangeInserted()
122 for (Observer observer : observers) { in notifyItemRangeMoved()
138 for (Observer observer : observers) { in notifyItemRangeRemoved()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/settings/
DFakeSettings.java71 List<ContentObserver> observers; in registerContentObserverForUserSync() local
74 observers = mContentObserversAllUsers.get(uri.toString()); in registerContentObserverForUserSync()
78 observers = mContentObservers.get(key); in registerContentObserverForUserSync()
80 observers.add(settingsObserver); in registerContentObserverForUserSync()
86 List<ContentObserver> observers = mContentObservers.get(key); in unregisterContentObserverSync() local
87 observers.remove(settingsObserver); in unregisterContentObserverSync()
90 List<ContentObserver> observers = mContentObserversAllUsers.get(key); in unregisterContentObserverSync() local
91 observers.remove(settingsObserver); in unregisterContentObserverSync()
DFakeGlobalSettings.java49 List<ContentObserver> observers; in registerContentObserverSync() local
51 observers = mContentObserversAllUsers.get(uri.toString()); in registerContentObserverSync()
52 observers.add(settingsObserver); in registerContentObserverSync()
/frameworks/av/media/module/bufferpool/2.0/
DAccessorImpl.cpp294 std::map<ConnectionId, const sp<IObserver>> observers; in handleInvalidateAck() local
299 mBufferPool.mInvalidation.onHandleAck(&observers, &invalidationId); in handleInvalidateAck()
303 for (auto it = observers.begin(); it != observers.end(); ++it) { in handleInvalidateAck()
425 std::map<ConnectionId, const sp<IObserver>> *observers, in onHandleAck() argument
434 observers->emplace(it->first, observer); in onHandleAck()
DAccessorImpl.h174 std::map<ConnectionId, const sp<IObserver>> *observers,
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DActivityManagerServiceTest.java805 final IUidObserver[] observers = new IUidObserver.Stub[changesToObserve.length]; in testDispatchUids_dispatchNeededChanges() local
806 for (int i = 0; i < observers.length; ++i) { in testDispatchUids_dispatchNeededChanges()
807 observers[i] = mock(IUidObserver.Stub.class); in testDispatchUids_dispatchNeededChanges()
808 when(observers[i].asBinder()).thenReturn((IBinder) observers[i]); in testDispatchUids_dispatchNeededChanges()
809 mAms.registerUidObserver(observers[i], changesToObserve[i] /* which */, in testDispatchUids_dispatchNeededChanges()
816 Mockito.reset(observers[i]); in testDispatchUids_dispatchNeededChanges()
852 for (int i = 0; i < observers.length; ++i) { in testDispatchUids_dispatchNeededChanges()
854 final IUidObserver observerToTest = observers[i]; in testDispatchUids_dispatchNeededChanges()
/frameworks/base/core/proto/android/service/
Dprint.proto145 // List of printer discovery observers
/frameworks/base/packages/SettingsLib/DataStore/
DREADME.md161 // later to notify observers.
/frameworks/base/packages/SystemUI/aconfig/
Dsystemui.aconfig735 description: "Decide whether to register zen mode content observers in the background thread."
/frameworks/base/core/proto/android/server/
Djobscheduler.proto511 repeated Observer observers = 2; field