Home
last modified time | relevance | path

Searched refs:mObservers (Results 1 – 11 of 11) 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/support/v17/leanback/src/android/support/v17/leanback/widget/
DObjectAdapter.java76 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyChanged()
77 mObservers.get(i).onChanged(); in notifyChanged()
82 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeChanged()
83 mObservers.get(i).onItemRangeChanged(positionStart, itemCount); in notifyItemRangeChanged()
88 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeInserted()
89 mObservers.get(i).onItemRangeInserted(positionStart, itemCount); in notifyItemRangeInserted()
94 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeRemoved()
95 mObservers.get(i).onItemRangeRemoved(positionStart, itemCount); in notifyItemRangeRemoved()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java196 private final RemoteCallbackList<INetworkManagementEventObserver> mObservers = field in NetworkManagementService
341 mObservers.register(observer); in registerObserver()
347 mObservers.unregister(observer); in unregisterObserver()
354 final int length = mObservers.beginBroadcast(); in notifyInterfaceStatusChanged()
358 mObservers.getBroadcastItem(i).interfaceStatusChanged(iface, up); in notifyInterfaceStatusChanged()
364 mObservers.finishBroadcast(); in notifyInterfaceStatusChanged()
373 final int length = mObservers.beginBroadcast(); in notifyInterfaceLinkStateChanged()
377 mObservers.getBroadcastItem(i).interfaceLinkStateChanged(iface, up); in notifyInterfaceLinkStateChanged()
383 mObservers.finishBroadcast(); in notifyInterfaceLinkStateChanged()
391 final int length = mObservers.beginBroadcast(); in notifyInterfaceAdded()
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java295 = oc.mNode.mObservers; in notifyChange()
991 private ArrayList<ObserverEntry> mObservers = new ArrayList<ObserverEntry>(); field in ContentService.ObserverNode
1000 if (mObservers.size() > 0) { in dumpLocked()
1006 for (int i=0; i<mObservers.size(); i++) { in dumpLocked()
1008 mObservers.get(i).dumpLocked(fd, pw, args, innerName, prefix, in dumpLocked()
1060 mObservers.add(new ObserverEntry(observer, notifyForDescendants, observersLock, in addObserverLocked()
1099 size = mObservers.size(); in removeObserverLocked()
1101 ObserverEntry entry = mObservers.get(i); in removeObserverLocked()
1103 mObservers.remove(i); in removeObserverLocked()
1110 if (mChildren.size() == 0 && mObservers.size() == 0) { in removeObserverLocked()
[all …]
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java100 private ArrayMap<File, DirectoryObserver> mObservers = new ArrayMap<>(); field in ExternalStorageProvider
523 synchronized (mObservers) {
524 DirectoryObserver observer = mObservers.get(file);
529 mObservers.put(file, observer);
538 synchronized (mObservers) {
539 DirectoryObserver observer = mObservers.get(file);
544 mObservers.remove(file);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java9269 return !mObservers.isEmpty(); in hasObservers()
9277 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyChanged()
9278 mObservers.get(i).onChanged(); in notifyChanged()
9291 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeChanged()
9292 mObservers.get(i).onItemRangeChanged(positionStart, itemCount, payload); in notifyItemRangeChanged()
9301 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeInserted()
9302 mObservers.get(i).onItemRangeInserted(positionStart, itemCount); in notifyItemRangeInserted()
9311 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeRemoved()
9312 mObservers.get(i).onItemRangeRemoved(positionStart, itemCount); in notifyItemRangeRemoved()
9317 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemMoved()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java512 private final ArrayList<TimeBaseObs> mObservers = new ArrayList<>(); field in BatteryStatsImpl.TimeBase
556 mObservers.add(observer); in add()
560 if (!mObservers.remove(observer)) { in remove()
649 for (int i = mObservers.size() - 1; i >= 0; i--) { in setRunning()
650 mObservers.get(i).onTimeStarted(realtime, batteryUptime, batteryRealtime); in setRunning()
659 for (int i = mObservers.size() - 1; i >= 0; i--) { in setRunning()
660 mObservers.get(i).onTimeStopped(realtime, batteryUptime, batteryRealtime); in setRunning()
/frameworks/base/api/
Dcurrent.txt10263 field protected final java.util.ArrayList<T> mObservers;
Dsystem-current.txt10600 field protected final java.util.ArrayList<T> mObservers;