/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 | 21 import android.view.MotionEvent.PointerCoords; 52 PointerCoords[] pointerCoords = getPointerCoords(e); 62 float[] xy = new float[pointerCoords.length * 2]; 64 xy[2 * i] = pointerCoords[i].x; 65 xy[2 * i + 1] = pointerCoords[i].y; 69 pointerCoords[i].x = xy[2 * i]; 70 pointerCoords[i].y = xy[2 * i + 1]; 71 pointerCoords[i].orientation = transformAngle( 72 m, pointerCoords[i].orientation) [all...] |
/frameworks/native/libs/input/ |
Input.cpp | 89 // --- PointerCoords --- 91 float PointerCoords::getAxisValue(int32_t axis) const { 98 status_t PointerCoords::setAxisValue(int32_t axis, float value) { 124 static inline void scaleAxisValue(PointerCoords& c, int axis, float scaleFactor) { 131 void PointerCoords::scale(float scaleFactor) { 142 void PointerCoords::applyOffset(float xOffset, float yOffset) { 148 status_t PointerCoords::readFromParcel(Parcel* parcel) { 162 status_t PointerCoords::writeToParcel(Parcel* parcel) const { 173 void PointerCoords::tooManyAxes(int axis) { 174 ALOGW("Could not set value for axis %d because the PointerCoords structure is full and [all...] |
InputTransport.cpp | 299 const PointerCoords* pointerCoords) { 342 msg.body.motion.pointers[i].coords.copyFrom(pointerCoords[i]); 663 PointerCoords& msgCoords = msg->body.motion.pointers[i].coords; 664 const PointerCoords& resampleCoords = state.lastResample.getPointerById(id); 767 PointerCoords& resampledCoords = touchState.lastResample.pointers[i]; 768 const PointerCoords& currentCoords = current->getPointerById(id); 771 const PointerCoords& otherCoords = other->getPointerById(id); 902 PointerCoords pointerCoords[pointerCount] [all...] |
/frameworks/native/services/inputflinger/ |
PointerControllerInterface.h | 96 virtual void setSpots(const PointerCoords* spotCoords, const uint32_t* spotIdToIndex,
|
InputListener.h | 95 PointerCoords pointerCoords[MAX_POINTERS]; 106 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
|
InputReader.h | 864 PointerCoords pointerCoords[MAX_POINTERS]; 872 inline const PointerCoords& pointerCoordsForId(uint32_t id) const { 873 return pointerCoords[idToIndex[id]]; 876 inline PointerCoords& editPointerCoordsWithId(uint32_t id) { 877 return pointerCoords[idToIndex[id]]; [all...] |
InputListener.cpp | 73 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, 82 this->pointerCoords[i].copyFrom(pointerCoords[i]); 95 pointerCoords[i].copyFrom(other.pointerCoords[i]);
|
InputDispatcher.h | 518 PointerCoords pointerCoords[MAX_POINTERS]; 526 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, 770 PointerCoords pointerCoords[MAX_POINTERS]; [all...] |
/frameworks/native/include/input/ |
Input.h | 200 struct PointerCoords { 201 enum { MAX_AXES = 30 }; // 30 so that sizeof(PointerCoords) == 128 237 bool operator==(const PointerCoords& other) const; 238 inline bool operator!=(const PointerCoords& other) const { 242 void copyFrom(const PointerCoords& other); 416 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const; 472 const PointerCoords* getHistoricalRawPointerCoords( 554 const PointerCoords* pointerCoords); 560 const PointerCoords* pointerCoords) [all...] |
InputTransport.h | 98 // Note that PointerCoords requires 8 byte alignment. 101 PointerCoords coords; 249 const PointerCoords* pointerCoords); 368 PointerCoords pointers[MAX_POINTERS]; 381 const PointerCoords& getPointerById(uint32_t id) const {
|
/frameworks/base/cmds/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/base/core/java/android/view/ |
MotionEvent.java | 487 * @see MotionEvent.PointerCoords#x 512 * @see MotionEvent.PointerCoords#y 534 * @see MotionEvent.PointerCoords#pressure 554 * @see MotionEvent.PointerCoords#size 575 * @see MotionEvent.PointerCoords#touchMajor 598 * @see MotionEvent.PointerCoords#touchMinor 623 * @see MotionEvent.PointerCoords#toolMajor 648 * @see MotionEvent.PointerCoords#toolMinor 675 * @see MotionEvent.PointerCoords#orientation 693 * @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 | 149 PointerCoords pointerCoords[pointerCount]; 155 pointerCoords[i].clear(); 156 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, 100 * i); 157 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, 200 * i); 158 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 0.5 * i); 159 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 0.7 * i); 160 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 1.5 * i); 161 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 1.7 * i); 162 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.5 * i) [all...] |
StructLayout_test.cpp | 27 PointerCoords coords;
|
/frameworks/base/core/java/com/android/internal/widget/ |
PointerLocationView.java | 35 import android.view.MotionEvent.PointerCoords; 58 private PointerCoords mCoords = new PointerCoords(); 127 private final PointerCoords mTempCoords = new PointerCoords(); 442 MotionEvent.PointerCoords coords, int id, MotionEvent event) { 587 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; 600 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; [all...] |
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
ScreenMagnifier.java | 42 import android.view.MotionEvent.PointerCoords; 153 private PointerCoords[] mTempPointerCoords; 403 PointerCoords[] coords = getTempPointerCoordsWithMinSize(pointerCount); 427 private PointerCoords[] getTempPointerCoordsWithMinSize(int size) { 430 PointerCoords[] oldTempPointerCoords = mTempPointerCoords; 431 mTempPointerCoords = new PointerCoords[size]; 437 mTempPointerCoords[i] = new PointerCoords(); [all...] |
TouchExplorer.java | 33 import android.view.MotionEvent.PointerCoords; [all...] |
/frameworks/base/libs/input/ |
PointerController.h | 92 virtual void setSpots(const PointerCoords* spotCoords,
|
PointerController.cpp | 246 void PointerController::setSpots(const PointerCoords* spotCoords, 253 const PointerCoords& c = spotCoords[spotIdToIndex[id]]; 268 const PointerCoords& c = spotCoords[spotIdToIndex[id]];
|
/frameworks/base/core/jni/ |
android_view_MotionEvent.cpp | 146 "pointerCoords array must not be null"); 152 "pointerCoords array must be large enough to hold all pointers"); 179 "pointerCoords must not be null"); 195 float xOffset, float yOffset, PointerCoords* outRawPointerCoords) { 258 static void pointerCoordsFromNative(JNIEnv* env, const PointerCoords* rawPointerCoords, 354 PointerCoords rawPointerCoords[pointerCount]; 366 jniThrowNullPointerException(env, "pointerCoords"); 412 PointerCoords rawPointerCoords[pointerCount]; 417 jniThrowNullPointerException(env, "pointerCoords"); 660 const PointerCoords* rawPointerCoords [all...] |
/frameworks/native/services/inputflinger/tests/ |
InputDispatcher_test.cpp | 144 PointerCoords pointerCoords[MAX_POINTERS + 1]; 148 pointerCoords[i].clear(); 155 /*pointerCount*/ 1, pointerProperties, pointerCoords); 166 /*pointerCount*/ 1, pointerProperties, pointerCoords); 176 /*pointerCount*/ 1, pointerProperties, pointerCoords); 187 /*pointerCount*/ 1, pointerProperties, pointerCoords); 197 /*pointerCount*/ 1, pointerProperties, pointerCoords); 207 /*pointerCount*/ 0, pointerProperties, pointerCoords); 216 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); [all...] |