Home
last modified time | relevance | path

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

/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/src/com/android/systemui/util/settings/
DFakeSettings.java60 List<ContentObserver> observers = mContentObservers.get(key); in registerContentObserverForUser() local
61 observers.add(settingsObserver); in registerContentObserverForUser()
67 List<ContentObserver> observers = mContentObservers.get(key); in unregisterContentObserver() local
68 observers.remove(settingsObserver); in unregisterContentObserver()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerServiceTest.java538 final IUidObserver[] observers = new IUidObserver.Stub[changesToObserve.length]; in testDispatchUids_dispatchNeededChanges() local
539 for (int i = 0; i < observers.length; ++i) { in testDispatchUids_dispatchNeededChanges()
540 observers[i] = mock(IUidObserver.Stub.class); in testDispatchUids_dispatchNeededChanges()
541 when(observers[i].asBinder()).thenReturn((IBinder) observers[i]); in testDispatchUids_dispatchNeededChanges()
542 mAms.registerUidObserver(observers[i], changesToObserve[i] /* which */, in testDispatchUids_dispatchNeededChanges()
549 Mockito.reset(observers[i]); in testDispatchUids_dispatchNeededChanges()
585 for (int i = 0; i < observers.length; ++i) { in testDispatchUids_dispatchNeededChanges()
587 final IUidObserver observerToTest = observers[i]; in testDispatchUids_dispatchNeededChanges()
/frameworks/av/media/bufferpool/2.0/
DAccessorImpl.cpp278 std::map<ConnectionId, const sp<IObserver>> observers; in handleInvalidateAck() local
283 mBufferPool.mInvalidation.onHandleAck(&observers, &invalidationId); in handleInvalidateAck()
287 for (auto it = observers.begin(); it != observers.end(); ++it) { in handleInvalidateAck()
409 std::map<ConnectionId, const sp<IObserver>> *observers, in onHandleAck() argument
418 observers->emplace(it->first, observer); in onHandleAck()
DAccessorImpl.h167 std::map<ConnectionId, const sp<IObserver>> *observers,
/frameworks/base/core/proto/android/service/
Dprint.proto145 // List of printer discovery observers
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java15580 final PackageListObserver[] observers;
15587 observers = mPackageListObservers.toArray(observerArray);
15589 for (int i = observers.length - 1; i >= 0; --i) {
15590 observers[i].onPackageAdded(packageName, uid);
15596 final PackageListObserver[] observers;
15603 observers = mPackageListObservers.toArray(observerArray);
15605 for (int i = observers.length - 1; i >= 0; --i) {
15606 observers[i].onPackageChanged(packageName, uid);
15618 final PackageListObserver[] observers; in notifyPackageRemoved() local
15625 observers = mPackageListObservers.toArray(observerArray); in notifyPackageRemoved()
[all …]
/frameworks/base/core/proto/android/server/
Djobscheduler.proto511 repeated Observer observers = 2; field