Home
last modified time | relevance | path

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

12345678910>>...38

/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.java873 public void setListener(ImsCall.Listener listener) { in setListener() argument
874 setListener(listener, false); in setListener()
886 public void setListener(ImsCall.Listener listener, boolean callbackImmediately) { in setListener() argument
893 mListener = listener; in setListener()
895 if ((listener == null) || !callbackImmediately) { in setListener()
907 listener.onCallError(this, lastReasonInfo); in setListener()
910 listener.onCallHeld(this); in setListener()
912 listener.onCallStarted(this); in setListener()
917 listener.onCallProgressing(this); in setListener()
920 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/location/java/android/location/
DLocalListenerHelper.java49 public boolean add(@NonNull TListener listener, Handler handler) { in add() argument
50 Preconditions.checkNotNull(listener); in add()
67 if (mListeners.containsKey(listener)) { in add()
70 mListeners.put(listener, handler); in add()
75 public void remove(@NonNull TListener listener) { in remove() argument
76 Preconditions.checkNotNull(listener); in remove()
78 boolean removed = mListeners.containsKey(listener); in remove()
79 mListeners.remove(listener); in remove()
95 void execute(TListener listener) throws RemoteException; in execute() argument
102 private void executeOperation(ListenerOperation<TListener> operation, TListener listener) { in executeOperation() argument
[all …]
DLocationManager.java235 ListenerTransport(LocationListener listener, Looper looper) { in ListenerTransport() argument
236 mListener = listener; in ListenerTransport()
465 LocationListener listener) { in requestLocationUpdates() argument
467 checkListener(listener); in requestLocationUpdates()
471 requestLocationUpdates(request, listener, null, null); in requestLocationUpdates()
497 LocationListener listener, Looper looper) { in requestLocationUpdates() argument
499 checkListener(listener); in requestLocationUpdates()
503 requestLocationUpdates(request, listener, looper, null); in requestLocationUpdates()
530 LocationListener listener, Looper looper) { in requestLocationUpdates() argument
532 checkListener(listener); in requestLocationUpdates()
[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/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/support/v7/appcompat/src/android/support/v7/app/
DAlertDialog.java221 public void setButton(int whichButton, CharSequence text, OnClickListener listener) { in setButton() argument
222 mAlert.setButton(whichButton, text, listener, null); in setButton()
450 public Builder setPositiveButton(@StringRes int textId, final OnClickListener listener) { in setPositiveButton() argument
452 P.mPositiveButtonListener = listener; in setPositiveButton()
463 public Builder setPositiveButton(CharSequence text, final OnClickListener listener) { in setPositiveButton() argument
465 P.mPositiveButtonListener = listener; in setPositiveButton()
476 public Builder setNegativeButton(@StringRes int textId, final OnClickListener listener) { in setNegativeButton() argument
478 P.mNegativeButtonListener = listener; in setNegativeButton()
489 public Builder setNegativeButton(CharSequence text, final OnClickListener listener) { in setNegativeButton() argument
491 P.mNegativeButtonListener = listener; in setNegativeButton()
[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/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/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/base/wifi/java/android/net/wifi/
DWifiScanner.java666 public void startBackgroundScan(ScanSettings settings, ScanListener listener) { in startBackgroundScan() argument
667 startBackgroundScan(settings, listener, null); in startBackgroundScan()
678 public void startBackgroundScan(ScanSettings settings, ScanListener listener, in startBackgroundScan() argument
680 Preconditions.checkNotNull(listener, "listener cannot be null"); in startBackgroundScan()
681 int key = addListener(listener); in startBackgroundScan()
695 public void stopBackgroundScan(ScanListener listener) { in stopBackgroundScan() argument
696 Preconditions.checkNotNull(listener, "listener cannot be null"); in stopBackgroundScan()
697 int key = removeListener(listener); in stopBackgroundScan()
720 public void startScan(ScanSettings settings, ScanListener listener) { in startScan() argument
721 startScan(settings, listener, null); in startScan()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DPhone.java221 public final void addListener(Listener listener) { in addListener() argument
222 mListeners.add(listener); in addListener()
230 public final void removeListener(Listener listener) { in removeListener() argument
231 if (listener != null) { in removeListener()
232 mListeners.remove(listener); in removeListener()
322 for (Listener listener : mListeners) { in fireCallAdded()
323 listener.onCallAdded(this, call); in fireCallAdded()
328 for (Listener listener : mListeners) { in fireCallRemoved()
329 listener.onCallRemoved(this, call); in fireCallRemoved()
334 for (Listener listener : mListeners) { in fireCallAudioStateChanged()
[all …]
/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/core/tests/coretests/src/android/print/
DIPrintManagerParametersTest.java423 final IPrintJobStateChangeListener listener = createMockIPrintJobStateChangeListener();
425 mIPrintManager.addPrintJobStateChangeListener(listener, mAppId, mUserId);
437 mIPrintManager.addPrintJobStateChangeListener(listener, BAD_APP_ID, mUserId);
449 final IPrintJobStateChangeListener listener = createMockIPrintJobStateChangeListener();
451 mIPrintManager.addPrintJobStateChangeListener(listener, mAppId, mUserId);
452 mIPrintManager.removePrintJobStateChangeListener(listener, mUserId);
455 mIPrintManager.removePrintJobStateChangeListener(listener, mUserId);
457 mIPrintManager.addPrintJobStateChangeListener(listener, mAppId, mUserId);
473 final IPrintServicesChangeListener listener = createMockIPrintServicesChangeListener();
475 mIPrintManager.addPrintServicesChangeListener(listener, mUserId);
[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/base/services/core/java/com/android/server/location/
DGnssStatusListenerHelper.java50 public void execute(IGnssStatusListener listener) throws RemoteException { in onStatusChanged()
51 listener.onGnssStarted(); in onStatusChanged()
57 public void execute(IGnssStatusListener listener) throws RemoteException { in onStatusChanged()
58 listener.onGnssStopped(); in onStatusChanged()
68 public void execute(IGnssStatusListener listener) throws RemoteException { in onFirstFix()
69 listener.onFirstFix(timeToFirstFix); in onFirstFix()
83 public void execute(IGnssStatusListener listener) throws RemoteException { in onSvStatusChanged()
84 listener.onSvStatusChanged( in onSvStatusChanged()
98 public void execute(IGnssStatusListener listener) throws RemoteException { in onNmeaReceived()
99 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/support/design/ics/android/support/design/widget/
DFloatingActionButtonIcs.java45 void hide(@Nullable final InternalVisibilityChangedListener listener, final boolean fromUser) { in hide() argument
48 if (listener != null) { in hide()
49 listener.onHidden(); in hide()
57 if (listener != null) { in hide()
58 listener.onHidden(); in hide()
89 if (listener != null) { in hide()
90 listener.onHidden(); in hide()
99 void show(@Nullable final InternalVisibilityChangedListener listener, final boolean fromUser) { in show() argument
123 if (listener != null) { in show()
124 listener.onShown(); in show()
[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 …]

12345678910>>...38