Searched refs:handler (Results 1 - 25 of 267) sorted by relevance

1234567891011

/frameworks/compile/mclinker/lib/Support/Unix/
H A DPathV3.inc53 size_t handler = 0;
56 while (handler < pathname.size()) {
57 if (separator == pathname[handler]) { // handler = 1st '/'
58 size_t next = handler + 1;
60 return handler;
61 switch(pathname[next]) { // next = handler + 1;
66 pathname.erase(handler, next - handler - 1);
67 // handler i
[all...]
/frameworks/compile/mclinker/lib/Support/Windows/
H A DPathV3.inc46 size_t handler = 0;
49 while (handler < pathname.size()) {
50 if (separator == pathname[handler]) { // handler = 1st '/'
51 size_t next = handler + 1;
53 return handler;
54 switch(pathname[next]) { // next = handler + 1;
59 pathname.erase(handler, next - handler - 1);
60 // handler i
[all...]
/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/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...]
H A DTaskDrainer.java70 * via the {@code handler}.
72 * @param handler a non-{@code null} handler to use to post runnables to
75 public TaskDrainer(Handler handler, DrainListener listener) { argument
76 mHandler = checkNotNull(handler, "handler must not be null");
83 * via the {@code handler}.
85 * @param handler a non-{@code null} handler to use to post runnables to
89 public TaskDrainer(Handler handler, DrainListene argument
[all...]
/frameworks/base/core/java/android/webkit/
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/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/base/services/core/java/com/android/server/twilight/
H A DTwilightManager.java22 void registerListener(TwilightListener listener, Handler handler); argument
/frameworks/base/core/java/android/hardware/soundtrigger/
H A DSoundTriggerModule.java45 SoundTriggerModule(int moduleId, SoundTrigger.StatusListener listener, Handler handler) { argument
47 mEventHandlerDelegate = new NativeEventHandlerDelegate(listener, handler);
133 Handler handler) {
134 // find the looper for our new event handler
136 if (handler != null) {
137 looper = handler.getLooper();
142 // construct the event handler with this looper
144 // implement the event handler delegate
181 Handler handler() { method in class:SoundTriggerModule.NativeEventHandlerDelegate
196 Handler handler
132 NativeEventHandlerDelegate(final SoundTrigger.StatusListener listener, Handler handler) argument
[all...]
/frameworks/compile/mclinker/lib/LD/
H A DEhFrameReader.cpp137 ConstAddress handler = (ConstAddress)sect_reg.begin(); local
142 Token token = scan<true>(handler, file_off, sect_reg);
152 handler += token.size;
154 if (handler == sect_reg.end())
156 else if (handler > sect_reg.end()) {
176 ConstAddress handler = pRegion.begin() + pToken.data_off; local
178 ConstAddress handler_start = handler;
182 uint8_t version = *handler++;
188 ConstAddress aug_str_front = handler;
196 handler
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DDumpUtils.java32 * Helper for dumping state owned by a handler thread.
34 * Because the caller might be holding an important lock that the handler is
38 public static void dumpAsync(Handler handler, final Dump dump, PrintWriter pw, long timeout) { argument
40 if (handler.runWithScissors(new Runnable() {
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/base/
H A DIdlingResourceRegistry.java70 private final Handler handler; field in class:IdlingResourceRegistry
78 this.handler = new Handler(looper, dispatcher);
87 handler.post(new Runnable() {
122 Message m = handler.obtainMessage(DYNAMIC_RESOURCE_HAS_IDLED);
124 handler.sendMessage(m);
164 Message timeoutWarning = handler.obtainMessage(IDLE_WARNING_REACHED, TIMEOUT_MESSAGE_TAG);
165 handler.sendMessageDelayed(timeoutWarning, warning.getIdleTimeoutUnit().toMillis(
167 Message timeoutError = handler.obtainMessage(TIMEOUT_OCCURRED, TIMEOUT_MESSAGE_TAG);
170 handler.sendMessageDelayed(timeoutError, error.getIdleTimeoutUnit().toMillis(
192 Message raceBuster = handler
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DALooperRoster.cpp35 const sp<ALooper> looper, const sp<AHandler> &handler) {
38 if (handler->id() != 0) {
39 CHECK(!"A handler must only be registered once.");
45 info.mHandler = handler;
49 handler->setID(handlerID);
65 sp<AHandler> handler = info.mHandler.promote(); local
67 if (handler != NULL) {
68 handler->setID(0);
85 ALOGV("Unregistering stale handler %d", mHandlers.keyAt(i));
113 sp<AHandler> handler; local
34 registerHandler( const sp<ALooper> looper, const sp<AHandler> &handler) argument
[all...]
/frameworks/base/services/core/java/com/android/server/location/
H A DActivityRecognitionProxy.java41 Handler handler,
64 handler);
74 Handler handler,
81 handler,
39 ActivityRecognitionProxy( Context context, Handler handler, ActivityRecognitionHardware activityRecognitionHardware, int overlaySwitchResId, int defaultServicePackageNameResId, int initialPackageNameResId) argument
72 createAndBind( Context context, Handler handler, ActivityRecognitionHardware activityRecognitionHardware, int overlaySwitchResId, int defaultServicePackageNameResId, int initialPackageNameResId) argument
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 DGeocoderProxy.java43 int initialPackageNamesResId, Handler handler) {
45 defaultServicePackageNameResId, initialPackageNamesResId, handler);
55 int initialPackageNamesResId, Handler handler) {
59 defaultServicePackageNameResId, initialPackageNamesResId, null, handler);
41 createAndBind(Context context, int overlaySwitchResId, int defaultServicePackageNameResId, int initialPackageNamesResId, Handler handler) argument
53 GeocoderProxy(Context context, int overlaySwitchResId, int defaultServicePackageNameResId, int initialPackageNamesResId, Handler handler) argument
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DGLThreadManager.java171 Handler handler = mGLHandlerThread.getHandler();
172 handler.sendMessageAtFrontOfQueue(handler.obtainMessage(MSG_CLEANUP));
188 Handler handler = mGLHandlerThread.getHandler();
194 if (!handler.hasMessages(MSG_NEW_FRAME)) {
195 handler.sendMessage(handler.obtainMessage(MSG_NEW_FRAME));
210 Handler handler = mGLHandlerThread.getHandler();
215 Message m = handler.obtainMessage(MSG_NEW_CONFIGURATION, /*arg1*/0, /*arg2*/0, configure);
216 handler
[all...]
H A DRequestHandlerThread.java28 * Ensure that the MessageQueue's idle handler gets run by poking the message queue;
29 * normally if the message queue is already idle, the idle handler won't get invoked.
31 * <p>Users of this handler thread should ignore this message.</p>
56 // May return null if the handler is not set up yet.
98 Handler handler = waitAndGetHandler();
99 Looper looper = handler.getLooper();
105 // Ensure that the idle handler gets run even if the looper already went idle
106 handler.sendEmptyMessage(MSG_POKE_IDLE_HANDLER);
/frameworks/base/media/java/android/media/
H A DRemoteDisplay.java48 private RemoteDisplay(Listener listener, Handler handler) { argument
50 mHandler = handler;
67 * @param handler The handler on which to invoke the listener.
69 public static RemoteDisplay listen(String iface, Listener listener, Handler handler) { argument
76 if (handler == null) {
77 throw new IllegalArgumentException("handler must not be null");
80 RemoteDisplay display = new RemoteDisplay(listener, handler);
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCameraCaptureSessionImpl.java56 /** User-specified state handler used for outgoing state callback events */
61 /** Internal handler; used for all incoming events to preserve total order */
112 * Use the same handler as the device's StateCallback for all the internal coming events
147 Handler handler) throws CameraAccessException {
154 handler = checkHandler(handler, callback);
158 " handler " + handler);
162 createCaptureCallbackProxy(handler, callback), mDeviceHandler));
167 Handler handler) throw
146 capture(CaptureRequest request, CaptureCallback callback, Handler handler) argument
166 captureBurst(List<CaptureRequest> requests, CaptureCallback callback, Handler handler) argument
189 setRepeatingRequest(CaptureRequest request, CaptureCallback callback, Handler handler) argument
209 setRepeatingBurst(List<CaptureRequest> requests, CaptureCallback callback, Handler handler) argument
368 createUserStateCallbackProxy(Handler handler, StateCallback callback) argument
387 createCaptureCallbackProxy( Handler handler, CaptureCallback callback) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DSurfaceTexture.java182 * If a handler is specified, the callback will be invoked on that handler's thread.
183 * If no handler is specified, then the callback may be called on an arbitrary thread,
189 * @param handler The handler on which the listener should be invoked, or null
193 @Nullable Handler handler) {
198 Looper looper = handler != null ? handler.getLooper() :
366 Handler handler = st.mOnFrameAvailableHandler;
367 if (handler !
192 setOnFrameAvailableListener(@ullable final OnFrameAvailableListener listener, @Nullable Handler handler) argument
[all...]
/frameworks/base/media/java/android/media/projection/
H A DMediaProjection.java70 * @param handler The handler on which the callback should be invoked, or
75 public void registerCallback(Callback callback, Handler handler) { argument
79 mCallbacks.put(callback, new CallbackRecord(callback, handler));
100 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) {
105 DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION, callback, handler);
125 * @param handler The {@link android.os.Handler} on which the callback should be
134 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) {
137 this, name, width, height, dpi, surface, flags, callback, handler);
197 public CallbackRecord(Callback callback, Handler handler) { argument
98 createVirtualDisplay(@onNull String name, int width, int height, int dpi, boolean isSecure, @Nullable Surface surface, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
132 createVirtualDisplay(@onNull String name, int width, int height, int dpi, int flags, @Nullable Surface surface, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
[all...]
/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/volley/src/com/android/volley/toolbox/
H A DClearCacheRequest.java51 Handler handler = new Handler(Looper.getMainLooper());
52 handler.postAtFrontOfQueue(mCallback);
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraCaptureSession.java84 * @param handler the handler on which the listener should be invoked, or
97 * configured as outputs for this session. Or if the handler is
106 public abstract int capture(CaptureRequest request, CaptureCallback listener, Handler handler) argument
129 * @param handler the handler on which the listener should be invoked, or
142 * configured as outputs. Or if the handler is null, the
151 Handler handler) throws CameraAccessException;
183 * @param handler the handler o
150 captureBurst(List<CaptureRequest> requests, CaptureCallback listener, Handler handler) argument
206 setRepeatingRequest(CaptureRequest request, CaptureCallback listener, Handler handler) argument
266 setRepeatingBurst(List<CaptureRequest> requests, CaptureCallback listener, Handler handler) argument
[all...]

Completed in 690 milliseconds

1234567891011