/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | reader.h | 393 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/ |
D | readertest.cpp | 1066 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/ |
D | MockedVehicleHal.java | 69 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/ |
D | Consumers.java | 38 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/ |
D | CarBugreportManager.java | 116 Handler handler) { in CarBugreportManagerCallbackWrapper() argument 118 mWeakHandler = new WeakReference<>(handler); in CarBugreportManagerCallbackWrapper() 124 Handler handler = mWeakHandler.get(); in onProgress() local 125 if (handler != null && callback != null) { in onProgress() 126 handler.post(() -> callback.onProgress(progress)); in onProgress() 133 Handler handler = mWeakHandler.get(); in onError() local 134 if (handler != null && callback != null) { in onError() 135 handler.post(() -> callback.onError(errorCode)); in onError() 142 Handler handler = mWeakHandler.get(); in onFinished() local 143 if (handler != null && callback != null) { in onFinished() [all …]
|
D | Car.java | 792 @Nullable Handler handler) { in createCar() argument 800 /* statusChangeListener= */ null, handler); in createCar() 844 public static Car createCar(Context context, @Nullable Handler handler) { in createCar() argument 855 null /*serviceConnectionListener*/, null /*statusChangeListener*/, handler); in createCar() 940 @Nullable Handler handler, long waitTimeoutMs, in createCar() argument 962 handler); in createCar() 1045 @Nullable Handler handler) { in Car() argument 1047 mEventHandler = determineEventHandler(handler); in Car() 1071 public Car(Context context, @Nullable ICar service, @Nullable Handler handler) { in Car() argument 1073 handler); in Car() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarPowerManagementService.java | 250 PowerHandler handler; in onApPowerStateChange() local 253 handler = mHandler; in onApPowerStateChange() 255 handler.handlePowerStateChange(); in onApPowerStateChange() 274 PowerHandler handler; in onApPowerStateChange() local 277 handler = mHandler; in onApPowerStateChange() 279 handler.handlePowerStateChange(); in onApPowerStateChange() 284 PowerHandler handler; in doHandlePowerStateChange() local 298 handler = mHandler; in doHandlePowerStateChange() 300 handler.cancelProcessingComplete(); in doHandlePowerStateChange() 679 PowerHandler handler; in doHandleDeepSleep() local [all …]
|
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/ |
D | DishService.java | 89 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/ |
D | AndroidCameraCaptureSessionProxy.java | 96 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/ |
D | BlockedNumberContentObserver.java | 44 @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/ |
D | AssistantSettings.java | 68 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/ |
D | SettingsUtil.java | 46 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/ |
D | sax.md | 11 …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/ |
D | InputLogic.java | 235 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/ |
D | ContactsExecutors.java | 69 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/ |
D | SpecialCharSequenceMgr.java | 205 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/ |
D | BlockNumberDialogFragment.java | 56 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/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | IpReachabilityMonitorTest.kt | 109 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/Launcher3/src/com/android/launcher3/states/ |
D | InternalStateHandler.java | 82 InternalStateHandler handler = (InternalStateHandler) stateBinder; in handleIntent() local 83 if (!handler.init(launcher, alreadyOnHome)) { in handleIntent() 99 public void schedule(InternalStateHandler handler) { in schedule() argument 101 mPendingHandler = new WeakReference<>(handler); in schedule() 131 public boolean clearReference(InternalStateHandler handler) { in clearReference() argument 133 if (mPendingHandler.get() == handler) { in clearReference()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapUtils.java | 202 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/Launcher3/src/com/android/launcher3/ |
D | LauncherStateManager.java | 217 for (StateHandler handler : getStateHandlers()) { in reapplyState() 218 handler.setState(mState); in reapplyState() 257 for (StateHandler handler : getStateHandlers()) { in goToState() 258 handler.setState(state); in goToState() 313 for (StateHandler handler : mLauncher.getStateManager().getStateHandlers()) { in createAtomicAnimation() 314 handler.setStateWithAnimation(toState, builder, config); in createAtomicAnimation() 336 for (StateHandler handler : getStateHandlers()) { in createAnimationToNewWorkspace() 337 handler.setState(fromState); in createAnimationToNewWorkspace() 377 for (StateHandler handler : getStateHandlers()) { in createAnimationToNewWorkspaceInternal() 378 handler.setStateWithAnimation(state, builder, mConfig); in createAnimationToNewWorkspaceInternal()
|
/packages/apps/Contacts/tests/src/com/android/contacts/database/ |
D | NoNullCursorAsyncQueryHandlerTest.java | 68 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/ |
D | NetworkObserverRegistry.java | 63 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/ |
D | CameraController.java | 81 @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/ |
D | FocusOverlayManager.java | 81 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()
|