Home
last modified time | relevance | path

Searched refs:listeners (Results 1 – 25 of 82) sorted by relevance

1234

/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterListeners.java131 RemoteCallbackList<IOnSafetyCenterDataChangedListener> listeners = in addListener() local
133 if (listeners == null) { in addListener()
134 listeners = new RemoteCallbackList<>(); in addListener()
138 boolean registered = listeners.register(listenerWrapper); in addListener()
142 mSafetyCenterDataChangedListeners.put(userId, listeners); in addListener()
153 RemoteCallbackList<IOnSafetyCenterDataChangedListener> listeners = in removeListener() local
155 if (listeners == null) { in removeListener()
158 boolean unregistered = listeners.unregister(listener); in removeListener()
159 if (listeners.getRegisteredCallbackCount() == 0) { in removeListener()
167 RemoteCallbackList<IOnSafetyCenterDataChangedListener> listeners = in clearForUser() local
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/unfold/
DPreemptiveUnfoldTransitionProgressProvider.kt47 listeners.forEach { it.onTransitionFinished() } in <lambda>()
53 private val listeners = arrayListOf<TransitionProgressListener>() in <lambda>() constant in com.android.quickstep.util.unfold.PreemptiveUnfoldTransitionProgressProvider
66 listeners.forEach { it.onTransitionStarted() } in <lambda>()
75 listeners.forEach { it.onTransitionProgress(progress) } in <lambda>()
82 listeners.forEach { it.onTransitionFinishing() } in <lambda>()
89 listeners.forEach { it.onTransitionFinished() } in <lambda>()
118 listeners.forEach { it.onTransitionStarted() } in <lambda>()
120 listeners.forEach { it.onTransitionProgress(progress) } in <lambda>()
133 listeners.forEach { it.onTransitionFinished() } in <lambda>()
152 listeners += listener in <lambda>()
[all …]
DProxyUnfoldTransitionProvider.kt30 private val listeners: MutableSet<TransitionProgressListener> = mutableSetOf() constant in com.android.quickstep.util.unfold.ProxyUnfoldTransitionProvider
59 listeners += listener in addCallback()
67 listeners -= listener in removeCallback()
75 listeners.clear() in destroy()
82 listeners.forEach(TransitionProgressListener::onTransitionStarted) in onTransitionStarted()
87 listeners.forEach { it.onTransitionProgress(progress) } in onTransitionProgress()
93 listeners.forEach(TransitionProgressListener::onTransitionFinished) in onTransitionFinished()
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticManager.java85 CarDiagnosticListeners listeners; in CarDiagnosticManager()
87 listeners = mActiveListeners.get(event.frameType); in CarDiagnosticManager()
89 if (listeners != null) { in CarDiagnosticManager()
90 listeners.onDiagnosticEvent(event); in CarDiagnosticManager()
143 CarDiagnosticListeners listeners = mActiveListeners.get(frameType); in registerListener() local
144 if (listeners == null) { in registerListener()
145 listeners = new CarDiagnosticListeners(rate); in registerListener()
146 mActiveListeners.put(frameType, listeners); in registerListener()
149 if (listeners.addAndUpdateRate(listener, rate)) { in registerListener()
178 CarDiagnosticListeners listeners = mActiveListeners.get(frameType); in doUnregisterListenerLocked() local
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageProcessorProxyListener.java151 final List<ImageProcessorListener> listeners; in onStart() local
153 listeners = filteredListeners(job.contentId); in onStart()
156 for (ImageProcessorListener l : listeners) { in onStart()
163 final List<ImageProcessorListener> listeners; in onResultCompressed() local
165 listeners = filteredListeners(job.contentId); in onResultCompressed()
168 for (ImageProcessorListener l : listeners) { in onResultCompressed()
175 final List<ImageProcessorListener> listeners; in onResultUncompressed() local
177 listeners = filteredListeners(job.contentId); in onResultUncompressed()
180 for (ImageProcessorListener l : listeners) { in onResultUncompressed()
186 final List<ImageProcessorListener> listeners; in onResultUri() local
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsServiceTypeClient.java91 private final ArrayMap<MdnsServiceBrowserListener, ListenerInfo> listeners = field in MdnsServiceTypeClient
149 getAllDiscoverySubtypes(), needSendDiscoveryQueries(listeners), in handleMessage()
164 for (int i = 0; i < listeners.size(); i++) { in handleMessage()
165 listeners.keyAt(i).onDiscoveryQuerySent( in handleMessage()
377 final ListenerInfo existingInfo = listeners.get(listener); in startSendAndReceive()
379 listeners.put(listener, listenerInfo); in startSendAndReceive()
426 getAllDiscoverySubtypes(), needSendDiscoveryQueries(listeners), in startSendAndReceive()
436 for (int i = 0; i < listeners.size(); i++) { in getAllDiscoverySubtypes()
437 final MdnsSearchOptions listenerOptions = listeners.valueAt(i).searchOptions; in getAllDiscoverySubtypes()
486 if (listeners.remove(listener) == null) { in stopSendAndReceive()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSwitchBarControllerTest.java81 final List<OnCheckedChangeListener> listeners = in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener() local
85 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
88 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
96 final List<OnCheckedChangeListener> listeners = in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener() local
100 assertThat(listeners).contains(mSettings); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
103 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
112 final List<OnCheckedChangeListener> listeners = in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener() local
116 assertThat(listeners).contains(mSettings); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener()
119 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DMultinetworkPolicyTrackerTestDependencies.kt17 private val listeners = mutableListOf<Pair<Executor, OnPropertiesChangedListener>>() in <lambda>() constant
20 synchronized(listeners) { in <lambda>()
25 listeners.forEach { (executor, listener) -> in <lambda>()
32 return synchronized(listeners) { configActivelyPreferBadWifi } in <lambda>()
39 synchronized(listeners) { in <lambda>()
40 listeners.add(e to listener) in <lambda>()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DGestureExclusionManager.kt33 private val listeners = mutableListOf<ExclusionListener>() constant in com.android.quickstep.util.GestureExclusionManager
53 listeners.forEach { in onSystemGestureExclusionChanged()
62 val wasEmpty = listeners.isEmpty() in addListener()
63 listeners.add(listener) in addListener()
84 if (listeners.remove(listener) && listeners.isEmpty()) { in removeListener()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DMultiStateCallback.java150 ArrayList<Consumer<Boolean>> listeners = mStateChangeListeners.valueAt(i); in notifyStateChangeListeners() local
151 for (Consumer<Boolean> listener : listeners) { in notifyStateChangeListeners()
186 final ArrayList<Consumer<Boolean>> listeners; in addChangeListener() local
188 listeners = mStateChangeListeners.get(stateMask); in addChangeListener()
190 listeners = new ArrayList<>(); in addChangeListener()
191 mStateChangeListeners.put(stateMask, listeners); in addChangeListener()
193 listeners.add(listener); in addChangeListener()
DHomeVisibilityState.kt32 private var listeners = mutableSetOf<VisibilityChangeListener>() variable in com.android.quickstep.HomeVisibilityState
34 fun addListener(l: VisibilityChangeListener) = listeners.add(l) in addListener()
36 fun removeListener(l: VisibilityChangeListener) = listeners.remove(l) in addListener()
46 listeners.forEach { it.onHomeVisibilityChanged(isVisible) } in addListener()
/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
DPseudoScreenState.java42 private final Set<StateChangedListener> listeners = new ArraySet<>(); field in PseudoScreenState
53 for (StateChangedListener listener : listeners) { in setOn()
60 listeners.add(listener); in addListener()
64 listeners.remove(listener); in removeListener()
/packages/apps/Dialer/java/com/android/incallui/audiomode/
DAudioModeProvider.java36 private final List<AudioModeListener> listeners = new ArrayList<>(); field in AudioModeProvider
47 for (AudioModeListener listener : listeners) { in onAudioStateChanged()
54 if (!listeners.contains(listener)) { in addListener()
55 listeners.add(listener); in addListener()
61 listeners.remove(listener); in removeListener()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/pose/
DPoseSourceBase.java117 ArrayList<PoseEventListener> listeners; in publish() local
122 listeners = new ArrayList<>(this.mListeners); in publish()
127 for (int i = 0; i < listeners.size(); i++) { in publish()
129 listeners.get(i).onPoseChanged(pose); in publish()
134 listeners.remove(i--); in publish()
/packages/apps/Settings/src/com/android/settings/network/
DProxySubscriptionManager.java132 List<OnActiveSubscriptionChangedListener> listeners = in notifySubscriptionInfoMightChanged() local
134 listeners.addAll(mActiveSubscriptionsListeners); in notifySubscriptionInfoMightChanged()
138 processStatusChangeOnListeners(listeners); in notifySubscriptionInfoMightChanged()
165 List<OnActiveSubscriptionChangedListener> listeners = mPendingNotifyListeners; in onStart() local
167 processStatusChangeOnListeners(listeners); in onStart()
300 List<OnActiveSubscriptionChangedListener> listeners) { in processStatusChangeOnListeners() argument
303 listeners.stream() in processStatusChangeOnListeners()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/util/unfold/
DPreemptiveUnfoldTransitionProgressProviderTest.kt235 private val listeners = arrayListOf<TransitionProgressListener>() in createSource() constant
238 listeners += listener in createSource()
242 listeners -= listener in createSource()
248 listeners.forEach(TransitionProgressListener::onTransitionStarted) in createSource()
251 listeners.forEach(TransitionProgressListener::onTransitionFinishing) in createSource()
254 listeners.forEach(TransitionProgressListener::onTransitionFinished) in createSource()
257 listeners.forEach { it.onTransitionProgress(progress) } in createSource()
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/
DFakeUiModeManager.kt27 val listeners = mutableListOf<ContrastChangeListener>() in <lambda>() constant in com.android.wallpaper.testing.FakeUiModeManager
34 listeners.add(listener) in <lambda>()
38 listeners.remove(listener) in <lambda>()
47 contrast?.let { v -> listeners.forEach { it.onContrastChanged(v) } } in <lambda>()
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DResponseListenerBroadcaster.java34 public ResponseListenerBroadcaster(ResponseListener[] listeners) { in ResponseListenerBroadcaster() argument
35 mListeners = ImmutableList.copyOf(listeners); in ResponseListenerBroadcaster()
38 public ResponseListenerBroadcaster(Collection<ResponseListener> listeners) { in ResponseListenerBroadcaster() argument
39 mListeners = ImmutableList.copyOf(listeners); in ResponseListenerBroadcaster()
DResponseListeners.java127 public static ResponseListener forListeners(ResponseListener... listeners) {
128 return new ResponseListenerBroadcaster(listeners);
134 public static ResponseListener forListeners(Collection<ResponseListener> listeners) {
135 return new ResponseListenerBroadcaster(listeners);
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorConnectionService.java41 private static final List<Listener> listeners = new ArrayList<>(); field in SimulatorConnectionService
50 listeners.add(Assert.isNotNull(listener)); in addListener()
54 listeners.remove(Assert.isNotNull(listener)); in removeListener()
100 for (Listener listener : listeners) { in onCreateOutgoingConnection()
142 for (Listener listener : listeners) { in onCreateIncomingConnection()
156 for (Listener listener : listeners) { in onConference()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbSettingsStore.java169 Map<OnSettingsChangedListener, Handler> listeners = mListeners.get(key.key); in invokeListeners() local
170 if (listeners == null || listeners.isEmpty()) return; in invokeListeners()
172 : listeners.entrySet()) { in invokeListeners()
275 Map<OnSettingsChangedListener, Handler> listeners = mListeners.get(key.key); in unregisterChangeListener() local
276 if (listeners == null || listeners.isEmpty()) { in unregisterChangeListener()
280 if (listeners.remove(listener) == null) { in unregisterChangeListener()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallerInfoLookupHelper.java53 public List<OnQueryCompleteListener> listeners; field in CallerInfoLookupHelper.CallerInfoQueryInfo
57 listeners = new LinkedList<>(); in CallerInfoQueryInfo()
145 info.listeners.add(listener); in startLookup()
150 info.listeners.add(listener); in startLookup()
156 info.listeners.add(listener); in startLookup()
191 for (OnQueryCompleteListener l : info.listeners) { in makeCallerInfoQueryListener()
247 for (OnQueryCompleteListener l : info.listeners) {
/packages/modules/Permission/service/java/com/android/role/
DRoleService.java397 RemoteCallbackList<IOnRoleHoldersChangedListener> listeners = mListeners.get(userId); in getOrCreateListeners() local
398 if (listeners == null) { in getOrCreateListeners()
399 listeners = new RemoteCallbackList<>(); in getOrCreateListeners()
400 mListeners.put(userId, listeners); in getOrCreateListeners()
402 return listeners; in getOrCreateListeners()
407 RemoteCallbackList<IOnRoleHoldersChangedListener> listeners; in onRemoveUser() local
411 listeners = mListeners.get(userId); in onRemoveUser()
417 if (listeners != null) { in onRemoveUser()
418 listeners.kill(); in onRemoveUser()
432 RemoteCallbackList<IOnRoleHoldersChangedListener> listeners = getListeners(userId); in notifyRoleHoldersChanged() local
[all …]
/packages/apps/Dialer/java/com/android/incallui/call/
DCallList.java81 private final Set<Listener> listeners = field in CallList
348 for (Listener listener : listeners) { in onIncoming()
357 listeners.add(listener); in addListener()
369 listeners.remove(listener); in removeListener()
617 for (Listener listener : listeners) { in notifyGenericListeners()
624 for (Listener listener : listeners) { in notifyListenersOfDisconnect()
831 for (Listener listener : listeners) { in onDialerCallUpgradeToRtt()
838 for (Listener listener : listeners) { in onDialerCallSpeakEasyStateChange()
845 for (Listener listener : listeners) { in onDialerCallUpgradeToVideo()
852 for (Listener listener : listeners) { in onWiFiToLteHandover()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/
DVvmAccountManager.java56 private static final Set<ActivationStateListener> listeners = new ArraySet<>(); field in VvmAccountManager
67 for (ActivationStateListener listener : listeners) { in addAccount()
84 for (ActivationStateListener listener : listeners) { in removeAccount()
113 listeners.add(listener); in addListener()
119 listeners.remove(listener); in removeListener()

1234