Home
last modified time | relevance | path

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

/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/Settings/src/com/android/car/settings/common/
DExtraSettingsPreferenceController.java92 List<DynamicDataObserver> mObservers = new ArrayList<>(); field in ExtraSettingsPreferenceController
145 mObservers.forEach(observer -> { in onStartInternal()
152 mObservers.forEach(observer -> { in onStopInternal()
189 mObservers.add( in getDynamicData()
199 mObservers.add( in getDynamicData()
209 mObservers.add( in getDynamicData()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/utils/
DCarUxRestrictionsUtil.java51 private final Set<OnUxRestrictionsChangedListener> mObservers = field in CarUxRestrictionsUtil
64 for (OnUxRestrictionsChangedListener observer : mObservers) { in CarUxRestrictionsUtil()
142 mObservers.add(listener); in register()
148 mObservers.remove(listener); in unregister()
/packages/modules/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()
/packages/apps/Car/Media/src/com/android/car/media/browse/
DBrowseAdapter.java67 private List<Observer> mObservers = new ArrayList<>(); field in BrowseAdapter
137 mObservers.add(observer); in registerObserver()
144 mObservers.remove(observer); in unregisterObserver()
218 for (Observer observer : mObservers) { in notify()
/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()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DExtraSettingsPreferenceControllerTest.java282 assertThat(mPreferenceController.mObservers.size()).isEqualTo(1); in onStart_hasDynamicTitleData_observerAdded()
296 assertThat(mPreferenceController.mObservers.size()).isEqualTo(1); in onStart_hasDynamicSummaryData_observerAdded()
310 assertThat(mPreferenceController.mObservers.size()).isEqualTo(1); in onStart_hasDynamicIconData_observerAdded()