Home
last modified time | relevance | path

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

123456

/packages/services/Telephony/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/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/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/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/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/car-systemtest-lib/src/android/car/test/
DVehicleHalEmulator.java88 VehicleHalPropertyHandler handler) { in addProperty() argument
90 VehicleHalProperty halProp = new VehicleHalProperty(config, handler); in addProperty()
101 DefaultPropertyHandler handler = new DefaultPropertyHandler(config, value); in addStaticProperty() local
102 VehicleHalProperty halProp = new VehicleHalProperty(config, handler); in addStaticProperty()
222 DefaultPropertyHandler handler = new DefaultPropertyHandler(config, initialValue); in populateDefaultPropertiesIfNecessary() local
223 VehicleHalProperty halProp = new VehicleHalProperty(config, handler); in populateDefaultPropertiesIfNecessary()
239 getHalPropertyLocked(value.getProp()).handler.onPropertySet(value); in handlePropertySet()
243 return getHalPropertyLocked(value.getProp()).handler.onPropertyGet(value); in handlePropertyGet()
247 getHalPropertyLocked(property).handler.onPropertySubscribe(property, sampleRate, zones); in handlePropertySubscribe()
251 getHalPropertyLocked(property).handler.onPropertyUnsubscribe(property); in handlePropertyUnsubscribe()
[all …]
/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()
DCameraCaptureSessionProxy.java72 public int capture(CaptureRequest request, CaptureCallback listener, Handler handler) in capture() argument
76 handler) throws CameraAccessException, CameraCaptureSessionClosedException; in captureBurst() argument
84 handler) throws CameraAccessException, CameraCaptureSessionClosedException; in setRepeatingBurst() argument
87 handler) throws CameraAccessException, CameraCaptureSessionClosedException; in setRepeatingRequest() argument
/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/DeskClock/src/com/android/deskclock/
DUtils.java218 public ScreensaverMoveSaverRunnable(Handler handler) { in ScreensaverMoveSaverRunnable() argument
219 mHandler = handler; in ScreensaverMoveSaverRunnable()
342 public static void setMidnightUpdater(Handler handler, Runnable runnable) { in setMidnightUpdater() argument
344 if (handler == null || runnable == null || timezone == null) { in setMidnightUpdater()
351 handler.removeCallbacks(runnable); in setMidnightUpdater()
352 handler.postDelayed(runnable, runInMillis); in setMidnightUpdater()
356 public static void cancelMidnightUpdater(Handler handler, Runnable runnable) { in cancelMidnightUpdater() argument
357 if (handler == null || runnable == null) { in cancelMidnightUpdater()
360 handler.removeCallbacks(runnable); in cancelMidnightUpdater()
365 public static void setQuarterHourUpdater(Handler handler, Runnable runnable) { in setQuarterHourUpdater() argument
[all …]
/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java214 PowerEventProcessingHandler handler) { in registerPowerEventProcessingHandler() argument
215 mPowerEventProcessingHandlers.add(new PowerEventProcessingHandlerWrapper(handler)); in registerPowerEventProcessingHandler()
231 public void notifyPowerEventProcessingCompletion(PowerEventProcessingHandler handler) { in notifyPowerEventProcessingCompletion() argument
234 if (wrapper.handler == handler) { in notifyPowerEventProcessingCompletion()
338 long handlerProcessingTime = wrapper.handler.onPrepareShutdown(shuttingDown); in notifyPrepareShutdown()
378 long handlerProcessingTime = wrapper.handler.onPrepareShutdown(shuttingDown); in doHandlePreprocessing()
480 int t = wrapper.handler.getWakeupTime(); in getWakeupTime()
783 public final PowerEventProcessingHandler handler; field in CarPowerManagementService.PowerEventProcessingHandlerWrapper
788 public PowerEventProcessingHandlerWrapper(PowerEventProcessingHandler handler) { in PowerEventProcessingHandlerWrapper() argument
789 this.handler = handler; in PowerEventProcessingHandlerWrapper()
[all …]
/packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/
DVehicleNetworkMockedTest.java440 VehiclePropertyHandler handler) { in registerProperty() argument
443 mHandlers.put(property, handler); in registerProperty()
457 VehiclePropertyHandler handler = getPropertyHandler(property); in onPropertySet() local
458 if (handler == null) { in onPropertySet()
461 handler.onPropertySet(value); in onPropertySet()
467 VehiclePropertyHandler handler = getPropertyHandler(property); in onPropertyGet() local
468 if (handler == null) { in onPropertyGet()
471 VehiclePropValue propValue = handler.onPropertyGet(value); in onPropertyGet()
477 VehiclePropertyHandler handler = getPropertyHandler(property); in onPropertySubscribe() local
478 if (handler == null) { in onPropertySubscribe()
[all …]
/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/apps/ContactsCommon/tests/src/com/android/contacts/common/database/
DNoNullCursorAsyncQueryHandlerTest.java66 NoNullCursorAsyncQueryHandler handler = new NoNullCursorAsyncQueryHandler( in testCursorIsNotNull()
76 handler.startQuery(1, null, URI, PROJECTION, null, null, null); in testCursorIsNotNull()
93 final NoNullCursorAsyncQueryHandler handler = new NoNullCursorAsyncQueryHandler( in testCursorContainsCorrectCookies()
103 handler.startQuery(1, cookie, URI, PROJECTION, null, null, null); in testCursorContainsCorrectCookies()
120 final NoNullCursorAsyncQueryHandler handler = new NoNullCursorAsyncQueryHandler( in testCursorContainsCorrectColumns()
130 handler.startQuery(1, cookie, URI, PROJECTION, null, null, null); in testCursorContainsCorrectColumns()
/packages/apps/Dialer/src/com/android/dialer/
DSpecialCharSequenceMgr.java229 final QueryHandler handler = new QueryHandler(context.getContentResolver()); in handleAdnEntry() local
232 final SimContactQueryCookie sc = new SimContactQueryCookie(index - 1, handler, in handleAdnEntry()
258 handleAdnQuery(handler, sc, uri); in handleAdnEntry()
261 applicationContext, handler, sc); in handleAdnEntry()
277 private static void handleAdnQuery(QueryHandler handler, SimContactQueryCookie cookie, in handleAdnQuery() argument
279 if (handler == null || cookie == null || uri == null) { in handleAdnQuery()
288 handler.startQuery(ADN_QUERY_TOKEN, cookie, uri, new String[]{ADN_PHONE_NUMBER_COLUMN_NAME}, in handleAdnQuery()
295 sPreviousAdnQueryHandler = handler; in handleAdnQuery()
398 public SimContactQueryCookie(int number, QueryHandler handler, int token) { in SimContactQueryCookie() argument
400 mHandler = handler; in SimContactQueryCookie()
/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/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/Messaging/src/com/android/messaging/util/
DLogSaver.java192 for (Handler handler : logger.getHandlers()) { in clearDefaultHandlers()
193 logger.removeHandler(handler); in clearDefaultHandlers()
206 FileHandler handler = null; in initDiskLog() local
208 handler = new FileHandler( in initDiskLog()
220 handler.setFormatter(formatter); in initDiskLog()
221 handler.setLevel(Level.ALL); in initDiskLog()
222 mDiskLogger.addHandler(handler); in initDiskLog()
/packages/apps/Calendar/src/com/android/calendar/
DAsyncQueryService.java175 info.handler = mHandler; in startQuery()
206 info.handler = mHandler; in startInsert()
242 info.handler = mHandler; in startUpdate()
279 info.handler = mHandler; in startDelete()
310 info.handler = mHandler; in startBatch()
434 protected void setTestHandler(Handler handler) { in setTestHandler() argument
435 mHandler = handler; in setTestHandler()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DQueryTask.java51 Handler handler, Consumer<C> consumer) { in QueryTask() argument
55 mHandler = handler; in QueryTask()
79 NamedTaskExecutor executor, Handler handler, in startQuery() argument
82 QueryTask<C> task = new QueryTask<C>(query, maxResults, provider, handler, in startQuery()
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
DProgressService.java34 private Handler handler; field in ProgressService
64 handler.postDelayed(this, 1000); in run()
71 handler = new Handler(); in onStartCommand()
81 handler.postDelayed(new UpdateRunnable(id, when, progress), 1000); in onHandleIntent()
/packages/apps/Contacts/src/com/android/contacts/editor/
DAggregationSuggestionEngine.java93 private SuggestionContentObserver(Handler handler) { in SuggestionContentObserver() argument
94 super(handler); in SuggestionContentObserver()
179 Handler handler = getHandler(); in reset() local
180 handler.removeMessages(MESSAGE_NAME_CHANGE); in reset()
181 handler.sendEmptyMessage(MESSAGE_RESET); in reset()
200 Handler handler = getHandler(); in scheduleSuggestionLookup() local
201 handler.removeMessages(MESSAGE_NAME_CHANGE); in scheduleSuggestionLookup()
207 Message msg = handler.obtainMessage(MESSAGE_NAME_CHANGE, mSuggestionsUri); in scheduleSuggestionLookup()
208 handler.sendMessageDelayed(msg, SUGGESTION_LOOKUP_DELAY_MILLIS); in scheduleSuggestionLookup()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMovieControllerOverlay.java37 private final Handler handler; field in MovieControllerOverlay
44 handler = new Handler(); in MovieControllerOverlay()
88 handler.postDelayed(startHidingRunnable, 2500); in maybeStartHiding()
105 handler.removeCallbacks(startHidingRunnable); in cancelHiding()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrSessionManager.java59 DvrSessionManager(Context context, TvInputManager tvInputManager, Handler handler) { in DvrSessionManager() argument
72 tvInputManager.registerCallback(this, handler); in DvrSessionManager()
77 TvRecordingClient.RecordingCallback callback, Handler handler) { in createTvRecordingClient() argument
78 return new TvRecordingClient(mContext, tag, callback, handler); in createTvRecordingClient()
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DCarHvacManagerTest.java59 HvacPropertyHandler handler = new HvacPropertyHandler(); in setUp() local
67 0), handler); in setUp() local
75 0), handler); in setUp() local
83 0), handler); in setUp() local
91 0), handler); in setUp() local

123456