Home
last modified time | relevance | path

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

12345678910>>...12

/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/UnifiedEmail/src/org/apache/james/mime4j/
DMimeStreamParser.java57 private ContentHandler handler = null; field in MimeStreamParser
142 handler.startMultipart(bd); in parseEntity()
146 handler.preamble(new CloseShieldInputStream(tempIs)); in parseEntity()
165 handler.epilogue(new CloseShieldInputStream(is)); in parseEntity()
167 handler.endMultipart(); in parseEntity()
185 handler.body(bd, new CloseShieldInputStream(is)); in parseEntity()
197 handler.raw(new CloseShieldInputStream(is)); in parseMessage()
199 handler.startMessage(); in parseMessage()
201 handler.endMessage(); in parseMessage()
211 handler.raw(new CloseShieldInputStream(is)); in parseBodyPart()
[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/src/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/services/Car/service/src/com/android/car/
DCarPowerManagementService.java214 PowerHandler handler; in onApPowerStateChange() local
217 handler = mHandler; in onApPowerStateChange()
219 handler.handlePowerStateChange(); in onApPowerStateChange()
232 PowerHandler handler; in onApPowerStateChange() local
235 handler = mHandler; in onApPowerStateChange()
237 handler.handlePowerStateChange(); in onApPowerStateChange()
242 PowerHandler handler; in doHandlePowerStateChange() local
256 handler = mHandler; in doHandlePowerStateChange()
258 handler.cancelProcessingComplete(); in doHandlePowerStateChange()
477 PowerHandler handler; in doHandleDeepSleep() local
[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.java118 Handler handler) { in CarBugreportManagerCallbackWrapper() argument
120 mWeakHandler = new WeakReference<>(handler); in CarBugreportManagerCallbackWrapper()
126 Handler handler = mWeakHandler.get(); in onProgress() local
127 if (handler != null && callback != null) { in onProgress()
128 handler.post(() -> callback.onProgress(progress)); in onProgress()
135 Handler handler = mWeakHandler.get(); in onError() local
136 if (handler != null && callback != null) { in onError()
137 handler.post(() -> callback.onError(errorCode)); in onError()
144 Handler handler = mWeakHandler.get(); in onFinished() local
145 if (handler != null && callback != null) { in onFinished()
[all …]
DCar.java657 @Nullable Handler handler) { in createCar() argument
663 return new Car(context, serviceConnectionListener, handler); in createCar()
705 public static Car createCar(Context context, @Nullable Handler handler) { in createCar() argument
710 return new Car(context, ICar.Stub.asInterface(service), handler); in createCar()
714 @Nullable Handler handler) { in Car() argument
716 mEventHandler = determineEventHandler(handler); in Car()
729 public Car(Context context, ICar service, @Nullable Handler handler) { in Car() argument
731 mEventHandler = determineEventHandler(handler); in Car()
745 private static Handler determineEventHandler(@Nullable Handler handler) { in determineEventHandler() argument
746 if (handler == null) { in determineEventHandler()
[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/modules/ExtServices/src/android/ext/services/notification/
DAssistantSettings.java68 private AssistantSettings(Handler handler, ContentResolver resolver, int userId, in AssistantSettings() argument
70 super(handler); in AssistantSettings()
71 mHandler = handler; in AssistantSettings()
78 Handler handler, ContentResolver resolver, int userId, Runnable onUpdateRunnable) { in createAndRegister() argument
80 new AssistantSettings(handler, resolver, userId, onUpdateRunnable); in createAndRegister()
91 Handler handler, ContentResolver resolver, int userId, Runnable onUpdateRunnable) { in createForTesting() argument
92 return new AssistantSettings(handler, resolver, userId, onUpdateRunnable); in createForTesting()
173 AssistantSettings createAndRegister(Handler handler, ContentResolver resolver, int userId, in createAndRegister() argument
/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/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/apps/UnifiedEmail/src/com/android/mail/utils/
DThrottle.java73 public Throttle(String name, Runnable callback, Handler handler) { in Throttle() argument
74 this(name, callback, handler, DEFAULT_MIN_TIMEOUT, DEFAULT_MAX_TIMEOUT); in Throttle()
78 public Throttle(String name, Runnable callback, Handler handler,int minTimeout, in Throttle() argument
80 this(name, callback, handler, minTimeout, maxTimeout, Clock.INSTANCE, TIMER); in Throttle()
85 public Throttle(String name, Runnable callback, Handler handler,int minTimeout, in Throttle() argument
94 mHandler = handler; in Throttle()
/packages/apps/Launcher3/src/com/android/launcher3/states/
DInternalStateHandler.java81 InternalStateHandler handler = (InternalStateHandler) stateBinder; in handleIntent() local
82 if (!handler.init(launcher, alreadyOnHome)) { in handleIntent()
99 public void schedule(InternalStateHandler handler) { in schedule() argument
101 mPendingHandler = new WeakReference<>(handler); in schedule()
134 public boolean clearReference(InternalStateHandler handler) { in clearReference() argument
136 if (mPendingHandler.get() == handler) { in clearReference()
/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.java68 public void registerObserver(@NonNull NetworkObserver observer, @NonNull Handler handler) { in registerObserver() argument
69 if (handler == null) { in registerObserver()
72 mObservers.put(observer, Optional.of(handler)); in registerObserver()
103 final Optional<Handler> handler = entry.getValue(); in invokeForAllObservers() local
104 if (handler.isPresent()) { in invokeForAllObservers()
105 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()

12345678910>>...12