Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 25 of 148) sorted by relevance

123456

/frameworks/native/libs/utils/tests/
DLooper_test.cpp63 virtual int handler(int fd, int events) = 0;
67 return static_cast<CallbackHandler*>(data)->handler(fd, events); in staticHandler()
84 virtual int handler(int fd, int events) { in handler() function in android::StubCallbackHandler
166 StubCallbackHandler handler(true); in TEST_F() local
168 handler.setCallback(mLooper, pipe.receiveFd, ALOOPER_EVENT_INPUT); in TEST_F()
178 EXPECT_EQ(0, handler.callbackCount) in TEST_F()
184 StubCallbackHandler handler(true); in TEST_F() local
187 handler.setCallback(mLooper, pipe.receiveFd, ALOOPER_EVENT_INPUT); in TEST_F()
197 EXPECT_EQ(1, handler.callbackCount) in TEST_F()
199 EXPECT_EQ(pipe.receiveFd, handler.fd) in TEST_F()
[all …]
/frameworks/compile/mclinker/lib/Support/Unix/
DPathV3.inc54 size_t handler = 0;
57 while (handler < pathname.size()) {
58 if (separator == pathname[handler]) { // handler = 1st '/'
59 size_t next = handler + 1;
61 return handler;
62 switch(pathname[next]) { // next = handler + 1;
67 pathname.erase(handler, next - handler - 1);
68 // handler is the first '/'
69 slash_stack.push(handler);
73 ++next; // next = handler + 2
[all …]
/frameworks/base/core/java/android/webkit/
DUrlInterceptRegistry.java88 UrlInterceptHandler handler) { in registerHandler() argument
89 if (!getHandlers().contains(handler)) { in registerHandler()
90 getHandlers().addFirst(handler); in registerHandler()
109 UrlInterceptHandler handler) { in unregisterHandler() argument
110 return getHandlers().remove(handler); in unregisterHandler()
131 UrlInterceptHandler handler = (UrlInterceptHandler) iter.next(); in getSurrogate() local
132 CacheResult result = handler.service(url, headers); in getSurrogate()
159 UrlInterceptHandler handler = (UrlInterceptHandler) iter.next(); in getPluginData() local
160 PluginData data = handler.getPluginData(url, headers); in getPluginData()
DWebViewClient.java201 public void onReceivedSslError(WebView view, SslErrorHandler handler, in onReceivedSslError() argument
203 handler.cancel(); in onReceivedSslError()
231 ClientCertRequestHandler handler, String host_and_port) { in onReceivedClientCertRequest() argument
232 handler.cancel(); in onReceivedClientCertRequest()
246 HttpAuthHandler handler, String host, String realm) { in onReceivedHttpAuthRequest() argument
247 handler.cancel(); in onReceivedHttpAuthRequest()
/frameworks/base/core/java/android/accounts/
DAccountManager.java251 public AccountManager(Context context, IAccountManager service, Handler handler) { in AccountManager() argument
254 mMainHandler = handler; in AccountManager()
438 AccountManagerCallback<String> callback, Handler handler) { in getAuthTokenLabel() argument
441 return new Future2Task<String>(handler, callback) { in getAuthTokenLabel()
481 AccountManagerCallback<Boolean> callback, Handler handler) {
484 return new Future2Task<Boolean>(handler, callback) {
526 AccountManagerCallback<Account[]> callback, Handler handler) {
528 return new Future2Task<Account[]>(handler, callback) {
594 AccountManagerCallback<Boolean> callback, Handler handler) {
596 return new Future2Task<Boolean>(handler, callback) {
[all …]
/frameworks/native/libs/utils/
DLooper.cpp29 WeakMessageHandler::WeakMessageHandler(const wp<MessageHandler>& handler) : in WeakMessageHandler() argument
30 mHandler(handler) { in WeakMessageHandler()
37 sp<MessageHandler> handler = mHandler.promote(); in handleMessage() local
38 if (handler != NULL) { in handleMessage()
39 handler->handleMessage(message); in handleMessage()
284 sp<MessageHandler> handler = messageEnvelope.handler; in pollInner() local
292 this, handler.get(), message.what); in pollInner()
294 handler->handleMessage(message); in pollInner()
481 void Looper::sendMessage(const sp<MessageHandler>& handler, const Message& message) { in sendMessage() argument
483 sendMessageAtTime(now, handler, message); in sendMessage()
[all …]
/frameworks/av/media/libstagefright/foundation/
DALooperRoster.cpp35 const sp<ALooper> looper, const sp<AHandler> &handler) { in registerHandler() argument
38 if (handler->id() != 0) { in registerHandler()
45 info.mHandler = handler; in registerHandler()
49 handler->setID(handlerID); in registerHandler()
65 sp<AHandler> handler = info.mHandler.promote(); in unregisterHandler() local
67 if (handler != NULL) { in unregisterHandler()
68 handler->setID(0); in unregisterHandler()
108 sp<AHandler> handler; in deliverMessage() local
121 handler = info.mHandler.promote(); in deliverMessage()
123 if (handler == NULL) { in deliverMessage()
[all …]
/frameworks/base/core/java/android/animation/
DValueAnimator.java930 AnimationHandler handler = getOrCreateAnimationHandler(); in cancel() local
932 || handler.mPendingAnimations.contains(this) in cancel()
933 || handler.mDelayedAnims.contains(this)) { in cancel()
946 endAnimation(handler); in cancel()
952 AnimationHandler handler = getOrCreateAnimationHandler(); in end() local
953 if (!handler.mAnimations.contains(this) && !handler.mPendingAnimations.contains(this)) { in end()
956 startAnimation(handler); in end()
968 endAnimation(handler); in end()
1004 private void endAnimation(AnimationHandler handler) { in endAnimation() argument
1005 handler.mAnimations.remove(this); in endAnimation()
[all …]
/frameworks/native/include/utils/
DLooper.h77 WeakMessageHandler(const wp<MessageHandler>& handler);
259 void sendMessage(const sp<MessageHandler>& handler, const Message& message);
269 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,
280 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
289 void removeMessages(const sp<MessageHandler>& handler);
297 void removeMessages(const sp<MessageHandler>& handler, int what);
338 MessageEnvelope(nsecs_t uptime, const sp<MessageHandler> handler, in MessageEnvelope()
339 const Message& message) : uptime(uptime), handler(handler), message(message) { in MessageEnvelope()
343 sp<MessageHandler> handler; member
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DReliabilityTestActivity.java55 private Handler handler; field in ReliabilityTestActivity
91 handler = new Handler() { in onCreate()
134 handler.sendMessageDelayed(handler.obtainMessage(MSG_TIMEOUT), in navigate()
165 handler.postDelayed(pageDoneRunner, manualDelay); in handleTimeout()
183 return handler; in getHandler()
208 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in onReceivedSslError() argument
211 handler.proceed(); in onReceivedSslError()
215 public void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, in onReceivedHttpAuthRequest() argument
218 handler.cancel(); in onReceivedHttpAuthRequest()
232 handler.postDelayed(new WebViewStatusChecker(), 500); in onPageFinished()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DTransportControlView.java143 IRemoteControlDisplayWeak(Handler handler) { in IRemoteControlDisplayWeak() argument
144 mLocalHandler = new WeakReference<Handler>(handler); in IRemoteControlDisplayWeak()
148 Handler handler = mLocalHandler.get(); in setPlaybackState() local
149 if (handler != null) { in setPlaybackState()
150 handler.obtainMessage(MSG_UPDATE_STATE, generationId, state).sendToTarget(); in setPlaybackState()
155 Handler handler = mLocalHandler.get(); in setMetadata() local
156 if (handler != null) { in setMetadata()
157 handler.obtainMessage(MSG_SET_METADATA, generationId, 0, metadata).sendToTarget(); in setMetadata()
162 Handler handler = mLocalHandler.get(); in setTransportControlFlags() local
163 if (handler != null) { in setTransportControlFlags()
[all …]
/frameworks/base/core/tests/coretests/src/android/animation/
DEventsTest.java125 Handler handler = new Handler(); in FutureReleaseListener() local
126 handler.postDelayed(new Runnable() { in FutureReleaseListener()
136 Handler handler = new Handler(); in onAnimationEnd() local
137 handler.postDelayed(new Runnable() { in onAnimationEnd()
322 Handler handler = new Handler(); in testPlayingCancel()
326 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DURATION); in testPlayingCancel()
345 Handler handler = new Handler(); in testPlayingEnd()
349 handler.postDelayed(new Ender(mAnimator, mFuture), ANIM_MID_DURATION); in testPlayingEnd()
369 Handler handler = new Handler(); in testPlayingDelayedCancel()
373 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DURATION); in testPlayingDelayedCancel()
[all …]
DViewPropertyAnimatorTest.java107 Handler handler = new Handler(); in FutureReleaseListener() local
108 handler.postDelayed(new Runnable() { in FutureReleaseListener()
118 Handler handler = new Handler(); in onAnimationEnd() local
119 handler.postDelayed(new Runnable() { in onAnimationEnd()
255 Handler handler = new Handler(); in testPlayingCancel()
259 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DURATION); in testPlayingCancel()
279 Handler handler = new Handler(); in testPlayingDelayedCancel()
283 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DURATION); in testPlayingDelayedCancel()
307 Handler handler = new Handler(); in testPlayingDelayedCancelMidDelay()
310 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DELAY); in testPlayingDelayedCancelMidDelay()
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/
DPowerTestActivity.java48 private Handler handler; field in PowerTestActivity
87 handler = new Handler() { in onCreate()
130 handler.sendMessageDelayed(handler.obtainMessage(MSG_TIMEOUT), in navigate()
161 handler.postDelayed(pageDoneRunner, manualDelay); in handleTimeout()
179 return handler; in getHandler()
221 handler.postDelayed(new WebViewStatusChecker(), 500); in onPageFinished()
254 handler.removeMessages(MSG_TIMEOUT); in run()
256 handler.postDelayed(pageDoneRunner, manualDelay); in run()
/frameworks/base/core/java/android/bluetooth/
DAtParser.java116 public void register(Character command, AtCommandHandler handler) { in register() argument
117 mBasicHandlers.put(command, handler); in register()
132 public void register(String command, AtCommandHandler handler) { in register() argument
133 mExtHandlers.put(command, handler); in register()
307 AtCommandHandler handler = mExtHandlers.get(commandName); in process() local
339 result.addResult(handler.handleActionCommand()); in process()
342 result.addResult(handler.handleReadCommand()); in process()
345 result.addResult(handler.handleTestCommand()); in process()
350 result.addResult(handler.handleSetCommand(args)); in process()
DHeadsetBase.java95 int socketFd, int rfcommChannel, Handler handler) { in HeadsetBase() argument
102 mEventThreadHandler = handler; in HeadsetBase()
197 public boolean connect(Handler handler) { in connect() argument
200 mEventThreadHandler = handler; in connect()
227 public int waitForAsyncConnect(int timeout_ms, Handler handler) { in waitForAsyncConnect() argument
230 mEventThreadHandler = handler; in waitForAsyncConnect()
/frameworks/wilhelm/src/
DThreadPool.c250 SLresult ThreadPool_add(ThreadPool *tp, ClosureKind kind, ClosureHandler_generic handler, in ThreadPool_add() argument
254 assert(NULL != handler); in ThreadPool_add()
262 closure->mHandler.mHandler_ppi = (ClosureHandler_ppi)handler; in ThreadPool_add()
265 closure->mHandler.mHandler_ppii = (ClosureHandler_ppii)handler; in ThreadPool_add()
268 closure->mHandler.mHandler_piipp = (ClosureHandler_piipp)handler; in ThreadPool_add()
371 SLresult ThreadPool_add_ppi(ThreadPool *tp, ClosureHandler_ppi handler, in ThreadPool_add_ppi() argument
375 return ThreadPool_add(tp, CLOSURE_KIND_PPI, (ClosureHandler_generic) handler, in ThreadPool_add_ppi()
379 SLresult ThreadPool_add_ppii(ThreadPool *tp, ClosureHandler_ppii handler, in ThreadPool_add_ppii() argument
383 return ThreadPool_add(tp, CLOSURE_KIND_PPII, (ClosureHandler_generic) handler, in ThreadPool_add_ppii()
387 SLresult ThreadPool_add_piipp(ThreadPool *tp, ClosureHandler_piipp handler, in ThreadPool_add_piipp() argument
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/os/
DHandler_Delegate.java35 /*package*/ static boolean sendMessageAtTime(Handler handler, Message msg, long uptimeMillis) { in sendMessageAtTime() argument
39 callback.sendMessageAtTime(handler, msg, uptimeMillis); in sendMessageAtTime()
47 void sendMessageAtTime(Handler handler, Message msg, long uptimeMillis); in sendMessageAtTime() argument
/frameworks/base/core/java/android/content/
DIntentSender.java111 FinishedDispatcher(IntentSender pi, OnFinished who, Handler handler) { in FinishedDispatcher() argument
114 mHandler = handler; in FinishedDispatcher()
156 OnFinished onFinished, Handler handler) throws SendIntentException { in sendIntent() argument
157 sendIntent(context, code, intent, onFinished, handler, null); in sendIntent()
187 OnFinished onFinished, Handler handler, String requiredPermission) in sendIntent() argument
195 ? new FinishedDispatcher(this, onFinished, handler) in sendIntent()
DAsyncQueryHandler.java50 public Handler handler; field in AsyncQueryHandler.WorkerArgs
111 Message reply = args.handler.obtainMessage(token); in handleMessage()
172 args.handler = this; in startQuery()
214 args.handler = this; in startInsert()
240 args.handler = this; in startUpdate()
268 args.handler = this; in startDelete()
/frameworks/base/core/java/android/view/
DGestureDetector.java258 GestureHandler(Handler handler) { in GestureHandler() argument
259 super(handler.getLooper()); in GestureHandler()
302 public GestureDetector(OnGestureListener listener, Handler handler) { in GestureDetector() argument
303 this(null, listener, handler); in GestureDetector()
351 public GestureDetector(Context context, OnGestureListener listener, Handler handler) { in GestureDetector() argument
352 this(context, listener, handler, context != null && in GestureDetector()
370 public GestureDetector(Context context, OnGestureListener listener, Handler handler, in GestureDetector() argument
372 if (handler != null) { in GestureDetector()
373 mHandler = new GestureHandler(handler); in GestureDetector()
/frameworks/base/core/tests/coretests/src/android/net/http/
DCookiesTest.java58 StreamHandler handler = new StreamHandler(out, new SimpleFormatter()); in testCookiesAreNotLogged() local
59 logger.addHandler(handler); in testCookiesAreNotLogged()
63 handler.close(); in testCookiesAreNotLogged()
71 logger.removeHandler(handler); in testCookiesAreNotLogged()
/frameworks/base/core/java/android/app/
DPendingIntent.java144 FinishedDispatcher(PendingIntent pi, OnFinished who, Handler handler) { in FinishedDispatcher() argument
147 mHandler = handler; in FinishedDispatcher()
503 public void send(int code, OnFinished onFinished, Handler handler) in send() argument
505 send(null, code, null, onFinished, handler, null); in send()
540 OnFinished onFinished, Handler handler) throws CanceledException { in send() argument
541 send(context, code, intent, onFinished, handler, null); in send()
581 OnFinished onFinished, Handler handler, String requiredPermission) in send() argument
589 ? new FinishedDispatcher(this, onFinished, handler) in send()
/frameworks/base/tools/preload/
Dsorttable.js374 function dean_addEvent(element, type, handler) { argument
376 element.addEventListener(type, handler, false);
379 if (!handler.$$guid) handler.$$guid = dean_addEvent.guid++;
392 handlers[handler.$$guid] = handler;
400 function removeEvent(element, type, handler) { argument
402 element.removeEventListener(type, handler, false);
406 delete element.events[type][handler.$$guid];
/frameworks/base/obex/javax/obex/
DSessionNotifier.java87 ObexSession acceptAndOpen(ServerRequestHandler handler) throws IOException; in acceptAndOpen() argument
127 ObexSession acceptAndOpen(ServerRequestHandler handler, Authenticator auth) throws IOException; in acceptAndOpen() argument

123456