Home
last modified time | relevance | path

Searched refs:inputEventId (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/native/libs/gui/
DFrameTimelineInfo.cpp35 SAFE_PARCEL(output.writeInt32, inputEventId); in write()
42 SAFE_PARCEL(input.readInt32, &inputEventId); in read()
52 inputEventId = other.inputEventId; in merge()
57 inputEventId = other.inputEventId; in merge()
64 inputEventId = IInputConstants::INVALID_INPUT_EVENT_ID; in clear()
DSurface.cpp1867 auto inputEventId = static_cast<int32_t>(va_arg(args, int32_t)); in dispatchSetFrameTimelineInfo() local
1871 return setFrameTimelineInfo(frameNumber, {frameTimelineVsyncId, inputEventId, startTimeNanos}); in dispatchSetFrameTimelineInfo()
/frameworks/native/services/inputflinger/dispatcher/
DLatencyTracker.cpp68 void LatencyTracker::trackListener(int32_t inputEventId, bool isDown, nsecs_t eventTime, in trackListener() argument
71 const auto it = mTimelines.find(inputEventId); in trackListener()
78 eraseByValue(mEventTimes, inputEventId); in trackListener()
81 mTimelines.emplace(inputEventId, InputEventTimeline(isDown, eventTime, readTime)); in trackListener()
82 mEventTimes.emplace(eventTime, inputEventId); in trackListener()
85 void LatencyTracker::trackFinishedEvent(int32_t inputEventId, const sp<IBinder>& connectionToken, in trackFinishedEvent() argument
88 const auto it = mTimelines.find(inputEventId); in trackFinishedEvent()
117 int32_t inputEventId, const sp<IBinder>& connectionToken, in trackGraphicsLatency() argument
119 const auto it = mTimelines.find(inputEventId); in trackGraphicsLatency()
DLatencyTracker.h53 void trackListener(int32_t inputEventId, bool isDown, nsecs_t eventTime, nsecs_t readTime);
54 void trackFinishedEvent(int32_t inputEventId, const sp<IBinder>& connectionToken,
56 void trackGraphicsLatency(int32_t inputEventId, const sp<IBinder>& connectionToken,
DInputDispatcher.cpp397 const int32_t& inputEventId = eventEntry.id; in shouldReportFinishedEvent() local
398 if (inputEventId != dispatchEntry.resolvedEventId) { in shouldReportFinishedEvent()
402 if (inputEventId == android::os::IInputConstants::INVALID_INPUT_EVENT_ID) { in shouldReportFinishedEvent()
3546 .trackGraphicsLatency(timeline.inputEventId, in handleReceiveCallback()
/frameworks/native/services/inputflinger/tests/fuzzers/
DLatencyTrackerFuzzer.cpp64 int32_t inputEventId = fdp.ConsumeIntegral<int32_t>(); in LLVMFuzzerTestOneInput() local
68 tracker.trackListener(inputEventId, isDown, eventTime, readTime); in LLVMFuzzerTestOneInput()
71 int32_t inputEventId = fdp.ConsumeIntegral<int32_t>(); in LLVMFuzzerTestOneInput() local
76 tracker.trackFinishedEvent(inputEventId, connectionToken, deliveryTime, in LLVMFuzzerTestOneInput()
80 int32_t inputEventId = fdp.ConsumeIntegral<int32_t>(); in LLVMFuzzerTestOneInput() local
86 tracker.trackGraphicsLatency(inputEventId, connectionToken, graphicsTimeline); in LLVMFuzzerTestOneInput()
/frameworks/native/services/inputflinger/tests/
DLatencyTracker_test.cpp167 constexpr int32_t inputEventId = 1; in TEST_F() local
172 mTracker->trackListener(inputEventId, expected.isDown, expected.eventTime, expected.readTime); in TEST_F()
173 mTracker->trackFinishedEvent(inputEventId, connectionToken, expectedCT.deliveryTime, in TEST_F()
175 mTracker->trackGraphicsLatency(inputEventId, connectionToken, expectedCT.graphicsTimeline); in TEST_F()
186 constexpr nsecs_t inputEventId = 1; in TEST_F() local
192 mTracker->trackListener(inputEventId, isDown, 1 /*eventTime*/, readTime); in TEST_F()
193 mTracker->trackListener(inputEventId, isDown, 2 /*eventTime*/, readTime); in TEST_F()
283 constexpr int32_t inputEventId = 1; in TEST_F() local
286 mTracker->trackFinishedEvent(inputEventId, connection1, expectedCT.deliveryTime, in TEST_F()
288 mTracker->trackGraphicsLatency(inputEventId, connection1, expectedCT.graphicsTimeline); in TEST_F()
[all …]
DInputDispatcher_test.cpp830 void sendTimeline(int32_t inputEventId, std::array<nsecs_t, GraphicsTimeline::SIZE> timeline) { in sendTimeline() argument
831 const status_t status = mConsumer->sendTimeline(inputEventId, timeline); in sendTimeline()
1239 void sendTimeline(int32_t inputEventId, std::array<nsecs_t, GraphicsTimeline::SIZE> timeline) { in sendTimeline() argument
1241 mInputReceiver->sendTimeline(inputEventId, timeline); in sendTimeline()
/frameworks/base/tests/Input/src/com/android/test/input/
DSpyInputEventSenderAndReceiver.kt55 data class Timeline(val inputEventId: Int, val gpuCompletedTime: Long, val presentTime: Long) constant in Timeline
64 override fun onTimelineReported(inputEventId: Int, gpuCompletedTime: Long, presentTime: Long) { in onTimelineReported()
65 mTimelines.put(Timeline(inputEventId, gpuCompletedTime, presentTime)) in onTimelineReported()
DInputEventSenderAndReceiverTest.kt102 inputEventId = 1, gpuCompletedTime = 2, presentTime = 3) in testSendAndReceiveTimeline()
103 mReceiver.reportTimeline(sent.inputEventId, sent.gpuCompletedTime, sent.presentTime) in testSendAndReceiveTimeline()
114 inputEventId = 1, gpuCompletedTime = 3, presentTime = 2) in testSendAndReceiveInvalidTimeline()
115 mReceiver.reportTimeline(sent.inputEventId, sent.gpuCompletedTime, sent.presentTime) in testSendAndReceiveInvalidTimeline()
/frameworks/base/core/java/android/view/
DInputEventSender.java121 public void onTimelineReported(int inputEventId, long gpuCompletedTime, long presentTime) { in onTimelineReported() argument
160 int inputEventId, long gpuCompletedTime, long presentTime) { in dispatchTimelineReported() argument
161 onTimelineReported(inputEventId, gpuCompletedTime, presentTime); in dispatchTimelineReported()
DInputEventReceiver.java57 private static native void nativeReportTimeline(long receiverPtr, int inputEventId, in nativeReportTimeline() argument
224 public final void reportTimeline(int inputEventId, long gpuCompletedTime, long presentTime) { in reportTimeline() argument
226 nativeReportTimeline(mReceiverPtr, inputEventId, gpuCompletedTime, presentTime); in reportTimeline()
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp85 status_t reportTimeline(int32_t inputEventId, nsecs_t gpuCompletedTime, nsecs_t presentTime);
100 int32_t inputEventId; member
168 status_t NativeInputEventReceiver::reportTimeline(int32_t inputEventId, nsecs_t gpuCompletedTime, in reportTimeline() argument
177 .inputEventId = inputEventId, in reportTimeline()
223 status = mInputConsumer.sendTimeline(timeline.inputEventId, timeline.timeline); in processOutboundEvents()
482 timeline.inputEventId, in dump()
546 static void nativeReportTimeline(JNIEnv* env, jclass clazz, jlong receiverPtr, jint inputEventId, in nativeReportTimeline() argument
548 if (IdGenerator::getSource(inputEventId) != IdGenerator::Source::INPUT_READER) { in nativeReportTimeline()
554 status_t status = receiver->reportTimeline(inputEventId, gpuCompletedTime, presentTime); in nativeReportTimeline()
Dandroid_view_InputEventSender.cpp248 getInputChannelName().c_str(), timeline.inputEventId, in notifyConsumerResponse()
256 timeline.inputEventId); in notifyConsumerResponse()
261 timeline.inputEventId, timeline.graphicsTimeline); in notifyConsumerResponse()
263 ALOGE("Exception dispatching timeline, inputEventId=%" PRId32, timeline.inputEventId); in notifyConsumerResponse()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionProtoParserTest.cpp36 t1.frameTimelineInfo.inputEventId = 4; in TEST()
103 ASSERT_EQ(t1.frameTimelineInfo.inputEventId, t2.frameTimelineInfo.inputEventId); in TEST()
DFrameTimelineTest.cpp241 constexpr int32_t inputEventId = 1; in TEST_F() local
243 mFrameTimeline->createSurfaceFrameForToken({token1, inputEventId}, sPidOne, sUidOne, in TEST_F()
247 EXPECT_EQ(inputEventId, surfaceFrame->getInputEventId()); in TEST_F()
/frameworks/native/libs/gui/include/gui/
DFrameTimelineInfo.h37 int32_t inputEventId = 0; member
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp453 const int32_t inputEventId = 20; in TEST_F() local
457 status_t status = mConsumer->sendTimeline(inputEventId, graphicsTimeline); in TEST_F()
464 ASSERT_EQ(inputEventId, timeline.inputEventId); in TEST_F()
/frameworks/native/libs/nativewindow/include/system/
Dwindow.h1048 int32_t inputEventId, in native_window_set_frame_timeline_info() argument
1051 frameTimelineVsyncId, inputEventId, startTimeNanos); in native_window_set_frame_timeline_info()
/frameworks/native/include/input/
DInputTransport.h419 int32_t inputEventId; member
500 status_t sendTimeline(int32_t inputEventId,
/frameworks/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_layer_fuzzer.cpp63 .inputEventId = mFdp.ConsumeIntegral<int32_t>()}; in getFuzzedFrameTimelineInfo()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.cpp537 const auto inputEventId = in draw() local
540 mNativeSurface->getNativeWindow(), frameCompleteNr, vsyncId, inputEventId, in draw()
/frameworks/native/services/surfaceflinger/Tracing/
DTransactionProtoParser.cpp30 proto.set_input_event_id(t.frameTimelineInfo.inputEventId); in toProto()
308 t.frameTimelineInfo.inputEventId = proto.input_event_id(); in fromProto()
/frameworks/native/libs/input/
DInputTransport.cpp711 .inputEventId = msg.body.timeline.eventId, in receiveConsumerResponse()
1274 status_t InputConsumer::sendTimeline(int32_t inputEventId, in sendTimeline() argument
1279 mChannel->getName().c_str(), inputEventId, in sendTimeline()
1287 msg.body.timeline.eventId = inputEventId; in sendTimeline()
/frameworks/native/services/surfaceflinger/FrameTimeline/
DFrameTimeline.cpp309 mInputEventId(frameTimelineInfo.inputEventId), in SurfaceFrame()

12