Home
last modified time | relevance | path

Searched refs:listener (Results 1 – 25 of 755) sorted by relevance

12345678910>>...31

/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pManager.java691 Object listener = getListener(message.arg2); in handleMessage() local
721 if (listener != null) { in handleMessage()
722 ((ActionListener) listener).onFailure(message.arg1); in handleMessage()
747 if (listener != null) { in handleMessage()
748 ((ActionListener) listener).onSuccess(); in handleMessage()
753 if (listener != null) { in handleMessage()
754 ((PeerListListener) listener).onPeersAvailable(peers); in handleMessage()
759 if (listener != null) { in handleMessage()
760 … ((ConnectionInfoListener) listener).onConnectionInfoAvailable(wifiP2pInfo); in handleMessage()
765 if (listener != null) { in handleMessage()
[all …]
/frameworks/data-binding/compilerCommon/src/main/grammar-gen/android/databinding/parser/
DBindingExpressionParser.java112 public void enterRule(ParseTreeListener listener) { in enterRule() argument
113 …if ( listener instanceof BindingExpressionListener ) ((BindingExpressionListener)listener).enterBi… in enterRule()
116 public void exitRule(ParseTreeListener listener) { in exitRule() argument
117 …if ( listener instanceof BindingExpressionListener ) ((BindingExpressionListener)listener).exitBin… in exitRule()
167 public void enterRule(ParseTreeListener listener) { in enterRule() argument
168 …if ( listener instanceof BindingExpressionListener ) ((BindingExpressionListener)listener).enterDe… in enterRule()
171 public void exitRule(ParseTreeListener listener) { in exitRule() argument
172 …if ( listener instanceof BindingExpressionListener ) ((BindingExpressionListener)listener).exitDef… in exitRule()
222 public void enterRule(ParseTreeListener listener) { in enterRule() argument
223 …if ( listener instanceof BindingExpressionListener ) ((BindingExpressionListener)listener).enterCo… in enterRule()
[all …]
/frameworks/base/core/java/android/speech/
DRecognitionService.java97 private void dispatchStartListening(Intent intent, final IRecognitionListener listener, in dispatchStartListening() argument
100 if (DBG) Log.d(TAG, "created new mCurrentCallback, listener = " + listener.asBinder()); in dispatchStartListening()
102 listener.asBinder().linkToDeath(new IBinder.DeathRecipient() { in dispatchStartListening()
105 mHandler.sendMessage(mHandler.obtainMessage(MSG_CANCEL, listener)); in dispatchStartListening()
112 mCurrentCallback = new Callback(listener, callingUid); in dispatchStartListening()
116 listener.onError(SpeechRecognizer.ERROR_RECOGNIZER_BUSY); in dispatchStartListening()
124 private void dispatchStopListening(IRecognitionListener listener) { in dispatchStopListening() argument
127 listener.onError(SpeechRecognizer.ERROR_CLIENT); in dispatchStopListening()
129 } else if (mCurrentCallback.mListener.asBinder() != listener.asBinder()) { in dispatchStopListening()
130 listener.onError(SpeechRecognizer.ERROR_RECOGNIZER_BUSY); in dispatchStopListening()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsCall.java863 public void setListener(ImsCall.Listener listener) { in setListener() argument
864 setListener(listener, false); in setListener()
876 public void setListener(ImsCall.Listener listener, boolean callbackImmediately) { in setListener() argument
883 mListener = listener; in setListener()
885 if ((listener == null) || !callbackImmediately) { in setListener()
897 listener.onCallError(this, lastReasonInfo); in setListener()
900 listener.onCallHeld(this); in setListener()
902 listener.onCallStarted(this); in setListener()
907 listener.onCallProgressing(this); in setListener()
910 listener.onCallTerminated(this, lastReasonInfo); in setListener()
[all …]
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java316 Object listener = getListener(message.arg2); in handleMessage() local
317 if (listener == null) { in handleMessage()
325 ((DiscoveryListener) listener).onDiscoveryStarted(s); in handleMessage()
329 ((DiscoveryListener) listener).onStartDiscoveryFailed(getNsdServiceInfoType(ns), in handleMessage()
333 ((DiscoveryListener) listener).onServiceFound((NsdServiceInfo) message.obj); in handleMessage()
336 ((DiscoveryListener) listener).onServiceLost((NsdServiceInfo) message.obj); in handleMessage()
340 ((DiscoveryListener) listener).onStopDiscoveryFailed(getNsdServiceInfoType(ns), in handleMessage()
345 ((DiscoveryListener) listener).onDiscoveryStopped(getNsdServiceInfoType(ns)); in handleMessage()
349 ((RegistrationListener) listener).onRegistrationFailed(ns, message.arg1); in handleMessage()
352 ((RegistrationListener) listener).onServiceRegistered( in handleMessage()
[all …]
/frameworks/base/core/java/android/app/
DAlertDialog.java321 public void setButton(int whichButton, CharSequence text, OnClickListener listener) { in setButton() argument
322 mAlert.setButton(whichButton, text, listener, null); in setButton()
362 public void setButton(CharSequence text, final OnClickListener listener) { in setButton() argument
363 setButton(BUTTON_POSITIVE, text, listener); in setButton()
375 public void setButton2(CharSequence text, final OnClickListener listener) { in setButton2() argument
376 setButton(BUTTON_NEGATIVE, text, listener); in setButton2()
388 public void setButton3(CharSequence text, final OnClickListener listener) { in setButton3() argument
389 setButton(BUTTON_NEUTRAL, text, listener); in setButton3()
609 public Builder setPositiveButton(@StringRes int textId, final OnClickListener listener) { in setPositiveButton() argument
611 P.mPositiveButtonListener = listener; in setPositiveButton()
[all …]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DRenderer.java149 public void registerListener(Listener listener) { in registerListener() argument
150 if (!mListeners.contains(listener)) { in registerListener()
151 mListeners.add(listener); in registerListener()
155 public void unregisterListener(Listener listener) { in unregisterListener() argument
156 mListeners.remove(listener); in unregisterListener()
164 for (Listener listener : mListeners) { in pushOnError()
165 listener.onError(type, extra, extras, error); in pushOnError()
170 for (Listener listener : mListeners) { in pushOnStateChanged()
171 listener.onStateChanged(newState); in pushOnStateChanged()
176 for (Listener listener : mListeners) { in pushOnBufferingUpdate()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAlertDialog.java208 public void setButton(int whichButton, CharSequence text, OnClickListener listener) { in setButton() argument
209 mAlert.setButton(whichButton, text, listener, null); in setButton()
398 public Builder setPositiveButton(int textId, final OnClickListener listener) { in setPositiveButton() argument
400 P.mPositiveButtonListener = listener; in setPositiveButton()
411 public Builder setPositiveButton(CharSequence text, final OnClickListener listener) { in setPositiveButton() argument
413 P.mPositiveButtonListener = listener; in setPositiveButton()
424 public Builder setNegativeButton(int textId, final OnClickListener listener) { in setNegativeButton() argument
426 P.mNegativeButtonListener = listener; in setNegativeButton()
437 public Builder setNegativeButton(CharSequence text, final OnClickListener listener) { in setNegativeButton() argument
439 P.mNegativeButtonListener = listener; in setNegativeButton()
[all …]
/frameworks/native/libs/gui/
DBufferQueue.cpp36 sp<ConsumerListener> listener(mConsumerListener.promote()); in onFrameAvailable() local
37 if (listener != NULL) { in onFrameAvailable()
38 listener->onFrameAvailable(item); in onFrameAvailable()
44 sp<ConsumerListener> listener(mConsumerListener.promote()); in onFrameReplaced() local
45 if (listener != NULL) { in onFrameReplaced()
46 listener->onFrameReplaced(item); in onFrameReplaced()
51 sp<ConsumerListener> listener(mConsumerListener.promote()); in onBuffersReleased() local
52 if (listener != NULL) { in onBuffersReleased()
53 listener->onBuffersReleased(); in onBuffersReleased()
58 sp<ConsumerListener> listener(mConsumerListener.promote()); in onSidebandStreamChanged() local
[all …]
/frameworks/support/v4/java/android/support/v4/view/accessibility/
DAccessibilityManagerCompat.java35 AccessibilityStateChangeListenerCompat listener); in newAccessiblityStateChangeListener() argument
37 AccessibilityStateChangeListenerCompat listener); in addAccessibilityStateChangeListener() argument
39 AccessibilityStateChangeListenerCompat listener); in removeAccessibilityStateChangeListener() argument
49 AccessibilityStateChangeListenerCompat listener) { in newAccessiblityStateChangeListener() argument
54 AccessibilityStateChangeListenerCompat listener) { in addAccessibilityStateChangeListener() argument
59 AccessibilityStateChangeListenerCompat listener) { in removeAccessibilityStateChangeListener() argument
82 final AccessibilityStateChangeListenerCompat listener) { in newAccessiblityStateChangeListener() argument
86 listener.onAccessibilityStateChanged(enabled); in newAccessiblityStateChangeListener()
93 AccessibilityStateChangeListenerCompat listener) { in addAccessibilityStateChangeListener() argument
95 listener.mListener); in addAccessibilityStateChangeListener()
[all …]
/frameworks/data-binding/compilerCommon/src/main/xml-gen/android/databinding/parser/
DXMLParser.java62 public void enterRule(ParseTreeListener listener) { in enterRule() argument
63 if ( listener instanceof XMLParserListener ) ((XMLParserListener)listener).enterDocument(this); in enterRule()
66 public void exitRule(ParseTreeListener listener) { in exitRule() argument
67 if ( listener instanceof XMLParserListener ) ((XMLParserListener)listener).exitDocument(this); in exitRule()
146 public void enterRule(ParseTreeListener listener) { in enterRule() argument
147 if ( listener instanceof XMLParserListener ) ((XMLParserListener)listener).enterProlog(this); in enterRule()
150 public void exitRule(ParseTreeListener listener) { in exitRule() argument
151 if ( listener instanceof XMLParserListener ) ((XMLParserListener)listener).exitProlog(this); in exitRule()
232 public void enterRule(ParseTreeListener listener) { in enterRule() argument
233 if ( listener instanceof XMLParserListener ) ((XMLParserListener)listener).enterContent(this); in enterRule()
[all …]
/frameworks/base/wifi/java/android/net/wifi/passpoint/
DWifiPasspointManager.java206 private int putListener(Object listener) { in putListener() argument
207 return putListener(listener, 1); in putListener()
210 private int putListener(Object listener, int count) { in putListener() argument
211 if (listener == null || count <= 0) in putListener()
218 mListenerMap.put(key, listener); in putListener()
291 Object listener = null; in handleMessage() local
304 listener = getListener(message.arg2, false); in handleMessage()
305 if (listener != null) { in handleMessage()
306 ((ActionListener) listener).onSuccess(); in handleMessage()
312 listener = getListener(message.arg2, false); in handleMessage()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DComprehensiveCountryDetectorTest.java152 CountryListenerImpl listener = new CountryListenerImpl();
153 countryDetector.setCountryListener(listener);
156 assertFalse(listener.notified());
173 CountryListenerImpl listener = new CountryListenerImpl();
174 countryDetector.setCountryListener(listener);
179 assertTrue(listener.notified());
180 assertTrue(sameCountry(listener.getCountry(), locationBasedCountry));
196 CountryListenerImpl listener = new CountryListenerImpl();
197 countryDetector.setCountryListener(listener);
200 assertFalse(listener.notified());
[all …]
/frameworks/base/core/java/android/view/
DViewTreeObserver.java423 public void addOnWindowAttachListener(OnWindowAttachListener listener) { in addOnWindowAttachListener() argument
431 mOnWindowAttachListeners.add(listener); in addOnWindowAttachListener()
458 public void addOnWindowFocusChangeListener(OnWindowFocusChangeListener listener) { in addOnWindowFocusChangeListener() argument
466 mOnWindowFocusListeners.add(listener); in addOnWindowFocusChangeListener()
493 public void addOnGlobalFocusChangeListener(OnGlobalFocusChangeListener listener) { in addOnGlobalFocusChangeListener() argument
500 mOnGlobalFocusListeners.add(listener); in addOnGlobalFocusChangeListener()
528 public void addOnGlobalLayoutListener(OnGlobalLayoutListener listener) { in addOnGlobalLayoutListener() argument
535 mOnGlobalLayoutListeners.add(listener); in addOnGlobalLayoutListener()
578 public void addOnPreDrawListener(OnPreDrawListener listener) { in addOnPreDrawListener() argument
585 mOnPreDrawListeners.add(listener); in addOnPreDrawListener()
[all …]
/frameworks/support/v4/java/android/support/v4/os/
DCancellationSignal.java65 final OnCancelListener listener; in cancel() local
73 listener = mOnCancelListener; in cancel()
78 if (listener != null) { in cancel()
79 listener.onCancel(); in cancel()
108 public void setOnCancelListener(OnCancelListener listener) { in setOnCancelListener() argument
112 if (mOnCancelListener == listener) { in setOnCancelListener()
115 mOnCancelListener = listener; in setOnCancelListener()
116 if (!mIsCanceled || listener == null) { in setOnCancelListener()
120 listener.onCancel(); in setOnCancelListener()
/frameworks/volley/src/test/java/com/android/volley/
DRequestQueueIntegrationTest.java72 RequestFinishedListener listener = mock(RequestFinishedListener.class); in add_requestProcessedInCorrectOrder() local
85 queue.addRequestFinishedListener(listener); in add_requestProcessedInCorrectOrder()
92 verifyNoMoreInteractions(listener); in add_requestProcessedInCorrectOrder()
94 verify(listener, timeout(100)).onRequestFinished(higherPriorityReq); in add_requestProcessedInCorrectOrder()
96 verify(listener, timeout(10)).onRequestFinished(lowerPriorityReq); in add_requestProcessedInCorrectOrder()
110 RequestFinishedListener listener = mock(RequestFinishedListener.class); in add_dedupeByCacheKey() local
123 queue.addRequestFinishedListener(listener); in add_dedupeByCacheKey()
130 verifyNoMoreInteractions(listener); in add_dedupeByCacheKey()
131 verify(listener, timeout(100)).onRequestFinished(req1); in add_dedupeByCacheKey()
132 verify(listener, timeout(10)).onRequestFinished(req2); in add_dedupeByCacheKey()
[all …]
/frameworks/base/location/java/android/location/
DLocationManager.java223 ListenerTransport(LocationListener listener, Looper looper) { in ListenerTransport() argument
224 mListener = listener; in ListenerTransport()
458 LocationListener listener) { in requestLocationUpdates() argument
460 checkListener(listener); in requestLocationUpdates()
464 requestLocationUpdates(request, listener, null, null); in requestLocationUpdates()
490 LocationListener listener, Looper looper) { in requestLocationUpdates() argument
492 checkListener(listener); in requestLocationUpdates()
496 requestLocationUpdates(request, listener, looper, null); in requestLocationUpdates()
523 LocationListener listener, Looper looper) { in requestLocationUpdates() argument
525 checkListener(listener); in requestLocationUpdates()
[all …]
DLocalListenerHelper.java47 public boolean add(@NonNull TListener listener) { in add() argument
48 Preconditions.checkNotNull(listener); in add()
65 if (mListeners.contains(listener)) { in add()
68 return mListeners.add(listener); in add()
72 public void remove(@NonNull TListener listener) { in remove() argument
73 Preconditions.checkNotNull(listener); in remove()
75 boolean removed = mListeners.remove(listener); in remove()
91 void execute(TListener listener) throws RemoteException; in execute() argument
103 for (TListener listener : listeners) { in foreach()
105 operation.execute(listener); in foreach()
/frameworks/base/services/core/java/com/android/server/location/
DGpsStatusListenerHelper.java50 public void execute(IGpsStatusListener listener) throws RemoteException { in onStatusChanged()
51 listener.onGpsStarted(); in onStatusChanged()
57 public void execute(IGpsStatusListener listener) throws RemoteException { in onStatusChanged()
58 listener.onGpsStopped(); in onStatusChanged()
68 public void execute(IGpsStatusListener listener) throws RemoteException { in onFirstFix()
69 listener.onFirstFix(timeToFirstFix); in onFirstFix()
86 public void execute(IGpsStatusListener listener) throws RemoteException { in onSvStatusChanged()
87 listener.onSvStatusChanged( in onSvStatusChanged()
104 public void execute(IGpsStatusListener listener) throws RemoteException { in onNmeaReceived()
105 listener.onNmeaReceived(timestamp, nmea); in onNmeaReceived()
DRemoteListenerHelper.java60 public boolean addListener(@NonNull TListener listener) { in addListener() argument
61 Preconditions.checkNotNull(listener, "Attempted to register a 'null' listener."); in addListener()
62 IBinder binder = listener.asBinder(); in addListener()
63 LinkedListener deathListener = new LinkedListener(listener); in addListener()
98 post(listener, getHandlerOperation(result)); in addListener()
103 public void removeListener(@NonNull TListener listener) { in removeListener() argument
104 Preconditions.checkNotNull(listener, "Attempted to remove a 'null' listener."); in removeListener()
105 IBinder binder = listener.asBinder(); in removeListener()
125 void execute(TListener listener) throws RemoteException; in execute() argument
177 private void post(TListener listener, ListenerOperation<TListener> operation) { in post() argument
[all …]
/frameworks/base/core/java/android/os/
DCancellationSignal.java63 final OnCancelListener listener; in cancel() local
71 listener = mOnCancelListener; in cancel()
76 if (listener != null) { in cancel()
77 listener.onCancel(); in cancel()
109 public void setOnCancelListener(OnCancelListener listener) { in setOnCancelListener() argument
113 if (mOnCancelListener == listener) { in setOnCancelListener()
116 mOnCancelListener = listener; in setOnCancelListener()
117 if (!mIsCanceled || listener == null) { in setOnCancelListener()
121 listener.onCancel(); in setOnCancelListener()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTriggerModule.java42 SoundTriggerModule(int moduleId, SoundTrigger.StatusListener listener, Handler handler) { in SoundTriggerModule() argument
44 mEventHandlerDelegate = new NativeEventHandlerDelegate(listener, handler); in SoundTriggerModule()
129 NativeEventHandlerDelegate(final SoundTrigger.StatusListener listener, in NativeEventHandlerDelegate() argument
147 if (listener != null) { in NativeEventHandlerDelegate()
148 listener.onRecognition( in NativeEventHandlerDelegate()
153 if (listener != null) { in NativeEventHandlerDelegate()
154 listener.onSoundModelUpdate( in NativeEventHandlerDelegate()
159 if (listener != null) { in NativeEventHandlerDelegate()
160 listener.onServiceStateChange(msg.arg1); in NativeEventHandlerDelegate()
164 if (listener != null) { in NativeEventHandlerDelegate()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DPhone.java201 public final void addListener(Listener listener) { in addListener() argument
202 mListeners.add(listener); in addListener()
210 public final void removeListener(Listener listener) { in removeListener() argument
211 if (listener != null) { in removeListener()
212 mListeners.remove(listener); in removeListener()
302 for (Listener listener : mListeners) { in fireCallAdded()
303 listener.onCallAdded(this, call); in fireCallAdded()
308 for (Listener listener : mListeners) { in fireCallRemoved()
309 listener.onCallRemoved(this, call); in fireCallRemoved()
314 for (Listener listener : mListeners) { in fireCallAudioStateChanged()
[all …]
/frameworks/support/v4/java/android/support/v4/widget/
DSearchViewCompat.java37 Object newOnQueryTextListener(OnQueryTextListenerCompat listener); in newOnQueryTextListener() argument
38 void setOnQueryTextListener(Object searchView, Object listener); in setOnQueryTextListener() argument
39 Object newOnCloseListener(OnCloseListenerCompat listener); in newOnCloseListener() argument
40 void setOnCloseListener(Object searchView, Object listener); in setOnCloseListener() argument
73 public Object newOnQueryTextListener(OnQueryTextListenerCompat listener) { in newOnQueryTextListener() argument
78 public void setOnQueryTextListener(Object searchView, Object listener) { in setOnQueryTextListener() argument
82 public Object newOnCloseListener(OnCloseListenerCompat listener) { in newOnCloseListener() argument
87 public void setOnCloseListener(Object searchView, Object listener) { in setOnCloseListener() argument
148 public Object newOnQueryTextListener(final OnQueryTextListenerCompat listener) { in newOnQueryTextListener() argument
153 return listener.onQueryTextSubmit(query); in newOnQueryTextListener()
[all …]
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipManager.java228 SipRegistrationListener listener) throws SipException { in open() argument
235 createRelay(listener, localProfile.getUriString()), in open()
252 SipRegistrationListener listener) throws SipException { in setRegistrationListener() argument
255 localProfileUri, createRelay(listener, localProfileUri), in setRegistrationListener()
333 SipProfile peerProfile, SipAudioCall.Listener listener, int timeout) in makeAudioCall() argument
339 call.setListener(listener); in makeAudioCall()
365 String peerProfileUri, SipAudioCall.Listener listener, int timeout) in makeAudioCall() argument
373 new SipProfile.Builder(peerProfileUri).build(), listener, in makeAudioCall()
393 SipAudioCall.Listener listener) throws SipException { in takeAudioCall() argument
418 call.setListener(listener); in takeAudioCall()
[all …]

12345678910>>...31