Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/database/
DObservable.java34 protected final ArrayList<T> mObservers = new ArrayList<T>(); field in Observable
47 synchronized(mObservers) { in registerObserver()
48 if (mObservers.contains(observer)) { in registerObserver()
51 mObservers.add(observer); in registerObserver()
66 synchronized(mObservers) { in unregisterObserver()
67 int index = mObservers.indexOf(observer); in unregisterObserver()
71 mObservers.remove(index); in unregisterObserver()
79 synchronized(mObservers) { in unregisterAll()
80 mObservers.clear(); in unregisterAll()
DDataSetObservable.java31 synchronized(mObservers) { in notifyChanged()
36 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyChanged()
37 mObservers.get(i).onChanged(); in notifyChanged()
48 synchronized (mObservers) { in notifyInvalidated()
49 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyInvalidated()
50 mObservers.get(i).onInvalidated(); in notifyInvalidated()
DContentObservable.java67 synchronized(mObservers) { in dispatchChange()
68 for (ContentObserver observer : mObservers) { in dispatchChange()
85 synchronized(mObservers) { in notifyChange()
86 for (ContentObserver observer : mObservers) { in notifyChange()
/frameworks/base/libs/hwui/
DFrameMetricsReporter.h36 mObservers.push_back(observer); in addObserver()
40 for (size_t i = 0; i < mObservers.size(); i++) { in removeObserver()
41 if (mObservers[i].get() == observer) { in removeObserver()
42 mObservers.erase(mObservers.begin() + i); in removeObserver()
50 return mObservers.size() > 0; in hasObservers()
54 for (size_t i = 0; i < mObservers.size(); i++) { in reportFrameMetrics()
55 mObservers[i]->notify(stats); in reportFrameMetrics()
60 std::vector< sp<FrameMetricsObserver> > mObservers;
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DAbstractItemHierarchy.java39 private ArrayList<Observer> mObservers = new ArrayList<>(); field in AbstractItemHierarchy
65 mObservers.add(observer); in registerObserver()
70 mObservers.remove(observer); in unregisterObserver()
77 for (Observer observer : mObservers) { in notifyChanged()
95 for (Observer observer : mObservers) { in notifyItemRangeChanged()
113 for (Observer observer : mObservers) { in notifyItemRangeInserted()
135 for (Observer observer : mObservers) { in notifyItemRangeMoved()
153 for (Observer observer : mObservers) { in notifyItemRangeRemoved()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DObjectAdapter.java79 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyChanged()
80 mObservers.get(i).onChanged(); in notifyChanged()
85 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeChanged()
86 mObservers.get(i).onItemRangeChanged(positionStart, itemCount); in notifyItemRangeChanged()
91 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeInserted()
92 mObservers.get(i).onItemRangeInserted(positionStart, itemCount); in notifyItemRangeInserted()
97 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeRemoved()
98 mObservers.get(i).onItemRangeRemoved(positionStart, itemCount); in notifyItemRangeRemoved()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DContentObserverController.java65 final SparseArray<ArrayMap<JobInfo.TriggerContentUri, ObserverInstance>> mObservers = field in ContentObserverController
275 mObservers.get(sourceUserId); in JobInstance()
278 mObservers.put(sourceUserId, observersOfUser); in JobInstance()
363 mObservers.get(obs.mUserId); in detachLocked()
386 int N = mObservers.size(); in dumpControllerStateLocked()
390 final int userId = mObservers.keyAt(userIdx); in dumpControllerStateLocked()
392 mObservers.get(userId); in dumpControllerStateLocked()
/frameworks/base/core/java/com/android/internal/content/
DFileSystemProvider.java66 private final ArrayMap<File, DirectoryObserver> mObservers = new ArrayMap<>(); field in FileSystemProvider
451 synchronized (mObservers) { in startObserving()
452 DirectoryObserver observer = mObservers.get(file); in startObserving()
457 mObservers.put(file, observer); in startObserving()
466 synchronized (mObservers) { in stopObserving()
467 DirectoryObserver observer = mObservers.get(file); in stopObserving()
472 mObservers.remove(file); in stopObserving()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java405 = oc.mNode.mObservers; in notifyChange()
1262 private ArrayList<ObserverEntry> mObservers = new ArrayList<ObserverEntry>(); field in ContentService.ObserverNode
1271 if (mObservers.size() > 0) { in dumpLocked()
1277 for (int i=0; i<mObservers.size(); i++) { in dumpLocked()
1279 mObservers.get(i).dumpLocked(fd, pw, args, innerName, prefix, in dumpLocked()
1331 mObservers.add(new ObserverEntry(observer, notifyForDescendants, observersLock, in addObserverLocked()
1370 size = mObservers.size(); in removeObserverLocked()
1372 ObserverEntry entry = mObservers.get(i); in removeObserverLocked()
1374 mObservers.remove(i); in removeObserverLocked()
1381 if (mChildren.size() == 0 && mObservers.size() == 0) { in removeObserverLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java224 private final RemoteCallbackList<INetworkManagementEventObserver> mObservers = field in NetworkManagementService
389 mObservers.register(observer); in registerObserver()
395 mObservers.unregister(observer); in unregisterObserver()
404 final int length = mObservers.beginBroadcast(); in invokeForAllObservers()
408 eventCallback.sendCallback(mObservers.getBroadcastItem(i)); in invokeForAllObservers()
413 mObservers.finishBroadcast(); in invokeForAllObservers()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java11523 return !mObservers.isEmpty(); in hasObservers()
11531 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyChanged()
11532 mObservers.get(i).onChanged(); in notifyChanged()
11545 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeChanged()
11546 mObservers.get(i).onItemRangeChanged(positionStart, itemCount, payload); in notifyItemRangeChanged()
11555 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeInserted()
11556 mObservers.get(i).onItemRangeInserted(positionStart, itemCount); in notifyItemRangeInserted()
11565 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeRemoved()
11566 mObservers.get(i).onItemRangeRemoved(positionStart, itemCount); in notifyItemRangeRemoved()
11571 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemMoved()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java648 protected final ArrayList<TimeBaseObs> mObservers = new ArrayList<>(); field in BatteryStatsImpl.TimeBase
692 mObservers.add(observer); in add()
696 if (!mObservers.remove(observer)) { in remove()
702 return mObservers.contains(observer); in hasObserver()
792 for (int i = mObservers.size() - 1; i >= 0; i--) { in setRunning()
793 mObservers.get(i).onTimeStarted(realtime, batteryUptime, batteryRealtime); in setRunning()
802 for (int i = mObservers.size() - 1; i >= 0; i--) { in setRunning()
803 mObservers.get(i).onTimeStopped(realtime, batteryUptime, batteryRealtime); in setRunning()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt9717 field protected final java.util.ArrayList<T> mObservers;
/frameworks/base/api/
Dcurrent.txt11749 field protected final java.util.ArrayList<T> mObservers;
Dsystem-current.txt12529 field protected final java.util.ArrayList<T> mObservers;