/frameworks/native/services/inputflinger/tests/ |
D | PreferStylusOverTouch_test.cpp | 34 constexpr int32_t STYLUS = AINPUT_SOURCE_STYLUS; variable 48 isFromSource(source, TOUCHSCREEN) ? ToolType::FINGER : ToolType::STYLUS; in generateMotionArgs() 61 if (isFromSource(source, STYLUS)) { in generateMotionArgs() 125 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, DOWN, {{1, 2}}, STYLUS); in TEST_F() 128 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/1, MOVE, {{1, 3}}, STYLUS); in TEST_F() 131 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/2, UP, {{1, 3}}, STYLUS); in TEST_F() 148 args = generateMotionArgs(/*downTime=*/3, /*eventTime=*/3, DOWN, {{10, 30}}, STYLUS); in TEST_F() 156 args = generateMotionArgs(/*downTime=*/3, /*eventTime=*/4, MOVE, {{10, 31}}, STYLUS); in TEST_F() 179 args = generateMotionArgs(/*downTime=*/3, /*eventTime=*/3, DOWN, {{10, 30}}, STYLUS); in TEST_F() 192 args = generateMotionArgs(stylusDownTime, /*eventTime=*/0, DOWN, {{10, 30}}, STYLUS); in TEST_F() [all …]
|
D | InputDeviceMetricsCollector_test.cpp | 48 constexpr uint32_t STYLUS = AINPUT_SOURCE_STYLUS; variable 63 uint32_t sources = TOUCHSCREEN | STYLUS) { in generateTestDeviceInfo() 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() 360 mMetricsCollector.notifyMotion(generateMotionArgs(DEVICE_ID, TOUCHSCREEN | STYLUS, // in TEST_F() 361 {ToolType::STYLUS})); in TEST_F() 363 mMetricsCollector.notifyMotion(generateMotionArgs(DEVICE_ID, TOUCHSCREEN | STYLUS, // in TEST_F() [all …]
|
D | InputDeviceMetricsSource_test.cpp | 36 constexpr uint32_t STYLUS = AINPUT_SOURCE_STYLUS; variable 201 STYLUS | TOUCHSCREEN) in TEST_P() 202 .pointer(PointerBuilder(/*id=*/1, ToolType::STYLUS) in TEST_P() 214 STYLUS | TOUCHSCREEN | AINPUT_SOURCE_MOUSE) in TEST_P() 215 .pointer(PointerBuilder(/*id=*/1, ToolType::STYLUS) in TEST_P() 228 .pointer(PointerBuilder(/*id=*/1, ToolType::STYLUS) in TEST_P() 290 MotionArgsBuilder(POINTER_1_DOWN, TOUCHSCREEN | STYLUS) in TEST() 292 .pointer(PointerBuilder(/*id=*/2, ToolType::STYLUS).x(300).y(400)) in TEST()
|
D | UnwantedInteractionBlocker_test.cpp | 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() 650 args4.pointerProperties[1].toolType = ToolType::STYLUS; in TEST_F() 658 args5.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F() [all …]
|
D | InputDispatcher_test.cpp | 1545 .pointer(PointerBuilder(0, ToolType::STYLUS).x(100).y(101)) in TEST_F() 1551 .pointer(PointerBuilder(0, ToolType::STYLUS).x(101).y(102)) in TEST_F() 1558 .pointer(PointerBuilder(0, ToolType::STYLUS).x(101).y(102)) in TEST_F() 1567 .pointer(PointerBuilder(0, ToolType::STYLUS).x(200).y(201)) in TEST_F() 1573 .pointer(PointerBuilder(0, ToolType::STYLUS).x(201).y(202)) in TEST_F() 1579 .pointer(PointerBuilder(0, ToolType::STYLUS).x(201).y(202)) in TEST_F() 1805 .pointer(PointerBuilder(0, ToolType::STYLUS).x(100).y(100)) in TEST_F() 1825 .pointer(PointerBuilder(0, ToolType::STYLUS).x(100).y(100)) in TEST_F() 1834 .pointer(PointerBuilder(0, ToolType::STYLUS).x(100).y(100)) in TEST_F() 1854 .pointer(PointerBuilder(0, ToolType::STYLUS).x(100).y(100)) in TEST_F() [all …]
|
D | InputReader_test.cpp | 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() 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() 2211 WithToolType(ToolType::STYLUS), WithButtonState(0), in TYPED_TEST() 2226 AllOf(WithToolType(ToolType::STYLUS), WithDeviceId(touchscreenId)); in TYPED_TEST() [all …]
|
D | PointerChoreographer_test.cpp | 61 const auto STYLUS_POINTER = PointerBuilder(/*id=*/0, ToolType::STYLUS).x(100).y(200); 922 ControllerType::STYLUS), 1025 auto pc = assertPointerControllerCreated(ControllerType::STYLUS); in TEST_F() 1139 .pointer(PointerBuilder(/*id=*/0, ToolType::STYLUS).x(150).y(250)) in TEST_P() 1149 .pointer(PointerBuilder(/*id=*/0, ToolType::STYLUS).x(150).y(250)) in TEST_P() 1189 .pointer(PointerBuilder(/*id=*/0, ToolType::STYLUS).x(150).y(250)) in TEST_P() 1201 .pointer(PointerBuilder(/*id=*/0, ToolType::STYLUS).x(250).y(350)) in TEST_P() 1722 "Stylus", AINPUT_SOURCE_STYLUS, ControllerType::STYLUS, STYLUS_POINTER,
|
/frameworks/native/libs/input/tests/ |
D | TouchResampling_test.cpp | 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()
|
D | MotionPredictorMetricsManager_test.cpp | 138 PointerBuilder(/*id=*/0, ToolType::STYLUS) in makeMotionEvent() 153 PointerBuilder(/*id=*/0, ToolType::STYLUS) in makeMotionEvent() 165 PointerBuilder(/*id=*/0, ToolType::STYLUS) in makeMotionEvent() 179 .pointer(PointerBuilder(/*id=*/0, ToolType::STYLUS)) in makeLiftMotionEvent()
|
D | MotionPredictor_test.cpp | 51 properties.toolType = ToolType::STYLUS; in getMotionEvent()
|
/frameworks/native/services/inputflinger/rust/ |
D | bounce_keys_filter.rs | 215 KeyEvent { action: KeyEventAction::DOWN, source: Source::STYLUS, ..BASE_KEY_EVENT }; in test_is_notify_key_doesnt_block_for_external_stylus() 220 KeyEvent { action: KeyEventAction::UP, source: Source::STYLUS, ..BASE_KEY_EVENT }; in test_is_notify_key_doesnt_block_for_external_stylus() 225 KeyEvent { action: KeyEventAction::DOWN, source: Source::STYLUS, ..BASE_KEY_EVENT }; in test_is_notify_key_doesnt_block_for_external_stylus()
|
D | slow_keys_filter.rs | 272 KeyEvent { action: KeyEventAction::DOWN, source: Source::STYLUS, ..BASE_KEY_EVENT }; in test_is_notify_key_for_external_stylus_not_blocked()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_companion_virtual_InputController.cpp | 47 STYLUS, enumerator 103 case DeviceType::STYLUS: in openUinput() 180 } else if (deviceType == DeviceType::STYLUS) { in openUinput() 245 } else if (deviceType == DeviceType::STYLUS) { in openUinput() 311 openUinputJni(env, name, vendorId, productId, phys, DeviceType::STYLUS, height, width); in nativeOpenUinputStylus()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | MultiTouchInputMapper.cpp | 117 } else if (outPointer.toolType == ToolType::STYLUS && !mStylusMtToolSeen) { in syncTouch() 131 outPointer.toolType = ToolType::STYLUS; in syncTouch()
|
D | ExternalStylusInputMapper.cpp | 82 mStylusState.toolType = ToolType::STYLUS; in sync()
|
D | TouchInputMapper.h | 531 STYLUS, enumerator
|
/frameworks/native/services/inputflinger/include/ |
D | PointerControllerInterface.h | 69 STYLUS, enumerator
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | TouchedWindow.cpp | 172 if (properties.toolType == ToolType::STYLUS) { in hasActiveStylus() 177 if (properties.toolType == ToolType::STYLUS) { in hasActiveStylus()
|
/frameworks/native/services/inputflinger/reader/mapper/accumulator/ |
D | TouchButtonAccumulator.cpp | 152 return ToolType::STYLUS; in getToolType()
|
D | MultiTouchMotionAccumulator.cpp | 160 return ToolType::STYLUS; in getToolType()
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | FuzzedInputStream.h | 150 return ToolType::STYLUS; in getToolType()
|
/frameworks/native/services/inputflinger/ |
D | InputCommonConverter.cpp | 40 static_assert(static_cast<common::Source>(AINPUT_SOURCE_STYLUS) == common::Source::STYLUS, in getSource() 209 static_assert(static_cast<common::ToolType>(ToolType::STYLUS) == common::ToolType::STYLUS); in getToolType()
|
/frameworks/native/libs/input/ |
D | MotionPredictor.cpp | 194 if (toolType != ToolType::STYLUS) { in record()
|
/frameworks/base/libs/input/ |
D | PointerController.cpp | 78 case ControllerType::STYLUS: in create()
|
/frameworks/base/libs/input/tests/ |
D | PointerController_test.cpp | 400 PointerControllerInterface::ControllerType::STYLUS));
|