OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:reportDef
(Results
1 - 9
of
9
) sorted by null
/hardware/libhardware/tests/input/evdev/
SwitchInputMapper_test.cpp
47
MockInputReportDefinition
reportDef
;
52
EXPECT_CALL(
reportDef
, addCollection(INPUT_COLLECTION_ID_SWITCH, 1));
53
EXPECT_CALL(
reportDef
, declareUsages(INPUT_COLLECTION_ID_SWITCH, _, 2))
57
EXPECT_TRUE(mMapper->configureInputReport(&deviceNode, &
reportDef
));
61
MockInputReportDefinition
reportDef
;
64
EXPECT_CALL(
reportDef
, addCollection(_, _)).Times(0);
65
EXPECT_CALL(
reportDef
, declareUsages(_, _, _)).Times(0);
67
EXPECT_FALSE(mMapper->configureInputReport(&deviceNode, &
reportDef
));
71
MockInputReportDefinition
reportDef
;
75
EXPECT_CALL(
reportDef
, addCollection(_, _))
[
all
...]
MouseInputMapper_test.cpp
47
MockInputReportDefinition
reportDef
;
54
EXPECT_CALL(
reportDef
, addCollection(id, 1));
55
EXPECT_CALL(
reportDef
, declareUsage(id, INPUT_USAGE_AXIS_X, _, _, _));
56
EXPECT_CALL(
reportDef
, declareUsage(id, INPUT_USAGE_AXIS_Y, _, _, _));
57
EXPECT_CALL(
reportDef
, declareUsages(id, _, 3))
63
EXPECT_TRUE(mMapper->configureInputReport(&deviceNode, &
reportDef
));
67
MockInputReportDefinition
reportDef
;
70
EXPECT_CALL(
reportDef
, addCollection(INPUT_COLLECTION_ID_MOUSE, 1));
71
EXPECT_CALL(
reportDef
, declareUsage(_, _, _, _, _)).Times(0);
72
EXPECT_CALL(
reportDef
, declareUsages(_, _, _)).Times(0)
[
all
...]
MockInputHost.h
78
MOCK_METHOD1(freeReportDefinition, void(InputReportDefinition*
reportDef
));
/hardware/libhardware/modules/input/evdev/
InputMapper.h
68
virtual void setInputReportDefinition(InputReportDefinition*
reportDef
) final {
69
mInputReportDef =
reportDef
;
71
virtual void setOutputReportDefinition(InputReportDefinition*
reportDef
) final {
72
mOutputReportDef =
reportDef
;
InputDevice.cpp
228
auto
reportDef
= mHost->createInputReportDefinition();
229
if (mapper->configureInputReport(mDeviceNode.get(),
reportDef
)) {
230
mDeviceDefinition->addReport(
reportDef
);
232
mHost->freeReportDefinition(
reportDef
);
235
reportDef
= mHost->createOutputReportDefinition();
236
if (mapper->configureOutputReport(mDeviceNode.get(),
reportDef
)) {
237
mDeviceDefinition->addReport(
reportDef
);
239
mHost->freeReportDefinition(
reportDef
);