Home
last modified time | relevance | path

Searched refs:reportDef (Results 1 – 7 of 7) sorted by relevance

/hardware/libhardware/tests/input/evdev/
DMouseInputMapper_test.cpp47 MockInputReportDefinition reportDef; in TEST_F() local
54 EXPECT_CALL(reportDef, addCollection(id, 1)); in TEST_F()
55 EXPECT_CALL(reportDef, declareUsage(id, INPUT_USAGE_AXIS_X, _, _, _)); in TEST_F()
56 EXPECT_CALL(reportDef, declareUsage(id, INPUT_USAGE_AXIS_Y, _, _, _)); in TEST_F()
57 EXPECT_CALL(reportDef, declareUsages(id, _, 3)) in TEST_F()
63 EXPECT_TRUE(mMapper->configureInputReport(&deviceNode, &reportDef)); in TEST_F()
67 MockInputReportDefinition reportDef; in TEST_F() local
70 EXPECT_CALL(reportDef, addCollection(INPUT_COLLECTION_ID_MOUSE, 1)); in TEST_F()
71 EXPECT_CALL(reportDef, declareUsage(_, _, _, _, _)).Times(0); in TEST_F()
72 EXPECT_CALL(reportDef, declareUsages(_, _, _)).Times(0); in TEST_F()
[all …]
DSwitchInputMapper_test.cpp47 MockInputReportDefinition reportDef; in TEST_F() local
52 EXPECT_CALL(reportDef, addCollection(INPUT_COLLECTION_ID_SWITCH, 1)); in TEST_F()
53 EXPECT_CALL(reportDef, declareUsages(INPUT_COLLECTION_ID_SWITCH, _, 2)) in TEST_F()
57 EXPECT_TRUE(mMapper->configureInputReport(&deviceNode, &reportDef)); in TEST_F()
61 MockInputReportDefinition reportDef; in TEST_F() local
64 EXPECT_CALL(reportDef, addCollection(_, _)).Times(0); in TEST_F()
65 EXPECT_CALL(reportDef, declareUsages(_, _, _)).Times(0); in TEST_F()
67 EXPECT_FALSE(mMapper->configureInputReport(&deviceNode, &reportDef)); in TEST_F()
71 MockInputReportDefinition reportDef; in TEST_F() local
75 EXPECT_CALL(reportDef, addCollection(_, _)); in TEST_F()
[all …]
DMockInputHost.h78 MOCK_METHOD1(freeReportDefinition, void(InputReportDefinition* reportDef));
/hardware/libhardware/modules/input/evdev/
DInputMapper.h68 virtual void setInputReportDefinition(InputReportDefinition* reportDef) final { in setInputReportDefinition() argument
69 mInputReportDef = reportDef; in setInputReportDefinition()
71 virtual void setOutputReportDefinition(InputReportDefinition* reportDef) final { in setOutputReportDefinition() argument
72 mOutputReportDef = reportDef; in setOutputReportDefinition()
DInputDevice.cpp215 auto reportDef = mHost->createInputReportDefinition(); in configureDevice() local
216 if (mapper->configureInputReport(mDeviceNode.get(), reportDef)) { in configureDevice()
217 mDeviceDefinition->addReport(reportDef); in configureDevice()
219 mHost->freeReportDefinition(reportDef); in configureDevice()
222 reportDef = mHost->createOutputReportDefinition(); in configureDevice()
223 if (mapper->configureOutputReport(mDeviceNode.get(), reportDef)) { in configureDevice()
224 mDeviceDefinition->addReport(reportDef); in configureDevice()
226 mHost->freeReportDefinition(reportDef); in configureDevice()
DInputHost.cpp97 void InputHost::freeReportDefinition(InputReportDefinition* reportDef) { in freeReportDefinition() argument
98 mCallbacks.free_report_definition(mHost, *reportDef); in freeReportDefinition()
DInputHost.h157 virtual void freeReportDefinition(InputReportDefinition* reportDef) = 0;
178 virtual void freeReportDefinition(InputReportDefinition* reportDef) override;