/frameworks/base/services/core/java/com/android/server/utils/ |
D | WatchableImpl.java | 36 protected final ArrayList<Watcher> mObservers = new ArrayList<>(); field in WatchableImpl 47 synchronized (mObservers) { in registerObserver() 48 if (!mObservers.contains(observer)) { in registerObserver() 49 mObservers.add(observer); in registerObserver() 63 synchronized (mObservers) { in unregisterObserver() 64 mObservers.remove(observer); in unregisterObserver() 75 synchronized (mObservers) { in isRegisteredObserver() 76 return mObservers.contains(observer); in isRegisteredObserver() 86 return mObservers.size(); in registeredObserverCount() 96 synchronized (mObservers) { in dispatchChange() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
D | Lifecycle.java | 58 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/libs/hwui/ |
D | FrameMetricsReporter.h | 40 mObservers.push_back(observer); in addObserver() 45 for (size_t i = 0; i < mObservers.size(); i++) { in removeObserver() 46 if (mObservers[i].get() == observer) { in removeObserver() 47 mObservers.erase(mObservers.begin() + i); in removeObserver() 56 return mObservers.size() > 0; in hasObservers() 71 copy.reserve(mObservers.size()); in reportFrameMetrics() 72 for (size_t i = 0; i < mObservers.size(); i++) { in reportFrameMetrics() 73 const bool wantsPresentTime = mObservers[i]->waitForPresentTime(); in reportFrameMetrics() 75 copy.push_back(mObservers[i]); in reportFrameMetrics() 85 FatVector<sp<FrameMetricsObserver>, 10> mObservers GUARDED_BY(mObserversLock);
|
/frameworks/base/core/java/android/database/ |
D | Observable.java | 34 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()
|
D | DataSetObservable.java | 31 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()
|
D | ContentObservable.java | 67 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/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | Lifecycle.java | 30 private ArrayList<T> mObservers = new ArrayList<>(); field in Lifecycle 33 mObservers.add(Objects.requireNonNull(observer)); in addObserver() 37 mObservers.remove(observer); in removeObserver() 41 for (int i = 0; i < mObservers.size(); i++) { in dispatch() 42 consumer.accept(mObservers.get(i)); in dispatch()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | EventResultPersister.java | 64 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/ |
D | ContentObserverController.java | 67 final SparseArray<ArrayMap<JobInfo.TriggerContentUri, ObserverInstance>> mObservers = field in ContentObserverController 282 mObservers.get(sourceUserId); in JobInstance() 285 mObservers.put(sourceUserId, observersOfUser); in JobInstance() 371 mObservers.get(obs.mUserId); in detachLocked() 396 int N = mObservers.size(); in dumpControllerStateLocked() 401 final int userId = mObservers.keyAt(userIdx); in dumpControllerStateLocked() 403 mObservers.get(userId); in dumpControllerStateLocked() 490 final int n = mObservers.size(); in dumpControllerStateLocked() 494 final int userId = mObservers.keyAt(userIdx); in dumpControllerStateLocked() 499 mObservers.get(userId); in dumpControllerStateLocked()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | FileSystemProvider.java | 97 private final ArrayMap<File, DirectoryObserver> mObservers = new ArrayMap<>(); field in FileSystemProvider 692 synchronized (mObservers) { in startObserving() 693 DirectoryObserver observer = mObservers.get(file); in startObserving() 698 mObservers.put(file, observer); in startObserving() 707 synchronized (mObservers) { in stopObserving() 708 DirectoryObserver observer = mObservers.get(file); in stopObserving() 713 mObservers.remove(file); in stopObserving()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | ContentService.java | 1521 private ArrayList<ObserverEntry> mObservers = new ArrayList<ObserverEntry>(); field in ContentService.ObserverNode 1530 if (mObservers.size() > 0) { in dumpLocked() 1536 for (int i=0; i<mObservers.size(); i++) { in dumpLocked() 1538 mObservers.get(i).dumpLocked(fd, pw, args, innerName, prefix, in dumpLocked() 1590 mObservers.add(new ObserverEntry(observer, notifyForDescendants, observersLock, in addObserverLocked() 1629 size = mObservers.size(); in removeObserverLocked() 1631 ObserverEntry entry = mObservers.get(i); in removeObserverLocked() 1633 mObservers.remove(i); in removeObserverLocked() 1640 if (mChildren.size() == 0 && mObservers.size() == 0) { in removeObserverLocked() 1649 int N = mObservers.size(); in collectMyObserversLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 166 private final RemoteCallbackList<INetworkManagementEventObserver> mObservers = field in NetworkManagementService 300 mObservers.register(observer); in registerObserver() 306 mObservers.unregister(observer); in unregisterObserver() 315 final int length = mObservers.beginBroadcast(); in invokeForAllObservers() 319 eventCallback.sendCallback(mObservers.getBroadcastItem(i)); in invokeForAllObservers() 324 mObservers.finishBroadcast(); in invokeForAllObservers()
|
/frameworks/av/media/bufferpool/2.0/ |
D | AccessorImpl.h | 145 std::map<ConnectionId, const sp<IObserver>> mObservers; member
|
D | AccessorImpl.cpp | 339 mObservers.insert(std::make_pair(conId, observer)); in onConnect() 344 mObservers.erase(conId); in onClose() 416 const sp<IObserver> observer = mObservers[it->first]; in onHandleAck()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | RecyclerView.java | 11155 return !mObservers.isEmpty(); in hasObservers() 11163 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyChanged() 11164 mObservers.get(i).onChanged(); in notifyChanged() 11177 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeChanged() 11178 mObservers.get(i).onItemRangeChanged(positionStart, itemCount, payload); in notifyItemRangeChanged() 11187 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeInserted() 11188 mObservers.get(i).onItemRangeInserted(positionStart, itemCount); in notifyItemRangeInserted() 11197 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemRangeRemoved() 11198 mObservers.get(i).onItemRangeRemoved(positionStart, itemCount); in notifyItemRangeRemoved() 11203 for (int i = mObservers.size() - 1; i >= 0; i--) { in notifyItemMoved() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 1251 protected final Collection<TimeBaseObs> mObservers; field in BatteryStatsImpl.TimeBase 1304 mObservers = isLongList ? new HashSet<>() : new ArrayList<>(); in TimeBase() 1312 mObservers.add(observer); in add() 1316 mObservers.remove(observer); in remove() 1320 return mObservers.contains(observer); in hasObserver() 1396 final Iterator<TimeBaseObs> iter = mObservers.iterator(); in setRunning() 1409 final Iterator<TimeBaseObs> iter = mObservers.iterator(); in setRunning()
|
/frameworks/base/core/api/ |
D | current.txt | 13922 field protected final java.util.ArrayList<T> mObservers;
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 9717 field protected final java.util.ArrayList<T> mObservers;
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 76988 Lcom/android/internal/os/BatteryStatsImpl$TimeBase;->mObservers:Ljava/util/ArrayList;
|