/frameworks/native/services/inputflinger/dispatcher/ |
D | TouchedWindow.cpp | 32 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 …]
|
D | TouchedWindow.h | 50 const std::vector<PointerProperties>& pointers); 52 void removeTouchingPointers(DeviceId deviceId, std::bitset<MAX_POINTER_ID + 1> pointers);
|
/frameworks/native/include/input/ |
D | InputConsumer.h | 137 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()
|
D | InputTransport.h | 155 } pointers[MAX_POINTERS] __attribute__((aligned(8))); member 160 return pointers[index].properties.id; in getActionId()
|
/frameworks/native/libs/input/tests/ |
D | TouchResampling_test.cpp | 41 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 …]
|
D | InputPublisherAndConsumer_test.cpp | 78 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 …]
|
D | StructLayout_test.cpp | 83 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()
|
D | InputPublisherAndConsumerNoResampling_test.cpp | 85 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 …]
|
D | VelocityTracker_test.cpp | 100 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/ |
D | stderr.txt.expect | 1 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/ |
D | stderr.txt.expect | 21 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/ |
D | InputTransport.cpp | 276 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 …]
|
D | InputConsumer.cpp | 108 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/ |
D | stderr.txt.expect | 1 void_ptr.rscript:4:7: error: void pointers cannot be exported: 'v'
|
/frameworks/compile/slang/tests/F_ptr_to_array/ |
D | stderr.txt.expect | 1 ptr_to_array.rscript:4:7: error: pointers to arrays cannot be exported: 'arrayptr'
|
/frameworks/compile/slang/tests/F_int_ptr_ptr/ |
D | stderr.txt.expect | 1 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/ |
D | stderr.txt.expect | 1 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/ |
D | stderr.txt.expect | 1 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/ |
D | stderr.txt.expect | 1 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/ |
D | stderr.txt.expect | 1 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/ |
D | stderr.txt.expect | 15 …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/ |
D | FontFamily.cpp | 254 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/ |
D | input_verifier.rs | 271 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/ |
D | SingleTouchInputMapper.cpp | 51 RawPointerData::Pointer& outPointer = outState->rawPointerData.pointers[0]; in syncTouch()
|
/frameworks/compile/slang/tests/F_reduce_general_bad_halter/ |
D | stderr.txt.expect | 6 …t *') and accumulator AccumInt() parameter 'accum' (type 'int *') must be pointers to the same type
|