Searched refs:listener (Results 51 - 75 of 273) sorted by relevance

1234567891011

/frameworks/testing/uiautomator/utils/uiautomatorviewer/src/com/android/uiautomator/tree/
H A DBasicTreeNode.java87 public boolean findLeafMostNodesAtPoint(int px, int py, IFindNodeListener listener) { argument
90 foundInChild |= node.findLeafMostNodesAtPoint(px, py, listener);
97 listener.onFoundNode(this);
/frameworks/base/core/java/com/android/internal/view/
H A DRotationPolicy.java125 * Registers a listener for rotation policy changes.
128 RotationPolicyListener listener) {
131 false, listener.mObserver);
134 false, listener.mObserver);
138 * Unregisters a listener for rotation policy changes.
141 RotationPolicyListener listener) {
142 context.getContentResolver().unregisterContentObserver(listener.mObserver);
127 registerRotationPolicyListener(Context context, RotationPolicyListener listener) argument
140 unregisterRotationPolicyListener(Context context, RotationPolicyListener listener) argument
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DOverrideMethod.java32 /** Default listener for all method not listed in sMethods. Nothing if null. */
36 * Sets the default listener for all methods not specifically handled.
39 public static void setDefaultListener(MethodListener listener) { argument
40 sDefaultListener = listener;
44 * Defines or reset a listener for the given method signature.
49 * @param listener The new listener. Removes it if null.
51 public static void setMethodListener(String signature, MethodListener listener) { argument
52 if (listener == null) {
55 sMethods.put(signature, listener);
[all...]
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DMtpClient.java78 for (Listener listener : mListeners) {
79 listener.deviceAdded(mtpDevice);
85 for (Listener listener : mListeners) {
86 listener.deviceRemoved(mtpDevice);
98 for (Listener listener : mListeners) {
99 listener.deviceAdded(mtpDevice);
200 * @param listener the listener to register
202 public void addListener(Listener listener) { argument
204 if (!mListeners.contains(listener)) {
215 removeListener(Listener listener) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebIconDatabaseClassic.java143 IconListener listener = (IconListener) map.get("listener");
156 requestIconAndSendResult(url, listener);
166 private void requestIconAndSendResult(String url, IconListener listener) { argument
170 new IconResult(url, icon, listener)));
202 * url. If the icon exists, the listener will be called with the result.
204 * @param listener An implementation on IconListener to receive the result.
206 public void requestIconForPageUrl(String url, IconListener listener) { argument
207 if (listener == null || url == null) {
210 Message msg = Message.obtain(null, EventHandler.REQUEST_ICON, listener);
217 bulkRequestIconForPageUrl(ContentResolver cr, String where, IconListener listener) argument
[all...]
/frameworks/base/location/java/android/location/
H A DILocationManager.aidl42 boolean singleShot, in ILocationListener listener);
45 void removeUpdates(in ILocationListener listener);
48 boolean addGpsStatusListener(IGpsStatusListener listener);
49 void removeGpsStatusListener(IGpsStatusListener listener);
52 void locationCallbackFinished(ILocationListener listener);
/frameworks/base/services/input/
H A DInputListener.cpp38 void NotifyConfigurationChangedArgs::notify(const sp<InputListenerInterface>& listener) const {
39 listener->notifyConfigurationChanged(this);
62 void NotifyKeyArgs::notify(const sp<InputListenerInterface>& listener) const {
63 listener->notifyKey(this);
98 void NotifyMotionArgs::notify(const sp<InputListenerInterface>& listener) const {
99 listener->notifyMotion(this);
116 void NotifySwitchArgs::notify(const sp<InputListenerInterface>& listener) const {
117 listener->notifySwitch(this);
131 void NotifyDeviceResetArgs::notify(const sp<InputListenerInterface>& listener) const {
132 listener
[all...]
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;
110 virtual void notify(const sp<InputListenerInterface>& listener) const;
130 virtual void notify(const sp<InputListenerInterface>& listener) const;
148 virtual void notify(const sp<InputListenerInterface>& listener) const;
170 * An implementation of the listener interface that queues up and defers dispatch
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfoAsyncQuery.java76 public OnQueryCompleteListener listener; field in class:CallerInfoAsyncQuery.CookieWrapper
112 * more add listener requests, and then an end request. Of course, these requests
204 //get the cookie and notify the listener.
290 //notify the listener that the query is complete.
291 if (cw.listener != null) {
292 if (DBG) Log.d(LOG_TAG, "notifying listener: " + cw.listener.getClass().toString() +
294 cw.listener.onQueryComplete(token, cw.cookie, mCallerInfo);
310 OnQueryCompleteListener listener, Object cookie) {
319 cw.listener
309 startQuery(int token, Context context, Uri contactRef, OnQueryCompleteListener listener, Object cookie) argument
339 startQuery(int token, Context context, String number, OnQueryCompleteListener listener, Object cookie) argument
427 addQueryListener(int token, OnQueryCompleteListener listener, Object cookie) argument
[all...]
/frameworks/base/core/java/android/hardware/input/
H A DInputManager.java274 * Registers an input device listener to receive notifications about when
277 * @param listener The listener to register.
278 * @param handler The handler on which the listener should be invoked, or null
279 * if the listener should be invoked on the calling thread's looper.
283 public void registerInputDeviceListener(InputDeviceListener listener, Handler handler) { argument
284 if (listener == null) {
285 throw new IllegalArgumentException("listener must not be null");
289 int index = findInputDeviceListenerLocked(listener);
291 mInputDeviceListeners.add(new InputDeviceListenerDelegate(listener, handle
303 unregisterInputDeviceListener(InputDeviceListener listener) argument
318 findInputDeviceListenerLocked(InputDeviceListener listener) argument
760 InputDeviceListenerDelegate(InputDeviceListener listener, Handler handler) 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...]
/frameworks/base/services/common_time/
H A Dcommon_clock_service.cpp95 const sp<ICommonClockListener>& listener) {
102 if (mListeners[i]->asBinder() == listener->asBinder())
107 mListeners.add(listener);
109 return listener->asBinder()->linkToDeath(this);
113 const sp<ICommonClockListener>& listener) {
120 if (mListeners[i]->asBinder() == listener->asBinder()) {
94 registerListener( const sp<ICommonClockListener>& listener) argument
112 unregisterListener( const sp<ICommonClockListener>& listener) argument
H A Dcommon_clock_service.h48 const sp<ICommonClockListener>& listener);
50 const sp<ICommonClockListener>& listener);
/frameworks/base/core/java/android/view/
H A DGestureDetector.java40 * The listener that is used to notify when gestures occur.
117 * The listener that is used to notify when a double-tap or a confirmed
225 * up events). Can only be true if there is a double tap listener attached.
287 * Creates a GestureDetector with the supplied listener.
291 * @param listener the listener invoked for all the callbacks, this must
295 * @throws NullPointerException if either {@code listener} or
302 public GestureDetector(OnGestureListener listener, Handler handler) { argument
303 this(null, listener, handler);
307 * Creates a GestureDetector with the supplied listener
320 GestureDetector(OnGestureListener listener) argument
335 GestureDetector(Context context, OnGestureListener listener) argument
351 GestureDetector(Context context, OnGestureListener listener, Handler handler) argument
370 GestureDetector(Context context, OnGestureListener listener, Handler handler, boolean ignoreMultitouch) argument
[all...]
/frameworks/av/include/camera/
H A DICameraRecordingProxy.h56 * listener and releases them by ICameraRecordingProxy::releaseRecordingFrame.
83 virtual status_t startRecording(const sp<ICameraRecordingProxyListener>& listener) = 0;
/frameworks/base/core/java/android/accounts/
H A DIAccountAuthenticatorCache.java56 * Sets a listener that will be notified whenever the authenticator set changes
57 * @param listener the listener to notify, or null
61 void setListener(RegisteredServicesCacheListener<AuthenticatorDescription> listener, argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGraphRunner.java86 public abstract void setDoneCallback(OnRunnerDoneListener listener); argument
/frameworks/support/v4/java/android/support/v4/content/
H A DLoader.java95 * Sends the result of the load to the registered listener. Should only be called by subclasses.
128 public void registerListener(int id, OnLoadCompleteListener<D> listener) { argument
130 throw new IllegalStateException("There is already a listener registered");
132 mListener = listener;
137 * Remove a listener that was previously added with {@link #registerListener}.
141 public void unregisterListener(OnLoadCompleteListener<D> listener) { argument
143 throw new IllegalStateException("No listener register");
145 if (mListener != listener) {
146 throw new IllegalArgumentException("Attempting to unregister the wrong listener");
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DUiAutomatorBridge.java110 void addAccessibilityEventListener(AccessibilityEventListener listener) { argument
111 mListeners.add(listener);
115 for (AccessibilityEventListener listener : mListeners) {
116 listener.onAccessibilityEvent(event);
/frameworks/base/core/java/android/app/
H A DActivityOptions.java143 * @param handler If <var>listener</var> is non-null this must be a valid
145 * @param listener Optional OnAnimationStartedListener to find out when the
153 int enterResId, int exitResId, Handler handler, OnAnimationStartedListener listener) {
159 opts.setListener(handler, listener);
163 private void setListener(Handler handler, OnAnimationStartedListener listener) { argument
164 if (listener != null) {
166 final OnAnimationStartedListener finalListener = listener;
256 * @param listener Optional OnAnimationStartedListener to find out when the
264 Bitmap thumbnail, int startX, int startY, OnAnimationStartedListener listener) {
265 return makeThumbnailScaleUpAnimation(source, thumbnail, startX, startY, listener, fals
152 makeCustomAnimation(Context context, int enterResId, int exitResId, Handler handler, OnAnimationStartedListener listener) argument
263 makeThumbnailScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY, OnAnimationStartedListener listener) argument
286 makeDelayedThumbnailScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY, OnAnimationStartedListener listener) argument
291 makeThumbnailScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY, OnAnimationStartedListener listener, boolean delayed) argument
[all...]
/frameworks/base/media/java/android/media/
H A DAudioRecord.java166 * The listener the AudioRecord notifies when the record position reaches a marker
173 * Lock to protect position listener updates against event notifications
645 * Sets the listener the AudioRecord notifies when a previously set marker is reached or
647 * @param listener
649 public void setRecordPositionUpdateListener(OnRecordPositionUpdateListener listener) { argument
650 setRecordPositionUpdateListener(listener, null);
654 * Sets the listener the AudioRecord notifies when a previously set marker is reached or
658 * @param listener
661 public void setRecordPositionUpdateListener(OnRecordPositionUpdateListener listener, argument
665 mPositionListener = listener;
[all...]
/frameworks/base/core/java/android/hardware/
H A DSensorManager.java434 * Registers a listener for given sensors.
440 * @param listener
441 * sensor listener object
450 public boolean registerListener(SensorListener listener, int sensors) { argument
451 return registerListener(listener, sensors, SENSOR_DELAY_NORMAL);
461 * @param listener
462 * sensor listener object
478 public boolean registerListener(SensorListener listener, int sensors, int rate) { argument
479 return getLegacySensorManager().registerListener(listener, sensors, rate);
483 * Unregisters a listener fo
493 unregisterListener(SensorListener listener) argument
511 unregisterListener(SensorListener listener, int sensors) argument
528 unregisterListener(SensorEventListener listener, Sensor sensor) argument
546 unregisterListener(SensorEventListener listener) argument
555 unregisterListenerImpl(SensorEventListener listener, Sensor sensor) argument
585 registerListener(SensorEventListener listener, Sensor sensor, int rate) argument
621 registerListener(SensorEventListener listener, Sensor sensor, int rate, Handler handler) argument
650 registerListenerImpl(SensorEventListener listener, Sensor sensor, int delay, Handler handler) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DMediaWriter.h43 virtual void setListener(const sp<IMediaRecorderClient>& listener) { argument
44 mListener = listener;
/frameworks/base/core/java/android/content/
H A DSharedPreferences.java346 * @param listener The callback that will run.
349 void registerOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener listener); argument
354 * @param listener The callback that should be unregistered.
357 void unregisterOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener listener); argument
/frameworks/base/media/mca/effect/java/android/media/effect/effects/
H A DBackDropperEffect.java98 public void setUpdateListener(EffectUpdateListener listener) { argument
99 mEffectListener = listener;

Completed in 2318 milliseconds

1234567891011