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

1234567

/frameworks/compile/mclinker/lib/Support/Unix/
H A 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 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/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...]
H A DWebViewClientClassicExt.java40 * has to call either handler.cancel() or handler.proceed() as the
45 * @param handler A ClientCertRequestHandler object that will
50 ClientCertRequestHandler handler, String host_and_port) {
51 handler.cancel();
49 onReceivedClientCertRequest(WebView view, ClientCertRequestHandler handler, String host_and_port) argument
H A DWebViewClient.java31 * proper handler for the url. If WebViewClient is provided, return true
191 * resource. The host application must call either handler.cancel() or
192 * handler.proceed(). Note that the decision may be retained for use in
197 * @param handler An SslErrorHandler object that will handle the user's
201 public void onReceivedSslError(WebView view, SslErrorHandler handler, argument
203 handler.cancel();
213 * @param handler the HttpAuthHandler used to set the WebView's response
219 HttpAuthHandler handler, String host, String realm) {
220 handler.cancel();
218 onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm) argument
/frameworks/native/libs/utils/tests/
H A DLooper_test.cpp63 virtual int handler(int fd, int events) = 0;
67 return static_cast<CallbackHandler*>(data)->handler(fd, events);
84 virtual int handler(int fd, int events) { function in class:android::StubCallbackHandler
166 StubCallbackHandler handler(true);
168 handler.setCallback(mLooper, pipe.receiveFd, ALOOPER_EVENT_INPUT);
178 EXPECT_EQ(0, handler.callbackCount)
184 StubCallbackHandler handler(true);
187 handler.setCallback(mLooper, pipe.receiveFd, ALOOPER_EVENT_INPUT);
197 EXPECT_EQ(1, handler.callbackCount)
199 EXPECT_EQ(pipe.receiveFd, handler
441 sp<StubMessageHandler> handler = new StubMessageHandler(); local
489 sp<StubMessageHandler> handler = new StubMessageHandler(); local
525 sp<StubMessageHandler> handler = new StubMessageHandler(); local
543 sp<StubMessageHandler> handler = new StubMessageHandler(); local
562 sp<StubMessageHandler> handler = new StubMessageHandler(); local
599 sp<StubMessageHandler> handler = new StubMessageHandler(); local
618 sp<StubMessageHandler> handler = new StubMessageHandler(); local
636 sp<StubMessageHandler> handler = new StubMessageHandler(); local
662 sp<StubMessageHandler> handler = new StubMessageHandler(); local
[all...]
/frameworks/compile/mclinker/lib/Support/
H A DMemoryAreaFactory.cpp47 FileHandle* handler = new FileHandle(); local
48 if (!handler->open(pPath, pMode)) {
50 << sys::strerror(handler->error());
54 new (result) MemoryArea(*m_pRegionFactory, *handler);
56 m_HandleToArea.push_back(handler, result);
71 FileHandle* handler = new FileHandle(); local
72 if (!handler->open(pPath, pMode, pPerm)) {
74 << sys::strerror(handler->error());
78 new (result) MemoryArea(*m_pRegionFactory, *handler);
80 m_HandleToArea.push_back(handler, resul
108 FileHandle* handler = new FileHandle(); local
[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/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/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 ALOGW("failed to post message. Target handler not registered.");
95 "Target handler
34 registerHandler( const sp<ALooper> looper, const sp<AHandler> &handler) argument
108 sp<AHandler> handler; local
[all...]
/frameworks/compile/mclinker/unittests/
H A DMemoryAreaTest.cpp69 ASSERT_TRUE(area->handler()->isOpened());
70 ASSERT_TRUE(area->handler()->isGood());
78 area->handler()->close();
80 area->handler()->open(path, FileHandle::ReadOnly);
81 ASSERT_TRUE(area->handler()->isOpened());
82 ASSERT_TRUE(area->handler()->isGood());
97 ASSERT_TRUE(area->handler()->isOpened()) ;
98 ASSERT_TRUE(area->handler()->isGood()) ;
113 ASSERT_TRUE(area->handler()->isOpened()) ;
114 ASSERT_TRUE(area->handler()
[all...]
/frameworks/native/include/utils/
H A DLooper.h44 /* The message type. (interpretation is left up to the handler) */
50 * Interface for a Looper message handler.
52 * The Looper holds a strong reference to the message handler whenever it has
54 * to remove any pending messages destined for the handler so that the handler
70 * A simple proxy that holds a weak reference to a message handler.
77 WeakMessageHandler(const wp<MessageHandler>& handler);
254 * Enqueues a message to be processed by the specified handler.
256 * The handler must not be null.
259 void sendMessage(const sp<MessageHandler>& handler, cons
338 MessageEnvelope(nsecs_t uptime, const sp<MessageHandler> handler, const Message& message) argument
343 sp<MessageHandler> handler; member in struct:android::Looper::MessageEnvelope
[all...]
/frameworks/base/media/java/android/media/
H A DRemoteDisplay.java46 private RemoteDisplay(Listener listener, Handler handler) { argument
48 mHandler = handler;
65 * @param handler The handler on which to invoke the listener.
67 public static RemoteDisplay listen(String iface, Listener listener, Handler handler) { argument
74 if (handler == null) {
75 throw new IllegalArgumentException("handler must not be null");
78 RemoteDisplay display = new RemoteDisplay(listener, handler);
/frameworks/native/libs/utils/
H A DLooper.cpp29 WeakMessageHandler::WeakMessageHandler(const wp<MessageHandler>& handler) : argument
30 mHandler(handler) {
37 sp<MessageHandler> handler = mHandler.promote(); local
38 if (handler != NULL) {
39 handler->handleMessage(message);
280 // We keep a strong reference to the handler until the call to handleMessage
281 // finishes. Then we drop it so that the handler can be deleted *before*
283 { // obtain handler
284 sp<MessageHandler> handler = messageEnvelope.handler; local
481 sendMessage(const sp<MessageHandler>& handler, const Message& message) argument
486 sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, const Message& message) argument
492 sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, const Message& message) argument
526 removeMessages(const sp<MessageHandler>& handler) argument
543 removeMessages(const sp<MessageHandler>& handler, int what) argument
[all...]
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DReliabilityTestActivity.java55 private Handler handler; field in class:ReliabilityTestActivity
91 handler = new Handler() {
134 handler.sendMessageDelayed(handler.obtainMessage(MSG_TIMEOUT),
165 handler.postDelayed(pageDoneRunner, manualDelay);
183 return handler;
208 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { argument
211 handler.proceed();
215 public void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, argument
218 handler
[all...]
/frameworks/compile/mclinker/unittests/Linker/
H A DTestLinker.cpp150 mcld::FileHandle* handler = new mcld::FileHandle(); local
151 m_FileHandleList.push_back(handler);
152 if (!handler->open(pPath, mcld::FileHandle::ReadOnly)) {
155 << mcld::sys::strerror(handler->error());
158 mcld::MemoryArea* input_memory = new MemoryArea(*m_pRegionFactory, *handler);
186 mcld::Input* input = m_pInfo->inputFactory().produce("handler object", "NAN",
193 mcld::FileHandle* handler = new mcld::FileHandle(); local
194 m_FileHandleList.push_back(handler);
195 handler->delegate(pFileHandler);
197 mcld::MemoryArea* input_memory = new MemoryArea(*m_pRegionFactory, *handler);
244 mcld::FileHandle* handler = new mcld::FileHandle(); local
[all...]
/frameworks/base/core/java/android/accounts/
H A DAccountManager.java252 public AccountManager(Context context, IAccountManager service, Handler handler) { argument
255 mMainHandler = handler;
438 * @param handler the handler on which to invoke the callback, or null for the main thread
444 AccountManagerCallback<String> callback, Handler handler) {
447 return new Future2Task<String>(handler, callback) {
480 * @param handler {@link Handler} identifying the callback thread,
487 AccountManagerCallback<Boolean> callback, Handler handler) {
490 return new Future2Task<Boolean>(handler, callback) {
524 * @param handler {
442 getAuthTokenLabel( final String accountType, final String authTokenType, AccountManagerCallback<String> callback, Handler handler) argument
485 hasFeatures(final Account account, final String[] features, AccountManagerCallback<Boolean> callback, Handler handler) argument
530 getAccountsByTypeAndFeatures( final String type, final String[] features, AccountManagerCallback<Account[]> callback, Handler handler) argument
599 removeAccount(final Account account, AccountManagerCallback<Boolean> callback, Handler handler) argument
870 getAuthToken( final Account account, final String authTokenType, final Bundle options, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument
960 getAuthToken( final Account account, final String authTokenType, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument
1038 getAuthToken( final Account account, final String authTokenType, final Bundle options, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument
1106 addAccount(final String accountType, final String authTokenType, final String[] requiredFeatures, final Bundle addAccountOptions, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument
1179 confirmCredentials(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1193 confirmCredentialsAsUser(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler, UserHandle userHandle) argument
1255 updateCredentials(final Account account, final String authTokenType, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1306 editProperties(final String accountType, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1330 postToHandler(Handler handler, final AccountManagerCallback<Bundle> callback, final AccountManagerFuture<Bundle> future) argument
1340 postToHandler(Handler handler, final OnAccountsUpdateListener listener, final Account[] accounts) argument
1365 AmsTask(Activity activity, Handler handler, AccountManagerCallback<Bundle> callback) argument
1490 BaseFutureTask(Handler handler) argument
1547 Future2Task(Handler handler, AccountManagerCallback<T> callback) argument
1639 GetAuthTokenByTypeAndFeaturesTask(final String accountType, final String authTokenType, final String[] features, Activity activityForPrompting, final Bundle addAccountOptions, final Bundle loginOptions, AccountManagerCallback<Bundle> callback, Handler handler) argument
1831 getAuthTokenByFeatures( final String accountType, final String authTokenType, final String[] features, final Activity activity, final Bundle addAccountOptions, final Bundle getAuthTokenOptions, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1952 addOnAccountsUpdatedListener(final OnAccountsUpdateListener listener, Handler handler, boolean updateImmediately) argument
[all...]
H A DIAccountAuthenticatorCache.java59 * @param handler the {@link Handler} on which the notification will be posted. If null
63 Handler handler);
62 setListener(RegisteredServicesCacheListener<AuthenticatorDescription> listener, Handler handler) argument
/frameworks/support/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/animation/
H A DValueAnimator.java37 * custom handler to ensure that property changes happen on the UI thread.</p>
527 * This custom, static handler handles the timing pulse that is shared by
533 * The handler uses the Choreographer for executing periodic callbacks.
609 // tells the handler whether it should now be ended
930 AnimationHandler handler = getOrCreateAnimationHandler();
932 || handler.mPendingAnimations.contains(this)
933 || handler.mDelayedAnims.contains(this)) {
946 endAnimation(handler);
952 AnimationHandler handler = getOrCreateAnimationHandler();
953 if (!handler
998 endAnimation(AnimationHandler handler) argument
1024 startAnimation(AnimationHandler handler) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/animation/
H A DViewPropertyAnimatorTest.java107 Handler handler = new Handler();
108 handler.postDelayed(new Runnable() {
118 Handler handler = new Handler();
119 handler.postDelayed(new Runnable() {
255 Handler handler = new Handler();
259 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DURATION);
279 Handler handler = new Handler();
283 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DURATION);
307 Handler handler = new Handler();
310 handler
[all...]
H A DEventsTest.java125 Handler handler = new Handler();
126 handler.postDelayed(new Runnable() {
136 Handler handler = new Handler();
137 handler.postDelayed(new Runnable() {
322 Handler handler = new Handler();
326 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DURATION);
345 Handler handler = new Handler();
349 handler.postDelayed(new Ender(mAnimator, mFuture), ANIM_MID_DURATION);
369 Handler handler = new Handler();
373 handler
[all...]
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/
H A DPowerMeasurement.java51 Handler handler = activity.getHandler();
52 Message msg = handler.obtainMessage(
57 handler.sendMessage(msg);
/frameworks/wilhelm/src/
H A DThreadPool.h92 extern SLresult ThreadPool_add_ppi(ThreadPool *tp, ClosureHandler_ppi handler,
94 extern SLresult ThreadPool_add_ppii(ThreadPool *tp, ClosureHandler_ppii handler,
96 extern SLresult ThreadPool_add_piipp(ThreadPool *tp, ClosureHandler_piipp handler,
/frameworks/base/core/tests/coretests/src/android/net/http/
H A DCookiesTest.java58 StreamHandler handler = new StreamHandler(out, new SimpleFormatter());
59 logger.addHandler(handler);
63 handler.close();
71 logger.removeHandler(handler);

Completed in 5452 milliseconds

1234567