Lines Matching defs:pointerCoords
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];
231 pointerCoords[0].clear();
232 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 10);
233 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 11);
234 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 12);
235 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 13);
236 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 14);
237 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 15);
238 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 16);
239 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 17);
240 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, 18);
241 pointerCoords[1].clear();
242 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 20);
243 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_Y, 21);
244 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 22);
245 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 23);
246 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 24);
247 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 25);
248 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 26);
249 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 27);
250 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, 28);
256 2, pointerProperties, pointerCoords);
258 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 110);
259 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 111);
260 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 112);
261 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 113);
262 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 114);
263 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 115);
264 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 116);
265 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 117);
266 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, 118);
267 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 120);
268 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_Y, 121);
269 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 122);
270 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 123);
271 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 124);
272 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 125);
273 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 126);
274 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 127);
275 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, 128);
276 event->addSample(ARBITRARY_EVENT_TIME + 1, pointerCoords);
278 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 210);
279 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 211);
280 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 212);
281 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 213);
282 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 214);
283 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 215);
284 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 216);
285 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 217);
286 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, 218);
287 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 220);
288 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_Y, 221);
289 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 222);
290 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 223);
291 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 224);
292 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 225);
293 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 226);
294 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 227);
295 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, 228);
296 event->addSample(ARBITRARY_EVENT_TIME + 2, pointerCoords);
549 PointerCoords pointerCoords[pointerCount];
554 pointerCoords[i].clear();
555 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, sinf(angle) * RADIUS + 3);
556 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, -cosf(angle) * RADIUS + 2);
557 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, angle);
561 0, 0, 0, 0, 0, 0, pointerCount, pointerProperties, pointerCoords);