Home
last modified time | relevance | path

Searched refs:MotionClassification (Results 1 – 23 of 23) 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()
194 setClassification(deviceId, MotionClassification::NONE); in processEvents()
231 MotionClassification classification) { in updateClassification()
[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.cpp93 int32_t buttonState, MotionClassification classification, in NotifyMotionArgs()
/frameworks/native/libs/input/tests/
DInputChannel_test.cpp167 std::array<MotionClassification, 3> classifications = { in TEST_F()
168 MotionClassification::NONE, in TEST_F()
169 MotionClassification::AMBIGUOUS_GESTURE, in TEST_F()
170 MotionClassification::DEEP_PRESS, in TEST_F()
178 for (MotionClassification classification : classifications) { in TEST_F()
DInputPublisherAndConsumer_test.cpp144 constexpr MotionClassification classification = MotionClassification::AMBIGUOUS_GESTURE; in PublishAndConsumeMotionEvent()
270 MotionClassification::NONE, 0, 0, 0, 0, 0, 0, in TEST_F()
283 MotionClassification::NONE, 0, 0, 0, 0, 0, 0, in TEST_F()
301 MotionClassification::NONE, 0, 0, 0, 0, 0, 0, in TEST_F()
DInputEvent_test.cpp260 MotionClassification::NONE, X_OFFSET, Y_OFFSET, 2.0f, 2.1f, in initializeEventWithHistory()
316 ASSERT_EQ(MotionClassification::NONE, event->getClassification()); in assertEqualsEventWithHistory()
575 AMETA_NONE, 0 /*buttonState*/, MotionClassification::NONE, in TEST_F()
611 std::array<MotionClassification, 3> classifications = { in TEST_F()
612 MotionClassification::NONE, in TEST_F()
613 MotionClassification::AMBIGUOUS_GESTURE, in TEST_F()
614 MotionClassification::DEEP_PRESS, in TEST_F()
627 for (MotionClassification classification : classifications) { in TEST_F()
DVelocityTracker_test.cpp182 MotionClassification::NONE, in createMotionEventStream()
/frameworks/native/include/input/
DInput.h228 enum class MotionClassification : uint8_t { enum
247 const char* motionClassificationToString(MotionClassification classification);
448 inline MotionClassification getClassification() const { return mClassification; } in getClassification()
613 MotionClassification classification,
667 MotionClassification mClassification;
DInputTransport.h108 MotionClassification classification; // base type: uint8_t
275 MotionClassification classification,
/frameworks/native/libs/input/
DInput.cpp32 const char* motionClassificationToString(MotionClassification classification) { in motionClassificationToString()
34 case MotionClassification::NONE: in motionClassificationToString()
36 case MotionClassification::AMBIGUOUS_GESTURE: in motionClassificationToString()
38 case MotionClassification::DEEP_PRESS: in motionClassificationToString()
248 MotionClassification classification, in initialize()
468 mClassification = static_cast<MotionClassification>(parcel->readByte()); in readFromParcel()
DInputTransport.cpp478 MotionClassification classification, in publishMotionEvent()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp401 metaState, buttonState, MotionClassification::NONE, in sync()
412 currentButtonState, MotionClassification::NONE, in sync()
426 metaState, buttonState, MotionClassification::NONE, in sync()
441 0, metaState, currentButtonState, MotionClassification::NONE, in sync()
457 currentButtonState, MotionClassification::NONE, in sync()
DRotaryEncoderInputMapper.cpp124 metaState, /* buttonState */ 0, MotionClassification::NONE, in sync()
DTouchInputMapper.cpp2538 metaState, buttonState, MotionClassification::NONE, in dispatchPointerGestures()
3457 mLastRawState.buttonState, MotionClassification::NONE, in dispatchPointerSimple()
3471 metaState, mLastRawState.buttonState, MotionClassification::NONE, in dispatchPointerSimple()
3488 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, in dispatchPointerSimple()
3499 mCurrentRawState.buttonState, MotionClassification::NONE, in dispatchPointerSimple()
3515 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, in dispatchPointerSimple()
3526 metaState, mCurrentRawState.buttonState, MotionClassification::NONE, in dispatchPointerSimple()
3548 mCurrentRawState.buttonState, MotionClassification::NONE, in dispatchPointerSimple()
3617 MotionClassification::NONE, edgeFlags, deviceTimestamp, pointerCount, in dispatchMotion()
DJoystickInputMapper.cpp337 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, in sync()
/frameworks/native/services/inputflinger/dispatcher/
DEntry.h127 MotionClassification classification;
139 MotionClassification classification, int32_t edgeFlags, float xPrecision,
DEntry.cpp163 int32_t buttonState, MotionClassification classification, in MotionEntry()
DInputState.cpp272 0 /*buttonState*/, MotionClassification::NONE, in synthesizeCancelationEvents()
/frameworks/native/services/inputflinger/include/
DInputListener.h108 MotionClassification classification;
130 int32_t metaState, int32_t buttonState, MotionClassification classification,
/frameworks/native/services/inputflinger/tests/
DInputClassifierConverter_test.cpp43 0/*actionButton*/, 0/*flags*/, AMETA_NONE, 0/*buttonState*/, MotionClassification::NONE, in generateBasicMotionArgs()
DInputDispatcher_test.cpp250 constexpr MotionClassification classification = MotionClassification::NONE; in TEST_F()
544 AMETA_NONE, /* buttonState */ 0, MotionClassification::NONE, in injectMotionDown()
582 AMETA_NONE, /* buttonState */ 0, MotionClassification::NONE, in generateMotionArgs()
DInputClassifier_test.cpp46 0/*actionButton*/, 0/*flags*/, AMETA_NONE, 0/*buttonState*/, MotionClassification::NONE, in generateBasicMotionArgs()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp376 buttonState, static_cast<MotionClassification>(classification), in android_view_MotionEvent_nativeInitialize()