Lines Matching defs:pId

354     for (int pId = 0; pId < fingerNum; pId++) {
355 if (!lastUpPoint_.count(pId) || !lastUpPoint_[pId]) {
356 HILOG_ERROR("last_up point or first_down point container has wrong value and pId is: %{public}d", pId);
369 for (int32_t pId = 1; pId < fingerNum; pId++) {
370 if (lastUpPoint_[pId]->GetActionTime() < timeRst) {
371 timeRst = lastUpPoint_[pId]->GetActionTime();
390 int32_t pId = prePoint.GetPointerId();
391 if (std::find(excludePid.begin(), excludePid.end(), pId) != excludePid.end()) {
399 nearestPid = pId;
407 nearestPid = pId;
429 for (int32_t pId = 0; pId < fingerNum; pId++) {
430 if (!event.GetPointerItem(pIds[pId], curPoints[pId])) {
431 HILOG_ERROR("curPoint GetPointerItem(%{public}d) failed", pIds[pId]);
434 if (!prePointsEventInfo[pId]->GetPointerItem(prePointsEventInfo[pId]->GetPointerId(), prePoints[pId])) {
435 HILOG_ERROR("prePoint GetPointerItem(%{public}d) failed", prePointsEventInfo[pId]->GetPointerId());
584 int32_t pId = iter.first;
586 if (!iter.second->GetPointerItem(pId, pointerIterm)) {
587 HILOG_ERROR("get GetPointerItem(%{public}d) failed", pId);
594 pointerRoute_.insert(std::make_pair(pId, mpVec));
610 const int32_t pId, const MMI::PointerEvent::PointerItem &pointerIterm, const int32_t dx, const int32_t dy)
629 pointerRoute_[pId].push_back(mp);
631 preGesturePoint_[pId] = std::make_shared<MMI::PointerEvent>(event);
635 int32_t pId, std::map<int32_t, std::shared_ptr<MMI::PointerEvent>> &pointInfo)
639 if (pointInfo.count(pId) == 0 || !pointInfo[pId]) {
642 if (!pointInfo[pId]->GetPointerItem(pointInfo[pId]->GetPointerId(), basePointerIterm)) {
643 HILOG_ERROR("base down point get GetPointerItem(%{public}d) failed", pId);
654 int32_t pId = event.GetPointerId();
656 downPointSize, pId);
659 if (!event.GetPointerItem(pId, pointerIterm)) {
660 HILOG_ERROR("get GetPointerItem(%{public}d) failed", pId);
666 if (!GetBasePointItem(basePointerIterm, pId, preGesturePoint_)) {
670 if (!GetBasePointItem(basePointerIterm, pId, currentDownPoint_)) {
678 pId, pointerIterm.GetDisplayX(), pointerIterm.GetDisplayY(), basePointerIterm.GetDisplayX(),
689 SaveMoveGesturePointerInfo(event, pId, pointerIterm, offsetX, offsetY);
693 SaveMoveGesturePointerInfo(event, pId, pointerIterm, offsetX, offsetY);
706 int32_t pId = event.GetPointerId();
707 if (!event.GetPointerItem(pId, pointerIterm)) {
708 HILOG_ERROR("get GetPointerItem(%{public}d) failed", pId);
713 if (!GetBasePointItem(basePointerIterm, pId, preGesturePoint_)) {
720 SaveMoveGesturePointerInfo(event, pId, pointerIterm, offsetX, offsetY);