Home
last modified time | relevance | path

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

12

/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticManager.java84 CarDiagnosticListeners listeners; in CarDiagnosticManager()
86 listeners = mActiveListeners.get(event.frameType); in CarDiagnosticManager()
88 if (listeners != null) { in CarDiagnosticManager()
89 listeners.onDiagnosticEvent(event); in CarDiagnosticManager()
144 CarDiagnosticListeners listeners = mActiveListeners.get(frameType); in registerListener() local
145 if (listeners == null) { in registerListener()
146 listeners = new CarDiagnosticListeners(rate); in registerListener()
147 mActiveListeners.put(frameType, listeners); in registerListener()
150 if (listeners.addAndUpdateRate(listener, rate)) { in registerListener()
176 CarDiagnosticListeners listeners = mActiveListeners.get(frameType); in doUnregisterListenerLocked() local
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java119 CarPropertyListeners listeners; in CarPropertyManager()
121 listeners = mActivePropertyListener.get( in CarPropertyManager()
124 if (listeners != null) { in CarPropertyManager()
127 listeners.onPropertyChanged(event); in CarPropertyManager()
130 listeners.onErrorEvent(event); in CarPropertyManager()
186 CarPropertyListeners listeners; in registerCallback() local
187 listeners = mActivePropertyListener.get(propertyId); in registerCallback()
188 if (listeners == null) { in registerCallback()
189 listeners = new CarPropertyListeners(rate); in registerCallback()
190 mActivePropertyListener.put(propertyId, listeners); in registerCallback()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DFolderInfo.java55 ArrayList<FolderListener> listeners = new ArrayList<FolderListener>(); field in FolderInfo
77 for (int i = 0; i < listeners.size(); i++) { in add()
78 listeners.get(i).onAdd(item, rank); in add()
90 for (int i = 0; i < listeners.size(); i++) { in remove()
91 listeners.get(i).onRemove(item); in remove()
98 for (int i = 0; i < listeners.size(); i++) { in setTitle()
99 listeners.get(i).onTitleChanged(title); in setTitle()
112 listeners.add(listener); in addListener()
116 listeners.remove(listener); in removeListener()
120 for (int i = 0; i < listeners.size(); i++) { in itemsChanged()
[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/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSwitchBarControllerTest.java80 final List<SwitchBar.OnSwitchChangeListener> listeners = in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener() local
84 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
87 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
95 final List<OnSwitchChangeListener> listeners = in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener() local
99 assertThat(listeners).contains(mSettings); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
102 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
111 final List<SwitchBar.OnSwitchChangeListener> listeners = in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener() local
115 assertThat(listeners).contains(mSettings); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener()
118 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener()
/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 …]
DDialerCall.java150 private final List<DialerCallListener> listeners = new CopyOnWriteArrayList<>(); field in DialerCall
310 for (DialerCallListener listener : listeners) {
462 listeners.add(listener); in addListener()
467 listeners.remove(listener); in removeListener()
493 for (DialerCallListener listener : listeners) { in notifyWiFiToLteHandover()
500 for (DialerCallListener listener : listeners) { in notifyHandoverToWifiFailed()
507 for (DialerCallListener dialerCallListener : listeners) { in notifyInternationalCallOnWifi()
571 for (DialerCallListener listener : listeners) { in update()
581 for (DialerCallListener listener : listeners) { in update()
707 for (DialerCallListener listener : listeners) { in updateFromCallExtras()
[all …]
/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/services/Telecomm/src/com/android/server/telecom/
DCallerInfoLookupHelper.java56 public List<OnQueryCompleteListener> listeners; field in CallerInfoLookupHelper.CallerInfoQueryInfo
60 listeners = new LinkedList<>(); in CallerInfoQueryInfo()
148 info.listeners.add(listener); in startLookup()
153 info.listeners.add(listener); in startLookup()
159 info.listeners.add(listener); in startLookup()
194 for (OnQueryCompleteListener l : info.listeners) { in makeCallerInfoQueryListener()
250 for (OnQueryCompleteListener l : info.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()
DSimulatorConference.java39 private final List<Listener> listeners = new ArrayList<>(); field in SimulatorConference
73 listeners.add(Assert.isNotNull(listener)); in addListener()
77 listeners.remove(Assert.isNotNull(listener)); in removeListener()
175 for (Listener listener : new ArrayList<>(listeners)) { in onEvent()
DSimulatorConnection.java39 private final List<Listener> listeners = new ArrayList<>(); field in SimulatorConnection
71 listeners.add(Assert.isNotNull(listener)); in addListener()
75 listeners.remove(Assert.isNotNull(listener)); in removeListener()
171 for (Listener listener : new ArrayList<>(listeners)) { in onEvent()
/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/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/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()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DLocationHelper.java67 private final List<LocationListener> listeners = new ArrayList<>(); field in LocationHelper
134 listeners.add(listener); in addLocationListener()
140 listeners.remove(listener); in removeLocationListener()
147 listeners.clear(); in close()
156 for (LocationListener listener : listeners) { in onLocationChanged()
/packages/apps/Car/Cluster/src/android/car/cluster/
DActivityMonitor.java137 Set<ActivityListener> listeners = mListeners.get(info.displayId); in notifyTopActivities() local
138 if (listeners != null && !listeners.isEmpty()) { in notifyTopActivities()
139 for (ActivityListener listener : listeners) { in notifyTopActivities()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailErrorManager.java53 private final Map<PhoneAccountHandle, ServiceStateListener> listeners = new ArrayMap<>(); field in VoicemailErrorManager
121 if (listeners.containsKey(phoneAccountHandle)) { in addServiceStateListener()
129 listeners.put(phoneAccountHandle, serviceStateListener); in addServiceStateListener()
162 for (ServiceStateListener listener : listeners.values()) { in onDestroy()
/packages/services/Car/car-lib/src/android/car/hardware/cabin/
DCarCabinManager.java453 Collection<CarCabinEventCallback> listeners; in handleOnErrorEvent() local
455 listeners = new ArraySet<>(mCallbacks); in handleOnErrorEvent()
457 if (!listeners.isEmpty()) { in handleOnErrorEvent()
458 for (CarCabinEventCallback l: listeners) { in handleOnErrorEvent()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowTelephonyManager.java61 List<PhoneStateListener> listeners = new ArrayList<>(); in getListenersForFlags() local
64 listeners.add(listener); in getListenersForFlags()
67 return listeners; in getListenersForFlags()
/packages/services/Car/service/src/com/android/car/
DVmsPublisherService.java266 Set<IVmsSubscriberClient> listeners = in publish() local
269 if (DBG) Log.d(TAG, String.format("Number of subscribers: %d", listeners.size())); in publish()
271 if (listeners.size() == 0) { in publish()
277 for (IVmsSubscriberClient listener : listeners) { in publish()
DCarDiagnosticService.java158 Listeners<DiagnosticClient> listeners = null; in processDiagnosticData() local
165 listeners = mDiagnosticListeners.get(CarDiagnosticManager.FRAME_TYPE_LIVE); in processDiagnosticData()
168 listeners = mDiagnosticListeners.get(CarDiagnosticManager.FRAME_TYPE_FREEZE); in processDiagnosticData()
176 if (null != listeners) { in processDiagnosticData()
177 for (ClientWithRate<DiagnosticClient> clientWithRate : listeners.getClients()) { in processDiagnosticData()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarVendorExtensionManager.java71 Collection<CarVendorExtensionCallback> listeners; in handleOnErrorEvent() local
73 listeners = new ArrayList<>(mCallbacks); in handleOnErrorEvent()
75 for (CarVendorExtensionCallback l: listeners) { in handleOnErrorEvent()
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/
DCarAssistUtils.java137 final String listeners = Settings.Secure.getStringForUser(mContext.getContentResolver(), in assistantIsNotificationListener() local
143 + " listeners: " + listeners); in assistantIsNotificationListener()
146 if (listeners != null) { in assistantIsNotificationListener()
147 for (String listener : Arrays.asList(listeners.split(":"))) { in assistantIsNotificationListener()

12