Home
last modified time | relevance | path

Searched refs:STYLUS (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/native/services/inputflinger/tests/
DPreferStylusOverTouch_test.cpp34 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 …]
DInputDeviceMetricsCollector_test.cpp48 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 …]
DInputDeviceMetricsSource_test.cpp36 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()
DUnwantedInteractionBlocker_test.cpp535 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 …]
DInputDispatcher_test.cpp1545 .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 …]
DInputReader_test.cpp1239 .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 …]
DPointerChoreographer_test.cpp61 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/
DTouchResampling_test.cpp310 {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()
DMotionPredictorMetricsManager_test.cpp138 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()
DMotionPredictor_test.cpp51 properties.toolType = ToolType::STYLUS; in getMotionEvent()
/frameworks/native/services/inputflinger/rust/
Dbounce_keys_filter.rs215 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()
Dslow_keys_filter.rs272 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/
Dcom_android_server_companion_virtual_InputController.cpp47 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/
DMultiTouchInputMapper.cpp117 } else if (outPointer.toolType == ToolType::STYLUS && !mStylusMtToolSeen) { in syncTouch()
131 outPointer.toolType = ToolType::STYLUS; in syncTouch()
DExternalStylusInputMapper.cpp82 mStylusState.toolType = ToolType::STYLUS; in sync()
DTouchInputMapper.h531 STYLUS, enumerator
/frameworks/native/services/inputflinger/include/
DPointerControllerInterface.h69 STYLUS, enumerator
/frameworks/native/services/inputflinger/dispatcher/
DTouchedWindow.cpp172 if (properties.toolType == ToolType::STYLUS) { in hasActiveStylus()
177 if (properties.toolType == ToolType::STYLUS) { in hasActiveStylus()
/frameworks/native/services/inputflinger/reader/mapper/accumulator/
DTouchButtonAccumulator.cpp152 return ToolType::STYLUS; in getToolType()
DMultiTouchMotionAccumulator.cpp160 return ToolType::STYLUS; in getToolType()
/frameworks/native/services/inputflinger/tests/fuzzers/
DFuzzedInputStream.h150 return ToolType::STYLUS; in getToolType()
/frameworks/native/services/inputflinger/
DInputCommonConverter.cpp40 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/
DMotionPredictor.cpp194 if (toolType != ToolType::STYLUS) { in record()
/frameworks/base/libs/input/
DPointerController.cpp78 case ControllerType::STYLUS: in create()
/frameworks/base/libs/input/tests/
DPointerController_test.cpp400 PointerControllerInterface::ControllerType::STYLUS));

12