Searched refs:listener (Results 176 - 200 of 809) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/preference/
H A DPreferenceManager.java696 * Registers a listener.
700 void registerOnActivityResultListener(OnActivityResultListener listener) { argument
706 if (!mActivityResultListeners.contains(listener)) {
707 mActivityResultListeners.add(listener);
713 * Unregisters a listener.
717 void unregisterOnActivityResultListener(OnActivityResultListener listener) { argument
720 mActivityResultListeners.remove(listener);
745 * Registers a listener.
750 public void registerOnActivityStopListener(OnActivityStopListener listener) { argument
756 if (!mActivityStopListeners.contains(listener)) {
768 unregisterOnActivityStopListener(OnActivityStopListener listener) argument
799 registerOnActivityDestroyListener(OnActivityDestroyListener listener) argument
816 unregisterOnActivityDestroyListener(OnActivityDestroyListener listener) argument
917 setOnPreferenceTreeClickListener(OnPreferenceTreeClickListener listener) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DFilter.java92 * <p>Upon completion, the listener is notified.</p>
95 * @param listener a listener notified upon completion of the operation
101 public final void filter(CharSequence constraint, FilterListener listener) { argument
118 args.listener = listener;
273 * to post the results back in the UI and then notifying the listener,
283 if (args.listener != null) {
285 args.listener.onFilterComplete(count);
301 * <p>The listener t
303 FilterListener listener; field in class:Filter.RequestArguments
[all...]
H A DPopupMenu.java151 * When the listener is set on a view, touching that view and dragging
161 * @return a touch listener that controls drag-to-open behavior
239 * Sets a listener that will be notified when the user selects an item from
242 * @param listener the listener to notify
244 public void setOnMenuItemClickListener(OnMenuItemClickListener listener) { argument
245 mMenuItemClickListener = listener;
249 * Sets a listener that will be notified when this menu is dismissed.
251 * @param listener the listener t
253 setOnDismissListener(OnDismissListener listener) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DProgressReporter.java78 * reported to the given listener.
85 * Add given listener to watch for progress events. The current state will
86 * be immediately dispatched to the given listener.
88 public void addListener(@Nullable IProgressListener listener) { argument
89 if (listener == null) return;
91 mListeners.register(listener);
98 listener.onStarted(mId, null);
99 listener.onProgress(mId, mProgress, mExtras);
105 listener.onFinished(mId, null);
/frameworks/base/libs/common_time/
H A Dcommon_clock_service.cpp95 const sp<ICommonClockListener>& listener) {
102 if (IInterface::asBinder(mListeners[i]) == IInterface::asBinder(listener))
107 mListeners.add(listener);
109 return IInterface::asBinder(listener)->linkToDeath(this);
113 const sp<ICommonClockListener>& listener) {
120 if (IInterface::asBinder(mListeners[i]) == IInterface::asBinder(listener)) {
94 registerListener( const sp<ICommonClockListener>& listener) argument
112 unregisterListener( const sp<ICommonClockListener>& listener) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DAnimationProps.java80 Animator.AnimatorListener listener) {
81 this(0, duration, interpolator, listener);
97 Animator.AnimatorListener listener) {
101 setListener(listener);
234 * Sets an animator listener for this animation.
236 public AnimationProps setListener(Animator.AnimatorListener listener) { argument
237 mListener = listener;
242 * Returns the animator listener for this animation.
79 AnimationProps(int duration, Interpolator interpolator, Animator.AnimatorListener listener) argument
96 AnimationProps(int startDelay, int duration, Interpolator interpolator, Animator.AnimatorListener listener) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DCallbackHandler.java63 for (EmergencyListener listener : mEmergencyListeners) {
64 listener.setEmergencyCallsOnly(msg.arg1 != 0);
171 public void setListening(EmergencyListener listener, boolean listening) { argument
172 obtainMessage(MSG_ADD_REMOVE_EMERGENCY, listening ? 1 : 0, 0, listener).sendToTarget();
175 public void setListening(SignalCallback listener, boolean listening) { argument
176 obtainMessage(MSG_ADD_REMOVE_SIGNAL, listening ? 1 : 0, 0, listener).sendToTarget();
/frameworks/native/services/inputflinger/
H A DInputListener.h33 virtual void notify(const sp<InputListenerInterface>& listener) const = 0;
49 virtual void notify(const sp<InputListenerInterface>& listener) const;
76 virtual void notify(const sp<InputListenerInterface>& listener) const;
113 virtual void notify(const sp<InputListenerInterface>& listener) const;
133 virtual void notify(const sp<InputListenerInterface>& listener) const;
151 virtual void notify(const sp<InputListenerInterface>& listener) const;
173 * An implementation of the listener interface that queues up and defers dispatch
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
H A DEthernetServiceImpl.java143 * Addes a listener.
144 * @param listener A {@link IEthernetServiceListener} to add.
146 public void addListener(IEthernetServiceListener listener) { argument
147 if (listener == null) {
148 throw new IllegalArgumentException("listener must not be null");
151 mListeners.register(listener);
155 * Removes a listener.
156 * @param listener A {@link IEthernetServiceListener} to remove.
158 public void removeListener(IEthernetServiceListener listener) { argument
159 if (listener
[all...]
/frameworks/opt/net/ims/src/java/com/android/ims/
H A DImsConfig.java602 * @param listener, provided to be notified for the feature on/off status.
608 ImsConfigListener listener) throws ImsException {
611 ", listener =" + listener);
614 miConfig.getFeatureValue(feature, network, listener);
627 * @param listener, provided if caller needs to be notified for set result.
633 ImsConfigListener listener) throws ImsException {
636 ", value =" + value + ", listener =" + listener);
639 miConfig.setFeatureValue(feature, network, value, listener);
607 getFeatureValue(int feature, int network, ImsConfigListener listener) argument
632 setFeatureValue(int feature, int network, int value, ImsConfigListener listener) argument
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DMockAlarmManager.java141 AlarmManager.OnAlarmListener listener, Handler handler) {
143 new AlarmListenerRunnable(listener, handler)));
148 public void answer(AlarmManager.OnAlarmListener listener) { argument
155 if (alarmCallback.getListener() == listener) {
166 public AlarmListenerRunnable(AlarmManager.OnAlarmListener listener, Handler handler) { argument
167 mListener = listener;
140 answer(int type, long triggerAtMillis, String tag, AlarmManager.OnAlarmListener listener, Handler handler) argument
/frameworks/av/include/camera/
H A DCameraBase.h81 void setListener(const sp<TCamListener>& listener);
90 const sp<::android::hardware::ICameraServiceListener>& listener);
93 const sp<::android::hardware::ICameraServiceListener>& listener);
/frameworks/base/core/java/android/view/accessibility/
H A DCaptioningManager.java144 * Adds a listener for changes in the user's preferred captioning enabled
147 * @param listener the listener to add
149 public void addCaptioningChangeListener(@NonNull CaptioningChangeListener listener) { argument
164 mListeners.add(listener);
173 * Removes a listener previously added using
176 * @param listener the listener to remove
178 public void removeCaptioningChangeListener(@NonNull CaptioningChangeListener listener) { argument
180 mListeners.remove(listener);
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DRenderNodeTests.cpp67 sp<DecRefOnReleased> listener(new DecRefOnReleased(&refcnt));
73 canvas.callDrawGLFunction(&noopFunctor, listener.get());
80 canvas.callDrawGLFunction(&noopFunctor, listener.get());
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/
H A DJob.java70 final Listener listener; field in class:Job
90 * @param listener
96 Job(Context service, Context appContext, Listener listener, argument
103 this.listener = listener;
114 listener.onStart(this);
123 listener.onFinished(this);
292 Job createCopy(Context service, Context appContext, Listener listener, argument
296 return new CopyJob(service, appContext, listener, id, stack, srcs);
299 Job createMove(Context service, Context appContext, Listener listener, argument
307 createDelete(Context service, Context appContext, Listener listener, String id, DocumentStack stack, List<DocumentInfo> srcs, DocumentInfo srcParent) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DAutoReinflateContainer.java84 public void addInflateListener(InflateListener listener) { argument
85 mInflateListeners.add(listener);
86 listener.onInflated(getChildAt(0));
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/
H A DCamera2CaptureCallbackSplitter.java42 for (CaptureCallback listener : recipients) {
43 if (listener != null) {
44 mRecipients.add(listener);
/frameworks/native/libs/gui/
H A DConsumerBase.cpp67 wp<ConsumerListener> listener = static_cast<ConsumerListener*>(this); local
68 sp<IConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener);
105 sp<FrameAvailableListener> listener; local
108 listener = mFrameAvailableListener.promote();
111 if (listener != NULL) {
113 listener->onFrameAvailable(item);
120 sp<FrameAvailableListener> listener; local
123 listener = mFrameAvailableListener.promote();
126 if (listener != NULL) {
128 listener
183 setFrameAvailableListener( const wp<FrameAvailableListener>& listener) argument
[all...]
/frameworks/av/camera/
H A DICameraRecordingProxy.cpp46 status_t startRecording(const sp<ICameraRecordingProxyListener>& listener) argument
51 data.writeStrongBinder(IInterface::asBinder(listener));
98 sp<ICameraRecordingProxyListener> listener = local
100 reply->writeInt32(startRecording(listener));
/frameworks/av/camera/aidl/android/hardware/
H A DICameraService.aidl107 void addListener(ICameraServiceListener listener);
108 void removeListener(ICameraServiceListener listener);
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraCaptureSession.java47 * send the ready-to-use CameraCaptureSession to the provided listener's
256 * @param listener The callback object to notify once this request has been
259 * @param handler the handler on which the listener should be invoked, or
280 * handler is null, the listener is not null, and the calling
290 @Nullable CaptureCallback listener, @Nullable Handler handler)
318 * @param listener The callback object to notify each time one of the
322 * @param handler the handler on which the listener should be invoked, or
344 * listener is not null, and the calling thread has no looper.
352 @Nullable CaptureCallback listener, @Nullable Handler handler)
389 * @param listener Th
289 capture(@onNull CaptureRequest request, @Nullable CaptureCallback listener, @Nullable Handler handler) argument
351 captureBurst(@onNull List<CaptureRequest> requests, @Nullable CaptureCallback listener, @Nullable Handler handler) argument
418 setRepeatingRequest(@onNull CaptureRequest request, @Nullable CaptureCallback listener, @Nullable Handler handler) argument
490 setRepeatingBurst(@onNull List<CaptureRequest> requests, @Nullable CaptureCallback listener, @Nullable Handler handler) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/animation/
H A DAnimatorSetActivityTest.java212 // Verify that the listener is added to the list of listeners in the AnimatorSet
213 // and that newly added listener gets callback for lifecycle events of the animator
216 final MyListener listener = new MyListener();
218 assertFalse(s.getListeners().contains(listener));
220 s.addListener(listener);
221 assertTrue(s.getListeners().contains(listener));
223 assertFalse(listener.startIsCalled);
224 assertFalse(listener.endIsCalled);
231 assertTrue(listener.startIsCalled);
232 assertFalse(listener
[all...]
/frameworks/base/libs/hwui/
H A DPropertyValuesAnimatorSet.cpp78 void PropertyValuesAnimatorSet::start(AnimationListener* listener) { argument
80 mOneShotListener = listener;
84 void PropertyValuesAnimatorSet::reverse(AnimationListener* listener) { argument
86 mOneShotListener = listener;
/frameworks/base/media/java/android/media/midi/
H A DIMidiManager.aidl35 void registerListener(IBinder clientToken, in IMidiDeviceListener listener);
36 void unregisterListener(IBinder clientToken, in IMidiDeviceListener listener);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGraphRunner.java86 public abstract void setDoneCallback(OnRunnerDoneListener listener); argument

Completed in 1496 milliseconds

1234567891011>>