Home
last modified time | relevance | path

Searched refs:TouchVideoFrame (Results 1 – 20 of 20) sorted by relevance

/frameworks/native/libs/input/tests/
DTouchVideoFrame_test.cpp27 TEST(TouchVideoFrame, Constructor) { in TEST() argument
32 TouchVideoFrame frame(height, width, data, TIMESTAMP); in TEST()
41 TEST(TouchVideoFrame, Equality) { in TEST() argument
45 TouchVideoFrame frame(height, width, data, TIMESTAMP); in TEST()
47 TouchVideoFrame identicalFrame(height, width, data, TIMESTAMP); in TEST()
53 TouchVideoFrame changedHeightFrame(height + 1, width, data, TIMESTAMP); in TEST()
57 TouchVideoFrame changedWidthFrame(height, width + 1, data, TIMESTAMP); in TEST()
62 TouchVideoFrame changedDataFrame(height, width, differentData, TIMESTAMP); in TEST()
67 TouchVideoFrame changedTimestampFrame(height, width, data, differentTimestamp); in TEST()
73 TEST(TouchVideoFrame, Rotate90_0x0) { in TEST() argument
[all …]
/frameworks/native/libs/input/
DTouchVideoFrame.cpp22 TouchVideoFrame::TouchVideoFrame(uint32_t height, uint32_t width, std::vector<int16_t> data, in TouchVideoFrame() function in android::TouchVideoFrame
27 bool TouchVideoFrame::operator==(const TouchVideoFrame& rhs) const { in operator ==()
35 uint32_t TouchVideoFrame::getHeight() const { return mHeight; } in getHeight()
37 uint32_t TouchVideoFrame::getWidth() const { return mWidth; } in getWidth()
39 const std::vector<int16_t>& TouchVideoFrame::getData() const { return mData; } in getData()
41 const struct timeval& TouchVideoFrame::getTimestamp() const { return mTimestamp; } in getTimestamp()
43 void TouchVideoFrame::rotate(ui::Rotation orientation) { in rotate()
68 void TouchVideoFrame::rotateQuarterTurn(bool clockwise) { in rotateQuarterTurn()
94 void TouchVideoFrame::rotate180() { in rotate180()
DAndroid.bp235 "TouchVideoFrame.cpp",
/frameworks/native/services/inputflinger/reader/include/
DTouchVideoDevice.h78 std::vector<TouchVideoFrame> consumeFrames();
105 std::vector<TouchVideoFrame> mFrames;
117 std::vector<TouchVideoFrame> readFrames();
121 std::optional<TouchVideoFrame> readFrame();
DEventHub.h316 virtual std::vector<TouchVideoFrame> getVideoFrames(int32_t deviceId) = 0;
571 std::vector<TouchVideoFrame> getVideoFrames(int32_t deviceId) override final;
DInputDevice.h371 inline std::vector<TouchVideoFrame> getVideoFrames() { return mEventHub->getVideoFrames(mId); } in getVideoFrames()
/frameworks/native/include/input/
DTouchVideoFrame.h32 class TouchVideoFrame {
34 TouchVideoFrame(uint32_t height, uint32_t width, std::vector<int16_t> data,
37 bool operator==(const TouchVideoFrame& rhs) const;
/frameworks/native/services/inputflinger/reader/
DTouchVideoDevice.cpp162 std::vector<TouchVideoFrame> frames = readFrames(); in readAndQueueFrames()
180 std::vector<TouchVideoFrame> TouchVideoDevice::consumeFrames() { in consumeFrames()
181 std::vector<TouchVideoFrame> frames = std::move(mFrames); in consumeFrames()
186 std::optional<TouchVideoFrame> TouchVideoDevice::readFrame() { in readFrame()
208 TouchVideoFrame frame(mHeight, mWidth, std::move(data), buf.timestamp); in readFrame()
222 std::vector<TouchVideoFrame> TouchVideoDevice::readFrames() { in readFrames()
223 std::vector<TouchVideoFrame> frames; in readFrames()
225 std::optional<TouchVideoFrame> frame = readFrame(); in readFrames()
DEventHub.cpp2112 std::vector<TouchVideoFrame> EventHub::getVideoFrames(int32_t deviceId) { in getVideoFrames()
/frameworks/native/services/inputflinger/tests/
DNotifyArgs_test.cpp71 TouchVideoFrame frame(2, 2, std::move(videoData), timestamp); in TEST()
72 std::vector<TouchVideoFrame> videoFrames = {frame}; in TEST()
DInputProcessor_test.cpp210 TouchVideoFrame frame(2, 2, std::move(videoData), timestamp); in TEST_F()
226 TouchVideoFrame frame1(2, 2, std::move(videoData1), timestamp1); in TEST_F()
230 TouchVideoFrame frame2(2, 2, std::move(videoData2), timestamp2); in TEST_F()
DFakeEventHub.h89 std::unordered_map<int32_t /*deviceId*/, std::vector<TouchVideoFrame>> mVideoFrames;
152 std::unordered_map<int32_t /*deviceId*/, std::vector<TouchVideoFrame>> videoFrames);
185 std::vector<TouchVideoFrame> getVideoFrames(int32_t deviceId) override;
DFakeEventHub.cpp224 std::unordered_map<int32_t /*deviceId*/, std::vector<TouchVideoFrame>> videoFrames) { in setVideoFrames()
372 std::vector<TouchVideoFrame> FakeEventHub::getVideoFrames(int32_t deviceId) { in getVideoFrames()
375 std::vector<TouchVideoFrame> frames = std::move(it->second); in getVideoFrames()
DInterfaceMocks.h108 MOCK_METHOD(std::vector<TouchVideoFrame>, getVideoFrames, (int32_t deviceId));
DInputReader_test.cpp8933 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, {1, 2}); in TEST_F()
8934 std::vector<TouchVideoFrame> frames{frame}; in TEST_F()
8947 ASSERT_EQ(std::vector<TouchVideoFrame>(), motionArgs.videoFrames); in TEST_F()
8955 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, {1, 2}); in TEST_F()
8963 std::vector<TouchVideoFrame> frames{frame}; in TEST_F()
8980 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, {1, 2}); in TEST_F()
8988 std::vector<TouchVideoFrame> frames{frame}; in TEST_F()
9012 TouchVideoFrame frame1(3, 2, {1, 2, 3, 4, 5, 6}, {1, 2}); in TEST_F()
9013 TouchVideoFrame frame2(3, 3, {0, 1, 2, 3, 4, 5, 6, 7, 8}, {1, 3}); in TEST_F()
9014 TouchVideoFrame frame3(2, 2, {10, 20, 10, 0}, {1, 4}); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/include/
DNotifyArgs.h121 std::vector<TouchVideoFrame> videoFrames;
132 const std::vector<TouchVideoFrame>& videoFrames);
/frameworks/native/services/inputflinger/
DInputCommonConverter.cpp271 static common::VideoFrame getHalVideoFrame(const TouchVideoFrame& frame) { in getHalVideoFrame()
284 const std::vector<TouchVideoFrame>& frames) { in convertVideoFrames()
286 for (const TouchVideoFrame& frame : frames) { in convertVideoFrames()
DNotifyArgs.cpp72 const std::vector<TouchVideoFrame>& videoFrames) in NotifyMotionArgs()
/frameworks/native/services/inputflinger/tests/fuzzers/
DMapperHelpers.h97 std::vector<TouchVideoFrame> mVideoFrames;
154 std::vector<TouchVideoFrame> getVideoFrames(int32_t deviceId) override { return mVideoFrames; } in getVideoFrames()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp3696 std::vector<TouchVideoFrame> frames = getDeviceContext().getVideoFrames(); in dispatchMotion()
3698 [this](TouchVideoFrame& frame) { frame.rotate(this->mInputDeviceOrientation); }); in dispatchMotion()