Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
DLifecycle.java58 private final List<LifecycleObserver> mObservers = new ArrayList<>(); field in Lifecycle
83 mObservers.add((LifecycleObserver) observer); in addObserver()
93 mObservers.remove(observer); in removeObserver()
101 for (int i = 0, size = mObservers.size(); i < size; i++) { in onAttach()
102 final LifecycleObserver observer = mObservers.get(i); in onAttach()
112 for (int i = 0, size = mObservers.size(); i < size; i++) { in onCreate()
113 final LifecycleObserver observer = mObservers.get(i); in onCreate()
121 for (int i = 0, size = mObservers.size(); i < size; i++) { in onStart()
122 final LifecycleObserver observer = mObservers.get(i); in onStart()
130 for (int i = 0, size = mObservers.size(); i < size; i++) { in setPreferenceScreen()
[all …]
/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.h35 void addObserver(FrameMetricsObserver* observer) { mObservers.push_back(observer); } in addObserver()
38 for (size_t i = 0; i < mObservers.size(); i++) { in removeObserver()
39 if (mObservers[i].get() == observer) { in removeObserver()
40 mObservers.erase(mObservers.begin() + i); in removeObserver()
47 bool hasObservers() { return mObservers.size() > 0; } in hasObservers()
50 for (size_t i = 0; i < mObservers.size(); i++) { in reportFrameMetrics()
51 mObservers[i]->notify(stats); in reportFrameMetrics()
56 std::vector<sp<FrameMetricsObserver> > mObservers;
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DLifecycle.java27 private ArrayList<T> mObservers = new ArrayList<>(); field in Lifecycle
30 mObservers.add(observer); in addObserver()
34 mObservers.remove(observer); in removeObserver()
38 for (int i = 0; i < mObservers.size(); i++) { in dispatch()
39 consumer.accept(mObservers.get(i)); in dispatch()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DEventResultPersister.java64 private final SparseArray<EventResultObserver> mObservers = new SparseArray<>(); field in EventResultPersister
196 int numObservers = mObservers.size(); in onEventReceived()
198 if (mObservers.keyAt(i) == id) { in onEventReceived()
199 observerToCall = mObservers.valueAt(i); in onEventReceived()
200 mObservers.removeAt(i); in onEventReceived()
318 mObservers.put(id, observer); in addObserver()
333 mObservers.delete(id); in removeObserver()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DContentObserverController.java65 final SparseArray<ArrayMap<JobInfo.TriggerContentUri, ObserverInstance>> mObservers = field in ContentObserverController
258 mObservers.get(sourceUserId); in JobInstance()
261 mObservers.put(sourceUserId, observersOfUser); in JobInstance()
346 mObservers.get(obs.mUserId); in detachLocked()
371 int N = mObservers.size(); in dumpControllerStateLocked()
376 final int userId = mObservers.keyAt(userIdx); in dumpControllerStateLocked()
378 mObservers.get(userId); in dumpControllerStateLocked()
465 final int n = mObservers.size(); in dumpControllerStateLocked()
469 final int userId = mObservers.keyAt(userIdx); in dumpControllerStateLocked()
474 mObservers.get(userId); in dumpControllerStateLocked()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DNetdWrapper.java54 private final Set<NetdEventObserver> mObservers = new HashSet<>(); field in NetdWrapper
352 mObservers.add(observer); in registerObserver()
359 mObservers.remove(observer); in unregisterObserver()
482 for (NetdEventObserver observer : mObservers) { in notifyInterfaceStatusChanged()
492 for (NetdEventObserver observer : mObservers) { in notifyInterfaceLinkStateChanged()
/frameworks/base/core/java/com/android/internal/content/
DFileSystemProvider.java97 private final ArrayMap<File, DirectoryObserver> mObservers = new ArrayMap<>(); field in FileSystemProvider
677 synchronized (mObservers) { in startObserving()
678 DirectoryObserver observer = mObservers.get(file); in startObserving()
683 mObservers.put(file, observer); in startObserving()
692 synchronized (mObservers) { in stopObserving()
693 DirectoryObserver observer = mObservers.get(file); in stopObserving()
698 mObservers.remove(file); in stopObserving()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java1516 private ArrayList<ObserverEntry> mObservers = new ArrayList<ObserverEntry>(); field in ContentService.ObserverNode
1525 if (mObservers.size() > 0) { in dumpLocked()
1531 for (int i=0; i<mObservers.size(); i++) { in dumpLocked()
1533 mObservers.get(i).dumpLocked(fd, pw, args, innerName, prefix, in dumpLocked()
1585 mObservers.add(new ObserverEntry(observer, notifyForDescendants, observersLock, in addObserverLocked()
1624 size = mObservers.size(); in removeObserverLocked()
1626 ObserverEntry entry = mObservers.get(i); in removeObserverLocked()
1628 mObservers.remove(i); in removeObserverLocked()
1635 if (mChildren.size() == 0 && mObservers.size() == 0) { in removeObserverLocked()
1644 int N = mObservers.size(); in collectMyObserversLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java168 private final RemoteCallbackList<INetworkManagementEventObserver> mObservers = field in NetworkManagementService
321 mObservers.register(observer); in registerObserver()
327 mObservers.unregister(observer); in unregisterObserver()
336 final int length = mObservers.beginBroadcast(); in invokeForAllObservers()
340 eventCallback.sendCallback(mObservers.getBroadcastItem(i)); in invokeForAllObservers()
345 mObservers.finishBroadcast(); in invokeForAllObservers()
/frameworks/av/media/bufferpool/2.0/
DAccessorImpl.h145 std::map<ConnectionId, const sp<IObserver>> mObservers; member
DAccessorImpl.cpp337 mObservers.insert(std::make_pair(conId, observer)); in onConnect()
342 mObservers.erase(conId); in onClose()
414 const sp<IObserver> observer = mObservers[it->first]; in onHandleAck()
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java11048 return !mObservers.isEmpty(); in hasObservers()
11056 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyChanged()
11057 mObservers.get(i).onChanged(); in notifyChanged()
11070 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeChanged()
11071 mObservers.get(i).onItemRangeChanged(positionStart, itemCount, payload); in notifyItemRangeChanged()
11080 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeInserted()
11081 mObservers.get(i).onItemRangeInserted(positionStart, itemCount); in notifyItemRangeInserted()
11090 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeRemoved()
11091 mObservers.get(i).onItemRangeRemoved(positionStart, itemCount); in notifyItemRangeRemoved()
11096 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemMoved()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java1134 protected final Collection<TimeBaseObs> mObservers; field in BatteryStatsImpl.TimeBase
1185 mObservers = isLongList ? new HashSet<>() : new ArrayList<>(); in TimeBase()
1193 mObservers.add(observer); in add()
1197 mObservers.remove(observer); in remove()
1201 return mObservers.contains(observer); in hasObserver()
1277 final Iterator<TimeBaseObs> iter = mObservers.iterator(); in setRunning()
1289 final Iterator<TimeBaseObs> iter = mObservers.iterator(); in setRunning()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt9717 field protected final java.util.ArrayList<T> mObservers;
/frameworks/base/api/
Dcurrent.txt13291 field protected final java.util.ArrayList<T> mObservers;