Home
last modified time | relevance | path

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

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DCarUxRestrictionsUtil.java52 private Set<OnUxRestrictionsChangedListener> mObservers; field in CarUxRestrictionsUtil
63 for (OnUxRestrictionsChangedListener observer : mObservers) { in CarUxRestrictionsUtil()
69 mObservers = Collections.newSetFromMap(new WeakHashMap<>()); in CarUxRestrictionsUtil()
119 mObservers.add(listener); in register()
127 mObservers.remove(listener); in unregister()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/utils/
DCarUxRestrictionsUtil.java53 private Set<OnUxRestrictionsChangedListener> mObservers; field in CarUxRestrictionsUtil
65 for (OnUxRestrictionsChangedListener observer : mObservers) { in CarUxRestrictionsUtil()
71 mObservers = Collections.newSetFromMap(new WeakHashMap<>()); in CarUxRestrictionsUtil()
115 mObservers.add(listener); in register()
121 mObservers.remove(listener); in unregister()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkObserverRegistry.java56 private final ConcurrentHashMap<NetworkObserver, Optional<Handler>> mObservers = field in NetworkObserverRegistry
67 mObservers.put(observer, Optional.of(handler)); in registerObserver()
77 mObservers.put(observer, Optional.empty()); in registerObserverForNonblockingCallback()
85 mObservers.remove(observer); in unregisterObserver()
96 for (Map.Entry<NetworkObserver, Optional<Handler>> entry : mObservers.entrySet()) { in invokeForAllObservers()
/packages/apps/Car/Media/src/com/android/car/media/browse/
DBrowseAdapter.java57 private List<Observer> mObservers = new ArrayList<>(); field in BrowseAdapter
126 mObservers.add(observer); in registerObserver()
133 mObservers.remove(observer); in unregisterObserver()
212 for (Observer observer : mObservers) {
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DPrimaryImage.java105 private Vector<ImageShow> mObservers = new Vector<ImageShow>(); field in PrimaryImage
224 if (mObservers.contains(observer)) { in addObserver()
227 mObservers.add(observer); in addObserver()
231 mObservers.remove(observer); in removeObserver()
480 for (ImageShow observer : mObservers) { in notifyObservers()