Lines Matching refs:motionArgs
2495 NotifyMotionArgs motionArgs; in TEST_F() local
2501 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2502 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
2503 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
2505 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2508 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2509 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
2510 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
2512 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2517 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2518 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
2519 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2521 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2524 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2525 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
2526 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2528 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2531 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2532 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
2533 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2535 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2542 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2543 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
2545 motionArgs.buttonState); in TEST_F()
2548 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2551 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2552 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
2553 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
2556 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2559 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2560 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
2562 motionArgs.buttonState); in TEST_F()
2565 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2570 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2571 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
2572 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
2574 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2577 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2578 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
2579 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
2581 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2586 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2587 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
2588 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2590 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2595 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2596 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2598 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
2599 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2602 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2603 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2605 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
2606 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2616 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2617 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
2618 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
2620 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2623 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2624 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
2625 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
2627 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2632 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2633 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
2634 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2636 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2639 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2640 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
2641 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2644 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2657 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2658 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
2659 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
2661 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2664 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2665 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
2666 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
2668 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2673 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2674 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
2675 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2677 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2680 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2681 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
2682 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2684 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2698 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2699 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
2700 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
2702 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2705 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2706 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
2707 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
2709 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2714 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2715 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
2716 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2718 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2721 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2722 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
2723 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2725 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2739 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2740 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
2741 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
2743 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2746 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2747 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
2748 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
2750 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2755 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2756 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
2757 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2759 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
2762 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
2763 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
2764 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
2766 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3352 NotifyMotionArgs motionArgs; in TEST_F() local
3353 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3354 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3355 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3356 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3357 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3358 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
3359 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3360 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3361 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3362 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3363 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3364 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3365 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3366 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3368 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
3369 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
3370 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3377 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3378 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3379 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3380 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3381 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3382 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3383 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3384 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3385 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3386 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3387 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3388 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3389 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3390 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3392 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
3393 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
3394 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3400 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3401 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3402 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3403 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3404 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3405 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
3406 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3407 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3408 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3409 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3410 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3411 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3412 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3413 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3415 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
3416 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
3417 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3435 NotifyMotionArgs motionArgs; in TEST_F() local
3451 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3452 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3453 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3454 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3455 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3456 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
3457 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3458 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3459 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3460 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3461 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3462 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3463 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3464 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3466 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
3467 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
3468 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3474 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3475 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3476 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3477 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3478 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3479 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
3480 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3481 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3482 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3483 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3484 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3485 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3486 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3487 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3489 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
3490 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
3491 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3511 NotifyMotionArgs motionArgs; in TEST_F() local
3519 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3520 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3521 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3522 ASSERT_EQ(VIRTUAL_DISPLAY_ID, motionArgs.displayId); in TEST_F()
3523 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3524 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3525 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
3526 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3527 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3528 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3529 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3530 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3531 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3532 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3533 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3536 ASSERT_NEAR(X_PRECISION_VIRTUAL, motionArgs.xPrecision, EPSILON); in TEST_F()
3537 ASSERT_NEAR(Y_PRECISION_VIRTUAL, motionArgs.yPrecision, EPSILON); in TEST_F()
3538 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3546 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3547 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3548 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3549 ASSERT_EQ(VIRTUAL_DISPLAY_ID, motionArgs.displayId); in TEST_F()
3550 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3551 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3552 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3553 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3554 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3555 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3556 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3557 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3558 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3559 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3560 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3563 ASSERT_NEAR(X_PRECISION_VIRTUAL, motionArgs.xPrecision, EPSILON); in TEST_F()
3564 ASSERT_NEAR(Y_PRECISION_VIRTUAL, motionArgs.yPrecision, EPSILON); in TEST_F()
3565 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3571 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3572 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3573 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3574 ASSERT_EQ(VIRTUAL_DISPLAY_ID, motionArgs.displayId); in TEST_F()
3575 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3576 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3577 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
3578 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3579 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3580 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3581 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3582 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3583 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3584 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3585 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3588 ASSERT_NEAR(X_PRECISION_VIRTUAL, motionArgs.xPrecision, EPSILON); in TEST_F()
3589 ASSERT_NEAR(Y_PRECISION_VIRTUAL, motionArgs.yPrecision, EPSILON); in TEST_F()
3590 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3608 NotifyMotionArgs motionArgs; in TEST_F() local
3616 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3617 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3618 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3619 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3620 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3621 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
3622 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3623 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3624 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3625 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3626 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3627 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3628 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3629 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3631 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
3632 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
3633 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3641 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3642 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3643 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3644 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3645 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3646 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3647 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3648 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3649 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3650 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3651 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3652 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3653 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3654 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3656 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
3657 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
3658 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3664 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3665 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
3666 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
3667 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
3668 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
3669 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
3670 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
3671 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
3672 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3673 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
3674 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3675 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3676 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3677 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
3679 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
3680 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
3681 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
3851 NotifyMotionArgs motionArgs; in TEST_F() local
3856 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3857 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
3858 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3863 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3864 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3865 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
3867 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3868 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
3869 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
3873 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3874 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
3875 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3877 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3878 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3879 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3885 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3886 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3888 motionArgs.buttonState); in TEST_F()
3890 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3891 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
3892 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
3894 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3895 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
3897 motionArgs.buttonState); in TEST_F()
3901 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3902 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
3903 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
3905 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3906 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3907 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
3911 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3912 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
3913 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3915 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3916 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3917 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3926 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3927 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3928 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
3930 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3931 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
3932 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
3936 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3937 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
3938 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3940 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3941 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3942 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3955 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3956 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3957 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
3959 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3960 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
3961 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
3965 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3966 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
3967 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3969 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3970 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3971 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3984 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3985 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
3986 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
3988 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3989 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
3990 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
3994 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3995 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
3996 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
3998 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
3999 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4000 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4013 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4014 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4015 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
4017 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4018 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
4019 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
4023 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4024 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
4025 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4027 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4028 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4029 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4040 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4041 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4042 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_PRIMARY, motionArgs.buttonState); in TEST_F()
4044 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4045 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
4046 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_PRIMARY, motionArgs.buttonState); in TEST_F()
4050 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4051 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
4052 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4054 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4055 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4056 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4061 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4062 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4063 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_SECONDARY, motionArgs.buttonState); in TEST_F()
4065 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4066 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
4067 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_SECONDARY, motionArgs.buttonState); in TEST_F()
4071 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4072 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
4073 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4075 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4076 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4077 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4082 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4083 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
4084 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4095 NotifyMotionArgs motionArgs; in TEST_F() local
4100 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4101 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
4102 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4107 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4108 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4109 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_ERASER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4115 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4116 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4117 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
4123 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4124 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4125 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
4131 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4132 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4133 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
4139 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4140 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4141 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
4147 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4148 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4149 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
4155 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4156 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4157 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
4163 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4164 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4165 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4171 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4172 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4173 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4179 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4180 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4181 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4187 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4188 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4189 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4194 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4195 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4196 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
4201 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4202 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4203 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_ERASER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4208 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4209 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4210 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
4218 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4219 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4220 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4232 NotifyMotionArgs motionArgs; in TEST_F() local
4238 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4239 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
4240 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4243 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4244 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
4245 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4251 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4252 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
4253 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4259 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4260 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
4261 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4264 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4265 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
4266 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4272 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4273 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
4274 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4277 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4278 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
4279 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4282 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4283 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
4284 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4290 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4291 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
4292 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4304 NotifyMotionArgs motionArgs; in TEST_F() local
4310 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4311 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
4312 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4315 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4316 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
4317 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4323 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4324 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
4325 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4331 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4332 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
4333 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4336 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4337 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
4338 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4344 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4345 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
4346 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4349 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4350 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
4351 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4354 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4355 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
4356 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4362 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4363 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
4364 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4526 NotifyMotionArgs motionArgs; in TEST_F() local
4536 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4537 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4538 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4539 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4540 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4541 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
4542 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4543 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4544 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4545 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4546 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4547 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4548 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4549 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4551 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4552 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4553 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4555 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4556 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4557 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4558 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4559 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4561 motionArgs.action); in TEST_F()
4562 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4563 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4564 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4565 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4566 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
4567 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4568 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4569 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
4570 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
4571 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4573 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
4575 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4576 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4577 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4587 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4588 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4589 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4590 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4591 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4592 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4593 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4594 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4595 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4596 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4597 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
4598 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4599 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4600 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
4601 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
4602 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4604 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
4606 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4607 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4608 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4616 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4617 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4618 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4619 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4620 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4622 motionArgs.action); in TEST_F()
4623 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4624 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4625 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4626 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4627 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
4628 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4629 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4630 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
4631 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
4632 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4634 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
4636 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4637 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4638 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4640 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4641 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4642 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4643 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4644 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4645 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4646 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4647 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4648 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4649 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4650 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4651 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
4652 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4653 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4655 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4656 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4657 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4665 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4666 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4667 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4668 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4669 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4670 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4671 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4672 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4673 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4674 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4675 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4676 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
4677 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4678 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4680 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4681 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4682 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4692 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4693 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4694 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4695 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4696 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4698 motionArgs.action); in TEST_F()
4699 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4700 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4701 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4702 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4703 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
4704 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4705 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4706 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
4707 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
4708 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4710 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
4712 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4713 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4714 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4722 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4723 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4724 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4725 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4726 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4728 motionArgs.action); in TEST_F()
4729 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4730 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4731 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4732 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4733 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
4734 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4735 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4736 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
4737 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
4738 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4740 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
4742 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4743 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4744 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4746 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4747 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4748 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4749 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4750 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4751 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4752 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4753 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4754 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4755 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4756 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4757 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4758 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4759 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4761 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4762 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4763 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4769 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4770 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4771 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4772 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4773 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4774 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
4775 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4776 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4777 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4778 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4779 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4780 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4781 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4782 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4784 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4785 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4786 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4803 NotifyMotionArgs motionArgs; in TEST_F() local
4815 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4816 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
4817 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4818 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4819 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4820 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4823 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4825 motionArgs.action); in TEST_F()
4826 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
4827 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4828 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4829 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
4830 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
4831 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4833 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
4846 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4847 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4848 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
4849 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4850 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4851 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
4852 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
4853 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4855 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
4865 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4867 motionArgs.action); in TEST_F()
4868 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
4869 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4870 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4871 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
4872 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
4873 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4875 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
4878 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4879 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4880 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4881 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
4882 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4883 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4893 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4894 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4895 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4896 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
4897 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4898 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4911 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4913 motionArgs.action); in TEST_F()
4914 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
4915 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4916 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4917 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
4918 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
4919 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4921 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
4931 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4933 motionArgs.action); in TEST_F()
4934 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
4935 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4936 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4937 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
4938 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
4939 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4941 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
4944 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4945 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4946 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4947 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4948 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4949 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4956 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4957 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
4958 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4959 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4960 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4961 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4979 NotifyMotionArgs motionArgs; in TEST_F() local
4990 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4991 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
4992 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
4993 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4994 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4995 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4998 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5000 motionArgs.action); in TEST_F()
5001 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
5002 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5003 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5004 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
5005 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
5006 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5008 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
5019 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5020 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5021 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
5022 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5023 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5024 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
5025 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
5026 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5028 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
5039 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5041 motionArgs.action); in TEST_F()
5042 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
5043 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5044 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5045 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
5046 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
5047 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5049 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
5052 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5053 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5054 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
5055 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
5056 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5057 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5065 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5066 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5067 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
5068 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
5069 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5070 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5081 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5083 motionArgs.action); in TEST_F()
5084 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
5085 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5086 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5087 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
5088 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
5089 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5091 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
5102 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5104 motionArgs.action); in TEST_F()
5105 ASSERT_EQ(size_t(2), motionArgs.pointerCount); in TEST_F()
5106 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5107 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5108 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
5109 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
5110 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5112 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
5115 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5116 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5117 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
5118 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5119 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5120 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5127 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5128 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
5129 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
5130 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5131 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5132 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5357 NotifyMotionArgs motionArgs; in TEST_F() local
5363 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5364 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
5365 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5370 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5371 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5372 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
5374 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5375 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5376 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
5380 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5381 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5382 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5384 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5385 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5386 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5392 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5393 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5395 motionArgs.buttonState); in TEST_F()
5397 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5398 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5399 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
5401 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5402 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5404 motionArgs.buttonState); in TEST_F()
5408 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5409 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5410 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
5412 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5413 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5414 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
5418 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5419 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5420 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5422 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5423 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5424 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5433 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5434 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5435 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
5437 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5438 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5439 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
5443 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5444 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5445 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5447 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5448 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5449 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5462 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5463 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5464 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
5466 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5467 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5468 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
5472 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5473 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5474 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5476 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5477 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5478 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5491 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5492 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5493 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
5495 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5496 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5497 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
5501 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5502 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5503 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5505 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5506 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5507 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5520 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5521 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5522 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
5524 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5525 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5526 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
5530 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5531 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5532 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5534 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5535 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5536 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5547 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5548 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5549 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_PRIMARY, motionArgs.buttonState); in TEST_F()
5551 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5552 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5553 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_PRIMARY, motionArgs.buttonState); in TEST_F()
5557 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5558 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5559 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5561 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5562 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5563 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5568 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5569 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5570 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_SECONDARY, motionArgs.buttonState); in TEST_F()
5572 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5573 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5574 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_SECONDARY, motionArgs.buttonState); in TEST_F()
5578 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5579 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5580 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5582 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5583 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5584 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5589 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5590 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
5591 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5601 NotifyMotionArgs motionArgs; in TEST_F() local
5607 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5608 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
5609 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5614 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5615 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5616 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_ERASER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5622 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5623 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5624 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5630 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5631 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5632 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5638 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5639 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5640 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5646 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5647 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5648 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5654 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5655 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5656 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
5662 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5663 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5664 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
5670 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5671 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5672 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5678 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5679 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5680 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5686 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5687 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5688 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5694 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5695 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5696 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5701 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5702 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5703 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5708 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5709 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5710 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_ERASER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5715 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5716 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5717 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
5722 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5723 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5724 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5729 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5730 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5731 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5740 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5741 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5742 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5753 NotifyMotionArgs motionArgs; in TEST_F() local
5759 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5760 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
5761 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5764 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5765 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5766 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5772 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5773 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5774 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5780 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5781 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
5782 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5785 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5786 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
5787 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5793 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5794 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
5795 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5798 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5799 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
5800 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5803 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5804 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5805 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5811 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5812 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
5813 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5824 NotifyMotionArgs motionArgs; in TEST_F() local
5831 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5832 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
5833 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5836 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5837 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5838 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5844 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5845 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5846 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5852 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5853 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
5854 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5857 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5858 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
5859 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5865 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5866 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
5867 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5870 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5871 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
5872 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5875 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5876 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5877 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5883 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5884 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
5885 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()