Home
last modified time | relevance | path

Searched refs:MotionClassification (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/native/services/inputflinger/
DInputProcessor.cpp60 static MotionClassification getMotionClassification(common::Classification classification) { in getMotionClassification()
61 static_assert(MotionClassification::NONE == in getMotionClassification()
62 static_cast<MotionClassification>(common::Classification::NONE)); in getMotionClassification()
63 static_assert(MotionClassification::AMBIGUOUS_GESTURE == in getMotionClassification()
64 static_cast<MotionClassification>(common::Classification::AMBIGUOUS_GESTURE)); in getMotionClassification()
65 static_assert(MotionClassification::DEEP_PRESS == in getMotionClassification()
66 static_cast<MotionClassification>(common::Classification::DEEP_PRESS)); in getMotionClassification()
67 return static_cast<MotionClassification>(classification); in getMotionClassification()
264 MotionClassification classification) { in updateClassification()
277 void MotionClassifier::setClassification(int32_t deviceId, MotionClassification classification) { in setClassification()
[all …]
DInputProcessor.h69 virtual MotionClassification classify(const NotifyMotionArgs& args) = 0;
157 virtual MotionClassification classify(const NotifyMotionArgs& args) override;
199 std::unordered_map<int32_t /*deviceId*/, MotionClassification> mClassifications
204 void setClassification(int32_t deviceId, MotionClassification classification);
208 MotionClassification getClassification(int32_t deviceId);
210 MotionClassification classification);
/frameworks/native/services/inputflinger/reader/mapper/gestures/
DGestureConverter.cpp91 case MotionClassification::TWO_FINGER_SWIPE: in reset()
94 case MotionClassification::MULTI_FINGER_SWIPE: in reset()
97 case MotionClassification::PINCH: in reset()
100 case MotionClassification::NONE: in reset()
111 mCurrentClassification = MotionClassification::NONE; in reset()
330 if (mCurrentClassification != MotionClassification::TWO_FINGER_SWIPE) { in handleScroll()
333 mCurrentClassification = MotionClassification::TWO_FINGER_SWIPE; in handleScroll()
365 if (mCurrentClassification == MotionClassification::TWO_FINGER_SWIPE) { in handleFling()
375 if (mCurrentClassification == MotionClassification::NONE) { in handleFling()
391 mCurrentClassification = MotionClassification::TWO_FINGER_SWIPE; in handleFling()
[all …]
DGestureConverter.h120 MotionClassification mCurrentClassification = MotionClassification::NONE;
/frameworks/native/services/inputflinger/tests/
DGestureConverter_test.cpp302 AllOf(WithMotionClassification(MotionClassification::TWO_FINGER_SWIPE), in TEST_F()
313 WithMotionClassification(MotionClassification::TWO_FINGER_SWIPE), in TEST_F()
327 MotionClassification::TWO_FINGER_SWIPE), in TEST_F()
332 WithMotionClassification(MotionClassification::NONE))))); in TEST_F()
361 AllOf(WithMotionClassification(MotionClassification::TWO_FINGER_SWIPE), in TEST_F()
371 WithMotionClassification(MotionClassification::TWO_FINGER_SWIPE), in TEST_F()
384 MotionClassification::TWO_FINGER_SWIPE))), in TEST_F()
388 WithMotionClassification(MotionClassification::NONE))))); in TEST_F()
415 AllOf(WithMotionClassification(MotionClassification::NONE), in TEST_F()
499 WithMotionClassification(MotionClassification::NONE)))); in TEST_F()
[all …]
DNotifyArgs_test.cpp46 MotionClassification classification = MotionClassification::DEEP_PRESS; in TEST()
DInputProcessorConverter_test.cpp44 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, in generateBasicMotionArgs()
/frameworks/native/libs/input/tests/
DInputChannel_test.cpp204 std::array<MotionClassification, 3> classifications = { in TEST_F()
205 MotionClassification::NONE, in TEST_F()
206 MotionClassification::AMBIGUOUS_GESTURE, in TEST_F()
207 MotionClassification::DEEP_PRESS, in TEST_F()
215 for (MotionClassification classification : classifications) { in TEST_F()
DInputEvent_test.cpp370 AMETA_ALT_ON, AMOTION_EVENT_BUTTON_PRIMARY, MotionClassification::NONE, in initializeEventWithHistory()
394 ASSERT_EQ(MotionClassification::NONE, event->getClassification()); in assertEqualsEventWithHistory()
830 MotionClassification::NONE, identityTransform, /*xPrecision=*/0, in TEST_F()
888 AMETA_NONE, /*buttonState=*/0, MotionClassification::NONE, transform, in createMotionEvent()
1014 std::array<MotionClassification, 3> classifications = { in TEST_F()
1015 MotionClassification::NONE, in TEST_F()
1016 MotionClassification::AMBIGUOUS_GESTURE, in TEST_F()
1017 MotionClassification::DEEP_PRESS, in TEST_F()
1031 for (MotionClassification classification : classifications) { in TEST_F()
1056 AMETA_NONE, 0, MotionClassification::NONE, identityTransform, 0, 0, in TEST_F()
[all …]
DInputPublisherAndConsumer_test.cpp56 const MotionClassification classification = MotionClassification::AMBIGUOUS_GESTURE;
629 0, 0, MotionClassification::NONE, identityTransform, 0, in TEST_F()
646 0, 0, MotionClassification::NONE, identityTransform, 0, in TEST_F()
668 0, 0, MotionClassification::NONE, identityTransform, 0, in TEST_F()
DInputPublisherAndConsumerNoResampling_test.cpp63 const MotionClassification classification = MotionClassification::AMBIGUOUS_GESTURE;
744 0, 0, MotionClassification::NONE, identityTransform, 0, in TEST_F()
762 0, 0, MotionClassification::NONE, identityTransform, 0, in TEST_F()
784 0, 0, MotionClassification::NONE, identityTransform, 0, in TEST_F()
DVerifiedInputEvent_test.cpp49 /*buttonState=*/0, MotionClassification::NONE, transform, /*xPrecision=*/0.1, in getMotionEventWithFlags()
/frameworks/base/native/android/
Dinput.cpp293 case android::MotionClassification::NONE: in AMotionEvent_getClassification()
295 case android::MotionClassification::AMBIGUOUS_GESTURE: in AMotionEvent_getClassification()
297 case android::MotionClassification::DEEP_PRESS: in AMotionEvent_getClassification()
299 case android::MotionClassification::TWO_FINGER_SWIPE: in AMotionEvent_getClassification()
301 case android::MotionClassification::MULTI_FINGER_SWIPE: in AMotionEvent_getClassification()
303 case android::MotionClassification::PINCH: in AMotionEvent_getClassification()
/frameworks/native/services/inputflinger/include/
DNotifyArgsBuilders.h98 MotionArgsBuilder& classification(MotionClassification classification) { in classification()
159 MotionClassification mClassification{MotionClassification::NONE};
DNotifyArgs.h104 MotionClassification classification;
128 int32_t buttonState, MotionClassification classification, int32_t edgeFlags,
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp67 /* edgeFlags */ 0, AMETA_NONE, /* buttonState */ 0, MotionClassification::NONE, in generateMotionEvent()
94 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, 1, in generateMotionArgs()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp341 metaState, buttonState, MotionClassification::NONE, in sync()
351 metaState, currentButtonState, MotionClassification::NONE, in sync()
365 metaState, buttonState, MotionClassification::NONE, in sync()
380 currentButtonState, MotionClassification::NONE, in sync()
395 currentButtonState, MotionClassification::NONE, in sync()
DTouchInputMapper.cpp1936 MotionClassification::NONE)); in abortTouches()
1991 MotionClassification::NONE)); in dispatchTouches()
2030 MotionClassification::NONE)); in dispatchTouches()
2047 MotionClassification::NONE)); in dispatchTouches()
2067 mOrientedYPrecision, mDownTime, MotionClassification::NONE)); in dispatchTouches()
2088 MotionClassification::NONE)); in dispatchHoverExit()
2109 MotionClassification::NONE)); in dispatchHoverEnterAndMove()
2121 MotionClassification::NONE)); in dispatchHoverEnterAndMove()
2143 MotionClassification::NONE)); in dispatchButtonRelease()
2165 MotionClassification::NONE)); in dispatchButtonPress()
[all …]
DRotaryEncoderInputMapper.cpp151 metaState, /*buttonState=*/0, MotionClassification::NONE, in sync()
/frameworks/native/libs/input/
DInput.cpp114 const char* motionClassificationToString(MotionClassification classification) { in motionClassificationToString()
116 case MotionClassification::NONE: in motionClassificationToString()
118 case MotionClassification::AMBIGUOUS_GESTURE: in motionClassificationToString()
120 case MotionClassification::DEEP_PRESS: in motionClassificationToString()
122 case MotionClassification::TWO_FINGER_SWIPE: in motionClassificationToString()
124 case MotionClassification::MULTI_FINGER_SWIPE: in motionClassificationToString()
126 case MotionClassification::PINCH: in motionClassificationToString()
557 MotionClassification classification, const ui::Transform& transform, in initialize()
846 mClassification = static_cast<MotionClassification>(parcel->readByte()); in readFromParcel()
1171 if (event.getClassification() != MotionClassification::NONE) { in operator <<()
/frameworks/native/services/inputflinger/dispatcher/trace/
DInputTracingBackendInterface.h79 MotionClassification classification;
/frameworks/native/include/input/
DInputTransport.h126 MotionClassification classification; // base type: uint8_t
373 MotionClassification classification, const ui::Transform& transform,
DInput.h366 enum class MotionClassification : uint8_t { enum
400 const char* motionClassificationToString(MotionClassification classification);
679 inline MotionClassification getClassification() const { return mClassification; } in getClassification()
881 MotionClassification classification, const ui::Transform& transform,
976 MotionClassification mClassification;
/frameworks/native/services/inputflinger/dispatcher/
DEntry.h164 MotionClassification classification;
180 int32_t metaState, int32_t buttonState, MotionClassification classification,
DInputState.cpp405 /*buttonState=*/0, MotionClassification::NONE, in createCancelEntryForMemento()
484 /*buttonState=*/0, MotionClassification::NONE, in synthesizePointerDownEvents()
540 MotionClassification::NONE, in synthesizeCancelationEventsForPointers()

12