Lines Matching full:deviceid
164 void setPointerController(int32_t deviceId, const sp<FakePointerController>& controller) {
165 mPointerControllers.add(deviceId, controller);
190 virtual sp<PointerControllerInterface> obtainPointerController(int32_t deviceId) {
191 return mPointerControllers.valueFor(deviceId);
347 void addDevice(int32_t deviceId, const String8& name, uint32_t classes) {
350 mDevices.add(deviceId, device);
352 enqueueEvent(ARBITRARY_TIME, deviceId, EventHubInterface::DEVICE_ADDED, 0, 0);
355 void removeDevice(int32_t deviceId) {
356 delete mDevices.valueFor(deviceId);
357 mDevices.removeItem(deviceId);
359 enqueueEvent(ARBITRARY_TIME, deviceId, EventHubInterface::DEVICE_REMOVED, 0, 0);
366 void addConfigurationProperty(int32_t deviceId, const String8& key, const String8& value) {
367 Device* device = getDevice(deviceId);
371 void addConfigurationMap(int32_t deviceId, const PropertyMap* configuration) {
372 Device* device = getDevice(deviceId);
376 void addAbsoluteAxis(int32_t deviceId, int axis,
378 Device* device = getDevice(deviceId);
390 void addRelativeAxis(int32_t deviceId, int32_t axis) {
391 Device* device = getDevice(deviceId);
395 void setKeyCodeState(int32_t deviceId, int32_t keyCode, int32_t state) {
396 Device* device = getDevice(deviceId);
400 void setScanCodeState(int32_t deviceId, int32_t scanCode, int32_t state) {
401 Device* device = getDevice(deviceId);
405 void setSwitchState(int32_t deviceId, int32_t switchCode, int32_t state) {
406 Device* device = getDevice(deviceId);
410 void setAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t value) {
411 Device* device = getDevice(deviceId);
415 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
417 Device* device = getDevice(deviceId);
429 void addLed(int32_t deviceId, int32_t led, bool initialState) {
430 Device* device = getDevice(deviceId);
434 bool getLedState(int32_t deviceId, int32_t led) {
435 Device* device = getDevice(deviceId);
443 void addVirtualKeyDefinition(int32_t deviceId, const VirtualKeyDefinition& definition) {
444 Device* device = getDevice(deviceId);
448 void enqueueEvent(nsecs_t when, int32_t deviceId, int32_t type,
452 event.deviceId = deviceId;
459 setAbsoluteAxisValue(deviceId, code, value);
469 Device* getDevice(int32_t deviceId) const {
470 ssize_t index = mDevices.indexOfKey(deviceId);
474 virtual uint32_t getDeviceClasses(int32_t deviceId) const {
475 Device* device = getDevice(deviceId);
479 virtual InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const {
480 Device* device = getDevice(deviceId);
488 virtual void getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const {
489 Device* device = getDevice(deviceId);
495 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
497 Device* device = getDevice(deviceId);
509 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const {
510 Device* device = getDevice(deviceId);
521 virtual status_t mapKey(int32_t deviceId,
524 Device* device = getDevice(deviceId);
577 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const {
578 Device* device = getDevice(deviceId);
588 virtual int32_t getKeyCodeState(int32_t deviceId, int32_t keyCode) const {
589 Device* device = getDevice(deviceId);
599 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const {
600 Device* device = getDevice(deviceId);
610 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis,
612 Device* device = getDevice(deviceId);
624 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
627 Device* device = getDevice(deviceId);
647 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const {
648 Device* device = getDevice(deviceId);
656 virtual bool hasLed(int32_t deviceId, int32_t led) const {
657 Device* device = getDevice(deviceId);
661 virtual void setLedState(int32_t deviceId, int32_t led, bool on) {
662 Device* device = getDevice(deviceId);
675 virtual void getVirtualKeyDefinitions(int32_t deviceId,
679 Device* device = getDevice(deviceId);
953 InputDevice* newDevice(int32_t deviceId, int32_t controllerNumber, const String8& name,
957 int32_t generation = deviceId + 1;
958 return new InputDevice(&mContext, deviceId, generation, controllerNumber, identifier,
963 virtual InputDevice* createDeviceLocked(int32_t deviceId, int32_t controllerNumber,
970 return InputReader::createDeviceLocked(deviceId, controllerNumber, identifier, classes);
1002 void addDevice(int32_t deviceId, const String8& name, uint32_t classes,
1004 mFakeEventHub->addDevice(deviceId, name, classes);
1007 mFakeEventHub->addConfigurationMap(deviceId, configuration);
1015 FakeInputMapper* addDeviceWithFakeInputMapper(int32_t deviceId, int32_t controllerNumber,
1018 InputDevice* device = mReader->newDevice(deviceId, controllerNumber, name, classes);
1022 addDevice(deviceId, name, classes, configuration);
1190 ASSERT_EQ(1, event.deviceId);
1261 ASSERT_EQ(DEVICE_ID, resetArgs.deviceId);
1331 ASSERT_EQ(DEVICE_ID, resetArgs.deviceId);
1441 static void process(InputMapper* mapper, nsecs_t when, int32_t deviceId, int32_t type,
1445 event.deviceId = deviceId;
1587 ASSERT_EQ(DEVICE_ID, args.deviceId);
1602 ASSERT_EQ(DEVICE_ID, args.deviceId);
1619 ASSERT_EQ(DEVICE_ID, args.deviceId);
1636 ASSERT_EQ(DEVICE_ID, args.deviceId);
1653 ASSERT_EQ(DEVICE_ID, args.deviceId);
1670 ASSERT_EQ(DEVICE_ID, args.deviceId);
2064 ASSERT_EQ(DEVICE_ID, args.deviceId);
2086 ASSERT_EQ(DEVICE_ID, args.deviceId);
2819 ASSERT_EQ(DEVICE_ID, args.deviceId);
2835 ASSERT_EQ(DEVICE_ID, args.deviceId);
2870 ASSERT_EQ(DEVICE_ID, keyArgs.deviceId);
2888 ASSERT_EQ(DEVICE_ID, keyArgs.deviceId);
2902 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
2926 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
2949 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
3000 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
3023 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
3066 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
3091 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
3114 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
3898 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
3917 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
3949 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
3978 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
4002 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
4027 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
4054 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
4084 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
4108 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);
4131 ASSERT_EQ(DEVICE_ID, motionArgs.deviceId);