Searched defs:handler (Results 1 - 25 of 370) sorted by relevance

1234567891011>>

/frameworks/base/obex/javax/obex/
H A DSessionNotifier.java53 * the handler to handle the requests from the client. No authenticator is
82 * @param handler the request handler that will respond to OBEX requests
85 * @throws NullPointerException if <code>handler</code> is <code>null</code>
87 ObexSession acceptAndOpen(ServerRequestHandler handler) throws IOException; argument
91 * the handler to handle the requests from the client and the
119 * @param handler the request handler that will respond to OBEX requests
125 * @throws NullPointerException if <code>handler</code> is <code>null</code>
127 ObexSession acceptAndOpen(ServerRequestHandler handler, Authenticato argument
[all...]
/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightManager.java30 * @param handler the {@link Handler} to use to notify the listener
32 void registerListener(@NonNull TwilightListener listener, @NonNull Handler handler); argument
/frameworks/base/telecomm/java/android/telecom/
H A DCallbackRecord.java23 * This class is used to associate a generic callback of type T with a handler to which commands and
32 public CallbackRecord(T callback, Handler handler) { argument
34 mHandler = handler;
/frameworks/av/media/libaudiohal/
H A DHalDeathHandlerHidl.cpp39 void HalDeathHandler::registerAtExitHandler(void* cookie, AtExitHandler handler) { argument
41 mHandlers.insert({cookie, handler});
53 for (const auto& handler : mHandlers) {
54 handler.second();
/frameworks/base/core/java/android/hardware/camera2/dispatch/
H A DHandlerDispatcher.java28 * Forward all interface calls into a handler by posting it as a {@code Runnable}.
33 * <p>Any exceptions thrown on the handler while trying to invoke a method
34 * will be re-thrown. Throwing checked exceptions on a handler which doesn't expect any
47 * them onto the {@code handler} as a {@code Runnable}.
49 * @param dispatchTarget the destination whose method calls will be redirected into the handler
50 * @param handler all calls into {@code dispatchTarget} will be posted onto this handler
52 * @return a dispatcher that will forward it's dispatch calls to a handler
54 public HandlerDispatcher(Dispatchable<T> dispatchTarget, Handler handler) { argument
56 mHandler = checkNotNull(handler, "handle
[all...]
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DTaskSingleDrainer.java41 * via the {@code handler}.
43 * @param handler a non-{@code null} handler to use to post runnables to
46 public TaskSingleDrainer(Handler handler, DrainListener listener) { argument
47 mTaskDrainer = new TaskDrainer<>(handler, listener);
52 * via the {@code handler}.
54 * @param handler a non-{@code null} handler to use to post runnables to
58 public TaskSingleDrainer(Handler handler, DrainListener listener, String name) { argument
59 mTaskDrainer = new TaskDrainer<>(handler, listene
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebMessagePort.java100 * Sets a callback to receive message events on the handler that is provided
104 * @param handler the handler to receive the message messages.
106 public abstract void setWebMessageCallback(WebMessageCallback callback, Handler handler); argument
H A DUrlInterceptRegistry.java76 * Register a new UrlInterceptHandler. This handler will be called
79 * @param handler The new UrlInterceptHandler object
80 * @return true if the handler was not previously registered.
88 UrlInterceptHandler handler) {
89 if (!getHandlers().contains(handler)) {
90 getHandlers().addFirst(handler);
100 * @param handler A previously registered UrlInterceptHandler.
101 * @return true if the handler was found and removed from the list.
109 UrlInterceptHandler handler) {
110 return getHandlers().remove(handler);
87 registerHandler( UrlInterceptHandler handler) argument
108 unregisterHandler( UrlInterceptHandler handler) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/app/
H A DLoaderLifecycleTest.java233 public TestFragmentHostCallback(Context context, Handler handler, int windowAnimations) { argument
234 super(context, handler, windowAnimations);
/frameworks/base/media/java/android/media/
H A DAudioRouting.java56 * @param handler Specifies the {@link Handler} object for the thread on which to execute
61 Handler handler);
60 addOnRoutingChangedListener(OnRoutingChangedListener listener, Handler handler) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/ui/dragndrop/
H A DDragStartInitializeDropTargetsEvent.java32 public final RecentsViewTouchHandler handler; field in class:DragStartInitializeDropTargetsEvent
35 RecentsViewTouchHandler handler) {
38 this.handler = handler;
34 DragStartInitializeDropTargetsEvent(Task task, TaskView taskView, RecentsViewTouchHandler handler) argument
/frameworks/base/services/core/java/com/android/server/location/
H A DFusedProxy.java44 * @param handler The handler needed for construction.
49 Handler handler,
74 handler);
81 * @param handler The handler needed for construction.
88 Handler handler,
95 handler,
47 FusedProxy( Context context, Handler handler, IFusedLocationHardware locationHardware, int overlaySwitchResId, int defaultServicePackageNameResId, int initialPackageNameResId) argument
86 createAndBind( Context context, Handler handler, IFusedLocationHardware locationHardware, int overlaySwitchResId, int defaultServicePackageNameResId, int initialPackageNameResId) argument
H A DActivityRecognitionProxy.java44 Handler handler,
69 handler);
79 Handler handler,
87 handler,
42 ActivityRecognitionProxy( Context context, Handler handler, boolean activityRecognitionHardwareIsSupported, ActivityRecognitionHardware activityRecognitionHardware, int overlaySwitchResId, int defaultServicePackageNameResId, int initialPackageNameResId) argument
77 createAndBind( Context context, Handler handler, boolean activityRecognitionHardwareIsSupported, ActivityRecognitionHardware activityRecognitionHardware, int overlaySwitchResId, int defaultServicePackageNameResId, int initialPackageNameResId) argument
/frameworks/base/tools/layoutlib/bridge/src/android/os/
H A DHandler_Delegate.java35 /*package*/ static boolean sendMessageAtTime(Handler handler, Message msg, long uptimeMillis) { argument
39 callback.sendMessageAtTime(handler, msg, uptimeMillis);
47 void sendMessageAtTime(Handler handler, Message msg, long uptimeMillis); argument
/frameworks/native/libs/vr/libvrflinger/
H A Depoll_event_dispatcher.cpp46 Handler handler) {
51 event.data.ptr = &(handlers_[fd] = handler);
55 "EpollEventDispatcher::AddEventHandler: fd=%d event_mask=0x%x handler=%p",
110 "EpollEventDispatcher::EventThread: event %d: handler=%p events=0x%x",
120 auto handler = reinterpret_cast<Handler*>(events[i].data.ptr);
121 if (handler)
122 (*handler)(events[i].events);
133 "EpollEventDispatcher::EventThread: removing handler: fd=%d",
45 AddEventHandler(int fd, int event_mask, Handler handler) argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DMockWifiMonitor.java42 public void registerHandler(String iface, int what, Handler handler) { argument
48 ifaceHandlers.put(what, handler);
57 * Send a message and assert that it was dispatched to a handler
66 assertTrue("No handler for iface=" + iface + ",what=" + message.what,
75 assertTrue("No handler for message with nonexistant iface, iface=" + iface
81 Handler handler = ifaceHandlers.get(message.what);
82 if (handler != null) {
83 message.setTarget(handler);
/frameworks/support/fragment/tests/java/android/support/v4/app/
H A DHostCallbacks.java25 HostCallbacks(FragmentActivity activity, Handler handler, int windowAnimations) { argument
26 super(activity, handler, windowAnimations);
/frameworks/base/core/java/android/accessibilityservice/
H A DAccessibilityButtonController.java101 * specified {@link Handler}'s thread, or on the services's main thread if the handler is
105 * @param handler the handler on which the callback should execute, must be non-null
108 @NonNull Handler handler) {
110 Preconditions.checkNotNull(handler);
116 mCallbacks.put(callback, handler);
161 final Handler handler = entries.valueAt(i);
162 handler.post(() -> callback.onClicked(this));
186 final Handler handler = entries.valueAt(i);
187 handler
107 registerAccessibilityButtonCallback(@onNull AccessibilityButtonCallback callback, @NonNull Handler handler) argument
[all...]
/frameworks/base/core/java/android/os/
H A DRemoteCallback.java41 public RemoteCallback(@NonNull OnResultListener listener, @Nullable Handler handler) { argument
46 mHandler = handler;
/frameworks/base/core/java/android/view/
H A DHandlerActionQueue.java80 public void executeActions(Handler handler) { argument
85 handler.postDelayed(handlerAction.action, handlerAction.delay);
/frameworks/base/core/java/com/android/internal/view/
H A DSurfaceFlingerVsyncChoreographer.java42 public SurfaceFlingerVsyncChoreographer(Handler handler, Display display, argument
44 mHandler = handler;
/frameworks/base/location/java/android/location/
H A DLocalListenerHelper.java33 * A base handler class to manage transport and local listeners.
49 public boolean add(@NonNull TListener listener, Handler handler) { argument
70 mListeners.put(listener, handler);
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeFactory.java44 Handler handler = new Handler();
52 createDozeTriggers(context, sensorManager, host, config, params, handler, wakeLock,
54 createDozeUi(context, host, wakeLock, machine, handler, alarmManager),
62 Handler handler, WakeLock wakeLock, DozeMachine machine) {
65 sensorManager, handler, wakeLock, allowPulseTriggers);
69 DozeMachine machine, Handler handler, AlarmManager alarmManager) {
70 return new DozeUi(context, alarmManager, machine, wakeLock, host, handler);
60 createDozeTriggers(Context context, SensorManager sensorManager, DozeHost host, AmbientDisplayConfiguration config, DozeParameters params, Handler handler, WakeLock wakeLock, DozeMachine machine) argument
68 createDozeUi(Context context, DozeHost host, WakeLock wakeLock, DozeMachine machine, Handler handler, AlarmManager alarmManager) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DGlobalSetting.java33 public GlobalSetting(Context context, Handler handler, String settingName) { argument
34 super(handler);
/frameworks/base/services/core/java/com/android/server/accounts/
H A DIAccountAuthenticatorCache.java60 * @param handler the {@link Handler} on which the notification will be posted. If null
64 Handler handler);
63 setListener(RegisteredServicesCacheListener<AuthenticatorDescription> listener, Handler handler) argument

Completed in 567 milliseconds

1234567891011>>