Lines Matching refs:mFakeEventHub
1358 std::shared_ptr<FakeEventHub> mFakeEventHub; member in android::InputReaderTest
1362 mFakeEventHub = std::make_unique<FakeEventHub>(); in SetUp()
1366 mReader = std::make_unique<InstrumentedInputReader>(mFakeEventHub, mFakePolicy, in SetUp()
1377 mFakeEventHub->addDevice(eventHubId, name, classes); in addDevice()
1380 mFakeEventHub->addConfigurationMap(eventHubId, configuration); in addDevice()
1382 mFakeEventHub->finishDeviceScan(); in addDevice()
1386 ASSERT_NO_FATAL_FAILURE(mFakeEventHub->assertQueueIsEmpty()); in addDevice()
1632 mFakeEventHub->enqueueEvent(0, eventHubId, EV_KEY, KEY_A, 1); in TEST_F()
1634 ASSERT_NO_FATAL_FAILURE(mFakeEventHub->assertQueueIsEmpty()); in TEST_F()
2013 std::shared_ptr<FakeEventHub> mFakeEventHub; member in android::InputDeviceTest
2021 mFakeEventHub = std::make_unique<FakeEventHub>(); in SetUp()
2024 mFakeContext = new FakeInputReaderContext(mFakeEventHub, mFakePolicy, mFakeListener); in SetUp()
2026 mFakeEventHub->addDevice(EVENTHUB_ID, DEVICE_NAME, 0); in SetUp()
2105 mFakeEventHub->addConfigurationProperty(EVENTHUB_ID, String8("key"), String8("value")); in TEST_F()
2253 std::shared_ptr<FakeEventHub> mFakeEventHub; member in android::InputMapperTest
2260 mFakeEventHub = std::make_unique<FakeEventHub>(); in SetUp()
2263 mFakeContext = new FakeInputReaderContext(mFakeEventHub, mFakePolicy, mFakeListener); in SetUp()
2269 mFakeEventHub->addDevice(EVENTHUB_ID, DEVICE_NAME, classes); in SetUp()
2282 mFakeEventHub->addConfigurationProperty(EVENTHUB_ID, String8(key), String8(value)); in addConfigurationProperty()
2382 mFakeEventHub->setSwitchState(EVENTHUB_ID, SW_LID, 1); in TEST_F()
2385 mFakeEventHub->setSwitchState(EVENTHUB_ID, SW_LID, 0); in TEST_F()
2459 mFakeEventHub->addKey(EVENTHUB_ID, KEY_HOME, 0, AKEYCODE_HOME, POLICY_FLAG_WAKE); in TEST_F()
2460 mFakeEventHub->addKey(EVENTHUB_ID, 0, USAGE_A, AKEYCODE_A, POLICY_FLAG_WAKE); in TEST_F()
2557 mFakeEventHub->addKey(EVENTHUB_ID, KEY_LEFTSHIFT, 0, AKEYCODE_SHIFT_LEFT, 0); in TEST_F()
2558 mFakeEventHub->addKey(EVENTHUB_ID, KEY_A, 0, AKEYCODE_A, 0); in TEST_F()
2596 mFakeEventHub->addKey(EVENTHUB_ID, KEY_UP, 0, AKEYCODE_DPAD_UP, 0); in TEST_F()
2597 mFakeEventHub->addKey(EVENTHUB_ID, KEY_RIGHT, 0, AKEYCODE_DPAD_RIGHT, 0); in TEST_F()
2598 mFakeEventHub->addKey(EVENTHUB_ID, KEY_DOWN, 0, AKEYCODE_DPAD_DOWN, 0); in TEST_F()
2599 mFakeEventHub->addKey(EVENTHUB_ID, KEY_LEFT, 0, AKEYCODE_DPAD_LEFT, 0); in TEST_F()
2617 mFakeEventHub->addKey(EVENTHUB_ID, KEY_UP, 0, AKEYCODE_DPAD_UP, 0); in TEST_F()
2618 mFakeEventHub->addKey(EVENTHUB_ID, KEY_RIGHT, 0, AKEYCODE_DPAD_RIGHT, 0); in TEST_F()
2619 mFakeEventHub->addKey(EVENTHUB_ID, KEY_DOWN, 0, AKEYCODE_DPAD_DOWN, 0); in TEST_F()
2620 mFakeEventHub->addKey(EVENTHUB_ID, KEY_LEFT, 0, AKEYCODE_DPAD_LEFT, 0); in TEST_F()
2693 mFakeEventHub->addKey(EVENTHUB_ID, KEY_UP, 0, AKEYCODE_DPAD_UP, 0); in TEST_F()
2718 mFakeEventHub->addKey(EVENTHUB_ID, KEY_UP, 0, AKEYCODE_DPAD_UP, 0); in TEST_F()
2753 mFakeEventHub->setKeyCodeState(EVENTHUB_ID, AKEYCODE_A, 1); in TEST_F()
2756 mFakeEventHub->setKeyCodeState(EVENTHUB_ID, AKEYCODE_A, 0); in TEST_F()
2765 mFakeEventHub->setScanCodeState(EVENTHUB_ID, KEY_A, 1); in TEST_F()
2768 mFakeEventHub->setScanCodeState(EVENTHUB_ID, KEY_A, 0); in TEST_F()
2777 mFakeEventHub->addKey(EVENTHUB_ID, KEY_A, 0, AKEYCODE_A, 0); in TEST_F()
2787 mFakeEventHub->addLed(EVENTHUB_ID, LED_CAPSL, true /*initially on*/); in TEST_F()
2788 mFakeEventHub->addLed(EVENTHUB_ID, LED_NUML, false /*initially off*/); in TEST_F()
2789 mFakeEventHub->addLed(EVENTHUB_ID, LED_SCROLLL, false /*initially off*/); in TEST_F()
2790 mFakeEventHub->addKey(EVENTHUB_ID, KEY_CAPSLOCK, 0, AKEYCODE_CAPS_LOCK, 0); in TEST_F()
2791 mFakeEventHub->addKey(EVENTHUB_ID, KEY_NUMLOCK, 0, AKEYCODE_NUM_LOCK, 0); in TEST_F()
2792 mFakeEventHub->addKey(EVENTHUB_ID, KEY_SCROLLLOCK, 0, AKEYCODE_SCROLL_LOCK, 0); in TEST_F()
2799 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_CAPSL)); in TEST_F()
2800 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_NUML)); in TEST_F()
2801 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_SCROLLL)); in TEST_F()
2806 ASSERT_TRUE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_CAPSL)); in TEST_F()
2807 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_NUML)); in TEST_F()
2808 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_SCROLLL)); in TEST_F()
2814 ASSERT_TRUE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_CAPSL)); in TEST_F()
2815 ASSERT_TRUE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_NUML)); in TEST_F()
2816 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_SCROLLL)); in TEST_F()
2822 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_CAPSL)); in TEST_F()
2823 ASSERT_TRUE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_NUML)); in TEST_F()
2824 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_SCROLLL)); in TEST_F()
2830 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_CAPSL)); in TEST_F()
2831 ASSERT_TRUE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_NUML)); in TEST_F()
2832 ASSERT_TRUE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_SCROLLL)); in TEST_F()
2838 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_CAPSL)); in TEST_F()
2839 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_NUML)); in TEST_F()
2840 ASSERT_TRUE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_SCROLLL)); in TEST_F()
2846 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_CAPSL)); in TEST_F()
2847 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_NUML)); in TEST_F()
2848 ASSERT_FALSE(mFakeEventHub->getLedState(EVENTHUB_ID, LED_SCROLLL)); in TEST_F()
2854 mFakeEventHub->addKey(EVENTHUB_ID, KEY_UP, 0, AKEYCODE_DPAD_UP, 0); in TEST_F()
2855 mFakeEventHub->addKey(EVENTHUB_ID, KEY_RIGHT, 0, AKEYCODE_DPAD_RIGHT, 0); in TEST_F()
2856 mFakeEventHub->addKey(EVENTHUB_ID, KEY_DOWN, 0, AKEYCODE_DPAD_DOWN, 0); in TEST_F()
2857 mFakeEventHub->addKey(EVENTHUB_ID, KEY_LEFT, 0, AKEYCODE_DPAD_LEFT, 0); in TEST_F()
2869 mFakeEventHub->addDevice(SECOND_EVENTHUB_ID, DEVICE_NAME, 0 /*classes*/); in TEST_F()
2870 mFakeEventHub->addKey(SECOND_EVENTHUB_ID, KEY_UP, 0, AKEYCODE_DPAD_UP, 0); in TEST_F()
2871 mFakeEventHub->addKey(SECOND_EVENTHUB_ID, KEY_RIGHT, 0, AKEYCODE_DPAD_RIGHT, 0); in TEST_F()
2872 mFakeEventHub->addKey(SECOND_EVENTHUB_ID, KEY_DOWN, 0, AKEYCODE_DPAD_DOWN, 0); in TEST_F()
2873 mFakeEventHub->addKey(SECOND_EVENTHUB_ID, KEY_LEFT, 0, AKEYCODE_DPAD_LEFT, 0); in TEST_F()
2945 mFakeEventHub->addKey(EVENTHUB_ID, KEY_HOME, 0, AKEYCODE_HOME, 0); in TEST_F()
2946 mFakeEventHub->addKey(EVENTHUB_ID, KEY_PLAY, 0, AKEYCODE_MEDIA_PLAY, 0); in TEST_F()
2947 mFakeEventHub->addKey(EVENTHUB_ID, KEY_PLAYPAUSE, 0, AKEYCODE_MEDIA_PLAY_PAUSE, in TEST_F()
2983 mFakeEventHub->addKey(EVENTHUB_ID, KEY_HOME, 0, AKEYCODE_HOME, POLICY_FLAG_WAKE); in TEST_F()
2984 mFakeEventHub->addKey(EVENTHUB_ID, KEY_DOWN, 0, AKEYCODE_DPAD_DOWN, 0); in TEST_F()
2985 mFakeEventHub->addKey(EVENTHUB_ID, KEY_PLAY, 0, AKEYCODE_MEDIA_PLAY, POLICY_FLAG_WAKE); in TEST_F()
3927 mFakeEventHub->addVirtualKeyDefinition(EVENTHUB_ID, VIRTUAL_KEYS[0]); in prepareVirtualKeys()
3928 mFakeEventHub->addVirtualKeyDefinition(EVENTHUB_ID, VIRTUAL_KEYS[1]); in prepareVirtualKeys()
3929 mFakeEventHub->addKey(EVENTHUB_ID, KEY_HOME, 0, AKEYCODE_HOME, POLICY_FLAG_WAKE); in prepareVirtualKeys()
3930 mFakeEventHub->addKey(EVENTHUB_ID, KEY_MENU, 0, AKEYCODE_MENU, POLICY_FLAG_WAKE); in prepareVirtualKeys()
3991 mFakeEventHub->addKey(EVENTHUB_ID, BTN_TOUCH, 0, AKEYCODE_UNKNOWN, 0); in prepareButtons()
3996 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_X, RAW_X_MIN, RAW_X_MAX, 0, 0); in prepareAxes()
3997 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_Y, RAW_Y_MIN, RAW_Y_MAX, 0, 0); in prepareAxes()
4000 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_PRESSURE, RAW_PRESSURE_MIN, in prepareAxes()
4004 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_TOOL_WIDTH, RAW_TOOL_MIN, RAW_TOOL_MAX, 0, in prepareAxes()
4008 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_DISTANCE, RAW_DISTANCE_MIN, in prepareAxes()
4012 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_TILT_X, RAW_TILT_MIN, RAW_TILT_MAX, 0, 0); in prepareAxes()
4013 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_TILT_Y, RAW_TILT_MIN, RAW_TILT_MAX, 0, 0); in prepareAxes()
4069 mFakeEventHub->addRelativeAxis(EVENTHUB_ID, REL_X); in TEST_F()
4070 mFakeEventHub->addRelativeAxis(EVENTHUB_ID, REL_Y); in TEST_F()
5137 mFakeEventHub->addKey(EVENTHUB_ID, BTN_TOOL_FINGER, 0, AKEYCODE_UNKNOWN, 0); in TEST_F()
5299 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_POSITION_X, RAW_X_MIN, RAW_X_MAX, 0, 0); in prepareAxes()
5300 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_POSITION_Y, RAW_Y_MIN, RAW_Y_MAX, 0, 0); in prepareAxes()
5303 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_TOUCH_MAJOR, RAW_TOUCH_MIN, in prepareAxes()
5306 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_TOUCH_MINOR, RAW_TOUCH_MIN, in prepareAxes()
5311 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_WIDTH_MAJOR, RAW_TOOL_MIN, RAW_TOOL_MAX, in prepareAxes()
5314 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_WIDTH_MINOR, RAW_TOOL_MAX, in prepareAxes()
5319 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_ORIENTATION, RAW_ORIENTATION_MIN, in prepareAxes()
5323 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_PRESSURE, RAW_PRESSURE_MIN, in prepareAxes()
5327 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_DISTANCE, RAW_DISTANCE_MIN, in prepareAxes()
5331 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_TRACKING_ID, RAW_ID_MIN, RAW_ID_MAX, 0, in prepareAxes()
5335 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_SLOT, RAW_SLOT_MIN, RAW_SLOT_MAX, 0, 0); in prepareAxes()
5336 mFakeEventHub->setAbsoluteAxisValue(EVENTHUB_ID, ABS_MT_SLOT, 0); in prepareAxes()
5339 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_TOOL_TYPE, 0, MT_TOOL_MAX, 0, 0); in prepareAxes()
6628 mFakeEventHub->addKey(EVENTHUB_ID, BTN_TOUCH, 0, AKEYCODE_UNKNOWN, 0); in TEST_F()
6850 mFakeEventHub->addDevice(SECOND_EVENTHUB_ID, DEVICE_NAME, 0 /*classes*/); in TEST_F()
6851 mFakeEventHub->addAbsoluteAxis(SECOND_EVENTHUB_ID, ABS_MT_POSITION_X, RAW_X_MIN, RAW_X_MAX, in TEST_F()
6853 mFakeEventHub->addAbsoluteAxis(SECOND_EVENTHUB_ID, ABS_MT_POSITION_Y, RAW_Y_MIN, RAW_Y_MAX, in TEST_F()
6855 mFakeEventHub->addAbsoluteAxis(SECOND_EVENTHUB_ID, ABS_MT_TRACKING_ID, RAW_ID_MIN, RAW_ID_MAX, in TEST_F()
6857 mFakeEventHub->addAbsoluteAxis(SECOND_EVENTHUB_ID, ABS_MT_SLOT, RAW_SLOT_MIN, RAW_SLOT_MAX, in TEST_F()
6859 mFakeEventHub->setAbsoluteAxisValue(SECOND_EVENTHUB_ID, ABS_MT_SLOT, 0 /*value*/); in TEST_F()
6860 mFakeEventHub->addConfigurationProperty(SECOND_EVENTHUB_ID, String8("touch.deviceType"), in TEST_F()
6925 mFakeEventHub->setVideoFrames({{EVENTHUB_ID, frames}}); in TEST_F()
6955 mFakeEventHub->setVideoFrames({{EVENTHUB_ID, frames}}); in TEST_F()
6977 mFakeEventHub->setVideoFrames({{EVENTHUB_ID, frames}}); in TEST_F()