Searched refs:listener (Results 226 - 250 of 590) sorted by relevance

1234567891011>>

/frameworks/native/services/surfaceflinger/
H A DDispSync.cpp156 EventListener listener; local
157 listener.mPhase = phase;
158 listener.mCallback = callback;
165 listener.mLastEventTime = systemTime(SYSTEM_TIME_MONOTONIC) - mPeriod / 2;
167 mEventListeners.push(listener);
241 nsecs_t computeListenerNextEventTimeLocked(const EventListener& listener, argument
244 nsecs_t lastEventTime = listener.mLastEventTime;
249 nsecs_t phase = mPhase + listener.mPhase;
252 if (t - listener.mLastEventTime < mPeriod / 2) {
/frameworks/base/media/java/android/media/session/
H A DMediaSessionManager.java99 * your app is an enabled notification listener using the
101 * {@link ComponentName} of your enabled listener.
103 * @param notificationListener The enabled notification listener component.
117 * listener you may only get sessions for the users you are enabled for.
119 * @param notificationListener The enabled notification listener component.
143 * Add a listener to be notified when the list of active sessions
147 * enabled notification listener using the
149 * {@link ComponentName} of your enabled listener. Updates will be posted to
150 * the thread that registered the listener.
152 * @param sessionListener The listener t
229 removeOnActiveSessionsChangedListener( @onNull OnActiveSessionsChangedListener listener) argument
333 SessionsChangedWrapper(OnActiveSessionsChangedListener listener, Handler handler) argument
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayPowerState.java244 * Otherwise, returns false and promises to invoke the specified listener
246 * The listener always overrides any previously set listener.
248 public boolean waitUntilClean(Runnable listener) { argument
250 mCleanListener = listener;
295 final Runnable listener = mCleanListener;
296 if (listener != null && mScreenReady && mColorFadeReady) {
298 listener.run();
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DMediaDecoder.java40 * Notifies a listener when a decoded video frame is available. The listener should use
47 * Notifies a listener when one or more audio samples are available. The listener should use
53 * Notifies a listener that decoding has started. This method is called on the decoder
59 * Notifies a listener that decoding has stopped. This method is called on the decoder
65 * Notifies a listener that an error occurred. If an error occurs, {@link MediaDecoder} is
114 public MediaDecoder(Context context, Uri uri, Listener listener) { argument
115 this(context, uri, 0, listener);
118 public MediaDecoder(Context context, Uri uri, long startMicros, Listener listener) { argument
[all...]
/frameworks/native/include/media/drm/
H A DDrmAPI.h311 status_t setListener(const sp<DrmPluginListener>& listener) { argument
313 mListener = listener;
343 sp<DrmPluginListener> listener = mListener; local
346 if (listener != NULL) {
347 listener->sendEvent(eventType, extra, sessionId, data);
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewController.java454 public void addScreenListener(int position, OnScreenListener listener) { argument
455 mScreenListeners.put(position, listener);
464 public synchronized void addCursorListener(CursorChangedListener listener) { argument
465 mCursorListeners.add(listener);
469 public synchronized void removeCursorListener(CursorChangedListener listener) { argument
470 mCursorListeners.remove(listener);
609 for (CursorChangedListener listener : mCursorListeners) {
610 listener.onCursorChanged(data);
656 for (OnScreenListener listener : mScreenListeners.values()) {
658 interceptLeft = listener
[all...]
/frameworks/webview/chromium/java/com/android/webview/chromium/
H A DWebViewDelegateFactory.java47 void setOnTraceEnabledChangeListener(final OnTraceEnabledChangeListener listener); argument
113 public void setOnTraceEnabledChangeListener(final OnTraceEnabledChangeListener listener) { argument
118 listener.onTraceEnabledChange(enabled);
230 public void setOnTraceEnabledChangeListener(final OnTraceEnabledChangeListener listener) { argument
235 listener.onTraceEnabledChange(isTraceTagEnabled());
/frameworks/base/media/java/android/media/
H A DMediaPlayer.java168 * above), even if an error listener has not been registered by the application.</li>
2692 * @param listener the callback that will be run
2694 public void setOnPreparedListener(OnPreparedListener listener) argument
2696 mOnPreparedListener = listener;
2719 * @param listener the callback that will be run
2721 public void setOnCompletionListener(OnCompletionListener listener) argument
2723 mOnCompletionListener = listener;
2753 * @param listener the callback that will be run.
2755 public void setOnBufferingUpdateListener(OnBufferingUpdateListener listener) argument
2757 mOnBufferingUpdateListener = listener;
2782 setOnSeekCompleteListener(OnSeekCompleteListener listener) argument
2814 setOnVideoSizeChangedListener(OnVideoSizeChangedListener listener) argument
2843 setOnTimedTextListener(OnTimedTextListener listener) argument
2868 setOnSubtitleDataListener(OnSubtitleDataListener listener) argument
2943 setOnErrorListener(OnErrorListener listener) argument
3065 setOnInfoListener(OnInfoListener listener) argument
3244 registerListener(MediaTimeProvider.OnMediaTimeListener listener) argument
3270 notifyAt( long timeUs, MediaTimeProvider.OnMediaTimeListener listener) argument
3279 scheduleUpdate(MediaTimeProvider.OnMediaTimeListener listener) argument
3291 cancelNotifications( MediaTimeProvider.OnMediaTimeListener listener) argument
[all...]
/frameworks/av/include/camera/
H A DCamera.h132 void setListener(const sp<CameraListener>& listener);
133 void setRecordingProxyListener(const sp<ICameraRecordingProxyListener>& listener);
158 virtual status_t startRecording(const sp<ICameraRecordingProxyListener>& listener);
H A DICameraService.h88 // - Errors: ALREADY_EXISTS if the listener was already added
89 virtual status_t addListener(const sp<ICameraServiceListener>& listener)
92 // - Errors: BAD_VALUE if specified listener was not in the listener list
93 virtual status_t removeListener(const sp<ICameraServiceListener>& listener)
/frameworks/base/core/java/android/gesture/
H A DGestureOverlayView.java332 public void addOnGestureListener(OnGestureListener listener) { argument
333 mOnGestureListeners.add(listener);
336 public void removeOnGestureListener(OnGestureListener listener) { argument
337 mOnGestureListeners.remove(listener);
344 public void addOnGesturePerformedListener(OnGesturePerformedListener listener) { argument
345 mOnGesturePerformedListeners.add(listener);
351 public void removeOnGesturePerformedListener(OnGesturePerformedListener listener) { argument
352 mOnGesturePerformedListeners.remove(listener);
363 public void addOnGesturingListener(OnGesturingListener listener) { argument
364 mOnGesturingListeners.add(listener);
367 removeOnGesturingListener(OnGesturingListener listener) argument
[all...]
/frameworks/base/core/java/android/print/
H A DPrintManager.java198 PrintJobStateChangeListener listener = wrapper.getListener();
199 if (listener != null) {
201 listener.onPrintJobStateChanged(printJobId);
236 * Adds a listener for observing the state of print jobs.
238 * @param listener The listener to add.
241 public void addPrintJobStateChangeListener(PrintJobStateChangeListener listener) { argument
251 new PrintJobStateChangeListenerWrapper(listener, mHandler);
254 mPrintJobStateChangeListeners.put(listener, wrappedListener);
256 Log.e(LOG_TAG, "Error adding print job state change listener", r
266 removePrintJobStateChangeListener(PrintJobStateChangeListener listener) argument
1039 PrintJobStateChangeListenerWrapper(PrintJobStateChangeListener listener, Handler handler) argument
[all...]
/frameworks/base/core/java/android/transition/
H A DTranslationAnimationCreator.java74 TransitionPositionListener listener = new TransitionPositionListener(view, values.view,
76 anim.addListener(listener);
77 anim.addPauseListener(listener);
/frameworks/base/core/java/android/view/textservice/
H A DTextServicesManager.java113 * @param listener a spell checker session lister for getting results from a spell checker.
119 SpellCheckerSessionListener listener, boolean referToSpellCheckerLanguageSettings) {
120 if (listener == null) {
173 sci, sService, listener, subtypeInUse);
118 newSpellCheckerSession(Bundle bundle, Locale locale, SpellCheckerSessionListener listener, boolean referToSpellCheckerLanguageSettings) argument
/frameworks/base/libs/hwui/
H A DAnimator.h52 ANDROID_API void setListener(AnimationListener* listener) { argument
53 mListener = listener;
55 AnimationListener* listener() { return mListener.get(); } function in class:android::uirenderer::BaseRenderNodeAnimator
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
H A DBlockingSessionCallback.java34 * A camera session listener that implements blocking operations on session state changes.
92 * Create a blocking session listener without forwarding the session listener invocations
93 * to another session listener.
100 * Create a blocking session listener; forward original listener invocations
101 * into {@code listener}.
103 * @param listener a non-{@code null} listener to forward invocations into
105 * @throws NullPointerException if {@code listener} wa
107 BlockingSessionCallback(CameraCaptureSession.StateCallback listener) argument
[all...]
/frameworks/av/cmds/stagefright/
H A Dstream.cpp50 virtual void setListener(const sp<IStreamListener> &listener);
84 void MyStreamSource::setListener(const sp<IStreamListener> &listener) { argument
85 mListener = listener;
130 virtual void setListener(const sp<IStreamListener> &listener);
194 const sp<IStreamListener> &listener) {
195 mListener = listener;
193 setListener( const sp<IStreamListener> &listener) argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraBinderTest.java332 ICameraServiceListener listener = new DummyCameraServiceListener();
336 mUtils.getCameraService().removeListener(listener) ==
340 mUtils.getCameraService().addListener(listener) ==
344 mUtils.getCameraService().addListener(listener) ==
349 mUtils.getCameraService().removeListener(listener) ==
353 mUtils.getCameraService().removeListener(listener) ==
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
H A DLocationBasedCountryDetectorTest.java96 protected void registerListener(String provider, LocationListener listener) { argument
98 mListeners.put(provider, listener);
102 protected void unregisterListener(LocationListener listener) { argument
104 if (entry.getValue().equals(listener)) {
130 for (LocationListener listener :listeners) {
131 listener.onLocationChanged(mLocation);
/frameworks/av/include/common_time/
H A DICommonClock.h87 const sp<ICommonClockListener>& listener) = 0;
89 const sp<ICommonClockListener>& listener) = 0;
/frameworks/av/media/common_time/
H A DICommonClock.cpp206 const sp<ICommonClockListener>& listener) {
209 data.writeStrongBinder(listener->asBinder());
221 const sp<ICommonClockListener>& listener) {
224 data.writeStrongBinder(listener->asBinder());
376 sp<ICommonClockListener> listener = local
378 status_t status = registerListener(listener);
385 sp<ICommonClockListener> listener = local
387 status_t status = unregisterListener(listener);
205 registerListener( const sp<ICommonClockListener>& listener) argument
220 unregisterListener( const sp<ICommonClockListener>& listener) argument
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3Stream.h237 * Add a camera3 buffer listener. Adding the same listener twice has
241 wp<Camera3StreamBufferListener> listener);
244 * Remove a camera3 buffer listener. Removing the same listener twice
245 * or the listener that was never added has no effect.
248 const sp<Camera3StreamBufferListener>& listener);
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiAutomatorBridge.java61 public void setOnAccessibilityEventListener(OnAccessibilityEventListener listener) { argument
62 mUiAutomation.setOnAccessibilityEventListener(listener);
/frameworks/base/core/java/android/hardware/display/
H A DDisplayManagerInternal.java71 * Registers a display transaction listener to provide the client a chance to
74 * @param listener The listener to register.
76 public abstract void registerDisplayTransactionListener(DisplayTransactionListener listener); argument
79 * Unregisters a display transaction listener to provide the client a chance to
82 * @param listener The listener to unregister.
84 public abstract void unregisterDisplayTransactionListener(DisplayTransactionListener listener); argument
/frameworks/base/core/java/android/hardware/input/
H A DIInputManager.aidl60 // Registers an input devices changed listener.
61 void registerInputDevicesChangedListener(IInputDevicesChangedListener listener);

Completed in 1492 milliseconds

1234567891011>>