Lines Matching defs:pointerCount
115 static bool validatePointerCount(JNIEnv* env, jint pointerCount) {
116 if (pointerCount < 1) {
118 "pointerCount must be at least 1");
125 size_t pointerCount) {
132 if (length < pointerCount) {
141 size_t pointerCount) {
148 if (length < pointerCount) {
156 static bool validatePointerIndex(JNIEnv* env, jint pointerIndex, size_t pointerCount) {
157 if (pointerIndex < 0 || size_t(pointerIndex) >= pointerCount) {
344 jint pointerCount, jobjectArray pointerPropertiesObjArray,
346 if (!validatePointerCount(env, pointerCount)
347 || !validatePointerPropertiesArray(env, pointerPropertiesObjArray, pointerCount)
348 || !validatePointerCoordsObjArray(env, pointerCoordsObjArray, pointerCount)) {
357 PointerProperties pointerProperties[pointerCount];
358 PointerCoords rawPointerCoords[pointerCount];
360 for (jint i = 0; i < pointerCount; i++) {
379 downTimeNanos, eventTimeNanos, pointerCount, pointerProperties, rawPointerCoords);
411 size_t pointerCount = event->getPointerCount();
412 if (!validatePointerCoordsObjArray(env, pointerCoordsObjArray, pointerCount)) {
416 PointerCoords rawPointerCoords[pointerCount];
418 for (size_t i = 0; i < pointerCount; i++) {
556 size_t pointerCount = event->getPointerCount();
557 if (!validatePointerIndex(env, pointerIndex, pointerCount)) {
566 size_t pointerCount = event->getPointerCount();
567 if (!validatePointerIndex(env, pointerIndex, pointerCount)) {
602 size_t pointerCount = event->getPointerCount();
603 if (!validatePointerIndex(env, pointerIndex, pointerCount)) {
621 size_t pointerCount = event->getPointerCount();
622 if (!validatePointerIndex(env, pointerIndex, pointerCount)) {
640 size_t pointerCount = event->getPointerCount();
641 if (!validatePointerIndex(env, pointerIndex, pointerCount)
663 size_t pointerCount = event->getPointerCount();
664 if (!validatePointerIndex(env, pointerIndex, pointerCount)