Home
last modified time | relevance | path

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

/frameworks/native/libs/input/tests/
DTouchVideoFrame_test.cpp26 TEST(TouchVideoFrame, Constructor) { in TEST() argument
31 TouchVideoFrame frame(height, width, data, TIMESTAMP); in TEST()
40 TEST(TouchVideoFrame, Equality) { in TEST() argument
44 TouchVideoFrame frame(height, width, data, TIMESTAMP); in TEST()
46 TouchVideoFrame identicalFrame(height, width, data, TIMESTAMP); in TEST()
52 TouchVideoFrame changedHeightFrame(height + 1, width, data, TIMESTAMP); in TEST()
56 TouchVideoFrame changedWidthFrame(height, width + 1, data, TIMESTAMP); in TEST()
61 TouchVideoFrame changedDataFrame(height, width, differentData, TIMESTAMP); in TEST()
66 TouchVideoFrame changedTimestampFrame(height, width, data, differentTimestamp); in TEST()
72 TEST(TouchVideoFrame, Rotate90_0x0) { in TEST() argument
[all …]
/frameworks/native/libs/input/
DTouchVideoFrame.cpp21 TouchVideoFrame::TouchVideoFrame(uint32_t height, uint32_t width, std::vector<int16_t> data, in TouchVideoFrame() function in android::TouchVideoFrame
26 bool TouchVideoFrame::operator==(const TouchVideoFrame& rhs) const { in operator ==()
34 uint32_t TouchVideoFrame::getHeight() const { return mHeight; } in getHeight()
36 uint32_t TouchVideoFrame::getWidth() const { return mWidth; } in getWidth()
38 const std::vector<int16_t>& TouchVideoFrame::getData() const { return mData; } in getData()
40 const struct timeval& TouchVideoFrame::getTimestamp() const { return mTimestamp; } in getTimestamp()
42 void TouchVideoFrame::rotate(int32_t orientation) { in rotate()
64 void TouchVideoFrame::rotateQuarterTurn(bool clockwise) { in rotateQuarterTurn()
90 void TouchVideoFrame::rotate180() { in rotate180()
DAndroid.bp31 "TouchVideoFrame.cpp",
/frameworks/native/services/inputflinger/reader/include/
DTouchVideoDevice.h79 std::vector<TouchVideoFrame> consumeFrames();
106 std::vector<TouchVideoFrame> mFrames;
118 std::vector<TouchVideoFrame> readFrames();
122 std::optional<TouchVideoFrame> readFrame();
DEventHub.h205 virtual std::vector<TouchVideoFrame> getVideoFrames(int32_t deviceId) = 0;
296 virtual std::vector<TouchVideoFrame> getVideoFrames(int32_t deviceId);
/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()
179 std::vector<TouchVideoFrame> TouchVideoDevice::consumeFrames() { in consumeFrames()
180 std::vector<TouchVideoFrame> frames = std::move(mFrames); in consumeFrames()
185 std::optional<TouchVideoFrame> TouchVideoDevice::readFrame() { in readFrame()
206 TouchVideoFrame frame(mHeight, mWidth, std::move(data), buf.timestamp); in readFrame()
220 std::vector<TouchVideoFrame> TouchVideoDevice::readFrames() { in readFrames()
221 std::vector<TouchVideoFrame> frames; in readFrames()
223 std::optional<TouchVideoFrame> frame = readFrame(); in readFrames()
DEventHub.cpp1068 std::vector<TouchVideoFrame> EventHub::getVideoFrames(int32_t deviceId) { in getVideoFrames()
/frameworks/native/services/inputflinger/tests/
DInputClassifier_test.cpp228 TouchVideoFrame frame(2, 2, std::move(videoData), timestamp); in TEST_F()
244 TouchVideoFrame frame1(2, 2, std::move(videoData1), timestamp1); in TEST_F()
248 TouchVideoFrame frame2(2, 2, std::move(videoData2), timestamp2); in TEST_F()
DInputReader_test.cpp350 std::unordered_map<int32_t /*deviceId*/, std::vector<TouchVideoFrame>> mVideoFrames;
516 std::vector<TouchVideoFrame>> videoFrames) { in setVideoFrames()
634 virtual std::vector<TouchVideoFrame> getVideoFrames(int32_t deviceId) { in getVideoFrames()
637 std::vector<TouchVideoFrame> frames = std::move(it->second); in getVideoFrames()
6461 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, {1, 2}); in TEST_F()
6462 std::vector<TouchVideoFrame> frames{frame}; in TEST_F()
6475 ASSERT_EQ(std::vector<TouchVideoFrame>(), motionArgs.videoFrames); in TEST_F()
6484 TouchVideoFrame frame(3, 2, {1, 2, 3, 4, 5, 6}, {1, 2}); in TEST_F()
6493 std::vector<TouchVideoFrame> frames{frame}; in TEST_F()
6510 TouchVideoFrame frame1(3, 2, {1, 2, 3, 4, 5, 6}, {1, 2}); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/include/
DInputListener.h123 std::vector<TouchVideoFrame> videoFrames;
134 const std::vector<TouchVideoFrame>& videoFrames);
/frameworks/native/services/inputflinger/
DInputClassifierConverter.cpp308 static common::V1_0::VideoFrame getHalVideoFrame(const TouchVideoFrame& frame) { in getHalVideoFrame()
320 const std::vector<TouchVideoFrame>& frames) { in convertVideoFrames()
322 for (const TouchVideoFrame& frame : frames) { in convertVideoFrames()
DInputListener.cpp97 const std::vector<TouchVideoFrame>& videoFrames) : in NotifyMotionArgs()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp3612 std::vector<TouchVideoFrame> frames = mDevice->getEventHub()->getVideoFrames(deviceId); in dispatchMotion()
3614 [this](TouchVideoFrame& frame) { frame.rotate(this->mSurfaceOrientation); }); in dispatchMotion()