Home
last modified time | relevance | path

Searched refs:pointers (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/native/services/inputflinger/dispatcher/
DTouchedWindow.cpp32 bool hasPointerId(const std::vector<PointerProperties>& pointers, int32_t pointerId) { in hasPointerId() argument
33 return std::find_if(pointers.begin(), pointers.end(), in hasPointerId()
36 }) != pointers.end(); in hasPointerId()
94 const std::vector<PointerProperties>& pointers) { in addTouchingPointers() argument
97 for (const PointerProperties& pointer : pointers) { in addTouchingPointers()
103 touchingPointers.insert(touchingPointers.end(), pointers.begin(), pointers.end()); in addTouchingPointers()
105 LOG(ERROR) << __func__ << ": " << dumpVector(pointers, streamableToString) << ", device " in addTouchingPointers()
151 std::bitset<MAX_POINTER_ID + 1> pointers) { in removeTouchingPointers()
158 std::erase_if(state.touchingPointers, [&pointers](const PointerProperties& properties) { in removeTouchingPointers()
159 return pointers.test(properties.id); in removeTouchingPointers()
[all …]
DTouchedWindow.h50 const std::vector<PointerProperties>& pointers);
52 void removeTouchingPointers(DeviceId deviceId, std::bitset<MAX_POINTER_ID + 1> pointers);
/frameworks/native/include/input/
DInputConsumer.h137 PointerCoords pointers[MAX_POINTERS]; member
143 uint32_t id = msg.body.motion.pointers[i].properties.id; in initializeFrom()
146 pointers[i].copyFrom(msg.body.motion.pointers[i].coords); in initializeFrom()
157 pointers[index].copyFrom(other.pointers[index]); in initializeFrom()
162 const PointerCoords& getPointerById(uint32_t id) const { return pointers[idToIndex[id]]; } in getPointerById()
DInputTransport.h155 } pointers[MAX_POINTERS] __attribute__((aligned(8))); member
160 return pointers[index].properties.id; in getActionId()
/frameworks/native/libs/input/tests/
DTouchResampling_test.cpp41 std::vector<Pointer> pointers; member
70 const std::vector<Pointer>& pointers);
99 const std::vector<Pointer>& pointers) { in publishSimpleMotionEvent() argument
103 for (const Pointer& pointer : pointers) { in publishSimpleMotionEvent()
125 publishSimpleMotionEvent(entry.action, entry.eventTime.count(), entry.pointers); in publishInputEventEntries()
180 ASSERT_EQ(entry.pointers.size(), motionEvent->getPointerCount()); in consumeInputEventEntries()
185 ssize_t motionEventPointerIndex = motionEvent->findPointerIndex(entry.pointers[p].id); in consumeInputEventEntries()
187 ASSERT_EQ(entry.pointers[p].x, in consumeInputEventEntries()
190 ASSERT_EQ(entry.pointers[p].x, in consumeInputEventEntries()
193 ASSERT_EQ(entry.pointers[p].y, in consumeInputEventEntries()
[all …]
DInputPublisherAndConsumer_test.cpp78 PublishMotionArgs(int32_t action, nsecs_t downTime, const std::vector<Pointer>& pointers,
83 const std::vector<Pointer>& pointers, const uint32_t inSeq) in PublishMotionArgs() argument
98 pointerCount = pointers.size(); in PublishMotionArgs()
102 pointerProperties[i].id = pointers[i].id; in PublishMotionArgs()
107 pointerCoords[i].isResampled = pointers[i].isResampled; in PublishMotionArgs()
108 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, pointers[i].x); in PublishMotionArgs()
109 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, pointers[i].y); in PublishMotionArgs()
248 const std::vector<Pointer>& pointers);
361 const std::vector<Pointer> pointers = {Pointer{.id = 0, .x = 20, .y = 30}}; in publishAndConsumeBatchedMotionMove() local
362 PublishMotionArgs args(AMOTION_EVENT_ACTION_MOVE, downTime, pointers, seq); in publishAndConsumeBatchedMotionMove()
[all …]
DStructLayout_test.cpp83 CHECK_OFFSET(InputMessage::Body::Motion, pointers, 160); in TestInputMessageAlignment()
122 offsetof(InputMessage::Body::Motion, pointers) + in TestBodySize()
138 offsetof(InputMessage::Body::Motion, pointers) + in TestBodySize()
160 constexpr size_t bodySize = offsetof(InputMessage::Body::Motion, pointers) + in CalculateSinglePointerInputMessageSize()
DInputPublisherAndConsumerNoResampling_test.cpp85 PublishMotionArgs(int32_t action, nsecs_t downTime, const std::vector<Pointer>& pointers,
90 const std::vector<Pointer>& pointers, const uint32_t inSeq) in PublishMotionArgs() argument
105 pointerCount = pointers.size(); in PublishMotionArgs()
109 pointerProperties[i].id = pointers[i].id; in PublishMotionArgs()
114 pointerCoords[i].isResampled = pointers[i].isResampled; in PublishMotionArgs()
115 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, pointers[i].x); in PublishMotionArgs()
116 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, pointers[i].y); in PublishMotionArgs()
300 const std::vector<Pointer>& pointers);
525 const std::vector<Pointer> pointers = {Pointer{.id = 0, .x = 20, .y = 30}}; in publishAndConsumeBatchedMotionMove() local
526 PublishMotionArgs args(AMOTION_EVENT_ACTION_MOVE, downTime, pointers, seq); in publishAndConsumeBatchedMotionMove()
[all …]
DVelocityTracker_test.cpp100 BitSet32 pointers; in getValidPointers() local
103 pointers.markBit(i); in getValidPointers()
106 return pointers; in getValidPointers()
109 static uint32_t getChangingPointerId(BitSet32 pointers, BitSet32 otherPointers) { in getChangingPointerId() argument
110 BitSet32 difference(pointers.value ^ otherPointers.value); in getChangingPointerId()
119 BitSet32 pointers = getValidPointers(currentPositions); in resolveAction() local
120 const uint32_t pointerCount = pointers.count(); in resolveAction()
126 uint32_t pointerId = getChangingPointerId(pointers, lastPointers); in resolveAction()
135 uint32_t pointerId = getChangingPointerId(pointers, nextPointers); in resolveAction()
180 BitSet32 pointers = getValidPointers(entry.positions); in createTouchMotionEventStream() local
[all …]
/frameworks/compile/slang/tests/F_ptr_in_struct/
Dstderr.txt.expect1 ptr_in_struct.rscript:4:8: error: structures containing pointers cannot be used as the type of an e…
2 ptr_in_struct.rscript:10:8: error: structures containing pointers cannot be used as the type of an …
/frameworks/compile/slang/tests/F_reduce_general_bad_result/
Dstderr.txt.expect21 reduce_general_bad_result.rscript:276:28: error: structures containing pointers cannot be used as t…
22 reduce_general_bad_result.rscript:286:31: error: structures containing pointers cannot be used as t…
23 reduce_general_bad_result.rscript:310:28: error: structures containing pointers cannot be used as t…
24 reduce_general_bad_result.rscript:322:31: error: structures containing pointers cannot be used as t…
25 reduce_general_bad_result.rscript:349:33: error: structures containing pointers cannot be used as t…
26 reduce_general_bad_result.rscript:362:36: error: structures containing pointers cannot be used as t…
/frameworks/native/libs/input/
DInputTransport.cpp276 msg->body.motion.pointers[i].properties.id = body.motion.pointers[i].properties.id; in getSanitizedCopy()
277 msg->body.motion.pointers[i].properties.toolType = in getSanitizedCopy()
278 body.motion.pointers[i].properties.toolType, in getSanitizedCopy()
280 msg->body.motion.pointers[i].coords.bits = body.motion.pointers[i].coords.bits; in getSanitizedCopy()
281 const uint32_t count = BitSet64::count(body.motion.pointers[i].coords.bits); in getSanitizedCopy()
282 memcpy(&msg->body.motion.pointers[i].coords.values[0], in getSanitizedCopy()
283 &body.motion.pointers[i].coords.values[0], in getSanitizedCopy()
284 count * (sizeof(body.motion.pointers[i].coords.values[0]))); in getSanitizedCopy()
285 msg->body.motion.pointers[i].coords.isResampled = in getSanitizedCopy()
286 body.motion.pointers[i].coords.isResampled; in getSanitizedCopy()
[all …]
DInputConsumer.cpp108 pointerProperties[i] = msg.body.motion.pointers[i].properties; in initializeMotionEvent()
109 pointerCoords[i] = msg.body.motion.pointers[i].coords; in initializeMotionEvent()
134 pointerCoords[i] = msg.body.motion.pointers[i].coords; in addSample()
549 uint32_t id = msg.body.motion.pointers[i].properties.id; in rewriteMessage()
553 PointerCoords& msgCoords = msg.body.motion.pointers[i].coords; in rewriteMessage()
679 touchState.lastResample.pointers[i] = oldLastResample.getPointerById(id); in resampleTouchState()
683 PointerCoords& resampledCoords = touchState.lastResample.pointers[i]; in resampleTouchState()
699 event->addSample(sampleTime, touchState.lastResample.pointers); in resampleTouchState()
846 if (head.body.motion.pointers[i].properties != msg->body.motion.pointers[i].properties) { in canAddSample()
887 const float x = msg.body.motion.pointers[i].coords.getX(); in dump()
[all …]
/frameworks/compile/slang/tests/F_void_ptr/
Dstderr.txt.expect1 void_ptr.rscript:4:7: error: void pointers cannot be exported: 'v'
/frameworks/compile/slang/tests/F_ptr_to_array/
Dstderr.txt.expect1 ptr_to_array.rscript:4:7: error: pointers to arrays cannot be exported: 'arrayptr'
/frameworks/compile/slang/tests/F_int_ptr_ptr/
Dstderr.txt.expect1 int_ptr_ptr.rscript:4:7: error: multiple levels of pointers cannot be exported: 'myPtr'
/frameworks/compile/slang/tests/F_struct_field_ptr_to_fn_noproto/
Dstderr.txt.expect1 struct_field_ptr_to_fn_noproto.rscript:4:8: error: structures containing pointers cannot be used as…
/frameworks/compile/slang/tests/F_struct_field_ptr_to_array/
Dstderr.txt.expect1 struct_field_ptr_to_array.rscript:4:8: error: structures containing pointers cannot be used as the …
/frameworks/compile/slang/tests/F_ptr_in_struct_for_call/
Dstderr.txt.expect1 ptr_in_struct_for_call.rscript:8:24: error: structures containing pointers cannot be used as the ty…
/frameworks/compile/slang/tests/F_struct_field_ptr_to_fn_proto/
Dstderr.txt.expect1 struct_field_ptr_to_fn_proto.rscript:4:8: error: structures containing pointers cannot be used as t…
/frameworks/compile/slang/tests/F_reduce_general_bad_function/
Dstderr.txt.expect15 …e *') and initializer avi_init() parameter 'accum' (type 'int *') must be pointers to the same type
28 … *') and accumulator cva_accum() parameter 'accum' (type 'int *') must be pointers to the same type
29 … *') and accumulator cva_accum() parameter 'accum' (type 'int *') must be pointers to the same type
45 …e *') and accumulator AccumInt() parameter 'accum' (type 'int *') must be pointers to the same type
/frameworks/minikin/libs/minikin/
DFontFamily.cpp254 std::vector<std::shared_ptr<FontFamily>> pointers; in readVector() local
255 pointers.reserve(count); in readVector()
260 pointers.emplace_back(families, &families->back()); in readVector()
262 return pointers; in readVector()
/frameworks/native/libs/input/rust/
Dinput_verifier.rs271 let Some(pointers) = self.touching_pointer_ids_by_device.get(&device_id) else { in ensure_touching_pointers_match()
275 if pointers.len() != pointer_properties.len() { in ensure_touching_pointers_match()
281 if !pointers.contains(&pointer_id) { in ensure_touching_pointers_match()
/frameworks/native/services/inputflinger/reader/mapper/
DSingleTouchInputMapper.cpp51 RawPointerData::Pointer& outPointer = outState->rawPointerData.pointers[0]; in syncTouch()
/frameworks/compile/slang/tests/F_reduce_general_bad_halter/
Dstderr.txt.expect6 …t *') and accumulator AccumInt() parameter 'accum' (type 'int *') must be pointers to the same type

12