Home
last modified time | relevance | path

Searched refs:toolType (Results 1 – 25 of 96) sorted by relevance

1234

/frameworks/base/services/tests/servicestests/res/raw/
Da11y_three_finger_swipe_down_gesture.log2 MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=500.0, y[0]=696.0, toolType[0]=TOOL…
3 …tton=0, id[0]=0, x[0]=500.0, y[0]=696.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=764.0, y[1]=8…
4 …tton=0, id[0]=0, x[0]=500.0, y[0]=696.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=764.0, y[1]=8…
5 …]=696.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=764.0, y[1]=801.0, toolType[1]=TOOL_TYPE_FING…
6 …]=696.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=766.0, y[1]=811.0, toolType[1]=TOOL_TYPE_FING…
7 …]=699.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=773.0, y[1]=838.0, toolType[1]=TOOL_TYPE_FING…
8 …]=728.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=776.0, y[1]=862.0, toolType[1]=TOOL_TYPE_FING…
9 …]=765.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=782.0, y[1]=898.0, toolType[1]=TOOL_TYPE_FING…
10 …]=795.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=786.0, y[1]=918.0, toolType[1]=TOOL_TYPE_FING…
11 …]=832.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=790.0, y[1]=959.0, toolType[1]=TOOL_TYPE_FING…
[all …]
Da11y_touch_explore_gesture.log2 MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=825.0, y[0]=2028.0, toolType[0]=TOO…
3 MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=825.0, y[0]=2028.0, toolType[0]=TOO…
4 MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=825.0, y[0]=2028.0, toolType[0]=TOOL_…
/frameworks/base/services/tests/servicestests/res/raw-watch/
Da11y_three_finger_swipe_down_gesture.log2 MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=150.0, y[0]=50.0, toolType[0]=TOOL_…
3 …utton=0, id[0]=0, x[0]=150.0, y[0]=50.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=214.0, y[1]=7…
4 …utton=0, id[0]=0, x[0]=150.0, y[0]=50.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=214.0, y[1]=7…
5 …0]=696.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=214.0, y[1]=70.0, toolType[1]=TOOL_TYPE_FING…
6 …[0]=50.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=216.0, y[1]=70.0, toolType[1]=TOOL_TYPE_FING…
7 …[0]=60.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=216.0, y[1]=80.0, toolType[1]=TOOL_TYPE_FING…
8 …[0]=70.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=216.0, y[1]=90.0, toolType[1]=TOOL_TYPE_FING…
9 …[0]=80.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=216.0, y[1]=100.0, toolType[1]=TOOL_TYPE_FIN…
10 …[0]=90.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=216.0, y[1]=110.0, toolType[1]=TOOL_TYPE_FIN…
11 …0]=100.0, toolType[0]=TOOL_TYPE_FINGER, id[1]=1, x[1]=216.0, y[1]=120.0, toolType[1]=TOOL_TYPE_FIN…
[all …]
/frameworks/native/services/inputflinger/
DInputDeviceMetricsSource.cpp58 const auto toolType = motionArgs.pointerProperties[i].toolType; in getUsageSourcesForMotionArgs() local
60 if (toolType == ToolType::MOUSE) { in getUsageSourcesForMotionArgs()
64 if (toolType == ToolType::FINGER) { in getUsageSourcesForMotionArgs()
68 if (isStylusToolType(toolType)) { in getUsageSourcesForMotionArgs()
74 toolType == ToolType::MOUSE) { in getUsageSourcesForMotionArgs()
79 toolType == ToolType::FINGER) { in getUsageSourcesForMotionArgs()
84 isStylusToolType(toolType)) { in getUsageSourcesForMotionArgs()
88 if (isFromSource(motionArgs.source, AINPUT_SOURCE_STYLUS) && isStylusToolType(toolType)) { in getUsageSourcesForMotionArgs()
DPreferStylusOverTouchBlocker.cpp32 const ToolType toolType = args.pointerProperties[i].toolType; in checkToolType() local
33 if (isStylusToolType(toolType)) { in checkToolType()
36 if (toolType == ToolType::FINGER) { in checkToolType()
DNotifyArgs.cpp128 const ToolType toolType = pointerProperties[i].toolType; in dump() local
129 if (toolType != ToolType::FINGER) { in dump()
130 coords += StringPrintf(" toolType=%s", ftl::enum_string(toolType).c_str()); in dump()
/frameworks/native/libs/input/tests/
DTouchResampling_test.cpp35 ToolType toolType = ToolType::FINGER; member
107 properties.back().toolType = pointer.toolType; in publishSimpleMotionEvent()
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()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DMultiTouchInputMapper.cpp111 outPointer.toolType = inSlot.getToolType(); in syncTouch()
112 if (outPointer.toolType == ToolType::UNKNOWN) { in syncTouch()
113 outPointer.toolType = mTouchButtonAccumulator.getToolType(); 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()
DExternalStylusInputMapper.cpp80 mStylusState.toolType = mTouchButtonAccumulator.getToolType(); in sync()
81 if (mStylusState.toolType == ToolType::UNKNOWN) { in sync()
82 mStylusState.toolType = ToolType::STYLUS; in sync()
DSingleTouchInputMapper.cpp64 outPointer.toolType = mTouchButtonAccumulator.getToolType(); in syncTouch()
65 if (outPointer.toolType == ToolType::UNKNOWN) { in syncTouch()
66 outPointer.toolType = ToolType::FINGER; in syncTouch()
/frameworks/base/core/java/android/hardware/input/
DVirtualStylusMotionEvent.java97 private VirtualStylusMotionEvent(@ToolType int toolType, @Action int action, int x, int y, in VirtualStylusMotionEvent() argument
99 mToolType = toolType; in VirtualStylusMotionEvent()
263 public Builder setToolType(@ToolType int toolType) { in setToolType() argument
264 if (toolType != TOOL_TYPE_STYLUS && toolType != TOOL_TYPE_ERASER) { in setToolType()
265 throw new IllegalArgumentException("Unsupported stylus tool type: " + toolType); in setToolType()
267 mToolType = toolType; in setToolType()
DVirtualTouchEvent.java101 private VirtualTouchEvent(int pointerId, @ToolType int toolType, @Action int action, in VirtualTouchEvent() argument
104 mToolType = toolType; in VirtualTouchEvent()
272 public @NonNull Builder setToolType(@ToolType int toolType) { in setToolType() argument
273 if (toolType != TOOL_TYPE_FINGER && toolType != TOOL_TYPE_PALM) { in setToolType()
276 mToolType = toolType; in setToolType()
/frameworks/native/services/inputflinger/reader/mapper/gestures/
DGestureConverter.h130 {.id = 0, .toolType = ToolType::FINGER},
131 {.id = 1, .toolType = ToolType::FINGER},
132 {.id = 2, .toolType = ToolType::FINGER},
133 {.id = 3, .toolType = ToolType::FINGER},
/frameworks/native/services/inputflinger/tests/
DPreferStylusOverTouch_test.cpp47 const ToolType toolType = in generateMotionArgs() local
52 pointerProperties[i].toolType = toolType; 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()
DUnwantedInteractionBlocker_test.cpp81 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 …]
DTestEventMatchers.h716 MATCHER_P(WithToolType, toolType, "InputEvent with specified tool type") {
717 const auto argToolType = arg.pointerProperties[0].toolType;
718 *result_listener << "expected tool type " << ftl::enum_string(toolType) << ", but got "
720 return argToolType == toolType;
723 MATCHER_P2(WithPointerToolType, pointer, toolType,
725 const auto argToolType = arg.pointerProperties[pointer].toolType;
727 << ftl::enum_string(toolType) << ", but got " << ftl::enum_string(argToolType);
728 return argToolType == toolType;
DInputReader_test.cpp4771 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4795 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4818 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4868 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4891 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4936 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4963 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4988 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5031 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5056 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/tests/fuzzers/
DFuzzedInputStream.h163 const ToolType toolType = getToolType(source); in generateFuzzedMotionArgs() local
171 properties.toolType = toolType; in generateFuzzedMotionArgs()
/frameworks/native/libs/input/
DMotionPredictor.cpp193 const ToolType toolType = event.getPointerProperties(0)->toolType; in record() local
194 if (toolType != ToolType::STYLUS) { in record()
196 ftl::enum_string(toolType).c_str()); in record()
DVirtualInputDevice.cpp318 bool VirtualTouchscreen::writeTouchEvent(int32_t pointerId, int32_t toolType, int32_t action, in writeTouchEvent() argument
332 auto toolTypeIterator = TOOL_TYPE_MAPPING.find(toolType); in writeTouchEvent()
423 bool VirtualStylus::writeMotionEvent(int32_t toolType, int32_t action, int32_t locationX, in writeMotionEvent() argument
432 auto toolTypeIterator = TOOL_TYPE_MAPPING.find(toolType); in writeMotionEvent()
434 ALOGE("Unsupported tool type passed for stylus: %d.", toolType); in writeMotionEvent()
/frameworks/native/services/inputflinger/reader/include/
DStylusState.h37 ToolType toolType{ToolType::UNKNOWN};
/frameworks/base/apct-tests/perftests/core/src/android/view/
DHandwritingInitiatorPerfTest.java217 private MotionEvent createMotionEvent(int action, int toolType, int x, int y, long eventTime) { in createMotionEvent() argument
219 properties[0].toolType = toolType; in createMotionEvent()
/frameworks/native/include/input/
DInputEventBuilders.h36 PointerBuilder(int32_t id, ToolType toolType) { in PointerBuilder() argument
39 mProperties.toolType = toolType; in PointerBuilder()
DVirtualInputDevice.h89 bool writeTouchEvent(int32_t pointerId, int32_t toolType, int32_t action, float locationX,
110 bool writeMotionEvent(int32_t toolType, int32_t action, int32_t locationX, int32_t locationY,
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/
DGestureHelper.java289 private PointerProperties getPointerProp(int id, int toolType) { in getPointerProp() argument
292 ptrProp.toolType = toolType; in getPointerProp()

1234