/frameworks/base/core/java/android/speech/ |
D | RecognitionService.java | 94 private void dispatchStartListening(Intent intent, IRecognitionListener listener) { in dispatchStartListening() argument 96 if (DBG) Log.d(TAG, "created new mCurrentCallback, listener = " + listener.asBinder()); in dispatchStartListening() 97 mCurrentCallback = new Callback(listener); in dispatchStartListening() 101 listener.onError(SpeechRecognizer.ERROR_RECOGNIZER_BUSY); in dispatchStartListening() 109 private void dispatchStopListening(IRecognitionListener listener) { in dispatchStopListening() argument 112 listener.onError(SpeechRecognizer.ERROR_CLIENT); in dispatchStopListening() 114 } else if (mCurrentCallback.mListener.asBinder() != listener.asBinder()) { in dispatchStopListening() 115 listener.onError(SpeechRecognizer.ERROR_RECOGNIZER_BUSY); in dispatchStopListening() 125 private void dispatchCancel(IRecognitionListener listener) { in dispatchCancel() argument 128 } else if (mCurrentCallback.mListener.asBinder() != listener.asBinder()) { in dispatchCancel() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pManager.java | 728 Object listener = getListener(message.arg2); in handleMessage() local 753 if (listener != null) { in handleMessage() 754 ((ActionListener) listener).onFailure(message.arg1); in handleMessage() 774 if (listener != null) { in handleMessage() 775 ((ActionListener) listener).onSuccess(); in handleMessage() 780 if (listener != null) { in handleMessage() 781 ((PeerListListener) listener).onPeersAvailable(peers); in handleMessage() 786 if (listener != null) { in handleMessage() 787 … ((ConnectionInfoListener) listener).onConnectionInfoAvailable(wifiP2pInfo); in handleMessage() 792 if (listener != null) { in handleMessage() [all …]
|
/frameworks/base/core/java/android/net/nsd/ |
D | NsdManager.java | 304 Object listener = getListener(message.arg2); in handleMessage() local 319 ((DiscoveryListener) listener).onDiscoveryStarted(s); in handleMessage() 324 ((DiscoveryListener) listener).onStartDiscoveryFailed( in handleMessage() 328 ((DiscoveryListener) listener).onServiceFound((NsdServiceInfo) message.obj); in handleMessage() 333 ((DiscoveryListener) listener).onServiceLost((NsdServiceInfo) message.obj); in handleMessage() 338 ((DiscoveryListener) listener).onStopDiscoveryFailed( in handleMessage() 342 ((DiscoveryListener) listener).onDiscoveryStopped( in handleMessage() 346 ((RegistrationListener) listener).onRegistrationFailed( in handleMessage() 350 ((RegistrationListener) listener).onServiceRegistered( in handleMessage() 356 ((RegistrationListener) listener).onUnregistrationFailed( in handleMessage() [all …]
|
/frameworks/base/core/java/android/app/ |
D | AlertDialog.java | 235 public void setButton(int whichButton, CharSequence text, OnClickListener listener) { in setButton() argument 236 mAlert.setButton(whichButton, text, listener, null); in setButton() 276 public void setButton(CharSequence text, final OnClickListener listener) { in setButton() argument 277 setButton(BUTTON_POSITIVE, text, listener); in setButton() 289 public void setButton2(CharSequence text, final OnClickListener listener) { in setButton2() argument 290 setButton(BUTTON_NEGATIVE, text, listener); in setButton2() 302 public void setButton3(CharSequence text, final OnClickListener listener) { in setButton3() argument 303 setButton(BUTTON_NEUTRAL, text, listener); in setButton3() 487 public Builder setPositiveButton(int textId, final OnClickListener listener) { in setPositiveButton() argument 489 P.mPositiveButtonListener = listener; in setPositiveButton() [all …]
|
/frameworks/support/v4/java/android/support/v4/view/accessibility/ |
D | AccessibilityManagerCompat.java | 35 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/base/services/tests/servicestests/src/com/android/server/location/ |
D | ComprehensiveCountryDetectorTest.java | 152 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/wifi/java/android/net/wifi/ |
D | WifiManager.java | 919 public void getTxPacketCount(TxPacketCountListener listener) { in getTxPacketCount() argument 921 mAsyncChannel.sendMessage(RSSI_PKTCNT_FETCH, 0, putListener(listener)); in getTxPacketCount() 1260 Object listener = removeListener(message.arg2); in handleMessage() local 1289 if (listener != null) { in handleMessage() 1290 ((ActionListener) listener).onFailure(message.arg1); in handleMessage() 1299 if (listener != null) { in handleMessage() 1300 ((ActionListener) listener).onSuccess(); in handleMessage() 1304 if (listener != null) { in handleMessage() 1306 ((WpsListener) listener).onStartSuccess(result.pin); in handleMessage() 1309 mListenerMap.put(message.arg2, listener); in handleMessage() [all …]
|
/frameworks/base/location/java/android/location/ |
D | LocationManager.java | 193 ListenerTransport(LocationListener listener, Looper looper) { in ListenerTransport() argument 194 mListener = listener; in ListenerTransport() 424 LocationListener listener) { in requestLocationUpdates() argument 426 checkListener(listener); in requestLocationUpdates() 430 requestLocationUpdates(request, listener, null, null); in requestLocationUpdates() 455 LocationListener listener, Looper looper) { in requestLocationUpdates() argument 457 checkListener(listener); in requestLocationUpdates() 461 requestLocationUpdates(request, listener, looper, null); in requestLocationUpdates() 487 LocationListener listener, Looper looper) { in requestLocationUpdates() argument 489 checkListener(listener); in requestLocationUpdates() [all …]
|
D | CountryDetector.java | 65 public ListenerTransport(CountryListener listener, Looper looper) { in ListenerTransport() argument 66 mListener = listener; in ListenerTransport() 122 public void addCountryListener(CountryListener listener, Looper looper) { in addCountryListener() argument 124 if (!mListeners.containsKey(listener)) { in addCountryListener() 125 ListenerTransport transport = new ListenerTransport(listener, looper); in addCountryListener() 128 mListeners.put(listener, transport); in addCountryListener() 139 public void removeCountryListener(CountryListener listener) { in removeCountryListener() argument 141 ListenerTransport transport = mListeners.get(listener); in removeCountryListener() 144 mListeners.remove(listener); in removeCountryListener()
|
/frameworks/base/core/java/android/os/ |
D | CancellationSignal.java | 64 final OnCancelListener listener; in cancel() local 72 listener = mOnCancelListener; in cancel() 77 if (listener != null) { in cancel() 78 listener.onCancel(); in cancel() 110 public void setOnCancelListener(OnCancelListener listener) { in setOnCancelListener() argument 114 if (mOnCancelListener == listener) { in setOnCancelListener() 117 mOnCancelListener = listener; in setOnCancelListener() 118 if (!mIsCanceled || listener == null) { in setOnCancelListener() 122 listener.onCancel(); in setOnCancelListener()
|
/frameworks/base/voip/java/android/net/sip/ |
D | SipManager.java | 218 SipRegistrationListener listener) throws SipException { in open() argument 225 createRelay(listener, localProfile.getUriString())); in open() 241 SipRegistrationListener listener) throws SipException { in setRegistrationListener() argument 244 localProfileUri, createRelay(listener, localProfileUri)); in setRegistrationListener() 321 SipProfile peerProfile, SipAudioCall.Listener listener, int timeout) in makeAudioCall() argument 327 call.setListener(listener); in makeAudioCall() 353 String peerProfileUri, SipAudioCall.Listener listener, int timeout) in makeAudioCall() argument 361 new SipProfile.Builder(peerProfileUri).build(), listener, in makeAudioCall() 381 SipAudioCall.Listener listener) throws SipException { in takeAudioCall() argument 405 call.setListener(listener); in takeAudioCall() [all …]
|
D | SipAudioCall.java | 219 public void setListener(SipAudioCall.Listener listener) { in setListener() argument 220 setListener(listener, false); in setListener() 232 public void setListener(SipAudioCall.Listener listener, in setListener() argument 234 mListener = listener; in setListener() 236 if ((listener == null) || !callbackImmediately) { in setListener() 239 listener.onError(this, mErrorCode, mErrorMessage); in setListener() 242 listener.onCallHeld(this); in setListener() 244 listener.onCallEstablished(this); in setListener() 250 listener.onReadyToCall(this); in setListener() 253 listener.onRinging(this, getPeerProfile()); in setListener() [all …]
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | SearchViewCompat.java | 37 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/base/services/java/com/android/server/ |
D | CountryDetectorService.java | 55 public Receiver(ICountryListener listener) { in Receiver() argument 56 mListener = listener; in Receiver() 57 mKey = listener.asBinder(); in Receiver() 112 public void addCountryListener(ICountryListener listener) throws RemoteException { in addCountryListener() argument 116 addListener(listener); in addCountryListener() 123 public void removeCountryListener(ICountryListener listener) throws RemoteException { in removeCountryListener() argument 127 removeListener(listener.asBinder()); in removeCountryListener() 130 private void addListener(ICountryListener listener) { in addListener() argument 132 Receiver r = new Receiver(listener); in addListener() 134 listener.asBinder().linkToDeath(r, 0); in addListener() [all …]
|
/frameworks/av/media/libstagefright/timedtext/ |
D | TimedTextPlayer.cpp | 41 TimedTextPlayer::TimedTextPlayer(const wp<MediaPlayerBase> &listener) in TimedTextPlayer() argument 42 : mListener(listener), in TimedTextPlayer() 98 sp<MediaPlayerBase> listener = mListener.promote(); in onMessageReceived() local 99 if (listener == NULL) { in onMessageReceived() 106 listener->getCurrentPosition(&positionMs); in onMessageReceived() 141 sp<MediaPlayerBase> listener = mListener.promote(); in onMessageReceived() local 142 if (listener != NULL) { in onMessageReceived() 144 listener->getCurrentPosition(&positionMs); in onMessageReceived() 271 sp<MediaPlayerBase> listener = mListener.promote(); in delayUsFromCurrentTime() local 272 if (listener == NULL) { in delayUsFromCurrentTime() [all …]
|
/frameworks/base/core/java/android/hardware/ |
D | LegacySensorManager.java | 89 public boolean registerListener(SensorListener listener, int sensors, int rate) { in registerListener() argument 90 if (listener == null) { in registerListener() 95 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result; in registerListener() 97 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result; in registerListener() 99 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener() 101 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener() 103 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result; in registerListener() 108 SensorListener listener, int sensors, int rate) { in registerLegacyListener() argument 123 LegacyListener legacyListener = mLegacyListenersMap.get(listener); in registerLegacyListener() 127 legacyListener = new LegacyListener(listener); in registerLegacyListener() [all …]
|
/frameworks/support/v4/honeycomb/android/support/v4/widget/ |
D | SearchViewCompatHoneycomb.java | 52 public static Object newOnQueryTextListener(final OnQueryTextListenerCompatBridge listener) { in newOnQueryTextListener() argument 56 return listener.onQueryTextSubmit(query); in newOnQueryTextListener() 61 return listener.onQueryTextChange(newText); in newOnQueryTextListener() 66 public static void setOnQueryTextListener(Object searchView, Object listener) { 67 ((SearchView) searchView).setOnQueryTextListener((OnQueryTextListener) listener); 70 public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) { 74 return listener.onClose(); 79 public static void setOnCloseListener(Object searchView, Object listener) { 80 ((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
|
/frameworks/base/media/java/android/media/ |
D | JetPlayer.java | 407 OnJetEventListener listener = null; in handleMessage() local 409 listener = mJet.mJetEventListener; in handleMessage() 413 if (listener != null) { in handleMessage() 428 if (listener != null) { in handleMessage() 429 listener.onJetUserIdUpdate(mJet, msg.arg1, msg.arg2); in handleMessage() 433 if (listener != null) { in handleMessage() 434 listener.onJetNumQueuedSegmentUpdate(mJet, msg.arg1); in handleMessage() 438 if (listener != null) in handleMessage() 439 listener.onJetPauseUpdate(mJet, msg.arg1); in handleMessage() 460 public void setEventListener(OnJetEventListener listener) { in setEventListener() argument [all …]
|
/frameworks/av/camera/ |
D | Camera.cpp | 330 void Camera::setListener(const sp<CameraListener>& listener) in setListener() argument 333 mListener = listener; in setListener() 336 void Camera::setRecordingProxyListener(const sp<ICameraRecordingProxyListener>& listener) in setRecordingProxyListener() argument 339 mRecordingProxyListener = listener; in setRecordingProxyListener() 353 sp<CameraListener> listener; in notifyCallback() local 356 listener = mListener; in notifyCallback() 358 if (listener != NULL) { in notifyCallback() 359 listener->notify(msgType, ext1, ext2); in notifyCallback() 367 sp<CameraListener> listener; in dataCallback() local 370 listener = mListener; in dataCallback() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceManager.java | 573 void registerOnActivityResultListener(OnActivityResultListener listener) { in registerOnActivityResultListener() argument 579 if (!mActivityResultListeners.contains(listener)) { in registerOnActivityResultListener() 580 mActivityResultListeners.add(listener); in registerOnActivityResultListener() 590 void unregisterOnActivityResultListener(OnActivityResultListener listener) { in unregisterOnActivityResultListener() argument 593 mActivityResultListeners.remove(listener); in unregisterOnActivityResultListener() 622 void registerOnActivityStopListener(OnActivityStopListener listener) { in registerOnActivityStopListener() argument 628 if (!mActivityStopListeners.contains(listener)) { in registerOnActivityStopListener() 629 mActivityStopListeners.add(listener); in registerOnActivityStopListener() 639 void unregisterOnActivityStopListener(OnActivityStopListener listener) { in unregisterOnActivityStopListener() argument 642 mActivityStopListeners.remove(listener); in unregisterOnActivityStopListener() [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
D | PhotoViewActivity.java | 214 public void addScreenListener(OnScreenListener listener) { in addScreenListener() argument 215 mScreenListeners.add(listener); in addScreenListener() 219 public void removeScreenListener(OnScreenListener listener) { in removeScreenListener() argument 220 mScreenListeners.remove(listener); in removeScreenListener() 224 public synchronized void addCursorListener(CursorChangedListener listener) { in addCursorListener() argument 225 mCursorListeners.add(listener); in addCursorListener() 229 public synchronized void removeCursorListener(CursorChangedListener listener) { in removeCursorListener() argument 230 mCursorListeners.remove(listener); in removeCursorListener() 322 for (CursorChangedListener listener : mCursorListeners) { in notifyCursorListeners() 323 listener.onCursorChanged(data); in notifyCursorListeners() [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewTreeObserver.java | 333 public void addOnGlobalFocusChangeListener(OnGlobalFocusChangeListener listener) { in addOnGlobalFocusChangeListener() argument 340 mOnGlobalFocusListeners.add(listener); in addOnGlobalFocusChangeListener() 368 public void addOnGlobalLayoutListener(OnGlobalLayoutListener listener) { in addOnGlobalLayoutListener() argument 375 mOnGlobalLayoutListeners.add(listener); in addOnGlobalLayoutListener() 418 public void addOnPreDrawListener(OnPreDrawListener listener) { in addOnPreDrawListener() argument 425 mOnPreDrawListeners.add(listener); in addOnPreDrawListener() 454 public void addOnDrawListener(OnDrawListener listener) { in addOnDrawListener() argument 461 mOnDrawListeners.add(listener); in addOnDrawListener() 490 public void addOnScrollChangedListener(OnScrollChangedListener listener) { in addOnScrollChangedListener() argument 497 mOnScrollChangedListeners.add(listener); in addOnScrollChangedListener() [all …]
|
/frameworks/ex/photoviewer/src/com/android/ex/photo/ |
D | PhotoViewActivity.java | 241 public void addScreenListener(OnScreenListener listener) { in addScreenListener() argument 242 mScreenListeners.add(listener); in addScreenListener() 245 public void removeScreenListener(OnScreenListener listener) { in removeScreenListener() argument 246 mScreenListeners.remove(listener); in removeScreenListener() 249 public synchronized void addCursorListener(CursorChangedListener listener) { in addCursorListener() argument 250 mCursorListeners.add(listener); in addCursorListener() 253 public synchronized void removeCursorListener(CursorChangedListener listener) { in removeCursorListener() argument 254 mCursorListeners.remove(listener); in removeCursorListener() 337 for (CursorChangedListener listener : mCursorListeners) { in notifyCursorListeners() 338 listener.onCursorChanged(data); in notifyCursorListeners() [all …]
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 127 public int addListener(OnObbStateChangeListener listener) { in addListener() argument 128 final ObbListenerDelegate delegate = new ObbListenerDelegate(listener); in addListener() 151 ObbListenerDelegate(OnObbStateChangeListener listener) { in ObbListenerDelegate() argument 153 mObbEventListenerRef = new WeakReference<OnObbStateChangeListener>(listener); in ObbListenerDelegate() 259 ListenerDelegate(StorageEventListener listener) { in ListenerDelegate() argument 260 mStorageEventListener = listener; in ListenerDelegate() 328 public void registerListener(StorageEventListener listener) { in registerListener() argument 329 if (listener == null) { in registerListener() 343 mListeners.add(new ListenerDelegate(listener)); in registerListener() 354 public void unregisterListener(StorageEventListener listener) { in unregisterListener() argument [all …]
|
/frameworks/base/services/java/com/android/server/location/ |
D | LocationBasedCountryDetector.java | 97 protected void registerListener(String provider, LocationListener listener) { in registerListener() argument 98 mLocationManager.requestLocationUpdates(provider, 0, 0, listener); in registerListener() 104 protected void unregisterListener(LocationListener listener) { in unregisterListener() argument 105 mLocationManager.removeUpdates(listener); in unregisterListener() 160 LocationListener listener = new LocationListener () { in detectCountry() local 178 mLocationListeners.add(listener); in detectCountry() 179 registerListener(provider, listener); in detectCountry() 207 for (LocationListener listener : mLocationListeners) { in stop() 208 unregisterListener(listener); in stop()
|