Home
last modified time | relevance | path

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

12345678910>>...13

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dreader.h393 ParseResult Parse(InputStream& is, Handler& handler) { in Parse() argument
395 return IterativeParse<parseFlags>(is, handler); in Parse()
408 ParseValue<parseFlags>(is, handler); in Parse()
432 ParseResult Parse(InputStream& is, Handler& handler) { in Parse() argument
433 return Parse<kParseDefaultFlags>(is, handler); in Parse()
467 void ParseObject(InputStream& is, Handler& handler) { in ParseObject() argument
471 if (!handler.StartObject()) in ParseObject()
478 if (!handler.EndObject(0)) // empty object in ParseObject()
487 ParseString<parseFlags>(is, handler, true); in ParseObject()
497 ParseValue<parseFlags>(is, handler); in ParseObject()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dreadertest.cpp1066 BaseReaderHandler<> handler; \
1068 reader.Parse<kParseIterativeFlag>(json, handler); \
1164 IterativeParsingReaderHandler<> handler; in TEST() local
1166 ParseResult r = reader.Parse<kParseIterativeFlag>(is, handler); in TEST()
1172 handler.LOG_STARTARRAY, in TEST()
1173 handler.LOG_INT, in TEST()
1174 handler.LOG_STARTOBJECT, in TEST()
1175 handler.LOG_KEY, in TEST()
1176 handler.LOG_STARTARRAY, in TEST()
1177 handler.LOG_INT, in TEST()
[all …]
/packages/services/Car/vehicle-hal-support-lib/test/com/android/car/vehiclehal/test/
DMockedVehicleHal.java69 VehicleHalPropertyHandler handler) { in addProperty() argument
70 mPropertyHandlerMap.put(config.prop, handler); in addProperty()
103 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(value.prop); in injectEvent() local
104 if (handler != null) { in injectEvent()
105 handler.onPropertySet(value); in injectEvent()
158 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(requestedPropValue.prop); in get() local
159 if (handler == null) { in get()
162 cb.onValues(StatusCode.OK, handler.onPropertyGet(requestedPropValue)); in get()
168 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(propValue.prop); in set() local
169 if (handler == null) { in set()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DConsumers.java38 public static <A> void consumeAsync(Handler handler, in consumeAsync() argument
40 if (handler == null) { in consumeAsync()
43 handler.post(new Runnable() { in consumeAsync()
51 public static <A extends QuietlyCloseable> void consumeCloseableAsync(Handler handler, in consumeCloseableAsync() argument
53 if (handler == null) { in consumeCloseableAsync()
56 handler.post(new Runnable() { in consumeCloseableAsync()
65 final Handler handler, final Consumer<A> consumer) { in createAsyncConsumer() argument
68 consumeAsync(handler, consumer, value); in createAsyncConsumer()
75 final Handler handler, final Consumer<A> consumer) {
78 consumeCloseableAsync(handler, consumer, value);
/packages/services/Car/car-lib/src/android/car/
DCarBugreportManager.java115 Handler handler) { in CarBugreportManagerCallbackWrapper() argument
117 mWeakHandler = new WeakReference<>(handler); in CarBugreportManagerCallbackWrapper()
123 Handler handler = mWeakHandler.get(); in onProgress() local
124 if (handler != null && callback != null) { in onProgress()
125 handler.post(() -> callback.onProgress(progress)); in onProgress()
132 Handler handler = mWeakHandler.get(); in onError() local
133 if (handler != null && callback != null) { in onError()
134 handler.post(() -> callback.onError(errorCode)); in onError()
141 Handler handler = mWeakHandler.get(); in onFinished() local
142 if (handler != null && callback != null) { in onFinished()
[all …]
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DDishService.java89 DishWasherTask(Handler handler, JobParameters jobParameters, int dishNum) { in DishWasherTask() argument
90 mHandler = new WeakReference<Handler>(handler); in DishWasherTask()
111 final Handler handler = mHandler.get(); in onPostExecute() local
112 if (handler == null) { in onPostExecute()
116 Message msg = handler.obtainMessage(MSG_RUN_JOB, mMyDishNum + 1, 0, mJobParameter); in onPostExecute()
117 handler.sendMessageDelayed(msg, DELAY_MS); in onPostExecute()
119 Message msg = handler.obtainMessage(MSG_FINISHED, 0, 0, mJobParameter); in onPostExecute()
120 handler.sendMessage(msg); in onPostExecute()
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DAndroidCameraCaptureSessionProxy.java96 public int capture(CaptureRequest request, CaptureCallback listener, Handler handler) in capture() argument
99 return mSession.capture(request, new AndroidCaptureCallback(listener), handler); in capture()
106 … public int captureBurst(List<CaptureRequest> requests, CaptureCallback listener, Handler handler) in captureBurst() argument
109 return mSession.captureBurst(requests, new AndroidCaptureCallback(listener), handler); in captureBurst()
127 Handler handler) throws CameraAccessException, CameraCaptureSessionClosedException { in setRepeatingBurst() argument
129 … return mSession.setRepeatingBurst(requests, new AndroidCaptureCallback(listener), handler); in setRepeatingBurst()
136 … public int setRepeatingRequest(CaptureRequest request, CaptureCallback listener, Handler handler) in setRepeatingRequest() argument
140 handler); in setRepeatingRequest()
/packages/apps/Dialer/java/com/android/incallui/legacyblocking/
DBlockedNumberContentObserver.java44 @NonNull private final Handler handler; field in BlockedNumberContentObserver
65 @NonNull Context context, @NonNull Handler handler, String number, long timeAddedMillis) { in BlockedNumberContentObserver() argument
66 super(handler); in BlockedNumberContentObserver()
68 this.handler = Objects.requireNonNull(handler); in BlockedNumberContentObserver()
100 handler.postDelayed(timeoutRunnable, TIMEOUT_MS); in register()
108 handler.removeCallbacks(timeoutRunnable); in unregister()
/packages/apps/Dialer/java/com/android/dialer/util/
DSettingsUtil.java46 Context context, Handler handler, int type, String key, int msg) { in updateRingtoneName() argument
72 getRingtoneName(context, handler, ringtoneUri, msg, defaultRingtone); in updateRingtoneName()
75 public static void getRingtoneName(Context context, Handler handler, Uri ringtoneUri, int msg) { in getRingtoneName() argument
76 getRingtoneName(context, handler, ringtoneUri, msg, false); in getRingtoneName()
80 Context context, Handler handler, Uri ringtoneUri, int msg, boolean defaultRingtone) { in getRingtoneName() argument
102 handler.sendMessage(handler.obtainMessage(msg, summary)); in getRingtoneName()
/packages/services/Car/watchdog/server/src/
DLooperWrapper.cpp43 void LooperWrapper::sendMessage(const sp<MessageHandler>& handler, const Message& message) { in sendMessage() argument
48 return mLooper->sendMessage(handler, message); in sendMessage()
51 void LooperWrapper::sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, in sendMessageAtTime() argument
57 return mLooper->sendMessageAtTime(uptime, handler, message); in sendMessageAtTime()
60 void LooperWrapper::removeMessages(const sp<MessageHandler>& handler) { in removeMessages() argument
65 return mLooper->removeMessages(handler); in removeMessages()
/packages/services/Car/evs/manager/1.1/stats/
DLooperWrapper.cpp47 void LooperWrapper::sendMessage(const sp<MessageHandler>& handler, in sendMessage() argument
54 return mLooper->sendMessage(handler, message); in sendMessage()
58 const sp<MessageHandler>& handler, in sendMessageAtTime() argument
65 return mLooper->sendMessageAtTime(uptime, handler, message); in sendMessageAtTime()
68 void LooperWrapper::removeMessages(const sp<MessageHandler>& handler) { in removeMessages() argument
74 return mLooper->removeMessages(handler); in removeMessages()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dsax.md11 …stream, it analyze the characters according to the syntax of JSON, and publish events to a handler.
27 While a `Reader` parses this JSON, it publishes the following events to the handler sequentially:
87 MyHandler handler;
90 reader.Parse(ss, handler);
94 Note that, RapidJSON uses template to statically bind the `Reader` type and the handler type, inste…
98 …le showed, user needs to implement a handler, which consumes the events (function calls) from `Rea…
124 …n happens, `strlen(str) < length`. The last `copy` indicates whether the handler needs to make a c…
126 …berCount)`. Note that the `memberCount` parameter is just an aid for the handler, user may not nee…
128 …all `EndArray(SizeType elementCount)`, the parameter `elementCount` is just an aid for the handler.
130 Every handler functions returns a `bool`. Normally it should returns `true`. If the handler encount…
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java235 final int keyboardShiftMode, final LatinIME.UIHandler handler) { in onTextInput() argument
242 commitCurrentAutoCorrection(settingsValues, rawText, handler); in onTextInput()
246 handler.postUpdateSuggestionStrip(SuggestedWords.INPUT_STYLE_TYPING); in onTextInput()
275 final int currentKeyboardScriptId, final LatinIME.UIHandler handler) { in onPickSuggestionManually() argument
287 currentKeyboardScriptId, handler); in onPickSuggestionManually()
333 handler.postUpdateSuggestionStrip(SuggestedWords.INPUT_STYLE_NONE); in onPickSuggestionManually()
439 final int currentKeyboardScriptId, final LatinIME.UIHandler handler) { in onCodeInput() argument
468 handler); in onCodeInput()
470 handleNonFunctionalEvent(currentEvent, inputTransaction, handler); in onCodeInput()
494 final KeyboardSwitcher keyboardSwitcher, final LatinIME.UIHandler handler) { in onStartBatchInput() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
DContactsExecutors.java69 public static ScheduledExecutorService newHandlerExecutor(final Handler handler) { in newHandlerExecutor() argument
70 return new HandlerExecutorService(handler); in newHandlerExecutor()
105 private HandlerExecutorService(Handler handler) { in HandlerExecutorService() argument
106 mHandler = handler; in HandlerExecutorService()
180 private HandlerFuture(Handler handler, long delay, TimeUnit timeUnit, Callable<T> task) { in HandlerFuture() argument
181 mHandler = handler; in HandlerFuture()
231 public static HandlerFuture<Void> fromRunnable(Handler handler, long delay, TimeUnit unit, in fromRunnable() argument
233 return new HandlerFuture<>(handler, delay, unit, new Callable<Void>() { in fromRunnable()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DSpecialCharSequenceMgr.java205 final QueryHandler handler = new QueryHandler(context.getContentResolver()); in handleAdnEntry() local
209 new SimContactQueryCookie(index - 1, handler, ADN_QUERY_TOKEN); in handleAdnEntry()
234 handleAdnQuery(handler, sc, uri); in handleAdnEntry()
237 new HandleAdnEntryAccountSelectedCallback(applicationContext, handler, sc); in handleAdnEntry()
255 private static void handleAdnQuery(QueryHandler handler, SimContactQueryCookie cookie, Uri uri) { in handleAdnQuery() argument
256 if (handler == null || cookie == null || uri == null) { in handleAdnQuery()
265 handler.startQuery( in handleAdnQuery()
278 previousAdnQueryHandler = handler; in handleAdnQuery()
543 private QueryHandler handler; field in SpecialCharSequenceMgr.SimContactQueryCookie
548 public SimContactQueryCookie(int number, QueryHandler handler, int token) { in SimContactQueryCookie() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/blocking/
DBlockNumberDialogFragment.java56 private FilteredNumberAsyncQueryHandler handler; field in BlockNumberDialogFragment
100 FilteredNumberAsyncQueryHandler handler) { in setFilteredNumberAsyncQueryHandlerForTesting() argument
101 this.handler = handler; in setFilteredNumberAsyncQueryHandlerForTesting()
122 handler = new FilteredNumberAsyncQueryHandler(getContext()); in onCreateDialog()
243 handler.unblock(onUndoListener, uri); in blockNumber()
262 handler.blockNumber(onBlockNumberListener, number, countryIso); in blockNumber()
283 handler.unblock( in unblockNumber()
294 handler.blockNumber(onUndoListener, values); in unblockNumber()
/packages/services/Car/watchdog/server/tests/
DLooperStub.cpp73 void LooperStub::sendMessage(const android::sp<MessageHandler>& handler, const Message& message) { in sendMessage() argument
74 sendMessageAtTime(now(), handler, message); in sendMessage()
77 void LooperStub::sendMessageAtTime(nsecs_t uptime, const android::sp<MessageHandler>& handler, in sendMessageAtTime() argument
80 mHandler = handler; in sendMessageAtTime()
89 void LooperStub::removeMessages(const android::sp<MessageHandler>& handler) { in removeMessages() argument
92 mLooper->removeMessages(handler); in removeMessages()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpReachabilityMonitorTest.kt109 private val handler by lazy { Handler(handlerThread.looper) } in <lambda>() constant
119 handler: Handler,
123 ) : IpNeighborMonitor(handler, log, cb) {
136 handler.post { in createFd()
168 val handler = inv.getArgument<Handler>(0) in setUp() constant
171 neighborMonitor = TestIpNeighborMonitor(handler, log, cb, fd) in setUp()
177 handler.post { in setUp()
181 handler, in setUp()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapUtils.java202 static void loadAllContacts(Context context, Handler handler) { in loadAllContacts() argument
208 sTotalContacts = fetchAndSetContacts(context, handler, projection, null, null, true); in loadAllContacts()
213 handler.sendMessage(handler.obtainMessage(BluetoothPbapService.CONTACTS_LOADED)); in loadAllContacts()
216 static void updateSecondaryVersionCounter(Context context, Handler handler) { in updateSecondaryVersionCounter() argument
254 fetchAndSetContacts(context, handler, dataProjection, whereClause, selectionArgs, in updateSecondaryVersionCounter()
370 handler.sendMessage(handler.obtainMessage(BluetoothPbapService.ROLLOVER_COUNTERS)); in updateSecondaryVersionCounter()
409 private static int fetchAndSetContacts(Context context, Handler handler, String[] projection, in fetchAndSetContacts() argument
421 handler.sendMessageDelayed( in fetchAndSetContacts()
422 handler.obtainMessage(BluetoothPbapService.LOAD_CONTACTS), in fetchAndSetContacts()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java68 NoNullCursorAsyncQueryHandler handler = new NoNullCursorAsyncQueryHandler( in testCursorIsNotNull()
78 handler.startQuery(1, null, URI, PROJECTION, null, null, null); in testCursorIsNotNull()
95 final NoNullCursorAsyncQueryHandler handler = new NoNullCursorAsyncQueryHandler( in testCursorContainsCorrectCookies()
105 handler.startQuery(1, cookie, URI, PROJECTION, null, null, null); in testCursorContainsCorrectCookies()
122 final NoNullCursorAsyncQueryHandler handler = new NoNullCursorAsyncQueryHandler( in testCursorContainsCorrectColumns()
132 handler.startQuery(1, cookie, URI, PROJECTION, null, null, null); in testCursorContainsCorrectColumns()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkObserverRegistry.java63 public void registerObserver(@NonNull NetworkObserver observer, @NonNull Handler handler) { in registerObserver() argument
64 if (handler == null) { in registerObserver()
67 mObservers.put(observer, Optional.of(handler)); in registerObserver()
98 final Optional<Handler> handler = entry.getValue(); in invokeForAllObservers() local
99 if (handler.isPresent()) { in invokeForAllObservers()
100 handler.get().post(() -> callback.sendCallback(observer)); in invokeForAllObservers()
/packages/apps/Camera2/src/com/android/camera/app/
DCameraController.java81 @Nonnull Handler handler, in CameraController() argument
87 mCallbackHandler = handler; in CameraController()
318 final int cameraId, Handler handler, final CameraAgent.CameraOpenCallback cb) { in checkAndOpenCamera() argument
322 cameraManager.openCamera(handler, cameraId, cb); in checkAndOpenCamera()
324 handler.post(new Runnable() { in checkAndOpenCamera()
333 public void setOneShotPreviewCallback(Handler handler, in setOneShotPreviewCallback() argument
335 mCameraProxy.setOneShotPreviewCallback(handler, cb); in setOneShotPreviewCallback()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DFocusOverlayManager.java81 private Handler handler; field in FocusOverlayManager
113 handler = new MainHandler(looper); in FocusOverlayManager()
196 handler.sendEmptyMessageDelayed(RESET_TOUCH_FOCUS, RESET_TOUCH_FOCUS_DELAY); in onAutoFocus()
289 handler.removeMessages(RESET_TOUCH_FOCUS); in onSingleTapUp()
290 handler.sendEmptyMessageDelayed(RESET_TOUCH_FOCUS, RESET_TOUCH_FOCUS_DELAY); in onSingleTapUp()
314 handler.removeMessages(RESET_TOUCH_FOCUS); in autoFocus()
327 handler.removeMessages(RESET_TOUCH_FOCUS); in cancelAutoFocus()
333 handler.removeMessages(RESET_TOUCH_FOCUS); in capture()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeUdp4Socket.java54 private IkeUdp4Socket(FileDescriptor socket, Network network, Handler handler) { in IkeUdp4Socket() argument
55 super(socket, network, handler == null ? new Handler() : handler); in IkeUdp4Socket()
76 Network network, IkeSessionStateMachine ikeSession, Handler handler) in getInstance() argument
87 ikeSocket = new IkeUdp4Socket(sock, network, handler); in getInstance()
DIkeUdp6Socket.java54 private IkeUdp6Socket(FileDescriptor socket, Network network, Handler handler) { in IkeUdp6Socket() argument
55 super(socket, network, handler == null ? new Handler() : handler); in IkeUdp6Socket()
76 Network network, IkeSessionStateMachine ikeSession, Handler handler) in getInstance() argument
87 ikeSocket = new IkeUdp6Socket(sock, network, handler); in getInstance()

12345678910>>...13