/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageObserverHelper.java | 55 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/ |
D | KeyedObserver.kt | 109 @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()
|
D | Observer.kt | 75 @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/ |
D | CommunalAppWidgetHost.kt | 51 @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/ |
D | AbstractItemHierarchy.java | 35 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/ |
D | FakeSettings.java | 71 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()
|
D | FakeGlobalSettings.java | 49 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/ |
D | AccessorImpl.cpp | 294 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()
|
D | AccessorImpl.h | 174 std::map<ConnectionId, const sp<IObserver>> *observers,
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ActivityManagerServiceTest.java | 805 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/ |
D | print.proto | 145 // List of printer discovery observers
|
/frameworks/base/packages/SettingsLib/DataStore/ |
D | README.md | 161 // later to notify observers.
|
/frameworks/base/packages/SystemUI/aconfig/ |
D | systemui.aconfig | 735 description: "Decide whether to register zen mode content observers in the background thread."
|
/frameworks/base/core/proto/android/server/ |
D | jobscheduler.proto | 511 repeated Observer observers = 2; field
|