• Home
  • Raw
  • Download

Lines Matching refs:pointerIndex

308     explicit WithCoordsMatcher(size_t pointerIndex, float x, float y)  in WithCoordsMatcher()  argument
309 : mPointerIndex(pointerIndex), mX(x), mY(y) {} in WithCoordsMatcher()
358 inline WithCoordsMatcher WithPointerCoords(size_t pointerIndex, float x, float y) { in WithPointerCoords() argument
359 return WithCoordsMatcher(pointerIndex, x, y); in WithPointerCoords()
366 explicit WithRawCoordsMatcher(size_t pointerIndex, float rawX, float rawY) in WithRawCoordsMatcher() argument
367 : mPointerIndex(pointerIndex), mRawX(rawX), mRawY(rawY) {} in WithRawCoordsMatcher()
402 inline WithRawCoordsMatcher WithPointerRawCoords(size_t pointerIndex, float rawX, float rawY) { in WithPointerRawCoords() argument
403 return WithRawCoordsMatcher(pointerIndex, rawX, rawY); in WithPointerRawCoords()
450 for (size_t pointerIndex = 0; pointerIndex < event.getPointerCount(); pointerIndex++) { in MatchAndExplain() local
451 const int32_t pointerId = event.getPointerId(pointerIndex); in MatchAndExplain()
452 actualPointers[pointerId] = {event.getX(pointerIndex), event.getY(pointerIndex)}; in MatchAndExplain()
467 for (size_t pointerIndex = 0; pointerIndex < event.pointerCoords.size(); pointerIndex++) { in MatchAndExplain() local
468 const int32_t pointerId = event.pointerProperties[pointerIndex].id; in MatchAndExplain()
469 actualPointers[pointerId] = {event.pointerCoords[pointerIndex].getX(), in MatchAndExplain()
470 event.pointerCoords[pointerIndex].getY()}; in MatchAndExplain()
506 for (size_t pointerIndex = 0; pointerIndex < event.getPointerCount(); pointerIndex++) { in MatchAndExplain() local
507 const PointerProperties* properties = event.getPointerProperties(pointerIndex); in MatchAndExplain()
718 explicit WithRelativeMotionMatcher(size_t pointerIndex, float relX, float relY) in WithRelativeMotionMatcher() argument
719 : mPointerIndex(pointerIndex), mRelX(relX), mRelY(relY) {} in WithRelativeMotionMatcher()
757 inline WithRelativeMotionMatcher WithPointerRelativeMotion(size_t pointerIndex, float relX, in WithPointerRelativeMotion() argument
759 return WithRelativeMotionMatcher(pointerIndex, relX, relY); in WithPointerRelativeMotion()
866 MATCHER_P2(WithPointerToolType, pointerIndex, toolType,
868 if (std::cmp_greater_equal(pointerIndex, arg.getPointerCount())) {
869 *result_listener << "Pointer index " << pointerIndex << " is out of bounds";
872 const auto argToolType = arg.pointerProperties[pointerIndex].toolType;
873 *result_listener << "expected pointer " << pointerIndex << " to have tool type "