/frameworks/native/services/inputflinger/tests/ |
D | InputDeviceMetricsSource_test.cpp | 64 .pointer(PointerBuilder(/*id=*/1, ToolType::PALM) in TEST_P() 123 .pointer(PointerBuilder(/*id=*/1, ToolType::UNKNOWN) in TEST_P() 135 .pointer(PointerBuilder(/*id=*/1, ToolType::MOUSE) in TEST_P() 148 .pointer(PointerBuilder(/*id=*/1, ToolType::MOUSE) in TEST_P() 162 .pointer(PointerBuilder(/*id=*/1, ToolType::FINGER) in TEST_P() 174 .pointer(PointerBuilder(/*id=*/1, ToolType::FINGER) in TEST_P() 189 .pointer(PointerBuilder(/*id=*/1, ToolType::UNKNOWN) in TEST_P() 202 .pointer(PointerBuilder(/*id=*/1, ToolType::STYLUS) in TEST_P() 215 .pointer(PointerBuilder(/*id=*/1, ToolType::STYLUS) in TEST_P() 228 .pointer(PointerBuilder(/*id=*/1, ToolType::STYLUS) in TEST_P() [all …]
|
D | InputDispatcher_test.cpp | 580 PointerBuilder(/*id=*/0, ToolType::FINGER).x(position.x).y(position.y)); 627 pointerProperties[i].toolType = ToolType::FINGER; in generateMotionArgs() 820 .pointer(PointerBuilder(0, ToolType::FINGER).x(100).y(200)) in TEST_F() 831 .pointer(PointerBuilder(0, ToolType::FINGER).x(110).y(200)) in TEST_F() 858 .pointer(PointerBuilder(0, ToolType::FINGER).x(100).y(100)) in TEST_F() 862 .pointer(PointerBuilder(0, ToolType::FINGER).x(100).y(100)) in TEST_F() 863 .pointer(PointerBuilder(1, ToolType::FINGER).x(110).y(100)) in TEST_F() 867 .pointer(PointerBuilder(0, ToolType::FINGER).x(100).y(100)) in TEST_F() 868 .pointer(PointerBuilder(1, ToolType::FINGER).x(110).y(100)) in TEST_F() 969 .pointer(PointerBuilder(0, ToolType::FINGER).x(50).y(50)) in TEST_F() [all …]
|
D | InputDeviceMetricsCollector_test.cpp | 121 std::vector<ToolType> toolTypes = {ToolType::FINGER}) { in generateMotionArgs() 289 mMetricsCollector.notifyMotion(generateMotionArgs(DEVICE_ID, STYLUS, {ToolType::STYLUS})); in TEST_F() 291 mMetricsCollector.notifyMotion(generateMotionArgs(DEVICE_ID, STYLUS, {ToolType::STYLUS})); in TEST_F() 303 mMetricsCollector.notifyMotion(generateMotionArgs(DEVICE_ID, STYLUS, {ToolType::STYLUS})); in TEST_F() 338 mMetricsCollector.notifyMotion(generateMotionArgs(DEVICE_ID_2, STYLUS, {ToolType::STYLUS})); in TEST_F() 341 mMetricsCollector.notifyMotion(generateMotionArgs(DEVICE_ID_2, STYLUS, {ToolType::STYLUS})); in TEST_F() 361 {ToolType::STYLUS})); in TEST_F() 364 {ToolType::STYLUS, ToolType::FINGER})); in TEST_F() 367 {ToolType::STYLUS, ToolType::FINGER})); in TEST_F() 370 {ToolType::FINGER})); in TEST_F() [all …]
|
D | GestureConverter_test.cpp | 110 AllOf(WithCoords(0, 0), WithToolType(ToolType::FINGER), in TEST_F() 118 WithRelativeMotion(-5, 10), WithToolType(ToolType::FINGER), in TEST_F() 142 AllOf(WithCoords(0, 0), WithToolType(ToolType::FINGER), in TEST_F() 173 AllOf(WithCoords(0, 0), WithToolType(ToolType::FINGER), in TEST_F() 186 WithToolType(ToolType::FINGER), in TEST_F() 204 AllOf(WithButtonState(0), WithCoords(0, 0), WithToolType(ToolType::FINGER), in TEST_F() 224 WithCoords(0, 0), WithToolType(ToolType::FINGER), in TEST_F() 249 AllOf(WithCoords(0, 0), WithToolType(ToolType::FINGER), in TEST_F() 258 WithRelativeMotion(-5, 10), WithToolType(ToolType::FINGER), in TEST_F() 277 AllOf(WithButtonState(0), WithCoords(0, 0), WithToolType(ToolType::FINGER), in TEST_F() [all …]
|
D | PreferStylusOverTouch_test.cpp | 47 const ToolType toolType = in generateMotionArgs() 48 isFromSource(source, TOUCHSCREEN) ? ToolType::FINGER : ToolType::STYLUS; in generateMotionArgs() 281 args.pointerProperties[0].toolType = ToolType::FINGER; in TEST_F() 288 args.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F() 294 args.pointerProperties[0].toolType = ToolType::FINGER; in TEST_F() 421 args.pointerProperties[1].toolType = ToolType::STYLUS; in TEST_F() 428 args.pointerProperties[1].toolType = ToolType::STYLUS; in TEST_F()
|
D | CapturedTouchpadEventConverter_test.cpp | 235 WithCoords(50, 100), WithToolType(ToolType::FINGER))); in TEST_F() 242 WithCoords(52, 99), WithToolType(ToolType::FINGER))); in TEST_F() 252 WithCoords(52, 99), WithToolType(ToolType::FINGER))); in TEST_F() 256 WithCoords(52, 99), WithToolType(ToolType::FINGER))); in TEST_F() 461 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_DOWN), WithToolType(ToolType::FINGER), in TEST_F() 579 WithToolType(ToolType::FINGER))); in TEST_F() 584 WithPointerCount(2u), WithPointerToolType(0, ToolType::FINGER), in TEST_F() 585 WithPointerToolType(1, ToolType::FINGER))); in TEST_F() 626 WithToolType(ToolType::FINGER))); in TEST_F() 659 WithCoords(50, 100), WithToolType(ToolType::FINGER))); in TEST_F() [all …]
|
D | InputReader_test.cpp | 1213 .pointer(PointerBuilder(/*id=*/0, ToolType::FINGER)) in TEST_F() 1239 .pointer(PointerBuilder(/*id=*/0, ToolType::STYLUS)) in TEST_F() 1246 .pointer(PointerBuilder(/*id=*/0, ToolType::STYLUS)) in TEST_F() 1256 .pointer(PointerBuilder(/*id=*/0, ToolType::STYLUS)) in TEST_F() 2012 WithToolType(ToolType::STYLUS)))); in TEST_P() 2031 WithToolType(ToolType::FINGER)))); in TEST_P() 2048 WithToolType(ToolType::STYLUS)))); in TEST_P() 2194 WithToolType(ToolType::STYLUS), in TYPED_TEST() 2199 WithToolType(ToolType::STYLUS), in TYPED_TEST() 2207 WithToolType(ToolType::STYLUS), WithButtonState(0), in TYPED_TEST() [all …]
|
D | UnwantedInteractionBlocker_test.cpp | 81 pointerProperties[i].toolType = ToolType::FINGER; in generateMotionArgs() 501 args.pointerProperties[0].toolType = ToolType::FINGER; in TEST_F() 535 args.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F() 539 args.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F() 543 args.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F() 598 args1.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F() 605 args2.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F() 613 args3.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F() 636 args2.pointerProperties[1].toolType = ToolType::STYLUS; in TEST_F() 643 args3.pointerProperties[1].toolType = ToolType::STYLUS; in TEST_F() [all …]
|
/frameworks/native/libs/input/tests/ |
D | TouchResampling_test.cpp | 35 ToolType toolType = ToolType::FINGER; 310 {0ms, {{0, 10, 20, .toolType = ToolType::STYLUS}}, AMOTION_EVENT_ACTION_DOWN}, in TEST_F() 316 {0ms, {{0, 10, 20, .toolType = ToolType::STYLUS}}, AMOTION_EVENT_ACTION_DOWN}, in TEST_F() 323 {10ms, {{0, 20, 30, .toolType = ToolType::STYLUS}}, AMOTION_EVENT_ACTION_MOVE}, in TEST_F() 324 {20ms, {{0, 30, 30, .toolType = ToolType::STYLUS}}, AMOTION_EVENT_ACTION_MOVE}, in TEST_F() 330 {10ms, {{0, 20, 30, .toolType = ToolType::STYLUS}}, AMOTION_EVENT_ACTION_MOVE}, in TEST_F() 331 {20ms, {{0, 30, 30, .toolType = ToolType::STYLUS}}, AMOTION_EVENT_ACTION_MOVE}, in TEST_F() 333 {{0, 35, 30, .toolType = ToolType::STYLUS, .isResampled = true}}, in TEST_F() 350 {0ms, {{0, 10, 20, .toolType = ToolType::MOUSE}}, AMOTION_EVENT_ACTION_DOWN}, in TEST_F() 356 {0ms, {{0, 10, 20, .toolType = ToolType::MOUSE}}, AMOTION_EVENT_ACTION_DOWN}, in TEST_F() [all …]
|
D | InputEvent_test.cpp | 292 mPointerProperties[0].toolType = ToolType::FINGER; in SetUp() 295 mPointerProperties[1].toolType = ToolType::STYLUS; in SetUp() 406 ASSERT_EQ(ToolType::FINGER, event->getToolType(0)); in assertEqualsEventWithHistory() 408 ASSERT_EQ(ToolType::STYLUS, event->getToolType(1)); in assertEqualsEventWithHistory() 597 .pointer(PointerBuilder(/*id=*/4, ToolType::FINGER).x(4).y(4)) in TEST_F() 598 .pointer(PointerBuilder(/*id=*/6, ToolType::FINGER).x(6).y(6)) in TEST_F() 599 .pointer(PointerBuilder(/*id=*/8, ToolType::FINGER).x(8).y(8)) in TEST_F() 640 .pointer(PointerBuilder(/*id=*/4, ToolType::FINGER).x(4).y(4)) in TEST_F() 641 .pointer(PointerBuilder(/*id=*/6, ToolType::FINGER).x(6).y(6)) in TEST_F() 642 .pointer(PointerBuilder(/*id=*/8, ToolType::FINGER).x(8).y(8)) in TEST_F() [all …]
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | MultiTouchInputMapper.cpp | 77 if (inSlot.getToolType() == ToolType::PALM) { in syncTouch() 112 if (outPointer.toolType == ToolType::UNKNOWN) { in syncTouch() 114 if (outPointer.toolType == ToolType::UNKNOWN) { in syncTouch() 115 outPointer.toolType = ToolType::FINGER; in syncTouch() 117 } else if (outPointer.toolType == ToolType::STYLUS && !mStylusMtToolSeen) { in syncTouch() 130 if (mShouldSimulateStylusWithTouch && outPointer.toolType == ToolType::FINGER) { in syncTouch() 131 outPointer.toolType = ToolType::STYLUS; in syncTouch() 134 bool isHovering = mTouchButtonAccumulator.getToolType() != ToolType::MOUSE && in syncTouch()
|
D | SingleTouchInputMapper.cpp | 45 bool isHovering = mTouchButtonAccumulator.getToolType() != ToolType::MOUSE && in syncTouch() 65 if (outPointer.toolType == ToolType::UNKNOWN) { in syncTouch() 66 outPointer.toolType = ToolType::FINGER; in syncTouch()
|
D | ExternalStylusInputMapper.cpp | 81 if (mStylusState.toolType == ToolType::UNKNOWN) { in sync() 82 mStylusState.toolType = ToolType::STYLUS; in sync()
|
D | CapturedTouchpadEventConverter.cpp | 180 properties.push_back({.id = pointerId, .toolType = ToolType::FINGER}); in sync() 192 const bool isInUse = slot.isInUse() && slot.getToolType() != ToolType::PALM; in sync() 227 const bool cancel = mMotionAccumulator.getSlot(slotNumber).getToolType() == ToolType::PALM; in sync() 260 {.id = allocatePointerIdToSlot(slotNumber), .toolType = ToolType::FINGER}); in sync()
|
/frameworks/native/services/inputflinger/reader/mapper/accumulator/ |
D | TouchButtonAccumulator.cpp | 144 ToolType TouchButtonAccumulator::getToolType() const { in getToolType() 146 return ToolType::MOUSE; in getToolType() 149 return ToolType::ERASER; in getToolType() 152 return ToolType::STYLUS; in getToolType() 156 return ToolType::FINGER; in getToolType() 158 return ToolType::UNKNOWN; in getToolType()
|
D | MultiTouchMotionAccumulator.cpp | 154 ToolType MultiTouchMotionAccumulator::Slot::getToolType() const { in getToolType() 158 return ToolType::FINGER; in getToolType() 160 return ToolType::STYLUS; in getToolType() 162 return ToolType::PALM; in getToolType() 165 return ToolType::UNKNOWN; in getToolType()
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | FuzzedInputStream.h | 143 ToolType getToolType(int32_t source) { in getToolType() 146 return ToolType::FINGER; in getToolType() 148 return ToolType::MOUSE; in getToolType() 150 return ToolType::STYLUS; in getToolType() 152 return ToolType::UNKNOWN; in getToolType() 163 const ToolType toolType = getToolType(source); in generateFuzzedMotionArgs()
|
/frameworks/native/services/inputflinger/ |
D | InputCommonConverter.cpp | 206 static common::ToolType getToolType(ToolType toolType) { in getToolType() 207 static_assert(static_cast<common::ToolType>(ToolType::UNKNOWN) == common::ToolType::UNKNOWN); in getToolType() 208 static_assert(static_cast<common::ToolType>(ToolType::FINGER) == common::ToolType::FINGER); in getToolType() 209 static_assert(static_cast<common::ToolType>(ToolType::STYLUS) == common::ToolType::STYLUS); in getToolType() 210 static_assert(static_cast<common::ToolType>(ToolType::MOUSE) == common::ToolType::MOUSE); in getToolType() 211 static_assert(static_cast<common::ToolType>(ToolType::ERASER) == common::ToolType::ERASER); in getToolType() 212 return static_cast<common::ToolType>(toolType); in getToolType()
|
D | InputDeviceMetricsSource.cpp | 60 if (toolType == ToolType::MOUSE) { in getUsageSourcesForMotionArgs() 64 if (toolType == ToolType::FINGER) { in getUsageSourcesForMotionArgs() 74 toolType == ToolType::MOUSE) { in getUsageSourcesForMotionArgs() 79 toolType == ToolType::FINGER) { in getUsageSourcesForMotionArgs()
|
D | UnwantedInteractionBlocker.cpp | 115 static int getLinuxToolCode(ToolType toolType) { in getLinuxToolCode() 117 case ToolType::STYLUS: in getLinuxToolCode() 119 case ToolType::ERASER: in getLinuxToolCode() 121 case ToolType::FINGER: in getLinuxToolCode() 123 case ToolType::UNKNOWN: in getLinuxToolCode() 124 case ToolType::MOUSE: in getLinuxToolCode() 125 case ToolType::PALM: in getLinuxToolCode()
|
/frameworks/base/core/java/android/hardware/input/ |
D | VirtualStylusMotionEvent.java | 62 public @interface ToolType {} annotation in VirtualStylusMotionEvent 86 @ToolType 97 private VirtualStylusMotionEvent(@ToolType int toolType, @Action int action, int x, int y, in VirtualStylusMotionEvent() 140 @ToolType 215 @ToolType 263 public Builder setToolType(@ToolType int toolType) { in setToolType()
|
D | VirtualTouchEvent.java | 65 public @interface ToolType {} annotation in VirtualTouchEvent 93 private final @ToolType int mToolType; 101 private VirtualTouchEvent(int pointerId, @ToolType int toolType, @Action int action, in VirtualTouchEvent() 164 public @ToolType int getToolType() { in getToolType() 218 private @ToolType int mToolType = TOOL_TYPE_UNKNOWN; 272 public @NonNull Builder setToolType(@ToolType int toolType) { in setToolType()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | StylusState.h | 37 ToolType toolType{ToolType::UNKNOWN};
|
/frameworks/native/services/inputflinger/reader/mapper/gestures/ |
D | HardwareStateConverter.cpp | 92 if (!REPORT_PALMS_TO_GESTURES_LIBRARY && slot.getToolType() == ToolType::PALM) { in produceHardwareState() 109 fingerState.tool_type = slot.getToolType() == ToolType::PALM in produceHardwareState() 110 ? FingerState::ToolType::kPalm in produceHardwareState() 111 : FingerState::ToolType::kFinger; in produceHardwareState()
|
D | GestureConverter.h | 130 {.id = 0, .toolType = ToolType::FINGER}, 131 {.id = 1, .toolType = ToolType::FINGER}, 132 {.id = 2, .toolType = ToolType::FINGER}, 133 {.id = 3, .toolType = ToolType::FINGER},
|