Home
last modified time | relevance | path

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

12

/frameworks/native/services/inputflinger/dispatcher/
DLatencyTracker.cpp70 void LatencyTracker::trackListener(int32_t inputEventId, bool isDown, nsecs_t eventTime, in trackListener() argument
74 const auto it = mTimelines.find(inputEventId); in trackListener()
81 eraseByValue(mEventTimes, inputEventId); in trackListener()
104 mTimelines.emplace(inputEventId, in trackListener()
107 mEventTimes.emplace(eventTime, inputEventId); in trackListener()
110 void LatencyTracker::trackFinishedEvent(int32_t inputEventId, const sp<IBinder>& connectionToken, in trackFinishedEvent() argument
113 const auto it = mTimelines.find(inputEventId); in trackFinishedEvent()
142 int32_t inputEventId, const sp<IBinder>& connectionToken, in trackGraphicsLatency() argument
144 const auto it = mTimelines.find(inputEventId); in trackGraphicsLatency()
DLatencyTracker.h55 void trackListener(int32_t inputEventId, bool isDown, nsecs_t eventTime, nsecs_t readTime,
57 void trackFinishedEvent(int32_t inputEventId, const sp<IBinder>& connectionToken,
59 void trackGraphicsLatency(int32_t inputEventId, const sp<IBinder>& connectionToken,
/frameworks/native/services/inputflinger/tests/fuzzers/
DLatencyTrackerFuzzer.cpp67 int32_t inputEventId = fdp.ConsumeIntegral<int32_t>(); in LLVMFuzzerTestOneInput() local
74 tracker.trackListener(inputEventId, isDown, eventTime, readTime, deviceId, in LLVMFuzzerTestOneInput()
78 int32_t inputEventId = fdp.ConsumeIntegral<int32_t>(); in LLVMFuzzerTestOneInput() local
83 tracker.trackFinishedEvent(inputEventId, connectionToken, deliveryTime, in LLVMFuzzerTestOneInput()
87 int32_t inputEventId = fdp.ConsumeIntegral<int32_t>(); in LLVMFuzzerTestOneInput() local
93 tracker.trackGraphicsLatency(inputEventId, connectionToken, graphicsTimeline); in LLVMFuzzerTestOneInput()
/frameworks/native/services/inputflinger/tests/
DLatencyTracker_test.cpp201 constexpr int32_t inputEventId = 1; in TEST_F() local
206 mTracker->trackListener(inputEventId, expected.isDown, expected.eventTime, expected.readTime, in TEST_F()
208 mTracker->trackFinishedEvent(inputEventId, connectionToken, expectedCT.deliveryTime, in TEST_F()
210 mTracker->trackGraphicsLatency(inputEventId, connectionToken, expectedCT.graphicsTimeline); in TEST_F()
221 constexpr nsecs_t inputEventId = 1; 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()
328 constexpr int32_t inputEventId = 1; in TEST_F() local
331 mTracker->trackFinishedEvent(inputEventId, connection1, expectedCT.deliveryTime, in TEST_F()
333 mTracker->trackGraphicsLatency(inputEventId, connection1, expectedCT.graphicsTimeline); in TEST_F()
[all …]
DFakeWindows.h79 void sendTimeline(int32_t inputEventId, std::array<nsecs_t, GraphicsTimeline::SIZE> timeline);
369 inline void sendTimeline(int32_t inputEventId, in sendTimeline() argument
372 mInputReceiver->sendTimeline(inputEventId, timeline); in sendTimeline()
DFakeWindows.cpp77 void FakeInputReceiver::sendTimeline(int32_t inputEventId, in sendTimeline() argument
79 const status_t status = mConsumer.sendTimeline(inputEventId, timeline); in sendTimeline()
/frameworks/base/tests/Input/src/com/android/test/input/
DSpyInputEventSenderAndReceiver.kt62 data class Timeline(val inputEventId: Int, val gpuCompletedTime: Long, val presentTime: Long) constant in Timeline
71 override fun onTimelineReported(inputEventId: Int, gpuCompletedTime: Long, presentTime: Long) { in onTimelineReported()
72 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/native/services/surfaceflinger/tests/unittests/
DTransactionSurfaceFrameTest.cpp74 ftInfo.inputEventId = 0; in PresentedSurfaceFrameForBufferlessTransaction()
101 ftInfo.inputEventId = 0; in PresentedSurfaceFrameForBufferTransaction()
136 ftInfo.inputEventId = 0; in DroppedSurfaceFrameForBufferTransaction()
181 ftInfo.inputEventId = 0; in BufferlessSurfaceFramePromotedToBufferSurfaceFrame()
234 ftInfo.inputEventId = 0; in BufferlessSurfaceFrameNotCreatedIfBufferSufaceFrameExists()
248 ftInfo.inputEventId = 0; in MultipleSurfaceFramesPresentedTogether()
257 ftInfo2.inputEventId = 0; in MultipleSurfaceFramesPresentedTogether()
277 ftInfo3.inputEventId = 0; in MultipleSurfaceFramesPresentedTogether()
322 ftInfo.inputEventId = 0; in PendingSurfaceFramesRemovedAfterClassification()
374 ftInfo.inputEventId = 0; in BufferSurfaceFrame_ReplaceValidTokenBufferWithInvalidTokenBuffer()
[all …]
DFrameTimelineTest.cpp234 ftInfo.inputEventId = sInputEventId; in TEST_F()
247 ftInfo.inputEventId = sInputEventId; in TEST_F()
259 constexpr int32_t inputEventId = 1; in TEST_F() local
262 ftInfo.inputEventId = inputEventId; in TEST_F()
268 EXPECT_EQ(inputEventId, surfaceFrame->getInputEventId()); in TEST_F()
276 ftInfo.inputEventId = sInputEventId; in TEST_F()
307 ftInfo.inputEventId = sInputEventId; in TEST_F()
352 ftInfo.inputEventId = sInputEventId; in TEST_F()
409 ftInfo.inputEventId = sInputEventId; in TEST_F()
434 ftInfo.inputEventId = sInputEventId; in TEST_F()
[all …]
DTransactionProtoParserTest.cpp37 t1.frameTimelineInfo.inputEventId = 4; in TEST()
94 ASSERT_EQ(t1.frameTimelineInfo.inputEventId, t2.frameTimelineInfo.inputEventId); in TEST()
/frameworks/base/core/java/android/view/
DInputEventSender.java126 public void onTimelineReported(int inputEventId, long gpuCompletedTime, long presentTime) { in onTimelineReported() argument
187 int inputEventId, long gpuCompletedTime, long presentTime) { in dispatchTimelineReported() argument
188 onTimelineReported(inputEventId, gpuCompletedTime, presentTime); in dispatchTimelineReported()
DInputEventReceiver.java58 private static native void nativeReportTimeline(long receiverPtr, int inputEventId, in nativeReportTimeline() argument
236 public final void reportTimeline(int inputEventId, long gpuCompletedTime, long presentTime) { in reportTimeline() argument
238 nativeReportTimeline(mReceiverPtr, inputEventId, gpuCompletedTime, presentTime); in reportTimeline()
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp96 status_t reportTimeline(int32_t inputEventId, nsecs_t gpuCompletedTime, nsecs_t presentTime);
111 int32_t inputEventId; member
184 status_t NativeInputEventReceiver::reportTimeline(int32_t inputEventId, nsecs_t gpuCompletedTime, in reportTimeline() argument
193 .inputEventId = inputEventId, in reportTimeline()
239 status = mInputConsumer.sendTimeline(timeline.inputEventId, timeline.timeline); in processOutboundEvents()
504 timeline.inputEventId, in dump()
574 static void nativeReportTimeline(JNIEnv* env, jclass clazz, jlong receiverPtr, jint inputEventId, in nativeReportTimeline() argument
576 if (IdGenerator::getSource(inputEventId) != IdGenerator::Source::INPUT_READER) { in nativeReportTimeline()
582 status_t status = receiver->reportTimeline(inputEventId, gpuCompletedTime, presentTime); in nativeReportTimeline()
Dandroid_view_InputEventSender.cpp259 << "' ~ Received timeline, inputEventId=" << timeline.inputEventId in notifyConsumerResponse()
269 << timeline.inputEventId; in notifyConsumerResponse()
274 timeline.inputEventId, timeline.graphicsTimeline); in notifyConsumerResponse()
276 LOG(ERROR) << "Exception dispatching timeline, inputEventId=" << timeline.inputEventId; in notifyConsumerResponse()
/frameworks/native/libs/gui/aidl/android/gui/
DFrameTimelineInfo.aidl32 int inputEventId = 0;
/frameworks/native/include/input/
DInputConsumerNoResampling.h75 void reportTimeline(int32_t inputEventId, nsecs_t gpuCompletedTime, nsecs_t presentTime);
DInputConsumer.h82 status_t sendTimeline(int32_t inputEventId,
DInputTransport.h423 int32_t inputEventId; member
/frameworks/native/libs/input/
DInputConsumerNoResampling.cpp160 InputMessage createTimelineMessage(int32_t inputEventId, nsecs_t gpuCompletedTime, in createTimelineMessage() argument
165 msg.body.timeline.eventId = inputEventId; in createTimelineMessage()
284 void InputConsumerNoResampling::reportTimeline(int32_t inputEventId, nsecs_t gpuCompletedTime, in reportTimeline() argument
287 mOutboundQueue.push(createTimelineMessage(inputEventId, gpuCompletedTime, presentTime)); in reportTimeline()
DInputConsumer.cpp750 status_t InputConsumer::sendTimeline(int32_t inputEventId, in sendTimeline() argument
755 mChannel->getName().c_str(), inputEventId, in sendTimeline()
762 msg.body.timeline.eventId = inputEventId; in sendTimeline()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumerNoResampling_test.cpp326 int32_t inputEventId; member
416 mConsumer->reportTimeline(args->inputEventId, args->gpuCompletedTime, in handleMessage()
680 const int32_t inputEventId = 20; in TEST_F() local
684 mReportTimelineArgs.emplace(inputEventId, gpuCompletedTime, presentTime); in TEST_F()
691 ASSERT_EQ(inputEventId, timeline.inputEventId); in TEST_F()
DInputPublisherAndConsumer_test.cpp567 const int32_t inputEventId = 20; in TEST_F() local
571 status_t status = mConsumer->sendTimeline(inputEventId, graphicsTimeline); in TEST_F()
578 ASSERT_EQ(inputEventId, timeline.inputEventId); in TEST_F()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.cpp655 const auto inputEventId = in draw() local
660 .inputEventId = inputEventId, in draw()
/frameworks/native/libs/nativewindow/include/system/
Dwindow.h1167 int32_t inputEventId; member

12