Searched refs:handler (Results 101 - 125 of 383) sorted by relevance

1234567891011>>

/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DBrowseErrorSupportActivity.java63 Handler handler = new Handler();
64 handler.postDelayed(new Runnable() {
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DBrowseErrorActivity.java61 Handler handler = new Handler();
62 handler.postDelayed(new Runnable() {
H A DBrowseErrorSupportActivity.java63 Handler handler = new Handler();
64 handler.postDelayed(new Runnable() {
/frameworks/base/core/java/android/content/
H A DAsyncQueryHandler.java50 public Handler handler; field in class:AsyncQueryHandler.WorkerArgs
111 Message reply = args.handler.obtainMessage(token);
172 args.handler = this;
214 args.handler = this;
240 args.handler = this;
268 args.handler = this;
H A DIntentSender.java108 FinishedDispatcher(IntentSender pi, OnFinished who, Handler handler) { argument
111 mHandler = handler;
144 * @param handler Handler identifying the thread on which the callback
153 OnFinished onFinished, Handler handler) throws SendIntentException {
154 sendIntent(context, code, intent, onFinished, handler, null);
170 * @param handler Handler identifying the thread on which the callback
184 OnFinished onFinished, Handler handler, String requiredPermission)
193 ? new FinishedDispatcher(this, onFinished, handler)
152 sendIntent(Context context, int code, Intent intent, OnFinished onFinished, Handler handler) argument
183 sendIntent(Context context, int code, Intent intent, OnFinished onFinished, Handler handler, String requiredPermission) argument
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCameraConstrainedHighSpeedCaptureSessionImpl.java183 public int capture(CaptureRequest request, CaptureCallback listener, Handler handler) argument
191 Handler handler) throws CameraAccessException {
197 return mSessionImpl.captureBurst(requests, listener, handler);
202 Handler handler) throws CameraAccessException {
209 Handler handler) throws CameraAccessException {
215 return mSessionImpl.setRepeatingBurst(requests, listener, handler);
190 captureBurst(List<CaptureRequest> requests, CaptureCallback listener, Handler handler) argument
201 setRepeatingRequest(CaptureRequest request, CaptureCallback listener, Handler handler) argument
208 setRepeatingBurst(List<CaptureRequest> requests, CaptureCallback listener, Handler handler) argument
/frameworks/base/core/java/android/hardware/display/
H A DDisplayManager.java342 * @param handler The handler on which the listener should be invoked, or null
347 public void registerDisplayListener(DisplayListener listener, Handler handler) { argument
348 mGlobal.registerDisplayListener(listener, handler);
518 * @param handler The handler on which the listener should be invoked, or null
528 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) {
530 name, width, height, densityDpi, surface, flags, callback, handler);
536 int flags, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) {
538 name, width, height, densityDpi, surface, flags, callback, handler);
526 createVirtualDisplay(@onNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
534 createVirtualDisplay(@ullable MediaProjection projection, @NonNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaSync.java245 * handler is changed, undelivered notifications scheduled for the old handler may be dropped.
250 * @param handler The Handler that will run the callback. Use {@code null} to use MediaSync's
251 * internal handler if it exists.
253 public void setCallback(@Nullable /* MediaSync. */ Callback cb, @Nullable Handler handler) { argument
255 if (handler != null) {
256 mCallbackHandler = handler;
277 * handler is changed, undelivered notifications scheduled for the old handler may be dropped.
282 * @param handler Th
285 setOnErrorListener(@ullable OnErrorListener listener, @Nullable Handler handler) argument
[all...]
H A DImageReader.java441 * @param handler
442 * The handler on which the listener should be invoked, or null
445 * If no handler specified and the calling thread has no looper.
447 public void setOnImageAvailableListener(OnImageAvailableListener listener, Handler handler) { argument
450 Looper looper = handler != null ? handler.getLooper() : Looper.myLooper();
453 "handler is null but the current thread is not a looper");
634 final Handler handler;
636 handler = ir.mListenerHandler;
638 if (handler !
[all...]
H A DImageWriter.java408 * @param handler The handler on which the listener should be invoked, or
411 * @throws IllegalArgumentException If no handler specified and the calling
414 public void setOnImageReleasedListener(OnImageReleasedListener listener, Handler handler) { argument
417 Looper looper = handler != null ? handler.getLooper() : Looper.myLooper();
420 "handler is null but the current thread is not a looper");
525 * This custom handler runs asynchronously so callbacks don't get queued
558 final Handler handler;
560 handler
[all...]
H A DRemoteController.java458 * registered to receive the updates on the handler thread so it can call
535 Handler handler = null;
537 handler = new Handler(Looper.getMainLooper());
540 UserHandle.myUserId(), handler);
567 private static void sendMsg(Handler handler, int msg, int existingMsgPolicy, argument
569 if (handler == null) {
570 Log.e(TAG, "null event handler, will not deliver message " + msg);
574 handler.removeMessages(msg);
575 } else if (existingMsgPolicy == SENDMSG_NOOP && handler.hasMessages(msg)) {
578 handler
[all...]
H A DAudioTrack.java1389 // Use if you need to get the most recent timestamp outside of the event callback handler.
1431 // Use if you need to get the most recent timestamp outside of the event callback handler.
1465 * @param handler the Handler that will receive the event notification messages.
1468 Handler handler) {
1470 mEventHandlerDelegate = new NativePositionEventHandlerDelegate(this, listener, handler);
2464 * Call BEFORE adding a routing callback handler.
2473 * Call AFTER removing a routing callback handler.
2498 * @param handler Specifies the {@link Handler} object for the thread on which to execute
2504 Handler handler) {
2510 handler !
1467 setPlaybackPositionUpdateListener(OnPlaybackPositionUpdateListener listener, Handler handler) argument
2503 addOnRoutingChangedListener(AudioRouting.OnRoutingChangedListener listener, Handler handler) argument
2570 addOnRoutingChangedListener(OnRoutingChangedListener listener, android.os.Handler handler) argument
2633 NativePositionEventHandlerDelegate(final AudioTrack track, final OnPlaybackPositionUpdateListener listener, Handler handler) argument
2688 NativeRoutingEventHandlerDelegate(final AudioTrack track, final AudioRouting.OnRoutingChangedListener listener, Handler handler) argument
[all...]
/frameworks/support/compat/java/android/support/v4/hardware/fingerprint/
H A DFingerprintManagerCompat.java90 * @param handler an optional handler for events
94 @Nullable Handler handler) {
95 IMPL.authenticate(mContext, crypto, flags, cancel, callback, handler);
206 CancellationSignal cancel, AuthenticationCallback callback, Handler handler);
227 CancellationSignal cancel, AuthenticationCallback callback, Handler handler) {
249 CancellationSignal cancel, AuthenticationCallback callback, Handler handler) {
252 wrapCallback(callback), handler);
92 authenticate(@ullable CryptoObject crypto, int flags, @Nullable CancellationSignal cancel, @NonNull AuthenticationCallback callback, @Nullable Handler handler) argument
205 authenticate(Context context, CryptoObject crypto, int flags, CancellationSignal cancel, AuthenticationCallback callback, Handler handler) argument
226 authenticate(Context context, CryptoObject crypto, int flags, CancellationSignal cancel, AuthenticationCallback callback, Handler handler) argument
248 authenticate(Context context, CryptoObject crypto, int flags, CancellationSignal cancel, AuthenticationCallback callback, Handler handler) argument
/frameworks/support/compat/java/android/support/v4/view/
H A DGestureDetectorCompat.java107 GestureHandler(Handler handler) { argument
108 super(handler.getLooper());
147 * @param handler the handler to use
152 Handler handler) {
153 if (handler != null) {
154 mHandler = new GestureHandler(handler);
468 Handler handler) {
469 mDetector = new GestureDetector(context, listener, handler);
516 * @param handler th
151 GestureDetectorCompatImplBase(Context context, OnGestureListener listener, Handler handler) argument
467 GestureDetectorCompatImplJellybeanMr2(Context context, OnGestureListener listener, Handler handler) argument
518 GestureDetectorCompat(Context context, OnGestureListener listener, Handler handler) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DRemoteViews.java239 // TODO: Unregister this handler if PendingIntent.FLAG_ONE_SHOT?
281 OnClickHandler handler) throws ActionException;
318 public Action initActionAsync(ViewTree root, ViewGroup rootParent, OnClickHandler handler) { argument
343 public void apply(View root, ViewGroup rootParent, OnClickHandler handler) { }
418 public void apply(View root, ViewGroup rootParent, OnClickHandler handler) { argument
453 public void apply(View root, ViewGroup rootParent, final OnClickHandler handler) { argument
500 handler.onClickHandler(v, pendingIntent, fillInIntent);
535 public void apply(View root, ViewGroup rootParent, final OnClickHandler handler) { argument
572 handler.onClickHandler(view, pendingIntentTemplate, fillInIntent);
631 public void apply(View root, ViewGroup rootParent, OnClickHandler handler) { argument
280 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
694 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
767 apply(View root, ViewGroup rootParent, final OnClickHandler handler) argument
961 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
1023 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
1148 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
1400 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
1419 initActionAsync(ViewTree root, ViewGroup rootParent, OnClickHandler handler) argument
1476 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
1528 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
1542 initActionAsync(ViewTree root, ViewGroup rootParent, OnClickHandler handler) argument
1695 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
1725 initActionAsync(ViewTree root, ViewGroup rootParent, OnClickHandler handler) argument
1790 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
1836 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
1887 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
1978 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
2028 apply(View root, ViewGroup rootParent, OnClickHandler handler) argument
3171 apply(Context context, ViewGroup parent, OnClickHandler handler) argument
3215 loadTransitionOverride(Context context, RemoteViews.OnClickHandler handler) argument
3271 applyAsync(Context context, ViewGroup parent, Executor executor, OnViewAppliedListener listener, OnClickHandler handler) argument
3276 getAsyncApplyTask(Context context, ViewGroup parent, OnViewAppliedListener listener, OnClickHandler handler) argument
3295 AsyncApplyTask( RemoteViews rv, ViewGroup parent, Context context, OnViewAppliedListener listener, OnClickHandler handler, View result) argument
3383 reapply(Context context, View v, OnClickHandler handler) argument
3418 reapplyAsync(Context context, View v, Executor executor, OnViewAppliedListener listener, OnClickHandler handler) argument
3436 performApply(View v, ViewGroup parent, OnClickHandler handler) argument
[all...]
/frameworks/base/location/java/android/location/
H A DLocationManager.java1407 public GnssHandler(Handler handler) { argument
1408 super(handler != null ? handler.getLooper() : Looper.myLooper());
1462 GnssStatusListenerTransport(GpsStatus.Listener listener, Handler handler) { argument
1464 mGnssHandler = new GnssHandler(handler);
1497 GnssStatusListenerTransport(GpsStatus.NmeaListener listener, Handler handler) { argument
1499 mGnssHandler = new GnssHandler(handler);
1517 GnssStatusListenerTransport(GnssStatusCallback callback, Handler handler) { argument
1540 mGnssHandler = new GnssHandler(handler);
1552 GnssStatusListenerTransport(GnssStatus.Callback callback, Handler handler) { argument
1567 GnssStatusListenerTransport(GnssNmeaListener listener, Handler handler) argument
1587 GnssStatusListenerTransport(OnNmeaMessageListener listener, Handler handler) argument
1732 registerGnssStatusCallback(GnssStatusCallback callback, Handler handler) argument
1794 registerGnssStatusCallback(GnssStatus.Callback callback, Handler handler) argument
1907 addNmeaListener(GnssNmeaListener listener, Handler handler) argument
1970 addNmeaListener(OnNmeaMessageListener listener, Handler handler) argument
2038 registerGnssMeasurementsCallback(GnssMeasurementsEvent.Callback callback, Handler handler) argument
2109 registerGnssNavigationMessageCallback( final GnssNavigationMessageEvent.Callback callback, Handler handler) argument
2159 registerGnssNavigationMessageCallback( GnssNavigationMessage.Callback callback, Handler handler) argument
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAutoclickController.java79 Handler handler = new Handler(mContext.getMainLooper());
81 new ClickScheduler(handler, AccessibilityManager.AUTOCLICK_DELAY_DEFAULT);
82 mClickDelayObserver = new ClickDelayObserver(mUserId, handler);
177 public ClickDelayObserver(int userId, Handler handler) { argument
178 super(handler);
280 public ClickScheduler(Handler handler, int delay) { argument
281 mHandler = handler;
/frameworks/base/core/java/android/view/
H A DGestureDetector.java281 GestureHandler(Handler handler) { argument
282 super(handler.getLooper());
320 * @param handler the handler to use
323 * {@code handler} is null.
329 public GestureDetector(OnGestureListener listener, Handler handler) { argument
330 this(null, listener, handler);
374 * @param handler the handler to use for running deferred listener events.
378 public GestureDetector(Context context, OnGestureListener listener, Handler handler) { argument
407 GestureDetector(Context context, OnGestureListener listener, Handler handler, boolean unused) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DBluetoothEventManager.java60 private void addHandler(String action, Handler handler) { argument
61 mHandlerMap.put(action, handler);
65 void addProfileHandler(String action, Handler handler) { argument
66 mHandlerMap.put(action, handler);
116 public void setReceiverHandler(android.os.Handler handler) { argument
118 mReceiverHandler = handler;
144 Handler handler = mHandlerMap.get(action);
145 if (handler != null) {
146 handler.onReceive(context, intent, device);
/frameworks/base/tools/preload/
H A Dsorttable.js352 sorttable.init(); // call the onload handler
361 sorttable.init(); // call the onload handler
374 function dean_addEvent(element, type, handler) {
376 element.addEventListener(type, handler, false);
378 // assign each event handler a unique ID
379 if (!handler.$$guid) handler.$$guid = dean_addEvent.guid++;
386 // store the existing event handler (if there is one)
391 // store the event handler in the hash table
392 handlers[handler
[all...]
/frameworks/base/libs/hwui/
H A DRenderNode.h279 inline void setViewProperties(OpenGLRenderer& renderer, T& handler);
285 inline void issueDrawShadowOperation(const Matrix4& transformFromParent, T& handler);
290 OpenGLRenderer& renderer, T& handler);
293 inline void issueOperationsOfProjectedChildren(OpenGLRenderer& renderer, T& handler);
296 * Issue the RenderNode's operations into a handler, recursing for subtrees through
300 inline void issueOperations(OpenGLRenderer& renderer, T& handler);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DTileServiceManager.java74 TileServiceManager(TileServices tileServices, Handler handler, ComponentName component, argument
76 this(tileServices, handler, new TileLifecycleManager(handler,
82 TileServiceManager(TileServices tileServices, Handler handler, argument
85 mHandler = handler;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSmsBroadcastUndelivered.java222 * Send tracker to appropriate (3GPP or 3GPP2) inbound SMS handler for broadcast.
225 InboundSmsHandler handler;
227 handler = mCdmaInboundSmsHandler;
229 handler = mGsmInboundSmsHandler;
231 if (handler != null) {
232 handler.sendMessage(InboundSmsHandler.EVENT_BROADCAST_SMS, tracker);
234 Rlog.e(TAG, "null handler for " + tracker.getFormat() + " format, can't deliver.");
/frameworks/base/core/java/android/animation/
H A DAnimationHandler.java26 * This custom, static handler handles the timing pulse that is shared by all active
31 * The handler uses the Choreographer by default for doing periodic callbacks. A custom
32 * AnimationFrameCallbackProvider can be set on the handler to provide timing pulse that
190 AnimationHandler handler = sAnimatorHandler.get();
191 if (handler == null) {
194 return handler.getCallbackSize();
/frameworks/base/media/java/android/media/session/
H A DMediaController.java343 * posted on the specified handler's thread.
346 * @param handler The handler to post updates on. If null the callers thread
349 public void registerCallback(@NonNull Callback callback, @Nullable Handler handler) { argument
353 if (handler == null) {
354 handler = new Handler();
357 addCallbackLocked(callback, handler);
445 private void addCallbackLocked(Callback cb, Handler handler) { argument
450 MessageHandler holder = new MessageHandler(handler.getLooper(), cb);
467 MessageHandler handler
[all...]

Completed in 3882 milliseconds

1234567891011>>