Home
last modified time | relevance | path

Searched refs:mListeners (Results 1 – 25 of 171) sorted by relevance

1234567

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenersTest.java129 NotificationManagerService.NotificationListeners mListeners; field in NotificationListenersTest
146 mListeners = spy(mNm.new NotificationListeners( in setUp()
161 mListeners); in setUp()
163 .when(mListeners).getOnNotificationPostedTrim(any()); in setUp()
182 mListeners.readExtraTag(TAG_REQUESTED_LISTENERS, parser); in testReadExtraTag()
190 mListeners = spy(mNm.new NotificationListeners( in loadDefaultsFromConfig_forHeadlessSystemUser_loadUninstalled()
195 mListeners.loadDefaultsFromConfig(); in loadDefaultsFromConfig_forHeadlessSystemUser_loadUninstalled()
197 assertThat(mListeners.getDefaultComponents()).contains(mUninstalledComponent); in loadDefaultsFromConfig_forHeadlessSystemUser_loadUninstalled()
204 mListeners = spy(mNm.new NotificationListeners( in loadDefaultsFromConfig_forNonHeadlessSystemUser_ignoreUninstalled()
209 mListeners.loadDefaultsFromConfig(); in loadDefaultsFromConfig_forNonHeadlessSystemUser_ignoreUninstalled()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DPointerEventDispatcher.java31 private final ArrayList<PointerEventListener> mListeners = new ArrayList<>(); field in PointerEventDispatcher
45 synchronized (mListeners) { in onInputEvent()
47 mListenersArray = new PointerEventListener[mListeners.size()]; in onInputEvent()
48 mListeners.toArray(mListenersArray); in onInputEvent()
66 synchronized (mListeners) { in registerInputEventListener()
67 if (mListeners.contains(listener)) { in registerInputEventListener()
71 mListeners.add(listener); in registerInputEventListener()
81 synchronized (mListeners) { in unregisterInputEventListener()
82 if (!mListeners.contains(listener)) { in unregisterInputEventListener()
86 mListeners.remove(listener); in unregisterInputEventListener()
[all …]
DWindowContextListenerController.java70 final ArrayMap<IBinder, WindowContextListenerImpl> mListeners = new ArrayMap<>(); field in WindowContextListenerController
103 WindowContextListenerImpl listener = mListeners.get(clientToken); in registerWindowContainerListener()
118 final WindowContextListenerImpl listener = mListeners.get(clientToken); in updateContainerForWindowContextListener()
126 final WindowContextListenerImpl listener = mListeners.get(clientToken); in unregisterWindowContainerListener()
140 for (int i = mListeners.size() - 1; i >= 0; --i) { in dispatchPendingConfigurationIfNeeded()
141 final WindowContextListenerImpl listener = mListeners.valueAt(i); in dispatchPendingConfigurationIfNeeded()
155 final WindowContextListenerImpl listener = mListeners.get(clientToken); in assertCallerCanModifyListener()
171 return mListeners.containsKey(clientToken); in hasListener()
175 final WindowContextListenerImpl listener = mListeners.get(clientToken); in getWindowType()
180 final WindowContextListenerImpl listener = mListeners.get(clientToken); in getOptions()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DMediaNotificationView.java35 private ArrayList<VisibilityChangeListener> mListeners; field in MediaNotificationView
62 if (mListeners != null) { in onVisibilityAggregated()
63 for (int i = 0; i < mListeners.size(); i++) { in onVisibilityAggregated()
64 mListeners.get(i).onAggregatedVisibilityChanged(isVisible); in onVisibilityAggregated()
75 if (mListeners == null) { in addVisibilityListener()
76 mListeners = new ArrayList<>(); in addVisibilityListener()
78 if (!mListeners.contains(listener)) { in addVisibilityListener()
79 mListeners.add(listener); in addVisibilityListener()
89 if (mListeners != null) { in removeVisibilityListener()
90 mListeners.remove(listener); in removeVisibilityListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DReduceBrightColorsControllerImpl.java49 private final ArrayList<ReduceBrightColorsController.Listener> mListeners = new ArrayList<>(); field in ReduceBrightColorsControllerImpl
65 synchronized (mListeners) { in ReduceBrightColorsControllerImpl()
66 if (setting != null && mListeners.size() != 0) { in ReduceBrightColorsControllerImpl()
78 synchronized (mListeners) { in ReduceBrightColorsControllerImpl()
79 if (mListeners.size() > 0) { in ReduceBrightColorsControllerImpl()
93 synchronized (mListeners) { in addCallback()
94 if (!mListeners.contains(listener)) { in addCallback()
95 mListeners.add(listener); in addCallback()
96 if (mListeners.size() == 1) { in addCallback()
107 synchronized (mListeners) { in removeCallback()
[all …]
/frameworks/base/services/core/java/com/android/server/location/injector/
DDeviceIdleHelper.java36 private final CopyOnWriteArrayList<DeviceIdleListener> mListeners; field in DeviceIdleHelper
39 mListeners = new CopyOnWriteArrayList<>(); in DeviceIdleHelper()
46 if (mListeners.add(listener) && mListeners.size() == 1) { in addListener()
55 if (mListeners.remove(listener) && mListeners.isEmpty()) { in removeListener()
63 for (DeviceIdleListener listener : mListeners) { in notifyDeviceIdleChanged()
DEmergencyHelper.java26 private final CopyOnWriteArrayList<EmergencyStateChangedListener> mListeners; field in EmergencyHelper
29 mListeners = new CopyOnWriteArrayList<>(); in EmergencyHelper()
52 mListeners.add(listener); in addOnEmergencyStateChangedListener()
59 mListeners.remove(listener); in removeOnEmergencyStateChangedListener()
66 for (EmergencyStateChangedListener listener : mListeners) { in dispatchEmergencyStateChanged()
DUserInfoHelper.java63 private final CopyOnWriteArrayList<UserListener> mListeners; field in UserInfoHelper
66 mListeners = new CopyOnWriteArrayList<>(); in UserInfoHelper()
73 mListeners.add(listener); in addListener()
80 mListeners.remove(listener); in removeListener()
88 for (UserListener listener : mListeners) { in dispatchOnUserStarted()
98 for (UserListener listener : mListeners) { in dispatchOnUserStopped()
113 for (UserListener listener : mListeners) { in dispatchOnCurrentUserChanged()
119 for (UserListener listener : mListeners) { in dispatchOnCurrentUserChanged()
133 for (UserListener listener : mListeners) { in dispatchOnVisibleUserChanged()
DAppForegroundHelper.java49 private final CopyOnWriteArrayList<AppForegroundListener> mListeners; field in AppForegroundHelper
52 mListeners = new CopyOnWriteArrayList<>(); in AppForegroundHelper()
59 mListeners.add(listener); in addListener()
66 mListeners.remove(listener); in removeListener()
70 for (AppForegroundListener listener : mListeners) { in notifyAppForeground()
DScreenInteractiveHelper.java41 private final CopyOnWriteArrayList<ScreenInteractiveChangedListener> mListeners; field in ScreenInteractiveHelper
44 mListeners = new CopyOnWriteArrayList<>(); in ScreenInteractiveHelper()
52 mListeners.add(listener); in addListener()
59 mListeners.remove(listener); in removeListener()
67 for (ScreenInteractiveChangedListener listener : mListeners) { in notifyScreenInteractiveChanged()
DLocationPermissionsHelper.java51 private final CopyOnWriteArrayList<LocationPermissionsListener> mListeners; field in LocationPermissionsHelper
55 mListeners = new CopyOnWriteArrayList<>(); in LocationPermissionsHelper()
62 for (LocationPermissionsListener listener : mListeners) { in notifyLocationPermissionsChanged()
68 for (LocationPermissionsListener listener : mListeners) { in notifyLocationPermissionsChanged()
81 mListeners.add(listener); in addListener()
88 mListeners.remove(listener); in removeListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSettingsController.java58 private final HashMap<Uri, ArrayList<Listener>> mListeners = new HashMap<>(); field in NotificationSettingsController
75 synchronized (mListeners) { in NotificationSettingsController()
76 if (mListeners.containsKey(uri)) { in NotificationSettingsController()
79 for (Listener listener : mListeners.get(uri)) { in NotificationSettingsController()
93 synchronized (mListeners) { in NotificationSettingsController()
94 if (mListeners.size() > 0) { in NotificationSettingsController()
96 for (Uri uri : mListeners.keySet()) { in NotificationSettingsController()
123 synchronized (mListeners) { in addCallback()
124 ArrayList<Listener> currentListeners = mListeners.get(uri); in addCallback()
131 mListeners.put(uri, currentListeners); in addCallback()
[all …]
DNotifInflationErrorManager.java40 List<NotifInflationErrorListener> mListeners = new ArrayList<>(); field in NotifInflationErrorManager
52 for (int i = 0; i < mListeners.size(); i++) { in setInflationError()
53 mListeners.get(i).onNotifInflationError(entry, e); in setInflationError()
63 for (int i = 0; i < mListeners.size(); i++) { in clearInflationError()
64 mListeners.get(i).onNotifInflationErrorCleared(entry); in clearInflationError()
80 mListeners.add(listener); in addInflationErrorListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDataSaverControllerImpl.java31 private final ArrayList<Listener> mListeners = new ArrayList<>(); field in DataSaverControllerImpl
40 synchronized (mListeners) { in handleRestrictBackgroundChanged()
41 copy = new ArrayList<>(mListeners); in handleRestrictBackgroundChanged()
50 synchronized (mListeners) { in addCallback()
51 mListeners.add(listener); in addCallback()
52 if (mListeners.size() == 1) { in addCallback()
61 synchronized (mListeners) { in removeCallback()
62 mListeners.remove(listener); in removeCallback()
63 if (mListeners.size() == 0) { in removeCallback()
DSafetyController.java47 private final ArrayList<Listener> mListeners = new ArrayList<>(); field in SafetyController
78 synchronized (mListeners) { in addCallback()
79 mListeners.add(listener); in addCallback()
80 if (mListeners.size() == 1) { in addCallback()
94 synchronized (mListeners) { in removeCallback()
95 mListeners.remove(listener); in removeCallback()
96 if (mListeners.isEmpty()) { in removeCallback()
104 synchronized (mListeners) { in handleSafetyCenterEnableChange()
105 copy = new ArrayList<>(mListeners); in handleSafetyCenterEnableChange()
/frameworks/base/core/java/com/android/internal/util/
DProgressReporter.java61 private final RemoteCallbackList<IProgressListener> mListeners = new RemoteCallbackList<>(); field in ProgressReporter
92 mListeners.register(listener); in addListener()
206 mListeners.kill(); in finish()
211 for (int i = mListeners.beginBroadcast() - 1; i >= 0; i--) { in notifyStarted()
213 mListeners.getBroadcastItem(i).onStarted(id, extras); in notifyStarted()
217 mListeners.finishBroadcast(); in notifyStarted()
221 for (int i = mListeners.beginBroadcast() - 1; i >= 0; i--) { in notifyProgress()
223 mListeners.getBroadcastItem(i).onProgress(id, progress, extras); in notifyProgress()
227 mListeners.finishBroadcast(); in notifyProgress()
231 for (int i = mListeners.beginBroadcast() - 1; i >= 0; i--) { in notifyFinished()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DExternalCaptureStateTracker.java37 private final List<Listener> mListeners = new LinkedList<>(); field in ExternalCaptureStateTracker
55 synchronized (mListeners) { in registerListener()
56 mListeners.add(listener); in registerListener()
63 synchronized (mListeners) { in unregisterListener()
64 mListeners.remove(listener); in unregisterListener()
90 synchronized (mListeners) { in setCaptureState()
92 for (Listener listener : mListeners) { in setCaptureState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/
DRadioOnHelper.java47 private List<RadioOnStateListener> mListeners; field in RadioOnHelper
57 if (mListeners == null) { in setupListeners()
58 mListeners = new ArrayList<>(2); in setupListeners()
62 while (mListeners.size() < activeModems) { in setupListeners()
63 mListeners.add(new RadioOnStateListener()); in setupListeners()
66 while (mListeners.size() > activeModems) { in setupListeners()
67 mListeners.get(mListeners.size() - 1).cleanup(); in setupListeners()
68 mListeners.remove(mListeners.size() - 1); in setupListeners()
101 mInProgressListeners.add(mListeners.get(i)); in triggerRadioOnAndListen()
102 mListeners.get(i).waitForRadioOn(phone, this, forEmergencyCall, forEmergencyCall in triggerRadioOnAndListen()
/frameworks/base/core/java/android/animation/
DAnimator.java44 ArrayList<AnimatorListener> mListeners = null; field in Animator
313 if (mListeners == null) { in addListener()
314 mListeners = new ArrayList<AnimatorListener>(); in addListener()
316 mListeners.add(listener); in addListener()
326 if (mListeners == null) { in removeListener()
329 mListeners.remove(listener); in removeListener()
330 if (mListeners.size() == 0) { in removeListener()
331 mListeners = null; in removeListener()
342 return mListeners; in getListeners()
380 if (mListeners != null) { in removeAllListeners()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeDeviceStationaryHelper.java25 private final CopyOnWriteArrayList<DeviceIdleInternal.StationaryListener> mListeners = field in FakeDeviceStationaryHelper
32 synchronized (mListeners) { in addListener()
33 mListeners.add(listener); in addListener()
40 mListeners.remove(listener); in removeListener()
44 synchronized (mListeners) { in setStationary()
48 for (DeviceIdleInternal.StationaryListener listener : mListeners) { in setStationary()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DRenderer.java73 protected List<Listener> mListeners = new ArrayList<Listener>(); field in Renderer
150 if (!mListeners.contains(listener)) { in registerListener()
151 mListeners.add(listener); in registerListener()
156 mListeners.remove(listener); in unregisterListener()
164 for (Listener listener : mListeners) { in pushOnError()
170 for (Listener listener : mListeners) { in pushOnStateChanged()
176 for (Listener listener : mListeners) { in pushOnBufferingUpdate()
182 for (Listener listener : mListeners) { in pushOnFocusLost()
188 for (Listener listener : mListeners) { in pushOnNextStarted()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DSecureSettingsContentObserver.java55 final List<T> mListeners = new ArrayList<>(); field in SecureSettingsContentObserver
78 if (!mListeners.contains(listener)) { in addListener()
79 mListeners.add(listener); in addListener()
82 if (mListeners.size() == 1) { in addListener()
97 mListeners.remove(listener); in removeListener()
99 if (mListeners.isEmpty()) { in removeListener()
115 final int listenerSize = mListeners.size(); in updateValueChanged()
117 onValueChanged(mListeners.get(i), value); in updateValueChanged()
/frameworks/base/telephony/java/android/telephony/
DBinderCacheManager.java60 private final HashMap<Object, Runnable> mListeners = new HashMap<>(); field in BinderCacheManager.BinderDeathTracker
76 synchronized (mListeners) { in addListener()
78 mListeners.put(key, r); in addListener()
84 synchronized (mListeners) { in removeListener()
85 mListeners.remove(runnableKey); in removeListener()
92 synchronized (mListeners) { in binderDied()
93 listeners = new ArrayList<>(mListeners.values()); in binderDied()
94 mListeners.clear(); in binderDied()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java61 private final ArrayMap<TwilightListener, Handler> mListeners = new ArrayMap<>(); field in TwilightService
88 synchronized (mListeners) { in onStart()
89 final boolean wasEmpty = mListeners.isEmpty(); in onStart()
90 mListeners.put(listener, handler); in onStart()
92 if (wasEmpty && !mListeners.isEmpty()) { in onStart()
100 synchronized (mListeners) { in onStart()
101 final boolean wasEmpty = mListeners.isEmpty(); in onStart()
102 mListeners.remove(listener); in onStart()
104 if (!wasEmpty && mListeners.isEmpty()) { in onStart()
112 synchronized (mListeners) { in onStart()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DCaptioningManager.java58 private final ArrayList<CaptioningChangeListener> mListeners = new ArrayList<>(); field in CaptioningManager
213 synchronized (mListeners) { in addCaptioningChangeListener()
214 if (mListeners.isEmpty()) { in addCaptioningChangeListener()
229 mListeners.add(listener); in addCaptioningChangeListener()
244 synchronized (mListeners) { in removeCaptioningChangeListener()
245 mListeners.remove(listener); in removeCaptioningChangeListener()
247 if (mListeners.isEmpty()) { in removeCaptioningChangeListener()
268 synchronized (mListeners) { in notifyEnabledChanged()
269 for (CaptioningChangeListener listener : mListeners) { in notifyEnabledChanged()
277 synchronized (mListeners) { in notifyUserStyleChanged()
[all …]

1234567