/frameworks/native/libs/input/tests/ |
InputPublisherAndConsumer_test.cpp | 145 const size_t pointerCount = 3; 147 PointerProperties pointerProperties[pointerCount]; 148 PointerCoords pointerCoords[pointerCount]; 149 for (size_t i = 0; i < pointerCount; i++) { 151 pointerProperties[i].id = (i + 2) % pointerCount; 168 downTime, eventTime, pointerCount, 197 EXPECT_EQ(pointerCount, motionEvent->getPointerCount()); 200 for (size_t i = 0; i < pointerCount; i++) { 254 const size_t pointerCount = 0; 255 PointerProperties pointerProperties[pointerCount]; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
NonDistinctMultitouchHelper.java | 35 final int pointerCount = me.getPointerCount(); 37 mOldPointerCount = pointerCount; 40 if (pointerCount > 1 && oldPointerCount > 1) { 52 if (oldPointerCount == 1 && pointerCount == 1) { 64 if (oldPointerCount == 1 && pointerCount == 2) { 78 if (oldPointerCount == 2 && pointerCount == 1) { 99 + pointerCount + " (previously " + oldPointerCount + ")");
|
/frameworks/base/services/input/tests/ |
InputDispatcher_test.cpp | 156 /*pointerCount*/ 1, pointerProperties, pointerCoords); 166 /*pointerCount*/ 1, pointerProperties, pointerCoords); 175 /*pointerCount*/ 1, pointerProperties, pointerCoords); 185 /*pointerCount*/ 1, pointerProperties, pointerCoords); 194 /*pointerCount*/ 1, pointerProperties, pointerCoords); 203 /*pointerCount*/ 0, pointerProperties, pointerCoords); 211 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); 221 /*pointerCount*/ 1, pointerProperties, pointerCoords); 230 /*pointerCount*/ 1, pointerProperties, pointerCoords); 241 /*pointerCount*/ 2, pointerProperties, pointerCoords) [all...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
TouchEventSynthesizer.java | 57 void inject(int action, int pointerCount) { 70 if (pointerCount > 1) { 73 pointerCount, mPointerProperties, mPointerCoords, 83 pointerCount, mPointerProperties, mPointerCoords, 99 if (pointerCount > 1) { 102 pointerCount, mPointerProperties, mPointerCoords,
|
/frameworks/base/core/jni/ |
android_view_MotionEvent.cpp | 114 static bool validatePointerCount(JNIEnv* env, jint pointerCount) { 115 if (pointerCount < 1) { 117 "pointerCount must be at least 1"); 124 size_t pointerCount) { 131 if (length < pointerCount) { 140 size_t pointerCount) { 147 if (length < pointerCount) { 155 static bool validatePointerIndex(JNIEnv* env, jint pointerIndex, size_t pointerCount) { 156 if (pointerIndex < 0 || size_t(pointerIndex) >= pointerCount) { 343 jint pointerCount, jobjectArray pointerPropertiesObjArray [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
MultiTouchFilter.java | 14 final int pointerCount = event.getPointerCount(); 15 for (int x = 0; x < pointerCount; x++) {
|
/frameworks/native/libs/input/ |
Input.cpp | 298 size_t pointerCount, 313 mPointerProperties.appendArray(pointerProperties, pointerCount); 340 size_t pointerCount = other->getPointerCount(); 343 + (historySize * pointerCount), pointerCount); 396 size_t pointerCount = mPointerProperties.size(); 397 for (size_t i = 0; i < pointerCount; i++) { 491 size_t pointerCount = parcel->readInt32(); 493 if (pointerCount == 0 || pointerCount > MAX_POINTERS || sampleCount == 0) [all...] |
InputTransport.cpp | 74 return body.motion.pointerCount > 0 75 && body.motion.pointerCount <= MAX_POINTERS; 295 size_t pointerCount, 303 "pointerCount=%d", 306 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); 314 if (pointerCount > MAX_POINTERS || pointerCount < 1) { 316 mChannel->getName().string(), pointerCount); 336 msg.body.motion.pointerCount = pointerCount; [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyMotionEvent.java | 129 int pointerCount = mPointers.size(); 130 int[] pointerIds = new int[pointerCount]; 131 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[pointerCount]; 132 for (int i = 0; i < pointerCount; i++) { 139 mAction, pointerCount, pointerIds, pointerCoords, 180 int pointerCount = me.getPointerCount(); 181 for (int i = 0; i < pointerCount; i++) {
|
/frameworks/base/services/input/ |
InputListener.cpp | 72 int32_t edgeFlags, int32_t displayId, uint32_t pointerCount, 77 edgeFlags(edgeFlags), displayId(displayId), pointerCount(pointerCount), 79 for (uint32_t i = 0; i < pointerCount; i++) { 91 pointerCount(other.pointerCount), 93 for (uint32_t i = 0; i < pointerCount; i++) {
|
InputListener.h | 92 uint32_t pointerCount; 103 int32_t edgeFlags, int32_t displayId, uint32_t pointerCount,
|
InputDispatcher.cpp | 121 static bool isValidMotionAction(int32_t action, size_t pointerCount) { 136 return index >= 0 && size_t(index) < pointerCount; 143 static bool validateMotionEvent(int32_t action, size_t pointerCount, 145 if (! isValidMotionAction(action, pointerCount)) { 149 if (pointerCount < 1 || pointerCount > MAX_POINTERS) { 151 pointerCount, MAX_POINTERS); 155 for (size_t i = 0; i < pointerCount; i++) { [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
MotionEventHelper.java | 51 int pointerCount = e.getPointerCount(); 64 for (int i = 0; i < pointerCount;i++) { 69 for (int i = 0; i < pointerCount;i++) { 77 pointerCount, pointerIds, pointerCoords, metaState, xPrecision,
|
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
TapGestureDetector.java | 26 * @param pointerCount The number of fingers that were tapped. 29 boolean onTap(int pointerCount); 34 * @param pointerCount The number of fingers held down. 36 void onLongPress(int pointerCount); 155 int pointerCount = event.getPointerCount(); 156 for (int i = 0; i < pointerCount; i++) {
|
TrackingInputHandler.java | 324 int pointerCount = e2.getPointerCount(); 325 if (pointerCount == 3 && !mSwipeCompleted) { 333 if (pointerCount == 2 && mSwipePinchDetector.isSwiping()) { 341 if (pointerCount != 1 || mSuppressCursorMovement) { 427 private int mouseButtonFromPointerCount(int pointerCount) { 428 switch (pointerCount) { 442 public boolean onTap(int pointerCount) { 443 int button = mouseButtonFromPointerCount(pointerCount); 455 public void onLongPress(int pointerCount) { 456 mHeldButton = mouseButtonFromPointerCount(pointerCount); [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMotionEvent.java | 23 private int pointerCount = 1; 89 return pointerCount; 143 pointerCount = 2;
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
DragGestureDetector.java | 49 final int pointerCount = event.getPointerCount(); 53 for (int p = 0; p < pointerCount; p++) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
JsonUtils.java | 118 final int pointerCount = me.getPointerCount(); 119 for (int index = 0; index < pointerCount; index++) { 133 for (int pointerIndex = 0; pointerIndex < pointerCount; pointerIndex++) { 149 for (int pointerIndex = 0; pointerIndex < pointerCount; pointerIndex++) {
|
/cts/tests/tests/view/src/android/view/cts/ |
MotionEventTest.java | 345 final int pointerCount = 11; 346 final int[] pointerIds = new int[pointerCount]; 347 final PointerCoords[] pointerCoords = new PointerCoords[pointerCount]; 348 for (int i = 0; i < pointerCount; i++) { 358 pointerCount, pointerIds, pointerCoords, 0, 0, 0, 0, 0, 0, 0); 382 for (int i = 0; i < pointerCount; i++) { 403 int pointerCount = ev.getPointerCount(); 404 for (int i = 0; i < pointerCount; i++) {
|
/frameworks/base/core/java/android/view/ |
InputEventConsistencyVerifier.java | 353 final int pointerCount = event.getPointerCount(); 374 if (pointerCount != expectedPointerCount) { 375 problem("ACTION_MOVE contained " + pointerCount 402 if (actionIndex < 0 || actionIndex >= pointerCount) { 404 + " but the pointer count is " + pointerCount + "."); 419 if (actionIndex < 0 || actionIndex >= pointerCount) { 421 + " but the pointer count is " + pointerCount + "."); 559 final int pointerCount = event.getPointerCount(); 560 if (pointerCount != 1) { 561 problem("Pointer count is " + pointerCount + " but it should always be 1 for [all...] |
MotionEvent.java | 94 * final int pointerCount = ev.getPointerCount(); 97 * for (int p = 0; p < pointerCount; p++) { 103 * for (int p = 0; p < pointerCount; p++) { [all...] |
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
SinkActivity.java | 358 final int pointerCount = 361 for (int p = 0; p < pointerCount; p++) { 365 for (int p = 0; p < pointerCount; p++) { 369 sendHidTouchReport(pointerCount); 371 for (int p = 0; p < pointerCount; p++) { 375 sendHidTouchReport(pointerCount);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
SystemGesturesPointerEventListener.java | 144 final int pointerCount = move.getPointerCount(); 145 for (int p = 0; p < pointerCount; p++) {
|
/frameworks/native/include/input/ |
InputTransport.h | 89 size_t pointerCount; 103 + sizeof(Pointer) * pointerCount; 219 * Returns BAD_VALUE if seq is 0 or if pointerCount is less than 1 or greater than MAX_POINTERS. 237 size_t pointerCount, 363 for (size_t i = 0; i < msg->body.motion.pointerCount; i++) {
|
/frameworks/base/services/java/com/android/server/accessibility/ |
ScreenMagnifier.java | 411 final int pointerCount = event.getPointerCount(); 412 PointerCoords[] coords = getTempPointerCoordsWithMinSize(pointerCount); 413 PointerProperties[] properties = getTempPointerPropertiesWithMinSize(pointerCount); 414 for (int i = 0; i < pointerCount; i++) { 421 event.getEventTime(), event.getAction(), pointerCount, properties, [all...] |