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.java171 private final RemoteCallbackList<INetworkManagementEventObserver> mObservers = field in NetworkManagementService
297 mObservers.register(observer); in registerObserver()
303 mObservers.unregister(observer); in unregisterObserver()
310 final int length = mObservers.beginBroadcast(); in notifyInterfaceStatusChanged()
314 mObservers.getBroadcastItem(i).interfaceStatusChanged(iface, up); in notifyInterfaceStatusChanged()
320 mObservers.finishBroadcast(); in notifyInterfaceStatusChanged()
329 final int length = mObservers.beginBroadcast(); in notifyInterfaceLinkStateChanged()
333 mObservers.getBroadcastItem(i).interfaceLinkStateChanged(iface, up); in notifyInterfaceLinkStateChanged()
339 mObservers.finishBroadcast(); in notifyInterfaceLinkStateChanged()
347 final int length = mObservers.beginBroadcast(); in notifyInterfaceAdded()
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java267 = oc.mNode.mObservers; in notifyChange()
948 private ArrayList<ObserverEntry> mObservers = new ArrayList<ObserverEntry>(); field in ContentService.ObserverNode
957 if (mObservers.size() > 0) { in dumpLocked()
963 for (int i=0; i<mObservers.size(); i++) { in dumpLocked()
965 mObservers.get(i).dumpLocked(fd, pw, args, innerName, prefix, in dumpLocked()
1017 mObservers.add(new ObserverEntry(observer, notifyForDescendants, observersLock, in addObserverLocked()
1056 size = mObservers.size(); in removeObserverLocked()
1058 ObserverEntry entry = mObservers.get(i); in removeObserverLocked()
1060 mObservers.remove(i); in removeObserverLocked()
1067 if (mChildren.size() == 0 && mObservers.size() == 0) { in removeObserverLocked()
[all …]
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java100 private Map<File, DirectoryObserver> mObservers = Maps.newHashMap(); field in ExternalStorageProvider
547 synchronized (mObservers) {
548 DirectoryObserver observer = mObservers.get(file);
553 mObservers.put(file, observer);
562 synchronized (mObservers) {
563 DirectoryObserver observer = mObservers.get(file);
568 mObservers.remove(file);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java7893 return !mObservers.isEmpty(); in hasObservers()
7901 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyChanged()
7902 mObservers.get(i).onChanged(); in notifyChanged()
7911 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeChanged()
7912 mObservers.get(i).onItemRangeChanged(positionStart, itemCount); in notifyItemRangeChanged()
7921 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeInserted()
7922 mObservers.get(i).onItemRangeInserted(positionStart, itemCount); in notifyItemRangeInserted()
7931 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeRemoved()
7932 mObservers.get(i).onItemRangeRemoved(positionStart, itemCount); in notifyItemRangeRemoved()
7937 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemMoved()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java459 private final ArrayList<TimeBaseObs> mObservers = new ArrayList<TimeBaseObs>(); field in BatteryStatsImpl.TimeBase
503 mObservers.add(observer); in add()
507 if (!mObservers.remove(observer)) { in remove()
596 for (int i = mObservers.size() - 1; i >= 0; i--) { in setRunning()
597 mObservers.get(i).onTimeStarted(realtime, batteryUptime, batteryRealtime); in setRunning()
606 for (int i = mObservers.size() - 1; i >= 0; i--) { in setRunning()
607 mObservers.get(i).onTimeStopped(realtime, batteryUptime, batteryRealtime); in setRunning()
/frameworks/base/api/
Dsystem-current.txt10025 field protected final java.util.ArrayList<T> mObservers;
Dcurrent.txt9719 field protected final java.util.ArrayList<T> mObservers;