Home
last modified time | relevance | path

Searched refs:readTime (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/native/services/inputflinger/reader/mapper/gestures/
DGestureConverter.cpp138 std::list<NotifyArgs> GestureConverter::handleGesture(nsecs_t when, nsecs_t readTime, in handleGesture() argument
148 return handleMove(when, readTime, gestureStartTime, gesture); in handleGesture()
150 return handleButtonsChange(when, readTime, gesture); in handleGesture()
152 return handleScroll(when, readTime, gesture); in handleGesture()
154 return handleFling(when, readTime, gestureStartTime, gesture); in handleGesture()
156 return handleMultiFingerSwipe(when, readTime, 3, gesture.details.swipe.dx, in handleGesture()
159 return handleMultiFingerSwipe(when, readTime, 4, gesture.details.four_finger_swipe.dx, in handleGesture()
163 return handleMultiFingerSwipeLift(when, readTime); in handleGesture()
165 return handlePinch(when, readTime, gesture); in handleGesture()
171 std::list<NotifyArgs> GestureConverter::handleMove(nsecs_t when, nsecs_t readTime, in handleMove() argument
[all …]
DGestureConverter.h60 [[nodiscard]] std::list<NotifyArgs> handleGesture(nsecs_t when, nsecs_t readTime,
65 [[nodiscard]] std::list<NotifyArgs> handleMove(nsecs_t when, nsecs_t readTime,
68 [[nodiscard]] std::list<NotifyArgs> handleButtonsChange(nsecs_t when, nsecs_t readTime,
70 [[nodiscard]] std::list<NotifyArgs> releaseAllButtons(nsecs_t when, nsecs_t readTime);
71 [[nodiscard]] std::list<NotifyArgs> handleScroll(nsecs_t when, nsecs_t readTime,
73 [[nodiscard]] std::list<NotifyArgs> handleFling(nsecs_t when, nsecs_t readTime,
76 [[nodiscard]] std::list<NotifyArgs> endScroll(nsecs_t when, nsecs_t readTime);
78 [[nodiscard]] std::list<NotifyArgs> handleMultiFingerSwipe(nsecs_t when, nsecs_t readTime,
81 [[nodiscard]] std::list<NotifyArgs> handleMultiFingerSwipeLift(nsecs_t when, nsecs_t readTime);
82 [[nodiscard]] std::list<NotifyArgs> handlePinch(nsecs_t when, nsecs_t readTime,
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.cpp30 InputReaderContext* context, int32_t action, nsecs_t when, nsecs_t readTime, in synthesizeButtonKey() argument
38 out.push_back(NotifyKeyArgs(context->getNextId(), when, readTime, deviceId, source, in synthesizeButtonKey()
90 InputReaderContext* context, int32_t action, nsecs_t when, nsecs_t readTime, in synthesizeButtonKeys() argument
94 out += synthesizeButtonKey(context, action, when, readTime, deviceId, source, displayId, in synthesizeButtonKeys()
97 out += synthesizeButtonKey(context, action, when, readTime, deviceId, source, displayId, in synthesizeButtonKeys()
104 const InputDeviceIdentifier& identifier, nsecs_t currentEventTime, nsecs_t readTime, in applyBluetoothTimestampSmoothening() argument
107 return {currentEventTime, readTime}; in applyBluetoothTimestampSmoothening()
123 smoothenedEventTime != currentEventTime ? currentEventTime : readTime; in applyBluetoothTimestampSmoothening()
DTouchInputMapper.h184 [[nodiscard]] std::list<NotifyArgs> cancelTouch(nsecs_t when, nsecs_t readTime) override;
334 nsecs_t readTime{};
741 [[nodiscard]] std::list<NotifyArgs> sync(nsecs_t when, nsecs_t readTime);
743 [[nodiscard]] std::list<NotifyArgs> consumeRawTouches(nsecs_t when, nsecs_t readTime,
746 [[nodiscard]] std::list<NotifyArgs> cookAndDispatch(nsecs_t when, nsecs_t readTime);
747 [[nodiscard]] NotifyKeyArgs dispatchVirtualKey(nsecs_t when, nsecs_t readTime,
751 [[nodiscard]] std::list<NotifyArgs> dispatchTouches(nsecs_t when, nsecs_t readTime,
753 [[nodiscard]] std::list<NotifyArgs> dispatchHoverExit(nsecs_t when, nsecs_t readTime,
755 [[nodiscard]] std::list<NotifyArgs> dispatchHoverEnterAndMove(nsecs_t when, nsecs_t readTime,
757 [[nodiscard]] std::list<NotifyArgs> dispatchButtonRelease(nsecs_t when, nsecs_t readTime,
[all …]
DTouchInputMapper.cpp1413 out += sync(rawEvent.when, rawEvent.readTime); in process()
1418 std::list<NotifyArgs> TouchInputMapper::sync(nsecs_t when, nsecs_t readTime) { in sync() argument
1430 next.readTime = readTime; in sync()
1449 std::tie(next.when, next.readTime) = in sync()
1451 readTime, last.when); in sync()
1504 mCurrentRawState.readTime = mLastRawState.readTime; in processRawTouches()
1506 out += cookAndDispatch(mCurrentRawState.when, mCurrentRawState.readTime); in processRawTouches()
1519 const nsecs_t readTime = when; // consider this synthetic event to be zero latency in processRawTouches() local
1520 out += cookAndDispatch(when, readTime); in processRawTouches()
1529 std::list<NotifyArgs> TouchInputMapper::cookAndDispatch(nsecs_t when, nsecs_t readTime) { in cookAndDispatch() argument
[all …]
DCapturedTouchpadEventConverter.cpp154 out = sync(rawEvent.when, rawEvent.readTime); in process()
163 std::list<NotifyArgs> CapturedTouchpadEventConverter::sync(nsecs_t when, nsecs_t readTime) { in sync() argument
183 makeMotionArgs(when, readTime, AMOTION_EVENT_ACTION_MOVE, coords, properties)); in sync()
219 out.push_back(makeMotionArgs(when, readTime, AMOTION_EVENT_ACTION_BUTTON_RELEASE, in sync()
234 out.push_back(makeMotionArgs(when, readTime, action, coords, properties, /*actionButton=*/0, in sync()
262 out.push_back(makeMotionArgs(when, readTime, action, coords, properties)); in sync()
268 out.push_back(makeMotionArgs(when, readTime, AMOTION_EVENT_ACTION_BUTTON_PRESS, coords, in sync()
276 nsecs_t when, nsecs_t readTime, int32_t action, const std::vector<PointerCoords>& coords, in makeMotionArgs() argument
280 return NotifyMotionArgs(mReaderContext.getNextId(), when, readTime, mDeviceId, SOURCE, in makeMotionArgs()
DTouchCursorInputMapperCommon.h38 InputReaderContext* context, int32_t action, nsecs_t when, nsecs_t readTime,
52 const InputDeviceIdentifier& identifier, nsecs_t currentEventTime, nsecs_t readTime,
DCursorInputMapper.cpp225 const auto [eventTime, readTime] = in process()
227 rawEvent.when, rawEvent.readTime, in process()
229 out += sync(eventTime, readTime); in process()
235 std::list<NotifyArgs> CursorInputMapper::sync(nsecs_t when, nsecs_t readTime) { in sync() argument
316 out += synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, readTime, getDeviceId(), in sync()
338 out.push_back(NotifyMotionArgs(getContext()->getNextId(), when, readTime, in sync()
349 out.push_back(NotifyMotionArgs(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
362 out.push_back(NotifyMotionArgs(getContext()->getNextId(), when, readTime, in sync()
377 out.push_back(NotifyMotionArgs(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
392 out.push_back(NotifyMotionArgs(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
[all …]
DCapturedTouchpadEventConverter.h52 [[nodiscard]] std::list<NotifyArgs> sync(nsecs_t when, nsecs_t readTime);
53 [[nodiscard]] NotifyMotionArgs makeMotionArgs(nsecs_t when, nsecs_t readTime, int32_t action,
DRotaryEncoderInputMapper.cpp109 out += sync(rawEvent.when, rawEvent.readTime); in process()
114 std::list<NotifyArgs> RotaryEncoderInputMapper::sync(nsecs_t when, nsecs_t readTime) { in sync() argument
149 NotifyMotionArgs(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in sync()
DTouchpadInputMapper.h76 [[nodiscard]] std::list<NotifyArgs> sendHardwareState(nsecs_t when, nsecs_t readTime,
78 [[nodiscard]] std::list<NotifyArgs> processGestures(nsecs_t when, nsecs_t readTime);
DTouchpadInputMapper.cpp430 return sendHardwareState(rawEvent.when, rawEvent.readTime, *state); in process()
462 std::list<NotifyArgs> TouchpadInputMapper::sendHardwareState(nsecs_t when, nsecs_t readTime, in sendHardwareState() argument
466 return processGestures(when, readTime); in sendHardwareState()
487 std::list<NotifyArgs> TouchpadInputMapper::processGestures(nsecs_t when, nsecs_t readTime) { in processGestures() argument
492 out += mGestureConverter.handleGesture(when, readTime, mGestureStartTime, gesture); in processGestures()
/frameworks/native/services/inputflinger/dispatcher/
DInputEventTimeline.cpp69 InputEventTimeline::InputEventTimeline(bool isDown, nsecs_t eventTime, nsecs_t readTime, in InputEventTimeline() argument
74 readTime(readTime), in InputEventTimeline()
92 return isDown == rhs.isDown && eventTime == rhs.eventTime && readTime == rhs.readTime && in operator ==()
DInputEventTimeline.h78 InputEventTimeline(bool isDown, nsecs_t eventTime, nsecs_t readTime, uint16_t vendorId,
82 const nsecs_t readTime; member
DLatencyAggregator.cpp140 const nsecs_t eventToRead = timeline.readTime - timeline.eventTime; in processStatistics()
148 const nsecs_t readToDeliver = connectionTimeline.deliveryTime - timeline.readTime; in processStatistics()
234 const nsecs_t eventToRead = timeline.readTime - timeline.eventTime; in processSlowEvent()
235 const nsecs_t readToDeliver = connectionTimeline.deliveryTime - timeline.readTime; in processSlowEvent()
257 mLastSlowEventTime = timeline.readTime; in processSlowEvent()
/frameworks/native/services/inputflinger/tests/
DLatencyTracker_test.cpp206 mTracker->trackListener(inputEventId, expected.isDown, expected.eventTime, expected.readTime, in TEST_F()
222 constexpr nsecs_t readTime = 3; // does not matter for this test in TEST_F() local
227 mTracker->trackListener(inputEventId, isDown, /*eventTime=*/1, readTime, DEVICE_ID, in TEST_F()
229 mTracker->trackListener(inputEventId, isDown, /*eventTime=*/2, readTime, DEVICE_ID, in TEST_F()
276 timeline1.readTime, DEVICE_ID, {InputDeviceUsageSource::UNKNOWN}); in TEST_F()
279 timeline2.readTime, DEVICE_ID, {InputDeviceUsageSource::UNKNOWN}); in TEST_F()
305 timeline.readTime, /*deviceId=*/DEVICE_ID, in TEST_F()
308 timeline.readTime, timeline.vendorId, in TEST_F()
335 mTracker->trackListener(inputEventId, expected.isDown, expected.eventTime, expected.readTime, in TEST_F()
339 expected.readTime, expected.vendorId, in TEST_F()
[all …]
DNotifyArgs_test.cpp36 nsecs_t readTime = downTime++; in TEST() local
73 const NotifyMotionArgs args(id, eventTime, readTime, deviceId, source, displayId, policyFlags, in TEST()
DInputMapperTest.cpp102 event.readTime = when; in process()
189 std::list<NotifyArgs> InputMapperTest::process(InputMapper& mapper, nsecs_t when, nsecs_t readTime, in process() argument
193 event.readTime = readTime; in process()
/frameworks/base/apct-tests/perftests/core/src/android/mtp_perf/
DAppFusePerfTest.java48 final double[] readTime = new double[samples]; in testReadWriteFile() local
58 readTime[i] = (System.nanoTime() - startTime) / 1000.0 / 1000.0; in testReadWriteFile()
79 readAverage += readTime[i]; in testReadWriteFile()
81 readSquaredAverage += readTime[i] * readTime[i]; in testReadWriteFile()
/frameworks/native/services/inputflinger/
DNotifyArgs.cpp45 NotifyKeyArgs::NotifyKeyArgs(int32_t id, nsecs_t eventTime, nsecs_t readTime, int32_t deviceId, in NotifyKeyArgs() argument
61 readTime(readTime) {} in NotifyKeyArgs()
66 int32_t id, nsecs_t eventTime, nsecs_t readTime, int32_t deviceId, uint32_t source, in NotifyMotionArgs() argument
91 readTime(readTime), in NotifyMotionArgs()
104 return id == rhs.id && eventTime == rhs.eventTime && readTime == rhs.readTime && in operator ==()
/frameworks/base/core/java/com/android/internal/os/
DKernelMemoryBandwidthStats.java57 final long readTime = SystemClock.uptimeMillis() - startTime; in updateStats() local
58 if (DEBUG || readTime > 100) { in updateStats()
59 Slog.w(TAG, "Reading memory bandwidth file took " + readTime + "ms"); in updateStats()
/frameworks/native/services/inputflinger/include/
DNotifyArgs.h72 nsecs_t readTime; member
76 NotifyKeyArgs(int32_t id, nsecs_t eventTime, nsecs_t readTime, int32_t deviceId,
120 nsecs_t readTime; member
125 NotifyMotionArgs(int32_t id, nsecs_t eventTime, nsecs_t readTime, int32_t deviceId,
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputClassifierFuzzer.cpp52 const nsecs_t readTime = fdp.ConsumeIntegralInRange< in LLVMFuzzerTestOneInput() local
55 eventTime, readTime, in LLVMFuzzerTestOneInput()
DLatencyTrackerFuzzer.cpp70 nsecs_t readTime = fdp.ConsumeIntegral<nsecs_t>(); in LLVMFuzzerTestOneInput() local
74 tracker.trackListener(inputEventId, isDown, eventTime, readTime, deviceId, in LLVMFuzzerTestOneInput()
/frameworks/native/services/inputflinger/aidl/com/android/server/inputflinger/
DKeyEvent.aidl31 long readTime;

123