Home
last modified time | relevance | path

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

12345678910>>...27

/frameworks/compile/mclinker/lib/Support/Windows/
DPathV3.inc47 size_t handler = 0;
50 while (handler < pathname.size()) {
51 if (separator == pathname[handler]) { // handler = 1st '/'
52 size_t next = handler + 1;
54 return handler;
55 switch (pathname[next]) { // next = handler + 1;
60 pathname.erase(handler, next - handler - 1);
61 // handler is the first '/'
62 slash_stack.push(handler);
66 ++next; // next = handler + 2
[all …]
/frameworks/compile/mclinker/lib/LD/
DEhFrameReader.cpp131 ConstAddress handler = (ConstAddress)sect_reg.begin(); in read() local
135 Token token = scan<true>(handler, file_off, sect_reg); in read()
146 handler += token.size; in read()
148 if (handler == sect_reg.end()) { in read()
150 } else if (handler > sect_reg.end()) { in read()
169 ConstAddress handler = pRegion.begin() + pToken.data_off; in addCIE() local
171 ConstAddress handler_start = handler; in addCIE()
175 uint8_t version = *handler++; in addCIE()
181 ConstAddress aug_str_front = handler; in addCIE()
189 handler = aug_str_back + 1; in addCIE()
[all …]
/frameworks/compile/mclinker/lib/Support/Unix/
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 is the first '/'
68 slash_stack.push(handler);
72 ++next; // next = handler + 2
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java218 private BidirectionalAsyncChannel connectChannel(Handler handler) { in connectChannel() argument
221 handler); in connectChannel() local
227 private static Message verifyHandleMessageAndGetMessage(InOrder order, Handler handler) { in verifyHandleMessageAndGetMessage() argument
229 order.verify(handler).handleMessage(messageCaptor.capture()); in verifyHandleMessageAndGetMessage()
258 private static Message verifyHandleMessageAndGetMessage(InOrder order, Handler handler, in verifyHandleMessageAndGetMessage() argument
262 order.verify(handler).handleMessage(argThat(messageMatcher)); in verifyHandleMessageAndGetMessage()
266 private static void verifyScanResultsReceived(InOrder order, Handler handler, int listenerId, in verifyScanResultsReceived() argument
268 Message scanResultMessage = verifyHandleMessageAndGetMessage(order, handler, in verifyScanResultsReceived()
281 private static void verifySingleScanCompletedReceived(InOrder order, Handler handler, in verifySingleScanCompletedReceived() argument
283 Message completedMessage = verifyHandleMessageAndGetMessage(order, handler, in verifySingleScanCompletedReceived()
[all …]
/frameworks/av/media/libstagefright/foundation/
DALooperRoster.cpp37 const sp<ALooper> &looper, const sp<AHandler> &handler) { in registerHandler() argument
40 if (handler->id() != 0) { in registerHandler()
47 info.mHandler = handler; in registerHandler()
51 handler->setID(handlerID, looper); in registerHandler()
67 sp<AHandler> handler = info.mHandler.promote(); in unregisterHandler() local
69 if (handler != NULL) { in unregisterHandler()
70 handler->setID(0, NULL); in unregisterHandler()
142 sp<AHandler> handler = info.mHandler.promote(); in dump() local
143 if (handler != NULL) { in dump()
144 handler->mVerboseStats = verboseStats; in dump()
[all …]
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanScanner.java72 public synchronized void setCallback(@Nullable Callback cb, @Nullable Handler handler) { in setCallback() argument
74 mHandler = handler; in setCallback()
178 Handler handler; in startNetScan()
182 handler = mHandler; in startNetScan()
191 if (handler != null) { in startNetScan()
192 handler.post(runnable); in startNetScan()
200 Handler handler; in startNetScan()
204 handler = mHandler; in startNetScan()
213 if (handler != null) { in startNetScan()
214 handler.post(runnable); in startNetScan()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
DApduSender.java101 Handler handler) { in send() argument
114 resultCallback, handler); in send()
120 resultCallback, handler); in send()
155 handler); in send()
158 sendCommand(builder.getCommands(), 0 /* index */, resultCallback, handler); in send()
160 }, handler); in send()
174 Handler handler) { in sendCommand() argument
189 new ApduException(status), resultCallback, handler); in sendCommand()
199 sendCommand(commands, index + 1, resultCallback, handler); in sendCommand()
203 null /* exception */, resultCallback, handler); in sendCommand()
[all …]
/frameworks/base/core/java/android/webkit/
DUrlInterceptRegistry.java90 UrlInterceptHandler handler) { in registerHandler() argument
91 if (!getHandlers().contains(handler)) { in registerHandler()
92 getHandlers().addFirst(handler); in registerHandler()
112 UrlInterceptHandler handler) { in unregisterHandler() argument
113 return getHandlers().remove(handler); in unregisterHandler()
135 UrlInterceptHandler handler = (UrlInterceptHandler) iter.next(); in getSurrogate() local
136 CacheResult result = handler.service(url, headers); in getSurrogate()
165 UrlInterceptHandler handler = (UrlInterceptHandler) iter.next(); in getPluginData() local
166 PluginData data = handler.getPluginData(url, headers); in getPluginData()
/frameworks/base/core/java/com/android/internal/util/
DWakeupMessage.java53 public WakeupMessage(Context context, Handler handler, in WakeupMessage() argument
56 mHandler = handler; in WakeupMessage()
65 public WakeupMessage(Context context, Handler handler, String cmdName, int cmd, int arg1) { in WakeupMessage() argument
66 this(context, handler, cmdName, cmd, arg1, 0, null); in WakeupMessage()
69 public WakeupMessage(Context context, Handler handler, in WakeupMessage() argument
71 this(context, handler, cmdName, cmd, arg1, arg2, null); in WakeupMessage()
74 public WakeupMessage(Context context, Handler handler, String cmdName, int cmd) { in WakeupMessage() argument
75 this(context, handler, cmdName, cmd, 0, 0, null); in WakeupMessage()
78 public WakeupMessage(Context context, Handler handler, String cmdName, Runnable runnable) { in WakeupMessage() argument
80 mHandler = handler; in WakeupMessage()
/frameworks/base/media/java/android/media/projection/
DMediaProjection.java74 public void registerCallback(Callback callback, Handler handler) { in registerCallback() argument
78 if (handler == null) { in registerCallback()
79 handler = new Handler(); in registerCallback()
81 mCallbacks.put(callback, new CallbackRecord(callback, handler)); in registerCallback()
102 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay() argument
115 return dm.createVirtualDisplay(this, builder.build(), callback, handler); in createVirtualDisplay()
143 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay() argument
150 return createVirtualDisplay(builder.build(), callback, handler); in createVirtualDisplay()
170 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay() argument
172 return dm.createVirtualDisplay(this, virtualDisplayConfig, callback, handler); in createVirtualDisplay()
[all …]
/frameworks/base/core/java/android/accounts/
DAccountManager.java422 public AccountManager(Context context, IAccountManager service, Handler handler) { in AccountManager() argument
425 mMainHandler = handler; in AccountManager()
755 AccountManagerCallback<String> callback, Handler handler) { in getAuthTokenLabel() argument
758 return new Future2Task<String>(handler, callback) { in getAuthTokenLabel()
799 AccountManagerCallback<Boolean> callback, Handler handler) {
802 return new Future2Task<Boolean>(handler, callback) {
860 AccountManagerCallback<Account[]> callback, Handler handler) {
862 return new Future2Task<Account[]>(handler, callback) {
1118 Handler handler) {
1123 return new Future2Task<Account>(handler, callback) {
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/async/
DAsyncResultHelper.java36 final T result, final AsyncResultCallback<T> callback, @Nullable Handler handler) { in returnResult() argument
37 if (handler == null) { in returnResult()
40 handler.post( in returnResult()
56 final Throwable e, final AsyncResultCallback<?> callback, @Nullable Handler handler) { in throwException() argument
57 if (handler == null) { in throwException()
60 handler.post( in throwException()
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsAdapterTest.java99 waitOnHandler(mContext.handler.get()); in onRemoteAdapterConnected_after_metadata_loaded()
118 waitOnHandler(mContext.handler.get()); in viewReplaced_after_mainView_loaded()
129 waitOnHandler(mContext.handler.get()); in viewReplaced_after_mainView_loaded()
152 waitOnHandler(mContext.handler.get()); in notifyDataSetChanged_deferred()
172 waitOnHandler(mContext.handler.get()); in notifyDataSetChanged_deferred()
192 waitOnHandler(mContext.handler.get()); in serviceDisconnected_before_getView()
199 getOnHandler(mContext.handler.get(), () -> { in serviceDisconnected_before_getView()
214 waitOnHandler(mContext.handler.get()); in serviceDisconnected_before_getView()
230 Handler handler = mContext.handler.get(); in isUnboundOrScheduled() local
231 return getOnHandler(handler, () -> mContext.boundCount == 0 in isUnboundOrScheduled()
[all …]
/frameworks/base/core/java/android/appwidget/
DAppWidgetHost.java78 public Callbacks(Handler handler) { in Callbacks() argument
79 mWeakHandler = new WeakReference<>(handler); in Callbacks()
86 Handler handler = mWeakHandler.get(); in updateAppWidget() local
87 if (handler == null) { in updateAppWidget()
90 Message msg = handler.obtainMessage(HANDLE_UPDATE, appWidgetId, 0, views); in updateAppWidget()
98 Handler handler = mWeakHandler.get(); in providerChanged() local
99 if (handler == null) { in providerChanged()
102 Message msg = handler.obtainMessage(HANDLE_PROVIDER_CHANGED, in providerChanged()
108 Handler handler = mWeakHandler.get(); in appWidgetRemoved() local
109 if (handler == null) { in appWidgetRemoved()
[all …]
/frameworks/base/core/java/android/accessibilityservice/
DFingerprintGestureController.java106 @NonNull FingerprintGestureCallback callback, @Nullable Handler handler) { in registerFingerprintGestureCallback() argument
108 mCallbackHandlerMap.put(callback, handler); in registerFingerprintGestureCallback()
136 Handler handler = handlerMap.valueAt(i); in onGestureDetectionActiveChanged() local
137 if (handler != null) { in onGestureDetectionActiveChanged()
138 handler.post(() -> callback.onGestureDetectionAvailabilityChanged(active)); in onGestureDetectionActiveChanged()
157 Handler handler = handlerMap.valueAt(i); in onGesture() local
158 if (handler != null) { in onGesture()
159 handler.post(() -> callback.onGestureDetected(gesture)); in onGesture()
/frameworks/base/core/tests/coretests/src/android/animation/
DEventsTest.java191 Handler handler = new Handler(); in FutureReleaseListener() local
192 handler.postDelayed(mFuture::release, timeout); in FutureReleaseListener()
197 Handler handler = new Handler(); in onAnimationEnd() local
198 handler.postDelayed(mFuture::release, FUTURE_RELEASE_DELAY); in onAnimationEnd()
365 Handler handler = new Handler(); in testPlayingCancel() local
369 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DURATION); in testPlayingCancel()
386 Handler handler = new Handler(); in testPlayingEnd() local
390 handler.postDelayed(new Ender(mAnimator, mFuture), ANIM_MID_DURATION); in testPlayingEnd()
408 Handler handler = new Handler(); in testPlayingDelayedCancel() local
412 handler.postDelayed(new Canceler(mAnimator, mFuture), ANIM_MID_DURATION); in testPlayingDelayedCancel()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DGLThreadManager.java173 Handler handler = mGLHandlerThread.getHandler(); in quit() local
174 handler.sendMessageAtFrontOfQueue(handler.obtainMessage(MSG_CLEANUP)); in quit()
190 Handler handler = mGLHandlerThread.getHandler(); in queueNewFrame() local
196 if (!handler.hasMessages(MSG_NEW_FRAME)) { in queueNewFrame()
197 handler.sendMessage(handler.obtainMessage(MSG_NEW_FRAME)); in queueNewFrame()
214 Handler handler = mGLHandlerThread.getHandler(); in setConfigurationAndWait() local
219 Message m = handler.obtainMessage(MSG_NEW_CONFIGURATION, /*arg1*/0, /*arg2*/0, configure); in setConfigurationAndWait()
220 handler.sendMessage(m); in setConfigurationAndWait()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/internal/
DBackupHandlerTest.java73 BackupHandler handler = new TestBackupHandler(/* shouldStop */ false); in testSendMessage_propagatesExceptions() local
74 handler.sendMessage(getMessage()); in testSendMessage_propagatesExceptions()
82 BackupHandler handler = new TestBackupHandler(/* shouldStop */ false); in testPost_propagatesExceptions() local
83 handler.post(() -> {}); in testPost_propagatesExceptions()
91 BackupHandler handler = new TestBackupHandler(/* shouldStop */ true); in testSendMessage_stopping_doesntPropagateExceptions() local
92 handler.sendMessage(getMessage()); in testSendMessage_stopping_doesntPropagateExceptions()
100 BackupHandler handler = new TestBackupHandler(/* shouldStop */ true); in testPost_stopping_doesntPropagateExceptions() local
101 handler.post(() -> {}); in testPost_stopping_doesntPropagateExceptions()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/
DEuiccCard.java200 public void getSpecVersion(AsyncResultCallback<EuiccSpecVersion> callback, Handler handler) { in getSpecVersion() argument
202 AsyncResultHelper.returnResult(mSpecVersion, callback, handler); in getSpecVersion()
207 (byte[] response) -> mSpecVersion, callback, handler); in getSpecVersion() local
236 public void getAllProfiles(AsyncResultCallback<EuiccProfileInfo[]> callback, Handler handler) { in getAllProfiles() argument
265 callback, handler); in getAllProfiles()
276 Handler handler) { in getProfile() argument
300 callback, handler); in getProfile()
312 Handler handler) { in disableProfile() argument
338 callback, handler); in disableProfile()
351 Handler handler) { in switchToProfile() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCallManager.java548 CallManagerHandler handler = mHandlerMap.get(phone); in registerForPhoneStates() local
549 if (handler != null) { in registerForPhoneStates()
555 handler = new CallManagerHandler(); in registerForPhoneStates()
556 mHandlerMap.put(phone, handler); in registerForPhoneStates()
561 phone.registerForPreciseCallStateChanged(handler, EVENT_PRECISE_CALL_STATE_CHANGED, in registerForPhoneStates()
563 phone.registerForDisconnect(handler, EVENT_DISCONNECT, in registerForPhoneStates()
565 phone.registerForNewRingingConnection(handler, EVENT_NEW_RINGING_CONNECTION, in registerForPhoneStates()
567 phone.registerForUnknownConnection(handler, EVENT_UNKNOWN_CONNECTION, in registerForPhoneStates()
569 phone.registerForIncomingRing(handler, EVENT_INCOMING_RING, in registerForPhoneStates()
571 phone.registerForRingbackTone(handler, EVENT_RINGBACK_TONE, in registerForPhoneStates()
[all …]
/frameworks/base/media/java/android/media/session/
DMediaSessionManager.java297 @Nullable ComponentName notificationListener, @Nullable Handler handler) { in addOnActiveSessionsChangedListener() argument
299 UserHandle.myUserId(), handler); in addOnActiveSessionsChangedListener()
320 @Nullable ComponentName notificationListener, int userId, @Nullable Handler handler) { in addOnActiveSessionsChangedListener() argument
324 if (handler == null) { in addOnActiveSessionsChangedListener()
325 handler = new Handler(); in addOnActiveSessionsChangedListener()
333 handler); in addOnActiveSessionsChangedListener()
394 @NonNull OnSession2TokensChangedListener listener, @NonNull Handler handler) { in addOnSession2TokensChangedListener() argument
395 addOnSession2TokensChangedListener(UserHandle.myUserId(), listener, handler); in addOnSession2TokensChangedListener() local
413 @NonNull OnSession2TokensChangedListener listener, @Nullable Handler handler) { in addOnSession2TokensChangedListener() argument
423 new Session2TokensChangedWrapper(listener, handler); in addOnSession2TokensChangedListener()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiThreadRunner.java47 public WifiThreadRunner(Handler handler) { in WifiThreadRunner() argument
48 mHandler = handler; in WifiThreadRunner()
155 private static boolean runWithScissors(@NonNull Handler handler, @NonNull Runnable r, in runWithScissors() argument
164 if (Looper.myLooper() == handler.getLooper()) { in runWithScissors()
170 return br.postAndWait(handler, timeout); in runWithScissors()
193 public boolean postAndWait(Handler handler, long timeout) { in postAndWait() argument
194 if (!handler.post(this)) { in postAndWait()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServiceTestsBase.java54 boolean waitHandlerIdle(Handler handler) { in waitHandlerIdle() argument
55 return waitHandlerIdle(handler, 0 /* timeout */); in waitHandlerIdle()
58 boolean waitHandlerIdle(Handler handler, long timeout) { in waitHandlerIdle() argument
59 return runWithScissors(handler, () -> { }, timeout); in waitHandlerIdle()
62 boolean runWithScissors(Handler handler, Runnable r, long timeout) { in runWithScissors() argument
63 return mLockRule.runWithScissors(handler, r, timeout); in runWithScissors()
/frameworks/base/media/java/android/media/midi/
DMidiManager.java72 public DeviceListener(DeviceCallback callback, Handler handler) { in DeviceListener() argument
74 mHandler = handler; in DeviceListener()
184 public void registerDeviceCallback(DeviceCallback callback, Handler handler) { in registerDeviceCallback() argument
185 DeviceListener deviceListener = new DeviceListener(callback, handler); in registerDeviceCallback()
224 final OnDeviceOpenedListener listener, Handler handler) { in sendOpenDeviceResponse() argument
225 if (handler != null) { in sendOpenDeviceResponse()
226 handler.post(new Runnable() { in sendOpenDeviceResponse()
247 Handler handler) { in openDevice() argument
250 final Handler handlerF = handler; in openDevice()
283 OnDeviceOpenedListener listener, Handler handler) { in openBluetoothDevice() argument
[all …]
/frameworks/base/graphics/java/android/graphics/
DHardwareRendererObserver.java65 @NonNull long[] frameMetrics, @NonNull Handler handler) { in HardwareRendererObserver() argument
66 if (handler == null || handler.getLooper() == null) { in HardwareRendererObserver()
70 if (handler.getLooper().getQueue() == null) { in HardwareRendererObserver()
75 mHandler = handler; in HardwareRendererObserver()

12345678910>>...27