/frameworks/opt/net/ims/src/java/com/android/ims/internal/ |
H A D | ImsStreamMediaSession.java | 42 ImsStreamMediaSession(IImsStreamMediaSession mediaSession, Listener listener) { argument 44 setListener(listener); 48 * Sets the listener to listen to the media session events. A {@code ImsStreamMediaSession} 49 * can only hold one listener at a time. Subsequent calls to this method 50 * override the previous listener. 52 * @param listener to listen to the media session events of this object 54 public void setListener(Listener listener) { argument 55 mListener = listener;
|
/frameworks/support/compat/java/android/support/v4/os/ |
H A D | CancellationSignal.java | 61 * Cancels the operation and signals the cancellation listener. 65 final OnCancelListener listener; 73 listener = mOnCancelListener; 78 if (listener != null) { 79 listener.onCancel(); 93 * Sets the cancellation listener to be called when canceled. 101 * listener is invoked immediately. 103 * This method is guaranteed that the listener will not be called after it 106 * @param listener The cancellation listener, o 108 setOnCancelListener(OnCancelListener listener) argument [all...] |
/frameworks/base/core/java/android/speech/ |
H A D | IRecognitionService.aidl | 35 * one listener only, therefore, if this function is called from two different threads, 41 * @param listener to receive callbacks, note that this must be non-null 43 void startListening(in Intent recognizerIntent, in IRecognitionListener listener); 50 * @param listener to receive callbacks, note that this must be non-null 52 void stopListening(in IRecognitionListener listener); 57 * @param listener to receive callbacks, note that this must be non-null 59 void cancel(in IRecognitionListener listener);
|
H A D | RecognitionService.java | 97 private void dispatchStartListening(Intent intent, final IRecognitionListener listener, argument 100 if (DBG) Log.d(TAG, "created new mCurrentCallback, listener = " + listener.asBinder()); 102 listener.asBinder().linkToDeath(new IBinder.DeathRecipient() { 105 mHandler.sendMessage(mHandler.obtainMessage(MSG_CANCEL, listener)); 109 Log.e(TAG, "dead listener on startListening"); 112 mCurrentCallback = new Callback(listener, callingUid); 116 listener.onError(SpeechRecognizer.ERROR_RECOGNIZER_BUSY); 124 private void dispatchStopListening(IRecognitionListener listener) { argument 127 listener 140 dispatchCancel(IRecognitionListener listener) argument 162 StartListeningArgs(Intent intent, IRecognitionListener listener, int callingUid) argument 175 checkPermissions(IRecognitionListener listener) argument 198 onStartListening(Intent recognizerIntent, Callback listener) argument 203 onCancel(Callback listener) argument 210 onStopListening(Callback listener) argument 236 Callback(IRecognitionListener listener, int callingUid) argument 342 startListening(Intent recognizerIntent, IRecognitionListener listener) argument 353 stopListening(IRecognitionListener listener) argument 363 cancel(IRecognitionListener listener) argument [all...] |
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
H A D | PlaybackOverlayActivity.java | 35 for (PictureInPictureListener listener : mListeners) { 36 listener.onPictureInPictureModeChanged(isInPictureInPictureMode); 40 public void registerPictureInPictureListener(PictureInPictureListener listener) { argument 41 mListeners.add(listener); 44 public void unregisterPictureInPictureListener(PictureInPictureListener listener) { argument 45 mListeners.remove(listener);
|
H A D | PlaybackOverlaySupportActivity.java | 37 for (PictureInPictureListener listener : mListeners) { 38 listener.onPictureInPictureModeChanged(isInPictureInPictureMode); 42 public void registerPictureInPictureListener(PictureInPictureListener listener) { argument 43 mListeners.add(listener); 46 public void unregisterPictureInPictureListener(PictureInPictureListener listener) { argument 47 mListeners.remove(listener);
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
H A D | PlaybackOverlayActivity.java | 35 for (PictureInPictureListener listener : mListeners) { 36 listener.onPictureInPictureModeChanged(isInPictureInPictureMode); 40 public void registerPictureInPictureListener(PictureInPictureListener listener) { argument 41 mListeners.add(listener); 44 public void unregisterPictureInPictureListener(PictureInPictureListener listener) { argument 45 mListeners.remove(listener);
|
H A D | PlaybackOverlaySupportActivity.java | 37 for (PictureInPictureListener listener : mListeners) { 38 listener.onPictureInPictureModeChanged(isInPictureInPictureMode); 42 public void registerPictureInPictureListener(PictureInPictureListener listener) { argument 43 mListeners.add(listener); 46 public void unregisterPictureInPictureListener(PictureInPictureListener listener) { argument 47 mListeners.remove(listener);
|
/frameworks/base/location/java/android/location/ |
H A D | ICountryDetector.aidl | 36 * Add a listener to receive the notification when the country is detected or changed. 38 void addCountryListener(in ICountryListener listener); 41 * Remove the listener 43 void removeCountryListener(in ICountryListener listener);
|
H A D | CountryDetector.java | 63 public ListenerTransport(CountryListener listener, Looper looper) { argument 64 mListener = listener; 112 * Add a listener to receive the notification when the country is detected 115 * @param listener will be called when the country is detected or changed. 120 public void addCountryListener(CountryListener listener, Looper looper) { argument 122 if (!mListeners.containsKey(listener)) { 123 ListenerTransport transport = new ListenerTransport(listener, looper); 126 mListeners.put(listener, transport); 135 * Remove the listener 137 public void removeCountryListener(CountryListener listener) { argument [all...] |
H A D | LocalListenerHelper.java | 49 public boolean add(@NonNull TListener listener, Handler handler) { argument 50 Preconditions.checkNotNull(listener); 59 Log.e(mTag, "Error handling first listener.", e); 63 Log.e(mTag, "Unable to register listener transport."); 67 if (mListeners.containsKey(listener)) { 70 mListeners.put(listener, handler); 75 public void remove(@NonNull TListener listener) { argument 76 Preconditions.checkNotNull(listener); 78 boolean removed = mListeners.containsKey(listener); 79 mListeners.remove(listener); 95 execute(TListener listener) argument 102 executeOperation(ListenerOperation<TListener> operation, TListener listener) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaTimeProvider.java | 28 * Cancels all previous notification request from this listener if any. It 29 * registers the listener to get seek and stop notifications. If timeUs is 30 * not negative, it also registers the listener for a timed event 38 public void notifyAt(long timeUs, OnMediaTimeListener listener); argument 41 * Cancels all previous notification request from this listener if any. It 42 * registers the listener to get seek and stop notifications. If the media 43 * is stopped, the listener will immediately receive a stop notification. 46 public void scheduleUpdate(OnMediaTimeListener listener); argument 49 * Cancels all previous notification request from this listener if any. 51 public void cancelNotifications(OnMediaTimeListener listener); argument [all...] |
H A D | AudioRouting.java | 54 * @param listener The {@link AudioRouting.OnRoutingChangedListener} interface to receive 60 public void addOnRoutingChangedListener(OnRoutingChangedListener listener, argument 66 * @param listener The previously added {@link AudioRouting.OnRoutingChangedListener} interface 69 public void removeOnRoutingChangedListener(OnRoutingChangedListener listener); argument
|
/frameworks/base/tests/Assist/src/com/android/test/assist/ |
H A D | AssistRecognitionService.java | 28 protected void onStartListening(Intent recognizerIntent, Callback listener) { argument 32 protected void onCancel(Callback listener) { argument 36 protected void onStopListening(Callback listener) { argument
|
/frameworks/native/libs/gui/ |
H A D | BufferQueue.cpp | 36 sp<ConsumerListener> listener(mConsumerListener.promote()); 37 if (listener != NULL) { 38 listener->onFrameAvailable(item); 44 sp<ConsumerListener> listener(mConsumerListener.promote()); 45 if (listener != NULL) { 46 listener->onFrameReplaced(item); 51 sp<ConsumerListener> listener(mConsumerListener.promote()); 52 if (listener != NULL) { 53 listener->onBuffersReleased(); 58 sp<ConsumerListener> listener(mConsumerListene [all...] |
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | GnssStatusListenerHelper.java | 50 public void execute(IGnssStatusListener listener) throws RemoteException { 51 listener.onGnssStarted(); 57 public void execute(IGnssStatusListener listener) throws RemoteException { 58 listener.onGnssStopped(); 68 public void execute(IGnssStatusListener listener) throws RemoteException { 69 listener.onFirstFix(timeToFirstFix); 83 public void execute(IGnssStatusListener listener) throws RemoteException { 84 listener.onSvStatusChanged( 98 public void execute(IGnssStatusListener listener) throws RemoteException { 99 listener [all...] |
/frameworks/support/compat/kitkat/android/support/v4/view/ |
H A D | ViewPropertyAnimatorCompatKK.java | 24 final ViewPropertyAnimatorUpdateListener listener) { 26 if (listener != null) { 30 listener.onAnimationUpdate(view); 23 setUpdateListener(final View view, final ViewPropertyAnimatorUpdateListener listener) argument
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | TaskSingleDrainer.java | 40 * Create a new task drainer; {@code onDrained} callbacks will be posted to the listener 44 * @param listener a non-{@code null} listener where {@code onDrained} will be called 46 public TaskSingleDrainer(Handler handler, DrainListener listener) { argument 47 mTaskDrainer = new TaskDrainer<>(handler, listener); 51 * Create a new task drainer; {@code onDrained} callbacks will be posted to the listener 55 * @param listener a non-{@code null} listener where {@code onDrained} will be called 58 public TaskSingleDrainer(Handler handler, DrainListener listener, String name) { argument 59 mTaskDrainer = new TaskDrainer<>(handler, listener, nam [all...] |
/frameworks/base/core/java/android/net/ |
H A D | IEthernetManager.aidl | 32 void addListener(in IEthernetServiceListener listener); 33 void removeListener(in IEthernetServiceListener listener);
|
/frameworks/base/core/java/android/os/ |
H A D | CancellationSignal.java | 59 * Cancels the operation and signals the cancellation listener. 63 final OnCancelListener listener; 71 listener = mOnCancelListener; 76 if (listener != null) { 77 listener.onCancel(); 94 * Sets the cancellation listener to be called when canceled. 102 * listener is invoked immediately. 104 * This method is guaranteed that the listener will not be called after it 107 * @param listener The cancellation listener, o 109 setOnCancelListener(OnCancelListener listener) argument [all...] |
H A D | IBatteryPropertiesRegistrar.aidl | 27 void registerListener(IBatteryPropertiesListener listener); 28 void unregisterListener(IBatteryPropertiesListener listener);
|
/frameworks/base/core/java/android/widget/ |
H A D | DatePickerController.java | 30 void registerOnDateChangedListener(OnDateChangedListener listener); argument
|
/frameworks/support/compat/java/android/support/v4/view/accessibility/ |
H A D | AccessibilityManagerCompat.java | 38 AccessibilityStateChangeListener listener); 40 AccessibilityStateChangeListener listener); 42 AccessibilityStateChangeListener listener); 49 TouchExplorationStateChangeListener listener); 51 TouchExplorationStateChangeListener listener); 53 TouchExplorationStateChangeListener listener); 59 AccessibilityStateChangeListener listener) { 65 AccessibilityStateChangeListener listener) { 71 AccessibilityStateChangeListener listener) { 94 TouchExplorationStateChangeListener listener) { 37 newAccessibilityStateChangeListener( AccessibilityStateChangeListener listener) argument 39 addAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityStateChangeListener listener) argument 41 removeAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityStateChangeListener listener) argument 48 newTouchExplorationStateChangeListener( TouchExplorationStateChangeListener listener) argument 50 addTouchExplorationStateChangeListener(AccessibilityManager manager, TouchExplorationStateChangeListener listener) argument 52 removeTouchExplorationStateChangeListener(AccessibilityManager manager, TouchExplorationStateChangeListener listener) argument 58 newAccessibilityStateChangeListener( AccessibilityStateChangeListener listener) argument 64 addAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityStateChangeListener listener) argument 70 removeAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityStateChangeListener listener) argument 93 newTouchExplorationStateChangeListener( TouchExplorationStateChangeListener listener) argument 99 addTouchExplorationStateChangeListener(AccessibilityManager manager, TouchExplorationStateChangeListener listener) argument 105 removeTouchExplorationStateChangeListener(AccessibilityManager manager, TouchExplorationStateChangeListener listener) argument 113 newAccessibilityStateChangeListener( final AccessibilityStateChangeListener listener) argument 125 addAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityStateChangeListener listener) argument 132 removeAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityStateChangeListener listener) argument 159 newTouchExplorationStateChangeListener( final TouchExplorationStateChangeListener listener) argument 171 addTouchExplorationStateChangeListener(AccessibilityManager manager, TouchExplorationStateChangeListener listener) argument 178 removeTouchExplorationStateChangeListener(AccessibilityManager manager, TouchExplorationStateChangeListener listener) argument 205 addAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityStateChangeListener listener) argument 217 removeAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityStateChangeListener listener) argument 269 addTouchExplorationStateChangeListener(AccessibilityManager manager, TouchExplorationStateChangeListener listener) argument 280 removeTouchExplorationStateChangeListener(AccessibilityManager manager, TouchExplorationStateChangeListener listener) argument [all...] |
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
H A D | Renderer.java | 149 public void registerListener(Listener listener) { argument 150 if (!mListeners.contains(listener)) { 151 mListeners.add(listener); 155 public void unregisterListener(Listener listener) { argument 156 mListeners.remove(listener); 164 for (Listener listener : mListeners) { 165 listener.onError(type, extra, extras, error); 170 for (Listener listener : mListeners) { 171 listener.onStateChanged(newState); 176 for (Listener listener [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pManager.java | 52 * <p> The API is asynchronous and responses to requests from an application are on listener 112 * The application is notified of a result of service discovery request through listener callbacks 691 Object listener = getListener(message.arg2); 721 if (listener != null) { 722 ((ActionListener) listener).onFailure(message.arg1); 747 if (listener != null) { 748 ((ActionListener) listener).onSuccess(); 753 if (listener != null) { 754 ((PeerListListener) listener).onPeersAvailable(peers); 759 if (listener ! 837 putListener(Object listener) argument 885 initialize(Context srcContext, Looper srcLooper, ChannelListener listener) argument 893 initializeInternal(Context srcContext, Looper srcLooper, ChannelListener listener) argument 898 initalizeChannel(Context srcContext, Looper srcLooper, ChannelListener listener, Messenger messenger) argument 930 discoverPeers(Channel c, ActionListener listener) argument 946 stopPeerDiscovery(Channel c, ActionListener listener) argument 973 connect(Channel c, WifiP2pConfig config, ActionListener listener) argument 990 cancelConnect(Channel c, ActionListener listener) argument 1014 createGroup(Channel c, ActionListener listener) argument 1031 removeGroup(Channel c, ActionListener listener) argument 1037 listen(Channel c, boolean enable, ActionListener listener) argument 1044 setWifiP2pChannels(Channel c, int lc, int oc, ActionListener listener) argument 1062 startWps(Channel c, WpsInfo wps, ActionListener listener) argument 1088 addLocalService(Channel c, WifiP2pServiceInfo servInfo, ActionListener listener) argument 1106 removeLocalService(Channel c, WifiP2pServiceInfo servInfo, ActionListener listener) argument 1124 clearLocalServices(Channel c, ActionListener listener) argument 1140 setServiceResponseListener(Channel c, ServiceResponseListener listener) argument 1172 setUpnpServiceResponseListener(Channel c, UpnpServiceResponseListener listener) argument 1197 discoverServices(Channel c, ActionListener listener) argument 1221 addServiceRequest(Channel c, WifiP2pServiceRequest req, ActionListener listener) argument 1241 removeServiceRequest(Channel c, WifiP2pServiceRequest req, ActionListener listener) argument 1260 clearServiceRequests(Channel c, ActionListener listener) argument 1272 requestPeers(Channel c, PeerListListener listener) argument 1283 requestConnectionInfo(Channel c, ConnectionInfoListener listener) argument 1294 requestGroupInfo(Channel c, GroupInfoListener listener) argument 1305 setDeviceName(Channel c, String devName, ActionListener listener) argument 1313 setWFDInfo( Channel c, WifiP2pWfdInfo wfdInfo, ActionListener listener) argument 1338 deletePersistentGroup(Channel c, int netId, ActionListener listener) argument 1350 requestPersistentGroupInfo(Channel c, PersistentGroupInfoListener listener) argument 1404 getNfcHandoverRequest(Channel c, HandoverMessageListener listener) argument 1414 getNfcHandoverSelect(Channel c, HandoverMessageListener listener) argument 1422 initiatorReportNfcHandover(Channel c, String handoverSelect, ActionListener listener) argument 1435 responderReportNfcHandover(Channel c, String handoverRequest, ActionListener listener) argument [all...] |