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

12345

/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 DWebViewClient.java30 * proper handler for the url. If WebViewClient is provided, return true
190 * resource. The host application must call either handler.cancel() or
191 * handler.proceed(). Note that the decision may be retained for use in
196 * @param handler An SslErrorHandler object that will handle the user's
200 public void onReceivedSslError(WebView view, SslErrorHandler handler, argument
202 handler.cancel();
218 * has to call either handler.cancel() or handler.proceed() as the
223 * @param handler An ClientCertRequestHandler object that will
230 ClientCertRequestHandler handler, Strin
229 onReceivedClientCertRequest(WebView view, ClientCertRequestHandler handler, String host_and_port) argument
244 onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm) argument
[all...]
/frameworks/base/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/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/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 LOGW("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/base/include/utils/
H A DLooper.h54 /* The message type. (interpretation is left up to the handler) */
60 * Interface for a Looper message handler.
62 * The Looper holds a strong reference to the message handler whenever it has
64 * to remove any pending messages destined for the handler so that the handler
80 * A simple proxy that holds a weak reference to a message handler.
84 WeakMessageHandler(const wp<MessageHandler>& handler);
214 * Enqueues a message to be processed by the specified handler.
216 * The handler must not be null.
219 void sendMessage(const sp<MessageHandler>& handler, cons
298 MessageEnvelope(nsecs_t uptime, const sp<MessageHandler> handler, const Message& message) argument
303 sp<MessageHandler> handler; member in struct:android::Looper::MessageEnvelope
[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/base/core/java/android/bluetooth/
H A DBluetoothServerSocket.java126 /*package*/ synchronized void setCloseHandler(Handler handler, int message) { argument
127 mHandler = handler;
H A DHeadsetBase.java95 int socketFd, int rfcommChannel, Handler handler) {
102 mEventThreadHandler = handler;
197 public boolean connect(Handler handler) { argument
200 mEventThreadHandler = handler;
224 * error. On error, handler will be called, and you need to re-initiate
227 public int waitForAsyncConnect(int timeout_ms, Handler handler) { argument
230 mEventThreadHandler = handler;
93 HeadsetBase(PowerManager pm, BluetoothAdapter adapter, BluetoothDevice device, int socketFd, int rfcommChannel, Handler handler) argument
H A DAtParser.java36 * external handler method is called through the AtCommandHandler interface.
41 * passed to the handler as a string argument (e.g. "T1234567890").
110 * Register a Basic command handler.<p>
114 * @param handler Handler to register
116 public void register(Character command, AtCommandHandler handler) { argument
117 mBasicHandlers.put(command, handler);
121 * Register an Extended command handler.<p>
130 * @param handler Handler to register
132 public void register(String command, AtCommandHandler handler) { argument
133 mExtHandlers.put(command, handler);
[all...]
/frameworks/base/core/java/android/accounts/
H A DAccountManager.java251 public AccountManager(Context context, IAccountManager service, Handler handler) { argument
254 mMainHandler = handler;
425 * @param handler {@link Handler} identifying the callback thread,
432 AccountManagerCallback<Boolean> callback, Handler handler) {
435 return new Future2Task<Boolean>(handler, callback) {
469 * @param handler {@link Handler} identifying the callback thread,
477 AccountManagerCallback<Account[]> callback, Handler handler) {
479 return new Future2Task<Account[]>(handler, callback) {
538 * @param handler {@link Handler} identifying the callback thread,
545 AccountManagerCallback<Boolean> callback, Handler handler) {
430 hasFeatures(final Account account, final String[] features, AccountManagerCallback<Boolean> callback, Handler handler) argument
475 getAccountsByTypeAndFeatures( final String type, final String[] features, AccountManagerCallback<Account[]> callback, Handler handler) argument
544 removeAccount(final Account account, AccountManagerCallback<Boolean> callback, Handler handler) argument
815 getAuthToken( final Account account, final String authTokenType, final Bundle options, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument
905 getAuthToken( final Account account, final String authTokenType, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument
983 getAuthToken( final Account account, final String authTokenType, final Bundle options, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument
1051 addAccount(final String accountType, final String authTokenType, final String[] requiredFeatures, final Bundle addAccountOptions, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument
1124 confirmCredentials(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1184 updateCredentials(final Account account, final String authTokenType, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1235 editProperties(final String accountType, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1259 postToHandler(Handler handler, final AccountManagerCallback<Bundle> callback, final AccountManagerFuture<Bundle> future) argument
1269 postToHandler(Handler handler, final OnAccountsUpdateListener listener, final Account[] accounts) argument
1294 AmsTask(Activity activity, Handler handler, AccountManagerCallback<Bundle> callback) argument
1419 BaseFutureTask(Handler handler) argument
1476 Future2Task(Handler handler, AccountManagerCallback<T> callback) argument
1568 GetAuthTokenByTypeAndFeaturesTask(final String accountType, final String authTokenType, final String[] features, Activity activityForPrompting, final Bundle addAccountOptions, final Bundle loginOptions, AccountManagerCallback<Bundle> callback, Handler handler) argument
1760 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
1880 addOnAccountsUpdatedListener(final OnAccountsUpdateListener listener, Handler handler, boolean updateImmediately) argument
[all...]
H A DIAccountAuthenticatorCache.java58 * @param handler the {@link Handler} on which the notification will be posted. If null
62 Handler handler);
61 setListener(RegisteredServicesCacheListener<AuthenticatorDescription> listener, Handler handler) argument
/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() {
323 Handler handler = new Handler();
327 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DURATION);
346 Handler handler = new Handler();
350 handler.postDelayed(new Ender(mAnimator, mFuture), ANIM_MID_DURATION);
370 Handler handler = new Handler();
374 handler
[all...]
/frameworks/base/core/java/android/content/
H A DIntentSender.java111 FinishedDispatcher(IntentSender pi, OnFinished who, Handler handler) { argument
114 mHandler = handler;
147 * @param handler Handler identifying the thread on which the callback
156 OnFinished onFinished, Handler handler) throws SendIntentException {
157 sendIntent(context, code, intent, onFinished, handler, null);
173 * @param handler Handler identifying the thread on which the callback
187 OnFinished onFinished, Handler handler, String requiredPermission)
195 ? new FinishedDispatcher(this, onFinished, handler)
155 sendIntent(Context context, int code, Intent intent, OnFinished onFinished, Handler handler) argument
186 sendIntent(Context context, int code, Intent intent, OnFinished onFinished, Handler handler, String requiredPermission) argument
/frameworks/base/libs/utils/
H A DLooper.cpp29 WeakMessageHandler::WeakMessageHandler(const wp<MessageHandler>& handler) : argument
30 mHandler(handler) {
34 sp<MessageHandler> handler = mHandler.promote(); local
35 if (handler != NULL) {
36 handler->handleMessage(message);
374 // We keep a strong reference to the handler until the call to handleMessage
375 // finishes. Then we drop it so that the handler can be deleted *before*
377 { // obtain handler
378 sp<MessageHandler> handler = messageEnvelope.handler; local
664 sendMessage(const sp<MessageHandler>& handler, const Message& message) argument
669 sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, const Message& message) argument
675 sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, const Message& message) argument
709 removeMessages(const sp<MessageHandler>& handler) argument
726 removeMessages(const sp<MessageHandler>& handler, int what) argument
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DBlockingMediaPlayer.java70 Handler handler = new Handler(thread.getLooper());
72 handler.post(new Runnable() {
79 handler.post(new Runnable() {
83 // No new messages should get posted to the handler thread after this
100 * Called on the handler thread.
135 * Called on the handler thread.
/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);
H A DPowerTestActivity.java48 private Handler handler; field in class:PowerTestActivity
87 handler = new Handler() {
130 handler.sendMessageDelayed(handler.obtainMessage(MSG_TIMEOUT),
161 handler.postDelayed(pageDoneRunner, manualDelay);
179 return handler;
221 handler.postDelayed(new WebViewStatusChecker(), 500);
254 handler.removeMessages(MSG_TIMEOUT);
256 handler.postDelayed(pageDoneRunner, manualDelay);
/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);
/frameworks/base/core/java/com/android/internal/widget/
H A DTransportControlView.java89 // This handler is required to ensure messages from IRCD are handled in sequence and on
143 IRemoteControlDisplayWeak(Handler handler) { argument
144 mLocalHandler = new WeakReference<Handler>(handler);
148 Handler handler = mLocalHandler.get();
149 if (handler != null) {
150 handler.obtainMessage(MSG_UPDATE_STATE, generationId, state).sendToTarget();
155 Handler handler = mLocalHandler.get();
156 if (handler != null) {
157 handler.obtainMessage(MSG_SET_METADATA, generationId, 0, metadata).sendToTarget();
162 Handler handler
[all...]
/frameworks/base/core/java/android/database/
H A DContentObserver.java77 * @param handler The handler to run {@link #onChange} on.
79 public ContentObserver(Handler handler) { argument
80 mHandler = handler;
/frameworks/base/core/java/android/os/
H A DRemoteCallback.java55 public RemoteCallback(Handler handler) { argument
56 mHandler = handler;
H A DResultReceiver.java60 * <var>handler</var> if given, or from an arbitrary thread if null.
62 public ResultReceiver(Handler handler) { argument
64 mHandler = handler;

Completed in 727 milliseconds

12345