/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
DocumentHolderTest.java | 29 import android.view.MotionEvent.PointerCoords; 74 PointerCoords coords[] = new PointerCoords[] { 75 new PointerCoords()
|
/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 | 302 const PointerCoords* pointerCoords) { 345 msg.body.motion.pointers[i].coords.copyFrom(pointerCoords[i]); 667 PointerCoords& msgCoords = msg->body.motion.pointers[i].coords; 668 const PointerCoords& resampleCoords = state.lastResample.getPointerById(id); 776 PointerCoords& resampledCoords = touchState.lastResample.pointers[i]; 777 const PointerCoords& currentCoords = current->getPointerById(id); 780 const PointerCoords& otherCoords = other->getPointerById(id); 916 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,
|
/frameworks/base/core/tests/coretests/src/android/view/ |
PinchZoomAction.java | 71 final MotionEvent.PointerCoords pc1 = new MotionEvent.PointerCoords(); 76 final MotionEvent.PointerCoords pc2 = new MotionEvent.PointerCoords(); 84 final MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[]{pc1, pc2}; 87 eventTime, MotionEvent.ACTION_DOWN, 1, pointerProperties, pointerCoords, 94 2, pointerProperties, pointerCoords, 0, 0, 1, 1, 0, 0, 0, 0); 132 MotionEvent.ACTION_MOVE, 2, pointerProperties, pointerCoords, [all...] |
/frameworks/native/include/input/ |
Input.h | 219 struct PointerCoords { 220 enum { MAX_AXES = 30 }; // 30 so that sizeof(PointerCoords) == 128 256 bool operator==(const PointerCoords& other) const; 257 inline bool operator!=(const PointerCoords& other) const { 261 void copyFrom(const PointerCoords& other); 435 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const; 491 const PointerCoords* getHistoricalRawPointerCoords( 573 const PointerCoords* pointerCoords); 579 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...] |
/cts/tests/tests/view/src/android/view/cts/ |
MotionEventUtils.java | 22 import android.view.MotionEvent.PointerCoords; 115 public PointerCoords build() { 116 final PointerCoords pointerCoords = new PointerCoords(); 117 pointerCoords.x = x; 118 pointerCoords.y = y; 119 pointerCoords.pressure = pressure; 120 pointerCoords.size = size; 121 pointerCoords.touchMajor = touchMajor [all...] |
MotionEvent_PointerCoordsTest.java | 31 * Test {@link MotionEvent.PointerCoords}. 37 private MotionEvent.PointerCoords mPointerCoords; 96 final MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); 97 pointerCoords.copyFrom(mPointerCoords); 98 mBuilder.verifyMatchesPointerCoords(pointerCoords);
|
MotionEventTest.java | 38 import android.view.MotionEvent.PointerCoords; 174 new PointerCoords[] { coordsBuilder0.build(), coordsBuilder1.build() }, 436 new PointerCoords[] { coordsBuilder0.build(), coordsBuilder1.build() }, 467 new PointerCoords[] { 489 new PointerCoords[] { coordsBuilderNext0.build(), coordsBuilderNext1.build() }, 0); 518 new PointerCoords[] { coordsBuilderLast0.build(), coordsBuilderLast1.build() }, 0); 599 final PointerCoords[] pointerCoords = new PointerCoords[pointerCount]; 601 final PointerCoords c = new PointerCoords() [all...] |
/frameworks/base/core/java/android/view/ |
MotionEvent.java | 530 * @see MotionEvent.PointerCoords#x 555 * @see MotionEvent.PointerCoords#y 577 * @see MotionEvent.PointerCoords#pressure 597 * @see MotionEvent.PointerCoords#size 618 * @see MotionEvent.PointerCoords#touchMajor 641 * @see MotionEvent.PointerCoords#touchMinor 666 * @see MotionEvent.PointerCoords#toolMajor 691 * @see MotionEvent.PointerCoords#toolMinor 718 * @see MotionEvent.PointerCoords#orientation 736 * @see MotionEvent.PointerCoords#getAxisValue(int [all...] |
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
AutoclickController.java | 32 import android.view.MotionEvent.PointerCoords; 269 private PointerCoords mAnchorCoords; 278 private PointerCoords mTempPointerCoords[]; 286 mAnchorCoords = new PointerCoords(); 435 mTempPointerCoords = new PointerCoords[1]; 436 mTempPointerCoords[0] = new PointerCoords();
|
MagnificationGestureHandler.java | 33 import android.view.MotionEvent.PointerCoords; 122 private PointerCoords[] mTempPointerCoords; 301 PointerCoords[] coords = getTempPointerCoordsWithMinSize(pointerCount); 318 private PointerCoords[] getTempPointerCoordsWithMinSize(int size) { 321 PointerCoords[] oldTempPointerCoords = mTempPointerCoords; 322 mTempPointerCoords = new PointerCoords[size]; 328 mTempPointerCoords[i] = new PointerCoords(); [all...] |
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
GestureBot.java | 31 import android.view.MotionEvent.PointerCoords; 155 PointerCoords coords = new PointerCoords(); 162 new PointerProperties[] { properties }, new PointerCoords[] { coords },
|
/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;
|
/cts/tests/tests/text/src/android/text/method/cts/ |
BaseMovementMethodTest.java | 210 final MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[1]; 211 coords[0] = new MotionEvent.PointerCoords();
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
RecyclerViewOnGenericMotionEventTest.java | 121 MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); 123 MotionEvent.PointerCoords[] pointerCoords = { coords }; 130 1, pointerProperties, pointerCoords, 0, 0, xPrecision, yPrecision, deviceId,
|
/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/support/v13/tests/java/android/support/v13/view/ |
DragStartHelperTest.java | 122 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[] { 123 new MotionEvent.PointerCoords()
|