/frameworks/native/libs/input/tests/ |
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...] |
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...] |
/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/base/docs/html/sdk/api_diff/12/changes/ |
android.view.MotionEvent.PointerCoords.html | 10 android.view.MotionEvent.PointerCoords 74 Class android.view.<A HREF="../../../../reference/android/view/MotionEvent.PointerCoords.html" target="_top"><font size="+2"><code>MotionEvent.PointerCoords</code></font></A> 85 <A NAME="android.view.MotionEvent.PointerCoords.ctor_added(android.view.MotionEvent.PointerCoords)"></A> 86 <nobr><A HREF="../../../../reference/android/view/MotionEvent.PointerCoords.html#MotionEvent.PointerCoords(android.view.MotionEvent.PointerCoords)" target="_top"><code>MotionEvent.PointerCoords</code></A>(<code>PointerCoords</code>)</nobr [all...] |
constructors_index_additions.html | 66 <nobr><A HREF="android.view.MotionEvent.PointerCoords.html#android.view.MotionEvent.PointerCoords.ctor_added(android.view.MotionEvent.PointerCoords)" class="hiddenlink" target="rightframe"><b>MotionEvent.PointerCoords</b> 67 (<code>PointerCoords</code>)</A></nobr> constructor<br>
|
constructors_index_all.html | 102 <nobr><A HREF="android.view.MotionEvent.PointerCoords.html#android.view.MotionEvent.PointerCoords.ctor_added(android.view.MotionEvent.PointerCoords)" class="hiddenlink" target="rightframe"><b>MotionEvent.PointerCoords</b> 103 (<code>PointerCoords</code>)</A></nobr> constructor<br>
|
/frameworks/native/services/inputflinger/tests/ |
InputDispatcher_test.cpp | 146 PointerCoords pointerCoords[MAX_POINTERS + 1]; 150 pointerCoords[i].clear(); 157 /*pointerCount*/ 1, pointerProperties, pointerCoords); 168 /*pointerCount*/ 1, pointerProperties, pointerCoords); 178 /*pointerCount*/ 1, pointerProperties, pointerCoords); 189 /*pointerCount*/ 1, pointerProperties, pointerCoords); 199 /*pointerCount*/ 1, pointerProperties, pointerCoords); 209 /*pointerCount*/ 0, pointerProperties, pointerCoords); 218 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); [all...] |
InputReader_test.cpp | 116 virtual void setSpots(const PointerCoords* spotCoords, [all...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
TouchEventSynthesizer.java | 8 import android.view.MotionEvent.PointerCoords; 28 private final PointerCoords[] mPointerCoords; 34 mPointerCoords = new PointerCoords[MAX_NUM_POINTERS]; 44 PointerCoords coords = new PointerCoords();
|
/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 | 298 const PointerCoords* pointerCoords) { 340 msg.body.motion.pointers[i].coords.copyFrom(pointerCoords[i]); 661 PointerCoords& msgCoords = msg->body.motion.pointers[i].coords; 662 const PointerCoords& resampleCoords = state.lastResample.getPointerById(id); 765 PointerCoords& resampledCoords = touchState.lastResample.pointers[i]; 766 const PointerCoords& currentCoords = current->getPointerById(id); 769 const PointerCoords& otherCoords = other->getPointerById(id); 900 PointerCoords pointerCoords[pointerCount] [all...] |
/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,
|
/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/services/inputflinger/ |
InputListener.h | 94 PointerCoords pointerCoords[MAX_POINTERS]; 104 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
|
InputListener.cpp | 73 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, 81 this->pointerCoords[i].copyFrom(pointerCoords[i]); 95 pointerCoords[i].copyFrom(other.pointerCoords[i]);
|
InputReader.cpp | [all...] |
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
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...] |
UiObject.java | 24 import android.view.MotionEvent.PointerCoords; [all...] |
/frameworks/native/include/input/ |
Input.h | 188 struct PointerCoords { 189 enum { MAX_AXES = 30 }; // 30 so that sizeof(PointerCoords) == 128 225 bool operator==(const PointerCoords& other) const; 226 inline bool operator!=(const PointerCoords& other) const { 230 void copyFrom(const PointerCoords& other); 398 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const; 454 const PointerCoords* getHistoricalRawPointerCoords( 535 const PointerCoords* pointerCoords); 541 const PointerCoords* pointerCoords) [all...] |
/external/chromium_org/remoting/android/javatests/src/org/chromium/chromoting/ |
SwipePinchDetectorTest.java | 25 private MotionEvent.PointerCoords[] mCurrentPositions; 38 MotionEvent.PointerCoords position0 = new MotionEvent.PointerCoords(); 39 MotionEvent.PointerCoords position1 = new MotionEvent.PointerCoords(); 40 mCurrentPositions = new MotionEvent.PointerCoords[] {position0, position1};
|
TouchEventGenerator.java | 50 MotionEvent.PointerCoords[] positions = new MotionEvent.PointerCoords[size]; 58 positions[i] = new MotionEvent.PointerCoords();
|
/frameworks/base/core/java/android/view/ |
MotionEvent.java | 461 * @see MotionEvent.PointerCoords#x 486 * @see MotionEvent.PointerCoords#y 508 * @see MotionEvent.PointerCoords#pressure 528 * @see MotionEvent.PointerCoords#size 549 * @see MotionEvent.PointerCoords#touchMajor 572 * @see MotionEvent.PointerCoords#touchMinor 597 * @see MotionEvent.PointerCoords#toolMajor 622 * @see MotionEvent.PointerCoords#toolMinor 649 * @see MotionEvent.PointerCoords#orientation 667 * @see MotionEvent.PointerCoords#getAxisValue(int [all...] |
/frameworks/base/core/jni/ |
android_view_MotionEvent.cpp | 144 "pointerCoords array must not be null"); 150 "pointerCoords array must be large enough to hold all pointers"); 177 "pointerCoords must not be null"); 193 float xOffset, float yOffset, PointerCoords* outRawPointerCoords) { 256 static void pointerCoordsFromNative(JNIEnv* env, const PointerCoords* rawPointerCoords, 353 PointerCoords rawPointerCoords[pointerCount]; 365 jniThrowNullPointerException(env, "pointerCoords"); 411 PointerCoords rawPointerCoords[pointerCount]; 416 jniThrowNullPointerException(env, "pointerCoords"); 641 const PointerCoords* rawPointerCoords [all...] |
/frameworks/base/docs/html/sdk/api_diff/14/changes/ |
android.view.MotionEvent.html | 86 <A NAME="android.view.MotionEvent.obtain_removed(long, long, int, int, int[], android.view.MotionEvent.PointerCoords[], int, float, float, int, int, int, int)"></A> 87 <nobr><code>MotionEvent</code> obtain(<code>long,</nobr> long<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int[]<nobr>,</nobr> PointerCoords[]<nobr>,</nobr> int<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr> 122 <A NAME="android.view.MotionEvent.obtain_added(long, long, int, int, android.view.MotionEvent.PointerProperties[], android.view.MotionEvent.PointerCoords[], int, int, float, float, int, int, int, int)"></A> 123 <nobr><code>MotionEvent</code> <A HREF="../../../../reference/android/view/MotionEvent.html#obtain(long, long, int, int, android.view.MotionEvent.PointerProperties[], android.view.MotionEvent.PointerCoords[], int, int, float, float, int, int, int, int)" target="_top"><code>obtain</code></A>(<code>long,</nobr> long<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> PointerProperties[]<nobr>,</nobr> PointerCoords[]<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr> 129 <A NAME="android.view.MotionEvent.obtain_added(long, long, int, int, int[], android.view.MotionEvent.PointerCoords[], int, float, float, int, int, int, int)"></A> 130 <nobr><code>MotionEvent</code> <A HREF="../../../../reference/android/view/MotionEvent.html#obtain(long, long, int, int, int[], android.view.MotionEvent.PointerCoords[], int, float, float, int, int, int, int)" target="_top"><code>obtain</code></A>(<code>long,</nobr> long<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int[]<nobr>,</nobr> PointerCoords[]<nobr>,</nobr> int<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
|
/frameworks/base/docs/html/sdk/api_diff/9/changes/ |
android.view.MotionEvent.html | 102 <A NAME="android.view.MotionEvent.addBatch_added(long, android.view.MotionEvent.PointerCoords[], int)"></A> 103 <nobr><code>void</code> <A HREF="../../../../reference/android/view/MotionEvent.html#addBatch(long, android.view.MotionEvent.PointerCoords[], int)" target="_top"><code>addBatch</code></A>(<code>long,</nobr> PointerCoords[]<nobr>,</nobr> int<nobr><nobr></code>)</nobr> 130 <A NAME="android.view.MotionEvent.getHistoricalPointerCoords_added(int, int, android.view.MotionEvent.PointerCoords)"></A> 131 <nobr><code>void</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalPointerCoords(int, int, android.view.MotionEvent.PointerCoords)" target="_top"><code>getHistoricalPointerCoords</code></A>(<code>int,</nobr> int<nobr>,</nobr> PointerCoords<nobr><nobr></code>)</nobr> 207 <A NAME="android.view.MotionEvent.getPointerCoords_added(int, android.view.MotionEvent.PointerCoords)"></A> 208 <nobr><code>void</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getPointerCoords(int, android.view.MotionEvent.PointerCoords)" target="_top"><code>getPointerCoords</code></A>(<code>int,</nobr> PointerCoords<nobr><nobr></code>)</nobr> 270 <A NAME="android.view.MotionEvent.obtain_added(long, long, int, int, int[], android.view.MotionEvent.PointerCoords[], int, float, float, int, int, int, int)"></A [all...] |