/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
MotionEventReader.java | 22 import android.view.MotionEvent.PointerCoords; 73 final ArrayList<PointerCoords[]> mPointerCoordsArrays = new ArrayList<PointerCoords[]>(); 201 final PointerCoords pointerCoords = new PointerCoords(); 202 pointerCoords.x = x; 203 pointerCoords.y = y; 204 pointerCoords.pressure = 1.0f; 205 pointerCoords.size = 1.0f [all...] |
Replayer.java | 25 import android.view.MotionEvent.PointerCoords; 102 final PointerCoords[] pointerCoordsArray =
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyMotionEvent.java | 34 private SparseArray<MotionEvent.PointerCoords> mPointers; 52 mPointers = new SparseArray<MotionEvent.PointerCoords>(); 63 MotionEvent.PointerCoords c = new MotionEvent.PointerCoords(); 131 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[pointerCount]; 134 pointerCoords[i] = mPointers.valueAt(i); 139 mAction, pointerCount, pointerIds, pointerCoords,
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
MotionEventHelper.java | 22 import android.view.MotionEvent.PointerCoords; 53 PointerCoords[] pointerCoords = getPointerCoords(e); 63 float[] xy = new float[pointerCoords.length * 2]; 65 xy[2 * i] = pointerCoords[i].x; 66 xy[2 * i + 1] = pointerCoords[i].y; 70 pointerCoords[i].x = xy[2 * i]; 71 pointerCoords[i].y = xy[2 * i + 1]; 72 pointerCoords[i].orientation = transformAngle( 73 m, pointerCoords[i].orientation) [all...] |
/frameworks/native/libs/input/ |
Input.cpp | 158 // --- PointerCoords --- 160 float PointerCoords::getAxisValue(int32_t axis) const { 173 status_t PointerCoords::setAxisValue(int32_t axis, float value) { 198 static inline void scaleAxisValue(PointerCoords& c, int axis, float scaleFactor) { 205 void PointerCoords::scale(float scaleFactor) { 217 status_t PointerCoords::readFromParcel(Parcel* parcel) { 231 status_t PointerCoords::writeToParcel(Parcel* parcel) const { 242 void PointerCoords::tooManyAxes(int axis) { 243 ALOGW("Could not set value for axis %d because the PointerCoords structure is full and " 247 bool PointerCoords::operator==(const PointerCoords& other) const [all...] |
InputTransport.cpp | 297 const PointerCoords* pointerCoords) { 339 msg.body.motion.pointers[i].coords.copyFrom(pointerCoords[i]); 660 PointerCoords& msgCoords = msg->body.motion.pointers[i].coords; 661 const PointerCoords& resampleCoords = state.lastResample.getPointerById(id); 764 PointerCoords& resampledCoords = touchState.lastResample.pointers[i]; 765 const PointerCoords& currentCoords = current->getPointerById(id); 768 const PointerCoords& otherCoords = other->getPointerById(id); 899 PointerCoords pointerCoords[pointerCount] [all...] |
/frameworks/native/include/input/ |
Input.h | 169 struct PointerCoords { 170 enum { MAX_AXES = 14 }; // 14 so that sizeof(PointerCoords) == 64 201 bool operator==(const PointerCoords& other) const; 202 inline bool operator!=(const PointerCoords& other) const { 206 void copyFrom(const PointerCoords& other); 379 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const; 435 const PointerCoords* getHistoricalRawPointerCoords( 516 const PointerCoords* pointerCoords); 522 const PointerCoords* pointerCoords) [all...] |
InputTransport.h | 92 PointerCoords coords; 239 const PointerCoords* pointerCoords); 358 PointerCoords pointers[MAX_POINTERS]; 371 const PointerCoords& getPointerById(uint32_t id) const {
|
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
UiObject.java | 24 import android.view.MotionEvent.PointerCoords; [all...] |
InteractionController.java | 31 import android.view.MotionEvent.PointerCoords; 666 * all of its touch steps defined in an array of {@link PointerCoords}. By having the ability 673 * PointerCoords p = new PointerCoords(); 679 * @param touches each array of {@link PointerCoords} constitute a single pointer's touch path. 680 * Multiple {@link PointerCoords} arrays constitute multiple pointers, each with its own 681 * path. Each {@link PointerCoords} in an array constitute a point on a pointer's path. 686 public boolean performMultiPointerGesture(PointerCoords[] ... touches) { 699 PointerCoords[] pointerCoords = new PointerCoords[touches.length] [all...] |
/frameworks/uiautomator/src/com/android/uiautomator/core/ |
UiObject.java | 24 import android.view.MotionEvent.PointerCoords; [all...] |
InteractionController.java | 31 import android.view.MotionEvent.PointerCoords; 666 * all of its touch steps defined in an array of {@link PointerCoords}. By having the ability 673 * PointerCoords p = new PointerCoords(); 679 * @param touches each array of {@link PointerCoords} constitute a single pointer's touch path. 680 * Multiple {@link PointerCoords} arrays constitute multiple pointers, each with its own 681 * path. Each {@link PointerCoords} in an array constitute a point on a pointer's path. 686 public boolean performMultiPointerGesture(PointerCoords[] ... touches) { 699 PointerCoords[] pointerCoords = new PointerCoords[touches.length] [all...] |
/frameworks/base/core/java/android/view/ |
MotionEvent.java | 443 * @see MotionEvent.PointerCoords#x 468 * @see MotionEvent.PointerCoords#y 490 * @see MotionEvent.PointerCoords#pressure 510 * @see MotionEvent.PointerCoords#size 531 * @see MotionEvent.PointerCoords#touchMajor 554 * @see MotionEvent.PointerCoords#touchMinor 579 * @see MotionEvent.PointerCoords#toolMajor 604 * @see MotionEvent.PointerCoords#toolMinor 631 * @see MotionEvent.PointerCoords#orientation 649 * @see MotionEvent.PointerCoords#getAxisValue(int [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
MotionEventTest.java | 28 import android.view.MotionEvent.PointerCoords; 347 final PointerCoords[] pointerCoords = new PointerCoords[pointerCount]; 349 final PointerCoords c = new PointerCoords(); 352 pointerCoords[i] = c; 358 pointerCount, pointerIds, pointerCoords, 0, 0, 0, 0, 0, 0, 0); 383 final PointerCoords c = pointerCoords[i] [all...] |
/frameworks/native/libs/input/tests/ |
InputEvent_test.cpp | 37 PointerCoords coords; 45 PointerCoords coords; 130 for (size_t axis = 4; axis < PointerCoords::MAX_AXES; axis++) { 133 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); 137 ASSERT_EQ(NO_MEMORY, coords.setAxisValue(PointerCoords::MAX_AXES, 100)); 138 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); 144 PointerCoords inCoords; 146 PointerCoords outCoords; 230 PointerCoords pointerCoords[2] [all...] |
InputPublisherAndConsumer_test.cpp | 148 PointerCoords pointerCoords[pointerCount]; 154 pointerCoords[i].clear(); 155 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, 100 * i); 156 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, 200 * i); 157 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 0.5 * i); 158 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 0.7 * i); 159 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 1.5 * i); 160 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 1.7 * i); 161 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.5 * i) [all...] |
/frameworks/base/services/input/ |
InputListener.h | 94 PointerCoords pointerCoords[MAX_POINTERS]; 104 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
|
PointerController.h | 103 virtual void setSpots(const PointerCoords* spotCoords, const uint32_t* spotIdToIndex, 169 virtual void setSpots(const PointerCoords* spotCoords,
|
InputReader.h | 788 PointerCoords pointerCoords[MAX_POINTERS]; 796 inline const PointerCoords& pointerCoordsForId(uint32_t id) const { 797 return pointerCoords[idToIndex[id]]; [all...] |
PointerController.cpp | 243 void PointerController::setSpots(const PointerCoords* spotCoords, 250 const PointerCoords& c = spotCoords[spotIdToIndex[id]]; 265 const PointerCoords& c = spotCoords[spotIdToIndex[id]];
|
InputListener.cpp | 73 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, 81 this->pointerCoords[i].copyFrom(pointerCoords[i]); 95 pointerCoords[i].copyFrom(other.pointerCoords[i]);
|
/frameworks/base/core/java/com/android/internal/widget/ |
PointerLocationView.java | 34 import android.view.MotionEvent.PointerCoords; 56 private PointerCoords mCoords = new PointerCoords(); 125 private final PointerCoords mTempCoords = new PointerCoords(); 440 MotionEvent.PointerCoords coords, int id, MotionEvent event) { 584 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; 597 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; [all...] |
/frameworks/base/services/java/com/android/server/accessibility/ |
ScreenMagnifier.java | 45 import android.view.MotionEvent.PointerCoords; 156 private PointerCoords[] mTempPointerCoords; 412 PointerCoords[] coords = getTempPointerCoordsWithMinSize(pointerCount); 436 private PointerCoords[] getTempPointerCoordsWithMinSize(int size) { 439 PointerCoords[] oldTempPointerCoords = mTempPointerCoords; 440 mTempPointerCoords = new PointerCoords[size]; 446 mTempPointerCoords[i] = new PointerCoords(); [all...] |
TouchExplorer.java | 32 import android.view.MotionEvent.PointerCoords; [all...] |
/frameworks/base/core/jni/ |
android_view_MotionEvent.cpp | 143 "pointerCoords array must not be null"); 149 "pointerCoords array must be large enough to hold all pointers"); 176 "pointerCoords must not be null"); 192 float xOffset, float yOffset, PointerCoords* outRawPointerCoords) { 256 static void pointerCoordsFromNative(JNIEnv* env, const PointerCoords* rawPointerCoords, 357 PointerCoords rawPointerCoords[pointerCount]; 369 jniThrowNullPointerException(env, "pointerCoords"); 415 PointerCoords rawPointerCoords[pointerCount]; 420 jniThrowNullPointerException(env, "pointerCoords"); 645 const PointerCoords* rawPointerCoords [all...] |