Lines Matching refs:mFakeEventHub

1085     sp<FakeEventHub> mFakeEventHub;  member in android::InputReaderTest
1089 mFakeEventHub = new FakeEventHub(); in SetUp()
1093 mReader = new InstrumentedInputReader(mFakeEventHub, mFakePolicy, mFakeListener); in SetUp()
1101 mFakeEventHub.clear(); in TearDown()
1106 mFakeEventHub->addDevice(deviceId, name, classes); in addDevice()
1109 mFakeEventHub->addConfigurationMap(deviceId, configuration); in addDevice()
1111 mFakeEventHub->finishDeviceScan(); in addDevice()
1114 mFakeEventHub->assertQueueIsEmpty(); in addDevice()
1339 mFakeEventHub->enqueueEvent(0, 1, EV_KEY, KEY_A, 1); in TEST_F()
1341 ASSERT_NO_FATAL_FAILURE(mFakeEventHub->assertQueueIsEmpty()); in TEST_F()
1363 sp<FakeEventHub> mFakeEventHub; member in android::InputDeviceTest
1371 mFakeEventHub = new FakeEventHub(); in SetUp()
1374 mFakeContext = new FakeInputReaderContext(mFakeEventHub, mFakePolicy, mFakeListener); in SetUp()
1376 mFakeEventHub->addDevice(DEVICE_ID, String8(DEVICE_NAME), 0); in SetUp()
1389 mFakeEventHub.clear(); in TearDown()
1454 mFakeEventHub->addConfigurationProperty(DEVICE_ID, String8("key"), String8("value")); in TEST_F()
1557 sp<FakeEventHub> mFakeEventHub; member in android::InputMapperTest
1564 mFakeEventHub = new FakeEventHub(); in SetUp()
1567 mFakeContext = new FakeInputReaderContext(mFakeEventHub, mFakePolicy, mFakeListener); in SetUp()
1573 mFakeEventHub->addDevice(DEVICE_ID, String8(DEVICE_NAME), 0); in SetUp()
1581 mFakeEventHub.clear(); in TearDown()
1585 mFakeEventHub->addConfigurationProperty(DEVICE_ID, String8(key), String8(value)); in addConfigurationProperty()
1681 mFakeEventHub->setSwitchState(DEVICE_ID, SW_LID, 1); in TEST_F()
1684 mFakeEventHub->setSwitchState(DEVICE_ID, SW_LID, 0); in TEST_F()
1744 mFakeEventHub->addKey(DEVICE_ID, KEY_HOME, 0, AKEYCODE_HOME, POLICY_FLAG_WAKE); in TEST_F()
1745 mFakeEventHub->addKey(DEVICE_ID, 0, USAGE_A, AKEYCODE_A, POLICY_FLAG_WAKE); in TEST_F()
1852 mFakeEventHub->addKey(DEVICE_ID, KEY_LEFTSHIFT, 0, AKEYCODE_SHIFT_LEFT, 0); in TEST_F()
1853 mFakeEventHub->addKey(DEVICE_ID, KEY_A, 0, AKEYCODE_A, 0); in TEST_F()
1895 mFakeEventHub->addKey(DEVICE_ID, KEY_UP, 0, AKEYCODE_DPAD_UP, 0); in TEST_F()
1896 mFakeEventHub->addKey(DEVICE_ID, KEY_RIGHT, 0, AKEYCODE_DPAD_RIGHT, 0); in TEST_F()
1897 mFakeEventHub->addKey(DEVICE_ID, KEY_DOWN, 0, AKEYCODE_DPAD_DOWN, 0); in TEST_F()
1898 mFakeEventHub->addKey(DEVICE_ID, KEY_LEFT, 0, AKEYCODE_DPAD_LEFT, 0); in TEST_F()
1918 mFakeEventHub->addKey(DEVICE_ID, KEY_UP, 0, AKEYCODE_DPAD_UP, 0); in TEST_F()
1919 mFakeEventHub->addKey(DEVICE_ID, KEY_RIGHT, 0, AKEYCODE_DPAD_RIGHT, 0); in TEST_F()
1920 mFakeEventHub->addKey(DEVICE_ID, KEY_DOWN, 0, AKEYCODE_DPAD_DOWN, 0); in TEST_F()
1921 mFakeEventHub->addKey(DEVICE_ID, KEY_LEFT, 0, AKEYCODE_DPAD_LEFT, 0); in TEST_F()
2004 mFakeEventHub->setKeyCodeState(DEVICE_ID, AKEYCODE_A, 1); in TEST_F()
2007 mFakeEventHub->setKeyCodeState(DEVICE_ID, AKEYCODE_A, 0); in TEST_F()
2016 mFakeEventHub->setScanCodeState(DEVICE_ID, KEY_A, 1); in TEST_F()
2019 mFakeEventHub->setScanCodeState(DEVICE_ID, KEY_A, 0); in TEST_F()
2028 mFakeEventHub->addKey(DEVICE_ID, KEY_A, 0, AKEYCODE_A, 0); in TEST_F()
2038 mFakeEventHub->addLed(DEVICE_ID, LED_CAPSL, true /*initially on*/); in TEST_F()
2039 mFakeEventHub->addLed(DEVICE_ID, LED_NUML, false /*initially off*/); in TEST_F()
2040 mFakeEventHub->addLed(DEVICE_ID, LED_SCROLLL, false /*initially off*/); in TEST_F()
2041 mFakeEventHub->addKey(DEVICE_ID, KEY_CAPSLOCK, 0, AKEYCODE_CAPS_LOCK, 0); in TEST_F()
2042 mFakeEventHub->addKey(DEVICE_ID, KEY_NUMLOCK, 0, AKEYCODE_NUM_LOCK, 0); in TEST_F()
2043 mFakeEventHub->addKey(DEVICE_ID, KEY_SCROLLLOCK, 0, AKEYCODE_SCROLL_LOCK, 0); in TEST_F()
2050 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_CAPSL)); in TEST_F()
2051 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_NUML)); in TEST_F()
2052 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_SCROLLL)); in TEST_F()
2059 ASSERT_TRUE(mFakeEventHub->getLedState(DEVICE_ID, LED_CAPSL)); in TEST_F()
2060 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_NUML)); in TEST_F()
2061 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_SCROLLL)); in TEST_F()
2069 ASSERT_TRUE(mFakeEventHub->getLedState(DEVICE_ID, LED_CAPSL)); in TEST_F()
2070 ASSERT_TRUE(mFakeEventHub->getLedState(DEVICE_ID, LED_NUML)); in TEST_F()
2071 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_SCROLLL)); in TEST_F()
2079 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_CAPSL)); in TEST_F()
2080 ASSERT_TRUE(mFakeEventHub->getLedState(DEVICE_ID, LED_NUML)); in TEST_F()
2081 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_SCROLLL)); in TEST_F()
2089 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_CAPSL)); in TEST_F()
2090 ASSERT_TRUE(mFakeEventHub->getLedState(DEVICE_ID, LED_NUML)); in TEST_F()
2091 ASSERT_TRUE(mFakeEventHub->getLedState(DEVICE_ID, LED_SCROLLL)); in TEST_F()
2099 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_CAPSL)); in TEST_F()
2100 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_NUML)); in TEST_F()
2101 ASSERT_TRUE(mFakeEventHub->getLedState(DEVICE_ID, LED_SCROLLL)); in TEST_F()
2109 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_CAPSL)); in TEST_F()
2110 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_NUML)); in TEST_F()
2111 ASSERT_FALSE(mFakeEventHub->getLedState(DEVICE_ID, LED_SCROLLL)); in TEST_F()
2997 mFakeEventHub->addVirtualKeyDefinition(DEVICE_ID, VIRTUAL_KEYS[0]); in prepareVirtualKeys()
2998 mFakeEventHub->addVirtualKeyDefinition(DEVICE_ID, VIRTUAL_KEYS[1]); in prepareVirtualKeys()
2999 mFakeEventHub->addKey(DEVICE_ID, KEY_HOME, 0, AKEYCODE_HOME, POLICY_FLAG_WAKE); in prepareVirtualKeys()
3000 mFakeEventHub->addKey(DEVICE_ID, KEY_MENU, 0, AKEYCODE_MENU, POLICY_FLAG_WAKE); in prepareVirtualKeys()
3061 mFakeEventHub->addKey(DEVICE_ID, BTN_TOUCH, 0, AKEYCODE_UNKNOWN, 0); in prepareButtons()
3066 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_X, in prepareAxes()
3068 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_Y, in prepareAxes()
3072 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_PRESSURE, in prepareAxes()
3076 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_TOOL_WIDTH, in prepareAxes()
3080 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_DISTANCE, in prepareAxes()
3084 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_TILT_X, in prepareAxes()
3086 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_TILT_Y, in prepareAxes()
3148 mFakeEventHub->addRelativeAxis(DEVICE_ID, REL_X); in TEST_F()
3149 mFakeEventHub->addRelativeAxis(DEVICE_ID, REL_Y); in TEST_F()
4229 mFakeEventHub->addKey(DEVICE_ID, BTN_TOOL_FINGER, 0, AKEYCODE_UNKNOWN, 0); in TEST_F()
4394 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_POSITION_X, in prepareAxes()
4396 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_POSITION_Y, in prepareAxes()
4400 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_TOUCH_MAJOR, in prepareAxes()
4403 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_TOUCH_MINOR, in prepareAxes()
4408 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_WIDTH_MAJOR, in prepareAxes()
4411 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_WIDTH_MINOR, in prepareAxes()
4416 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_ORIENTATION, in prepareAxes()
4420 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_PRESSURE, in prepareAxes()
4424 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_DISTANCE, in prepareAxes()
4428 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_TRACKING_ID, in prepareAxes()
4432 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_SLOT, in prepareAxes()
4434 mFakeEventHub->setAbsoluteAxisValue(DEVICE_ID, ABS_MT_SLOT, 0); in prepareAxes()
4437 mFakeEventHub->addAbsoluteAxis(DEVICE_ID, ABS_MT_TOOL_TYPE, in prepareAxes()
5750 mFakeEventHub->addKey(DEVICE_ID, BTN_TOUCH, 0, AKEYCODE_UNKNOWN, 0); in TEST_F()