Home
last modified time | relevance | path

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

12345678910>>...24

/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.java188 private BidirectionalAsyncChannel connectChannel(Handler handler) { in connectChannel() argument
191 handler); in connectChannel() local
197 private static Message verifyHandleMessageAndGetMessage(InOrder order, Handler handler) { in verifyHandleMessageAndGetMessage() argument
199 order.verify(handler).handleMessage(messageCaptor.capture()); in verifyHandleMessageAndGetMessage()
228 private static Message verifyHandleMessageAndGetMessage(InOrder order, Handler handler, in verifyHandleMessageAndGetMessage() argument
232 order.verify(handler).handleMessage(argThat(messageMatcher)); in verifyHandleMessageAndGetMessage()
236 private static void verifyScanResultsReceived(InOrder order, Handler handler, int listenerId, in verifyScanResultsReceived() argument
238 Message scanResultMessage = verifyHandleMessageAndGetMessage(order, handler, in verifyScanResultsReceived()
251 private static void verifySingleScanCompletedReceived(InOrder order, Handler handler, in verifySingleScanCompletedReceived() argument
253 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/hardware/soundtrigger/
DSoundTriggerModule.java46 SoundTriggerModule(int moduleId, SoundTrigger.StatusListener listener, Handler handler) { in SoundTriggerModule() argument
48 mEventHandlerDelegate = new NativeEventHandlerDelegate(listener, handler); in SoundTriggerModule()
157 Handler handler) { in NativeEventHandlerDelegate() argument
160 if (handler != null) { in NativeEventHandlerDelegate()
161 looper = handler.getLooper(); in NativeEventHandlerDelegate()
205 Handler handler() { in handler() method in SoundTriggerModule.NativeEventHandlerDelegate
221 Handler handler = delegate.handler(); in postEventFromNative() local
222 if (handler != null) { in postEventFromNative()
223 Message m = handler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative()
224 handler.sendMessage(m); in postEventFromNative()
/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/packages/SystemUI/src/com/android/systemui/doze/
DDozeFactory.java57 Handler handler = new Handler(); in assembleMachine() local
58 WakeLock wakeLock = new DelayedWakeLock(handler, in assembleMachine()
70 new DozePauser(handler, machine, alarmManager, params.getPolicy()), in assembleMachine()
73 handler, wakeLock, machine, dockManager), in assembleMachine()
74 createDozeUi(context, host, wakeLock, machine, handler, alarmManager, params), in assembleMachine()
75 new DozeScreenState(wrappedService, handler, params, wakeLock), in assembleMachine()
77 handler), in assembleMachine()
79 new DozeDockHandler(context, machine, host, config, handler, dockManager), in assembleMachine()
88 DozeParameters params, Handler handler) { in createDozeScreenBrightness() argument
91 return new DozeScreenBrightness(context, service, sensorManager, sensor, host, handler, in createDozeScreenBrightness()
[all …]
/frameworks/base/core/java/android/accounts/
DAccountManager.java420 public AccountManager(Context context, IAccountManager service, Handler handler) { in AccountManager() argument
423 mMainHandler = handler; in AccountManager()
758 AccountManagerCallback<String> callback, Handler handler) { in getAuthTokenLabel() argument
761 return new Future2Task<String>(handler, callback) { in getAuthTokenLabel()
802 AccountManagerCallback<Boolean> callback, Handler handler) {
805 return new Future2Task<Boolean>(handler, callback) {
863 AccountManagerCallback<Account[]> callback, Handler handler) {
865 return new Future2Task<Account[]>(handler, callback) {
1121 Handler handler) {
1126 return new Future2Task<Account>(handler, callback) {
[all …]
/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/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/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/media/java/android/media/projection/
DMediaProjection.java73 public void registerCallback(Callback callback, Handler handler) { in registerCallback() argument
77 if (handler == null) { in registerCallback()
78 handler = new Handler(); in registerCallback()
80 mCallbacks.put(callback, new CallbackRecord(callback, handler)); in registerCallback()
101 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay() argument
106 DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION, callback, handler, in createVirtualDisplay()
135 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay() argument
138 handler, null /* uniqueId */); in createVirtualDisplay()
187 public CallbackRecord(Callback callback, Handler handler) { in CallbackRecord() argument
189 mHandler = handler; in CallbackRecord()
/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/media/java/android/media/session/
DMediaSessionManager.java294 @Nullable ComponentName notificationListener, @Nullable Handler handler) { in addOnActiveSessionsChangedListener() argument
296 UserHandle.myUserId(), handler); in addOnActiveSessionsChangedListener()
317 @Nullable ComponentName notificationListener, int userId, @Nullable Handler handler) { in addOnActiveSessionsChangedListener() argument
321 if (handler == null) { in addOnActiveSessionsChangedListener()
322 handler = new Handler(); in addOnActiveSessionsChangedListener()
330 handler); in addOnActiveSessionsChangedListener()
391 @NonNull OnSession2TokensChangedListener listener, @NonNull Handler handler) { in addOnSession2TokensChangedListener() argument
392 addOnSession2TokensChangedListener(UserHandle.myUserId(), listener, handler); in addOnSession2TokensChangedListener() local
410 @NonNull OnSession2TokensChangedListener listener, @Nullable Handler handler) { in addOnSession2TokensChangedListener() argument
420 new Session2TokensChangedWrapper(listener, handler); in addOnSession2TokensChangedListener()
[all …]
/frameworks/base/core/java/android/appwidget/
DAppWidgetHost.java77 public Callbacks(Handler handler) { in Callbacks() argument
78 mWeakHandler = new WeakReference<>(handler); in Callbacks()
85 Handler handler = mWeakHandler.get(); in updateAppWidget() local
86 if (handler == null) { in updateAppWidget()
89 Message msg = handler.obtainMessage(HANDLE_UPDATE, appWidgetId, 0, views); in updateAppWidget()
97 Handler handler = mWeakHandler.get(); in providerChanged() local
98 if (handler == null) { in providerChanged()
101 Message msg = handler.obtainMessage(HANDLE_PROVIDER_CHANGED, in providerChanged()
107 Handler handler = mWeakHandler.get(); in providersChanged() local
108 if (handler == null) { in providersChanged()
[all …]
/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/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/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/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/core/java/android/bluetooth/le/
DBluetoothLeAdvertiser.java269 Handler handler) {
271 periodicData, 0, 0, callback, handler);
345 Handler handler) {
415 postStartSetFailure(handler, callback,
422 postStartSetFailure(handler, callback,
427 IAdvertisingSetCallback wrapped = wrap(callback, handler);
438 postStartSetFailure(handler, callback,
532 IAdvertisingSetCallback wrap(AdvertisingSetCallback callback, Handler handler) {
536 handler.post(new Runnable() {
555 handler.post(new Runnable() {
[all …]
DPeriodicAdvertisingManager.java117 PeriodicAdvertisingCallback callback, Handler handler) { in registerSync() argument
151 if (handler == null) { in registerSync()
152 handler = new Handler(Looper.getMainLooper()); in registerSync()
155 IPeriodicAdvertisingCallback wrapped = wrap(callback, handler); in registerSync()
200 Handler handler) { in wrap() argument
205 handler.post(new Runnable() { in wrap()
223 handler.post(new Runnable() { in wrap()
232 handler.post(new Runnable() { in wrap()

12345678910>>...24