Home
last modified time | relevance | path

Searched refs:FakeEventHub (Results 1 – 9 of 9) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DFakeEventHub.cpp27 const std::string FakeEventHub::BATTERY_DEVPATH = "/sys/devices/mydevice/power_supply/mybattery";
29 FakeEventHub::~FakeEventHub() { in ~FakeEventHub()
35 void FakeEventHub::addDevice(int32_t deviceId, const std::string& name, in addDevice()
45 void FakeEventHub::removeDevice(int32_t deviceId) { in removeDevice()
52 bool FakeEventHub::isDeviceEnabled(int32_t deviceId) const { in isDeviceEnabled()
61 status_t FakeEventHub::enableDevice(int32_t deviceId) { in enableDevice()
76 status_t FakeEventHub::disableDevice(int32_t deviceId) { in disableDevice()
89 void FakeEventHub::finishDeviceScan() { in finishDeviceScan()
93 void FakeEventHub::addConfigurationProperty(int32_t deviceId, const char* key, const char* value) { in addConfigurationProperty()
97 void FakeEventHub::addConfigurationMap(int32_t deviceId, const PropertyMap* configuration) { in addConfigurationMap()
[all …]
DFakeEventHub.h35 class FakeEventHub : public EventHubInterface {
104 virtual ~FakeEventHub();
105 FakeEventHub() {} in FakeEventHub() function
DAndroid.bp55 "FakeEventHub.cpp",
DInputMapperTest.h90 std::shared_ptr<FakeEventHub> mFakeEventHub;
DHardwareStateConverter_test.cpp46 : mFakeEventHub(std::make_shared<FakeEventHub>()), in HardwareStateConverterTest()
99 std::shared_ptr<FakeEventHub> mFakeEventHub;
DInputMapperTest.cpp116 mFakeEventHub = std::make_unique<FakeEventHub>(); in SetUp()
DCapturedTouchpadEventConverter_test.cpp42 : mFakeEventHub(std::make_unique<FakeEventHub>()), in CapturedTouchpadEventConverterTest()
115 std::shared_ptr<FakeEventHub> mFakeEventHub;
DInputReader_test.cpp602 std::shared_ptr<FakeEventHub> mFakeEventHub;
606 mFakeEventHub = std::make_unique<FakeEventHub>(); in SetUp()
1351 ASSERT_EQ(controller.getBatteryCapacity(FakeEventHub::DEFAULT_BATTERY), in TEST_F()
1352 FakeEventHub::BATTERY_CAPACITY); in TEST_F()
1353 ASSERT_EQ(mReader->getBatteryCapacity(deviceId), FakeEventHub::BATTERY_CAPACITY); in TEST_F()
1369 ASSERT_EQ(controller.getBatteryStatus(FakeEventHub::DEFAULT_BATTERY), in TEST_F()
1370 FakeEventHub::BATTERY_STATUS); in TEST_F()
1371 ASSERT_EQ(mReader->getBatteryStatus(deviceId), FakeEventHub::BATTERY_STATUS); in TEST_F()
1386 ASSERT_EQ(mReader->getBatteryDevicePath(deviceId), FakeEventHub::BATTERY_DEVPATH); in TEST_F()
2603 std::shared_ptr<FakeEventHub> mFakeEventHub;
[all …]
DGestureConverter_test.cpp60 mFakeEventHub = std::make_unique<FakeEventHub>(); in SetUp()
85 std::shared_ptr<FakeEventHub> mFakeEventHub;