Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/
DInputClassifier.cpp60 static MotionClassification getMotionClassification(common::V1_0::Classification classification) { in getMotionClassification()
61 static_assert(MotionClassification::NONE == in getMotionClassification()
62 static_cast<MotionClassification>(common::V1_0::Classification::NONE)); in getMotionClassification()
63 static_assert(MotionClassification::AMBIGUOUS_GESTURE == in getMotionClassification()
64 static_cast<MotionClassification>(common::V1_0::Classification::AMBIGUOUS_GESTURE)); in getMotionClassification()
65 static_assert(MotionClassification::DEEP_PRESS == in getMotionClassification()
66 static_cast<MotionClassification>(common::V1_0::Classification::DEEP_PRESS)); in getMotionClassification()
67 return static_cast<MotionClassification>(classification); in getMotionClassification()
231 MotionClassification classification) { in updateClassification()
244 void MotionClassifier::setClassification(int32_t deviceId, MotionClassification classification) { in setClassification()
[all …]
DInputClassifier.h71 virtual MotionClassification classify(const NotifyMotionArgs& args) = 0;
138 virtual MotionClassification classify(const NotifyMotionArgs& args) override;
179 std::unordered_map<int32_t /*deviceId*/, MotionClassification>
184 void setClassification(int32_t deviceId, MotionClassification classification);
188 MotionClassification getClassification(int32_t deviceId);
190 MotionClassification classification);
DInputListener.cpp99 int32_t buttonState, MotionClassification classification, in NotifyMotionArgs()
/frameworks/native/libs/input/tests/
DInputChannel_test.cpp175 std::array<MotionClassification, 3> classifications = { in TEST_F()
176 MotionClassification::NONE, in TEST_F()
177 MotionClassification::AMBIGUOUS_GESTURE, in TEST_F()
178 MotionClassification::DEEP_PRESS, in TEST_F()
186 for (MotionClassification classification : classifications) { in TEST_F()
DInputEvent_test.cpp269 MotionClassification::NONE, X_SCALE, Y_SCALE, X_OFFSET, Y_OFFSET, 2.0f, 2.1f, in initializeEventWithHistory()
328 ASSERT_EQ(MotionClassification::NONE, event->getClassification()); in assertEqualsEventWithHistory()
590 MotionClassification::NONE, 1 /*xScale*/, 1 /*yScale*/, 0 /*xOffset*/, in TEST_F()
635 std::array<MotionClassification, 3> classifications = { in TEST_F()
636 MotionClassification::NONE, in TEST_F()
637 MotionClassification::AMBIGUOUS_GESTURE, in TEST_F()
638 MotionClassification::DEEP_PRESS, in TEST_F()
651 for (MotionClassification classification : classifications) { in TEST_F()
675 AMETA_NONE, 0, MotionClassification::NONE, 1 /*xScale*/, 1 /*yScale*/, 0, 0, 0, in TEST_F()
DInputPublisherAndConsumer_test.cpp157 constexpr MotionClassification classification = MotionClassification::AMBIGUOUS_GESTURE; in PublishAndConsumeMotionEvent()
342 0, 0, 0, MotionClassification::NONE, 1 /* xScale */, in TEST_F()
358 0, 0, 0, MotionClassification::NONE, 1 /* xScale */, in TEST_F()
379 0, 0, 0, MotionClassification::NONE, 1 /* xScale */, in TEST_F()
DVerifiedInputEvent_test.cpp45 MotionClassification::NONE, 2 /*xScale*/, 3 /*yScale*/, 4 /*xOffset*/, in getMotionEventWithFlags()
DVelocityTracker_test.cpp182 MotionClassification::NONE, 1 /*xScale*/, 1 /*yScale*/, 0 /*xOffset*/, in createMotionEventStream()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp380 metaState, buttonState, MotionClassification::NONE, in sync()
391 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, 1, in sync()
405 metaState, buttonState, MotionClassification::NONE, in sync()
420 0, metaState, currentButtonState, MotionClassification::NONE, in sync()
434 metaState, currentButtonState, MotionClassification::NONE, in sync()
DRotaryEncoderInputMapper.cpp124 metaState, /* buttonState */ 0, MotionClassification::NONE, in sync()
DTouchInputMapper.cpp2498 buttonState, MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, in dispatchPointerGestures()
3418 mLastRawState.buttonState, MotionClassification::NONE, in dispatchPointerSimple()
3432 mLastRawState.buttonState, MotionClassification::NONE, in dispatchPointerSimple()
3449 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, 1, in dispatchPointerSimple()
3459 mCurrentRawState.buttonState, MotionClassification::NONE, in dispatchPointerSimple()
3475 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, 1, in dispatchPointerSimple()
3485 mCurrentRawState.buttonState, MotionClassification::NONE, in dispatchPointerSimple()
3507 mCurrentRawState.buttonState, MotionClassification::NONE, in dispatchPointerSimple()
3581 MotionClassification::NONE, edgeFlags, pointerCount, pointerProperties, in dispatchMotion()
DJoystickInputMapper.cpp338 buttonState, MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, 1, in sync()
/frameworks/native/include/input/
DInput.h247 enum class MotionClassification : uint8_t { enum
266 const char* motionClassificationToString(MotionClassification classification);
514 inline MotionClassification getClassification() const { return mClassification; } in getClassification()
688 MotionClassification classification, float xScale, float yScale, float xOffset,
739 MotionClassification mClassification;
DInputTransport.h116 MotionClassification classification; // base type: uint8_t
298 MotionClassification classification, float xScale, float yScale,
/frameworks/native/services/inputflinger/include/
DInputListener.h106 MotionClassification classification;
129 MotionClassification classification, int32_t edgeFlags, uint32_t pointerCount,
/frameworks/native/libs/input/
DInput.cpp35 const char* motionClassificationToString(MotionClassification classification) { in motionClassificationToString()
37 case MotionClassification::NONE: in motionClassificationToString()
39 case MotionClassification::AMBIGUOUS_GESTURE: in motionClassificationToString()
41 case MotionClassification::DEEP_PRESS: in motionClassificationToString()
323 int32_t buttonState, MotionClassification classification, float xScale, in initialize()
579 mClassification = static_cast<MotionClassification>(parcel->readByte()); in readFromParcel()
DInputTransport.cpp487 MotionClassification classification, float xScale, float yScale, float xOffset, in publishMotionEvent()
/frameworks/native/services/inputflinger/dispatcher/
DEntry.h166 MotionClassification classification;
179 int32_t metaState, int32_t buttonState, MotionClassification classification,
DInputState.cpp289 0 /*buttonState*/, MotionClassification::NONE, in synthesizeCancelationEvents()
339 0 /*buttonState*/, MotionClassification::NONE, in synthesizePointerDownEvents()
DEntry.cpp180 int32_t buttonState, MotionClassification classification, in MotionEntry()
/frameworks/native/services/inputflinger/tests/
DInputClassifierConverter_test.cpp44 AMETA_NONE, 0 /*buttonState*/, MotionClassification::NONE, in generateBasicMotionArgs()
DInputClassifier_test.cpp47 AMETA_NONE, 0 /*buttonState*/, MotionClassification::NONE, in generateBasicMotionArgs()
DInputDispatcher_test.cpp432 constexpr MotionClassification classification = MotionClassification::NONE; in TEST_F()
965 /* edgeFlags */ 0, AMETA_NONE, /* buttonState */ 0, MotionClassification::NONE,
1021 AMETA_NONE, /* buttonState */ 0, MotionClassification::NONE, in generateMotionArgs()
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp209 /* edgeFlags */ 0, AMETA_NONE, /* buttonState */ 0, MotionClassification::NONE, in generateMotionEvent()
235 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, 1, in generateMotionArgs()