Lines Matching refs:motionArgs
4758 NotifyMotionArgs motionArgs; in TEST_F() local
4759 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4760 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4761 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4762 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4763 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4764 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
4765 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4766 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4767 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4768 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4769 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4770 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4771 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4772 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4774 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4775 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4776 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4783 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4784 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4785 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4786 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4787 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4788 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4789 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4790 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4791 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4792 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4793 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4794 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4795 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4796 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4798 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4799 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4800 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4806 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4807 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4808 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4809 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4810 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4811 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
4812 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4813 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4814 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4815 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4816 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4817 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4818 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4819 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4821 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4822 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4823 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4840 NotifyMotionArgs motionArgs; in TEST_F() local
4856 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4857 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4858 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4859 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4860 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4861 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
4862 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4863 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4864 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4865 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4866 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4867 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4868 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4869 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4871 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4872 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4873 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4879 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4880 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4881 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4882 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4883 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4884 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
4885 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4886 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4887 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4888 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4889 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4890 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4891 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4892 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4894 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
4895 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
4896 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4915 NotifyMotionArgs motionArgs; in TEST_F() local
4923 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4924 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4925 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4926 ASSERT_EQ(VIRTUAL_DISPLAY_ID, motionArgs.displayId); in TEST_F()
4927 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4928 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4929 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
4930 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4931 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4932 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4933 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4934 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4935 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4936 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4937 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4940 ASSERT_NEAR(X_PRECISION_VIRTUAL, motionArgs.xPrecision, EPSILON); in TEST_F()
4941 ASSERT_NEAR(Y_PRECISION_VIRTUAL, motionArgs.yPrecision, EPSILON); in TEST_F()
4942 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4950 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4951 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4952 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4953 ASSERT_EQ(VIRTUAL_DISPLAY_ID, motionArgs.displayId); in TEST_F()
4954 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4955 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4956 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
4957 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4958 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4959 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4960 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4961 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4962 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4963 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4964 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4967 ASSERT_NEAR(X_PRECISION_VIRTUAL, motionArgs.xPrecision, EPSILON); in TEST_F()
4968 ASSERT_NEAR(Y_PRECISION_VIRTUAL, motionArgs.yPrecision, EPSILON); in TEST_F()
4969 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
4975 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
4976 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
4977 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
4978 ASSERT_EQ(VIRTUAL_DISPLAY_ID, motionArgs.displayId); in TEST_F()
4979 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
4980 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
4981 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
4982 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
4983 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
4984 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
4985 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
4986 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4987 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4988 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4989 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
4992 ASSERT_NEAR(X_PRECISION_VIRTUAL, motionArgs.xPrecision, EPSILON); in TEST_F()
4993 ASSERT_NEAR(Y_PRECISION_VIRTUAL, motionArgs.yPrecision, EPSILON); in TEST_F()
4994 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
5011 NotifyMotionArgs motionArgs; in TEST_F() local
5019 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5020 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
5021 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
5022 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
5023 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
5024 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
5025 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
5026 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
5027 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5028 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
5029 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
5030 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5031 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5032 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5034 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
5035 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
5036 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
5044 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5045 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
5046 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
5047 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
5048 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
5049 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5050 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
5051 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
5052 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5053 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
5054 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
5055 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5056 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5057 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5059 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
5060 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
5061 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
5067 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5068 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
5069 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
5070 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
5071 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
5072 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
5073 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
5074 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
5075 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5076 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
5077 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
5078 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5079 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5080 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5082 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
5083 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
5084 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
5510 NotifyMotionArgs motionArgs; in TEST_F() local
5515 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5516 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
5517 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5522 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5523 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5524 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
5526 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5527 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5528 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
5532 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5533 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5534 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5536 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5537 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5538 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5544 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5545 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5547 motionArgs.buttonState); in TEST_F()
5549 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5550 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5551 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
5553 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5554 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5556 motionArgs.buttonState); in TEST_F()
5560 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5561 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5562 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
5564 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5565 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5566 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
5570 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5571 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5572 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5574 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5575 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5576 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5585 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5586 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5587 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
5589 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5590 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5591 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
5595 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5596 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5597 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5599 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5600 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5601 ASSERT_EQ(0, motionArgs.buttonState); 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_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
5618 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5619 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5620 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
5624 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5625 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5626 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5628 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5629 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5630 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5643 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5644 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5645 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
5647 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5648 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5649 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
5653 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5654 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5655 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5657 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5658 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5659 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5672 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5673 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5674 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
5676 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5677 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5678 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
5682 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5683 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5684 ASSERT_EQ(0, motionArgs.buttonState); 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(0, motionArgs.buttonState); in TEST_F()
5699 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5700 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5701 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_PRIMARY, motionArgs.buttonState); in TEST_F()
5703 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5704 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5705 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_PRIMARY, motionArgs.buttonState); in TEST_F()
5709 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5710 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5711 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5713 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5714 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5715 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5720 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5721 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5722 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_SECONDARY, motionArgs.buttonState); in TEST_F()
5724 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5725 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
5726 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_SECONDARY, motionArgs.buttonState); in TEST_F()
5730 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5731 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
5732 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5734 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5735 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5736 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5741 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5742 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
5743 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
5753 NotifyMotionArgs motionArgs; in TEST_F() local
5758 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5759 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
5760 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5765 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5766 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5767 ASSERT_EQ(ToolType::ERASER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5773 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5774 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5775 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5781 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5782 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5783 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5789 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5790 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5791 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5797 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5798 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5799 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5805 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5806 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5807 ASSERT_EQ(ToolType::MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
5813 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5814 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5815 ASSERT_EQ(ToolType::MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
5821 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5822 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5823 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5829 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5830 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5831 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5837 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5838 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5839 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5845 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5846 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5847 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5852 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5853 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5854 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
5859 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5860 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5861 ASSERT_EQ(ToolType::ERASER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5866 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5867 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5868 ASSERT_EQ(ToolType::MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
5876 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5877 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
5878 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
5889 NotifyMotionArgs motionArgs; in TEST_F() local
5895 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5896 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
5897 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5900 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5901 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5902 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5908 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5909 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5910 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5916 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5917 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
5918 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5921 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5922 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
5923 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5929 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5930 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
5931 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5934 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5935 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
5936 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5939 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5940 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5941 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5947 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5948 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
5949 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5960 NotifyMotionArgs motionArgs; in TEST_F() local
5966 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5967 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
5968 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5971 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5972 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5973 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5979 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5980 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
5981 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5987 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5988 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
5989 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
5992 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
5993 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
5994 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
6000 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
6001 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
6002 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
6005 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
6006 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
6007 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
6010 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
6011 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
6012 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
6018 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
6019 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
6020 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
6080 NotifyMotionArgs motionArgs; in TEST_F() local
6087 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
6088 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
6095 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
6096 ASSERT_EQ(AMOTION_EVENT_ACTION_CANCEL, motionArgs.action); in TEST_F()
6109 NotifyMotionArgs motionArgs; in TEST_F() local
6114 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
6115 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
6124 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
6125 ASSERT_EQ(AMOTION_EVENT_ACTION_CANCEL, motionArgs.action); in TEST_F()
6382 NotifyMotionArgs motionArgs; in assertReceivedMove() local
6383 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in assertReceivedMove()
6384 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in assertReceivedMove()
6385 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in assertReceivedMove()
6386 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], point.x, point.y, in assertReceivedMove()
6399 NotifyMotionArgs motionArgs; in TEST_F() local
6434 NotifyMotionArgs motionArgs; in TEST_F() local
6455 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
6456 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
6457 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
6459 assertPointerCoords(motionArgs.pointerCoords[0], 11, 21, 1, 0, 0, 0, 0, 0, 0, 0)); in TEST_F()
6475 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
6476 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
6477 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], kOutsidePoint.x, in TEST_F()
7222 NotifyMotionArgs motionArgs; in TEST_F() local
7232 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7233 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
7234 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
7235 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
7236 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
7237 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
7238 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
7239 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
7240 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
7241 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
7242 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7243 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7244 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7245 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7247 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
7248 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
7249 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
7251 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7252 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
7253 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
7254 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
7255 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
7256 ASSERT_EQ(ACTION_POINTER_1_DOWN, motionArgs.action); in TEST_F()
7257 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
7258 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
7259 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
7260 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
7261 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7262 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7263 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7264 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7265 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7266 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7268 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7270 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
7271 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
7272 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
7282 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7283 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
7284 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
7285 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
7286 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
7287 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7288 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
7289 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
7290 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
7291 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
7292 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7293 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7294 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7295 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7296 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7297 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7299 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7301 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
7302 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
7303 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
7311 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7312 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
7313 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
7314 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
7315 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
7316 ASSERT_EQ(ACTION_POINTER_0_UP, motionArgs.action); in TEST_F()
7317 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
7318 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
7319 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
7320 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
7321 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7322 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7323 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7324 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7325 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7326 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7328 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7330 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
7331 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
7332 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
7334 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7335 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
7336 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
7337 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
7338 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
7339 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7340 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
7341 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
7342 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
7343 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
7344 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7345 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
7346 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7347 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7349 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
7350 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
7351 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
7359 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7360 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
7361 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
7362 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
7363 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
7364 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7365 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
7366 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
7367 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
7368 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
7369 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7370 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
7371 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7372 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7374 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
7375 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
7376 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
7386 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7387 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
7388 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
7389 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
7390 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
7391 ASSERT_EQ(ACTION_POINTER_0_DOWN, motionArgs.action); in TEST_F()
7392 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
7393 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
7394 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
7395 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
7396 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7397 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7398 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7399 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7400 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7401 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7403 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7405 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
7406 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
7407 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
7415 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7416 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
7417 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
7418 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
7419 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
7420 ASSERT_EQ(ACTION_POINTER_1_UP, motionArgs.action); in TEST_F()
7421 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
7422 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
7423 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
7424 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
7425 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7426 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7427 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7428 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7429 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7430 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7432 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7434 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
7435 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
7436 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
7438 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7439 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
7440 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
7441 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
7442 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
7443 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7444 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
7445 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
7446 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
7447 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
7448 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7449 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7450 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7451 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7453 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
7454 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
7455 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
7461 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7462 ASSERT_EQ(ARBITRARY_TIME, motionArgs.eventTime); in TEST_F()
7463 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId); in TEST_F()
7464 ASSERT_EQ(AINPUT_SOURCE_TOUCHSCREEN, motionArgs.source); in TEST_F()
7465 ASSERT_EQ(uint32_t(0), motionArgs.policyFlags); in TEST_F()
7466 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
7467 ASSERT_EQ(0, motionArgs.flags); in TEST_F()
7468 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, motionArgs.metaState); in TEST_F()
7469 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
7470 ASSERT_EQ(0, motionArgs.edgeFlags); in TEST_F()
7471 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7472 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7473 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7474 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7476 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
7477 ASSERT_NEAR(Y_PRECISION, motionArgs.yPrecision, EPSILON); in TEST_F()
7478 ASSERT_EQ(ARBITRARY_TIME, motionArgs.downTime); in TEST_F()
7545 NotifyMotionArgs motionArgs; in TEST_F() local
7557 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7558 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
7559 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7560 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7561 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7562 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7565 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7566 ASSERT_EQ(ACTION_POINTER_1_DOWN, motionArgs.action); in TEST_F()
7567 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7568 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7569 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7570 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7571 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7572 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7574 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7587 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7588 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7589 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7590 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7591 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7592 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7593 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7594 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7596 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7606 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7607 ASSERT_EQ(ACTION_POINTER_0_UP, motionArgs.action); in TEST_F()
7608 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7609 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7610 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7611 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7612 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7613 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7615 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7618 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7619 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7620 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7621 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
7622 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7623 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7633 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7634 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7635 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7636 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
7637 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7638 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7651 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7652 ASSERT_EQ(ACTION_POINTER_0_DOWN, motionArgs.action); in TEST_F()
7653 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7654 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7655 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7656 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7657 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7658 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7660 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7670 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7671 ASSERT_EQ(ACTION_POINTER_1_UP, motionArgs.action); in TEST_F()
7672 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7673 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7674 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7675 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7676 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7677 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7679 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7682 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7683 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7684 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7685 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7686 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7687 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7694 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7695 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
7696 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7697 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7698 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7699 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7716 NotifyMotionArgs motionArgs; in TEST_F() local
7727 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7728 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
7729 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7730 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7731 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7732 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7735 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7736 ASSERT_EQ(ACTION_POINTER_1_DOWN, motionArgs.action); in TEST_F()
7737 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7738 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7739 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7740 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7741 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7742 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7744 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7755 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7756 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7757 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7758 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7759 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7760 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7761 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7762 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7764 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7775 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7776 ASSERT_EQ(ACTION_POINTER_0_UP, motionArgs.action); in TEST_F()
7777 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7778 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7779 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7780 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7781 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7782 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7784 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7787 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7788 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7789 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7790 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
7791 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7792 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7800 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7801 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7802 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7803 ASSERT_EQ(1, motionArgs.pointerProperties[0].id); in TEST_F()
7804 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7805 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7816 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7817 ASSERT_EQ(ACTION_POINTER_0_DOWN, motionArgs.action); in TEST_F()
7818 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7819 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7820 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7821 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7822 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7823 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7825 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7836 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7837 ASSERT_EQ(ACTION_POINTER_1_UP, motionArgs.action); in TEST_F()
7838 ASSERT_EQ(size_t(2), motionArgs.getPointerCount()); in TEST_F()
7839 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7840 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7841 ASSERT_EQ(1, motionArgs.pointerProperties[1].id); in TEST_F()
7842 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
7843 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7845 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], in TEST_F()
7848 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7849 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
7850 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7851 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7852 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7853 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
7860 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
7861 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
7862 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
7863 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
7864 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
7865 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8084 NotifyMotionArgs motionArgs; in TEST_F() local
8090 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8091 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
8092 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8097 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8098 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8099 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
8101 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8102 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
8103 ASSERT_EQ(AMOTION_EVENT_BUTTON_PRIMARY, motionArgs.buttonState); in TEST_F()
8107 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8108 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
8109 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8111 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8112 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8113 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8119 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8120 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8122 motionArgs.buttonState); in TEST_F()
8124 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8125 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
8126 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
8128 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8129 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
8131 motionArgs.buttonState); in TEST_F()
8135 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8136 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
8137 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
8139 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8140 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8141 ASSERT_EQ(AMOTION_EVENT_BUTTON_TERTIARY, motionArgs.buttonState); in TEST_F()
8145 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8146 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
8147 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8149 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8150 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8151 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8160 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8161 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8162 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
8164 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8165 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
8166 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
8170 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8171 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
8172 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8174 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8175 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8176 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8189 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8190 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8191 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
8193 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8194 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
8195 ASSERT_EQ(AMOTION_EVENT_BUTTON_BACK, motionArgs.buttonState); in TEST_F()
8199 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8200 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
8201 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8203 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8204 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8205 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8218 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8219 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8220 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
8222 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8223 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
8224 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
8228 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8229 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
8230 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8232 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8233 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8234 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8247 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8248 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8249 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
8251 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8252 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
8253 ASSERT_EQ(AMOTION_EVENT_BUTTON_FORWARD, motionArgs.buttonState); in TEST_F()
8257 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8258 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
8259 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8261 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8262 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8263 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8274 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8275 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8276 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_PRIMARY, motionArgs.buttonState); in TEST_F()
8278 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8279 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
8280 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_PRIMARY, motionArgs.buttonState); in TEST_F()
8284 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8285 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
8286 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8288 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8289 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8290 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8295 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8296 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8297 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_SECONDARY, motionArgs.buttonState); in TEST_F()
8299 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8300 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_PRESS, motionArgs.action); in TEST_F()
8301 ASSERT_EQ(AMOTION_EVENT_BUTTON_STYLUS_SECONDARY, motionArgs.buttonState); in TEST_F()
8305 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8306 ASSERT_EQ(AMOTION_EVENT_ACTION_BUTTON_RELEASE, motionArgs.action); in TEST_F()
8307 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8309 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8310 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8311 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8316 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8317 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
8318 ASSERT_EQ(0, motionArgs.buttonState); in TEST_F()
8384 NotifyMotionArgs motionArgs; in TEST_F() local
8390 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8391 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
8392 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
8397 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8398 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8399 ASSERT_EQ(ToolType::ERASER, motionArgs.pointerProperties[0].toolType); in TEST_F()
8405 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8406 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8407 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
8413 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8414 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8415 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
8421 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8422 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8423 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
8429 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8430 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8431 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
8437 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8438 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8439 ASSERT_EQ(ToolType::MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
8445 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8446 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8447 ASSERT_EQ(ToolType::MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
8453 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8454 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8455 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
8461 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8462 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8463 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
8469 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8470 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8471 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
8477 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8478 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8479 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
8484 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8485 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8486 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
8491 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8492 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8493 ASSERT_EQ(ToolType::ERASER, motionArgs.pointerProperties[0].toolType); in TEST_F()
8498 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8499 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8500 ASSERT_EQ(ToolType::MOUSE, motionArgs.pointerProperties[0].toolType); in TEST_F()
8505 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8506 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8507 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
8512 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8513 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8514 ASSERT_EQ(ToolType::STYLUS, motionArgs.pointerProperties[0].toolType); in TEST_F()
8523 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8524 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
8525 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
8535 NotifyMotionArgs motionArgs; in TEST_F() local
8541 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8542 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
8543 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8546 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8547 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
8548 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8554 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8555 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
8556 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8562 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8563 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
8564 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8567 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8568 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
8569 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8575 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8576 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
8577 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8580 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8581 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
8582 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8585 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8586 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
8587 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8593 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8594 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
8595 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8605 NotifyMotionArgs motionArgs; in TEST_F() local
8612 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8613 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
8614 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8617 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8618 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
8619 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8625 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8626 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
8627 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8633 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8634 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
8635 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8638 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8639 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
8640 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8646 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8647 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
8648 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8651 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8652 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_ENTER, motionArgs.action); in TEST_F()
8653 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8656 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8657 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
8658 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8664 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8665 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_EXIT, motionArgs.action); in TEST_F()
8666 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], in TEST_F()
8739 NotifyMotionArgs motionArgs; in TEST_F() local
8743 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8744 ASSERT_EQ(AMOTION_EVENT_ACTION_HOVER_MOVE, motionArgs.action); in TEST_F()
8745 ASSERT_EQ(ui::LogicalDisplayId::INVALID, motionArgs.displayId); in TEST_F()
8787 NotifyMotionArgs motionArgs; in TEST_F() local
8807 NotifyMotionArgs motionArgs; in TEST_F() local
8811 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8812 EXPECT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
8839 NotifyMotionArgs motionArgs; in TEST_F() local
8840 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8841 EXPECT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
8849 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8850 EXPECT_EQ(AMOTION_EVENT_ACTION_CANCEL, motionArgs.action); in TEST_F()
8867 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8868 EXPECT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
8931 NotifyMotionArgs motionArgs; in TEST_F() local
8938 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8939 ASSERT_EQ(frames, motionArgs.videoFrames); in TEST_F()
8946 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8947 ASSERT_EQ(std::vector<TouchVideoFrame>(), motionArgs.videoFrames); in TEST_F()
8956 NotifyMotionArgs motionArgs; in TEST_F() local
8967 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8968 ASSERT_EQ(frames, motionArgs.videoFrames); in TEST_F()
8981 NotifyMotionArgs motionArgs; in TEST_F() local
8992 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
8998 ASSERT_EQ(frames, motionArgs.videoFrames); in TEST_F()
9002 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9016 NotifyMotionArgs motionArgs; in TEST_F() local
9022 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9023 ASSERT_EQ(frames, motionArgs.videoFrames); in TEST_F()
9039 NotifyMotionArgs motionArgs; in TEST_F() local
9045 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9053 ASSERT_EQ(frames, motionArgs.videoFrames); in TEST_F()
9092 NotifyMotionArgs motionArgs; in TEST_F() local
9099 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9100 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9101 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9107 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9108 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9109 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9114 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9115 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
9116 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9122 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9123 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9124 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9137 NotifyMotionArgs motionArgs; in TEST_F() local
9144 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9145 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9146 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9151 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9152 ASSERT_EQ(AMOTION_EVENT_ACTION_CANCEL, motionArgs.action); in TEST_F()
9170 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9171 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9172 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9185 NotifyMotionArgs motionArgs; in TEST_F() local
9192 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9193 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9194 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9201 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9202 ASSERT_EQ(ACTION_POINTER_1_DOWN, motionArgs.action); in TEST_F()
9203 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[1].toolType); in TEST_F()
9211 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9212 ASSERT_EQ(ACTION_POINTER_0_UP, motionArgs.action); in TEST_F()
9213 ASSERT_EQ(AMOTION_EVENT_FLAG_CANCELED, motionArgs.flags); in TEST_F()
9220 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9221 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9222 ASSERT_EQ(uint32_t(1), motionArgs.getPointerCount()); in TEST_F()
9229 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9230 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9231 ASSERT_EQ(uint32_t(1), motionArgs.getPointerCount()); in TEST_F()
9238 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9239 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9240 ASSERT_EQ(uint32_t(1), motionArgs.getPointerCount()); in TEST_F()
9245 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9246 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
9247 ASSERT_NE(AMOTION_EVENT_FLAG_CANCELED, motionArgs.flags); in TEST_F()
9260 NotifyMotionArgs motionArgs; in TEST_F() local
9267 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9268 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9269 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9276 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9277 ASSERT_EQ(ACTION_POINTER_1_DOWN, motionArgs.action); in TEST_F()
9278 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9286 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9287 ASSERT_EQ(ACTION_POINTER_0_UP, motionArgs.action); in TEST_F()
9288 ASSERT_EQ(AMOTION_EVENT_FLAG_CANCELED, motionArgs.flags); in TEST_F()
9295 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9296 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9302 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9303 ASSERT_EQ(AMOTION_EVENT_ACTION_CANCEL, motionArgs.action); in TEST_F()
9311 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9312 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9313 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9314 ASSERT_EQ(uint32_t(1), motionArgs.getPointerCount()); in TEST_F()
9320 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9321 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9327 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9328 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9329 ASSERT_EQ(uint32_t(1), motionArgs.getPointerCount()); in TEST_F()
9335 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9336 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9337 ASSERT_EQ(uint32_t(1), motionArgs.getPointerCount()); in TEST_F()
9343 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9344 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
9345 ASSERT_NE(AMOTION_EVENT_FLAG_CANCELED, motionArgs.flags); in TEST_F()
9358 NotifyMotionArgs motionArgs; in TEST_F() local
9365 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9366 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9367 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9374 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9375 ASSERT_EQ(ACTION_POINTER_1_DOWN, motionArgs.action); in TEST_F()
9376 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9383 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9384 ASSERT_EQ(ACTION_POINTER_1_UP, motionArgs.action); in TEST_F()
9385 ASSERT_EQ(AMOTION_EVENT_FLAG_CANCELED, motionArgs.flags); in TEST_F()
9392 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9393 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9394 ASSERT_EQ(uint32_t(1), motionArgs.getPointerCount()); in TEST_F()
9400 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9401 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9408 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9409 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9414 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9415 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
9416 ASSERT_NE(AMOTION_EVENT_FLAG_CANCELED, motionArgs.flags); in TEST_F()
9430 NotifyMotionArgs motionArgs; in TEST_F() local
9438 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9439 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9440 ASSERT_EQ(uint32_t(1), motionArgs.getPointerCount()); in TEST_F()
9447 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9448 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9449 ASSERT_EQ(uint32_t(1), motionArgs.getPointerCount()); in TEST_F()
9457 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9458 ASSERT_EQ(ACTION_POINTER_1_DOWN, motionArgs.action); in TEST_F()
9459 ASSERT_EQ(uint32_t(2), motionArgs.getPointerCount()); in TEST_F()
9466 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9467 ASSERT_EQ(ACTION_POINTER_1_UP, motionArgs.action); in TEST_F()
9468 ASSERT_EQ(uint32_t(2), motionArgs.getPointerCount()); in TEST_F()
9476 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9477 ASSERT_EQ(AMOTION_EVENT_ACTION_UP, motionArgs.action); in TEST_F()
9478 ASSERT_EQ(uint32_t(1), motionArgs.getPointerCount()); in TEST_F()
9635 NotifyMotionArgs motionArgs; in TEST_F() local
9641 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9642 ASSERT_EQ(ui::LogicalDisplayId::DEFAULT, motionArgs.displayId); in TEST_F()
9648 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9649 ASSERT_EQ(SECONDARY_DISPLAY_ID, motionArgs.displayId); in TEST_F()
9820 NotifyMotionArgs motionArgs; in TEST_F() local
9835 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9836 ASSERT_EQ(1U, motionArgs.getPointerCount()); in TEST_F()
9837 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9838 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9839 ASSERT_EQ(MotionClassification::NONE, motionArgs.classification); in TEST_F()
9841 assertPointerCoords(motionArgs.pointerCoords[0], 0, 0, 1, 0, 0, 0, 0, 0, 0, 0)); in TEST_F()
9857 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9858 ASSERT_EQ(1U, motionArgs.getPointerCount()); in TEST_F()
9859 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9860 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9861 ASSERT_EQ(MotionClassification::TWO_FINGER_SWIPE, motionArgs.classification); in TEST_F()
9862 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], 0, in TEST_F()
9880 NotifyMotionArgs motionArgs; in TEST_F() local
9895 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9896 ASSERT_EQ(1U, motionArgs.getPointerCount()); in TEST_F()
9897 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9898 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9899 ASSERT_EQ(MotionClassification::NONE, motionArgs.classification); in TEST_F()
9901 assertPointerCoords(motionArgs.pointerCoords[0], 0, 0, 1, 0, 0, 0, 0, 0, 0, 0)); in TEST_F()
9917 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9918 ASSERT_EQ(1U, motionArgs.getPointerCount()); in TEST_F()
9919 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
9920 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9921 ASSERT_EQ(MotionClassification::TWO_FINGER_SWIPE, motionArgs.classification); in TEST_F()
9923 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], 0, in TEST_F()
9937 NotifyMotionArgs motionArgs; in TEST_F() local
9951 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9952 ASSERT_EQ(1U, motionArgs.getPointerCount()); in TEST_F()
9953 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9954 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9955 ASSERT_EQ(MotionClassification::NONE, motionArgs.classification); in TEST_F()
9958 assertPointerCoords(motionArgs.pointerCoords[0], 0, 0, 1, 0, 0, 0, 0, 0, 0, 0)); in TEST_F()
9975 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9977 ASSERT_EQ(1U, motionArgs.getPointerCount()); in TEST_F()
9978 ASSERT_EQ(AMOTION_EVENT_ACTION_CANCEL, motionArgs.action); in TEST_F()
9979 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9980 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9981 ASSERT_EQ(1U, motionArgs.getPointerCount()); in TEST_F()
9982 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
9983 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
9984 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9985 ASSERT_EQ(MotionClassification::NONE, motionArgs.classification); in TEST_F()
9986 ASSERT_EQ(2U, motionArgs.getPointerCount()); in TEST_F()
9987 ASSERT_EQ(AMOTION_EVENT_ACTION_POINTER_DOWN, motionArgs.action & AMOTION_EVENT_ACTION_MASK); in TEST_F()
9988 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
9989 ASSERT_EQ(MotionClassification::NONE, motionArgs.classification); in TEST_F()
9996 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], cookedX1, in TEST_F()
9999 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], cookedX2, in TEST_F()
10015 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
10016 ASSERT_EQ(2U, motionArgs.getPointerCount()); in TEST_F()
10017 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
10018 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
10019 ASSERT_EQ(MotionClassification::NONE, motionArgs.classification); in TEST_F()
10020 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[0], cookedX1, in TEST_F()
10023 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(motionArgs.pointerCoords[1], cookedX2, in TEST_F()
10031 NotifyMotionArgs motionArgs; in TEST_F() local
10044 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
10045 ASSERT_EQ(1U, motionArgs.getPointerCount()); in TEST_F()
10046 ASSERT_EQ(AMOTION_EVENT_ACTION_DOWN, motionArgs.action); in TEST_F()
10047 ASSERT_EQ(MotionClassification::NONE, motionArgs.classification); in TEST_F()
10048 ASSERT_EQ(0, motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_GESTURE_X_OFFSET)); in TEST_F()
10049 ASSERT_EQ(0, motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_GESTURE_Y_OFFSET)); in TEST_F()
10066 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyMotionWasCalled(&motionArgs)); in TEST_F()
10067 ASSERT_EQ(1U, motionArgs.getPointerCount()); in TEST_F()
10068 ASSERT_EQ(AMOTION_EVENT_ACTION_MOVE, motionArgs.action); in TEST_F()
10069 ASSERT_EQ(MotionClassification::TWO_FINGER_SWIPE, motionArgs.classification); in TEST_F()
10070 ASSERT_LT(motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_GESTURE_X_OFFSET), 0); in TEST_F()
10071 ASSERT_GT(motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_GESTURE_Y_OFFSET), 0); in TEST_F()