Home
last modified time | relevance | path

Searched refs:getDeviceContext (Results 1 – 16 of 16) sorted by relevance

/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.cpp120 info->setKeyCharacterMap(getDeviceContext().getKeyCharacterMap()); in populateDeviceInfo()
135 if (getDeviceContext().getAssociatedViewport()) { in findViewport()
136 return getDeviceContext().getAssociatedViewport(); in findViewport()
175 const PropertyMap& config = getDeviceContext().getConfiguration(); in configureParameters()
277 if (getDeviceContext().mapKey(scanCode, usageCode, mMetaState, &keyCode, &keyMetaState, in processKey()
302 getDeviceContext().cancelTouch(when, readTime); in processKey()
344 if (down && getDeviceContext().isExternal() && !mParameters.doNotWakeByDefault && in processKey()
371 return getDeviceContext().getKeyCodeState(keyCode); in getKeyCodeState()
375 return getDeviceContext().getScanCodeState(scanCode); in getScanCodeState()
379 return getDeviceContext().getKeyCodeForKeyLocation(locationKeyCode); in getKeyCodeForKeyLocation()
[all …]
DRotaryEncoderInputMapper.cpp43 if (!getDeviceContext().getConfiguration().tryGetProperty(String8("device.res"), res)) { in populateDeviceInfo()
46 if (!getDeviceContext().getConfiguration().tryGetProperty(String8("device.scalingFactor"), in populateDeviceInfo()
67 mRotaryEncoderScrollAccumulator.configure(getDeviceContext()); in configure()
81 mRotaryEncoderScrollAccumulator.reset(getDeviceContext()); in reset()
111 if (scrolled && getDeviceContext().isExternal()) { in sync()
DVibratorInputMapper.cpp76 return getDeviceContext().getVibratorIds(); in getVibratorIds()
110 getDeviceContext().vibrate(element); in nextStep()
115 getDeviceContext().cancelVibrate(); in nextStep()
132 getDeviceContext().cancelVibrate(); in stopVibrating()
DExternalStylusInputMapper.cpp50 mTouchButtonAccumulator.configure(getDeviceContext()); in configure()
54 mSingleTouchMotionAccumulator.reset(getDeviceContext()); in reset()
55 mTouchButtonAccumulator.reset(getDeviceContext()); in reset()
DSensorInputMapper.cpp66 const auto& config = getDeviceContext().getConfiguration(); in tryGetProperty()
93 dump += StringPrintf(INDENT3 " isDeviceEnabled %d\n", getDeviceContext().isDeviceEnabled()); in dump()
132 mHasHardwareTimestamp = getDeviceContext().hasMscEvent(MSC_TIMESTAMP); in configure()
136 if (!(getAbsAxisUsage(abs, getDeviceContext().getDeviceClasses()) in configure()
149 auto ret = getDeviceContext().mapSensor(abs); in configure()
201 InputDeviceIdentifier identifier = getDeviceContext().getDeviceIdentifier(); in createSensor()
349 getDeviceContext().enableDevice(); in enableSensor()
374 getDeviceContext().disableDevice(); in disableSensor()
DCursorInputMapper.cpp130 mCursorScrollAccumulator.configure(getDeviceContext()); in configure()
245 if (getDeviceContext().getConfiguration().tryGetProperty(String8("cursor.mode"), in configureParameters()
255 getDeviceContext().getConfiguration().tryGetProperty(String8("cursor.orientationAware"), in configureParameters()
280 mCursorButtonAccumulator.reset(getDeviceContext()); in reset()
281 mCursorMotionAccumulator.reset(getDeviceContext()); in reset()
282 mCursorScrollAccumulator.reset(getDeviceContext()); in reset()
386 if ((buttonsPressed || moved || scrolled) && getDeviceContext().isExternal()) { in sync()
489 return getDeviceContext().getScanCodeState(scanCode); in getScanCodeState()
DInputMapper.cpp98 return getDeviceContext().getAbsoluteAxisInfo(axis, axisInfo); in getAbsoluteAxisInfo()
102 getDeviceContext().bumpGeneration(); in bumpGeneration()
DInputMapper.h47 inline InputDeviceContext& getDeviceContext() { return mDeviceContext; } in getDeviceContext() function
48 inline InputDeviceContext& getDeviceContext() const { return mDeviceContext; }; in getDeviceContext() function
DJoystickInputMapper.cpp113 if (!(getAbsAxisUsage(abs, getDeviceContext().getDeviceClasses()) in configure()
123 const bool explicitlyMapped = !getDeviceContext().mapAxis(abs, &axisInfo); in configure()
339 if (getDeviceContext().getAssociatedViewport()) { in sync()
340 displayId = getDeviceContext().getAssociatedViewport()->displayId; in sync()
DSwitchInputMapper.cpp68 return getDeviceContext().getSwitchState(switchCode); in getSwitchState()
DTouchInputMapper.cpp358 mCursorScrollAccumulator.configure(getDeviceContext()); in configure()
359 mTouchButtonAccumulator.configure(getDeviceContext()); in configure()
420 mParameters.gestureMode = getDeviceContext().hasInputProperty(INPUT_PROP_SEMI_MT) in configureParameters()
425 if (getDeviceContext().getConfiguration().tryGetProperty(String8("touch.gestureMode"), in configureParameters()
436 if (getDeviceContext().hasInputProperty(INPUT_PROP_DIRECT)) { in configureParameters()
439 } else if (getDeviceContext().hasInputProperty(INPUT_PROP_POINTER)) { in configureParameters()
442 } else if (getDeviceContext().hasRelativeAxis(REL_X) || in configureParameters()
443 getDeviceContext().hasRelativeAxis(REL_Y)) { in configureParameters()
452 mParameters.hasButtonUnderPad = getDeviceContext().hasInputProperty(INPUT_PROP_BUTTONPAD); in configureParameters()
455 if (getDeviceContext().getConfiguration().tryGetProperty(String8("touch.deviceType"), in configureParameters()
[all …]
DSingleTouchInputMapper.cpp27 mSingleTouchMotionAccumulator.reset(getDeviceContext()); in reset()
DMultiTouchInputMapper.cpp382 mMultiTouchMotionAccumulator.configure(getDeviceContext(), slotCount, in configureRawPointerAxes()
385 mMultiTouchMotionAccumulator.configure(getDeviceContext(), MAX_POINTERS, in configureRawPointerAxes()
/frameworks/native/services/inputflinger/reader/controller/
DPeripheralController.cpp296 const std::vector<int32_t> rawLightIds = getDeviceContext().getRawLightIds(); in dump()
300 std::optional<RawLightInfo> rawInfo = getDeviceContext().getRawLightInfo(rawId); in dump()
309 getDeviceContext().getLightBrightness(rawId).value_or(-1)); in dump()
345 const std::vector<int32_t> rawBatteryIds = getDeviceContext().getRawBatteryIds(); in configureBattries()
348 std::optional<RawBatteryInfo> rawInfo = getDeviceContext().getRawBatteryInfo(rawId); in configureBattries()
353 std::make_unique<Battery>(getDeviceContext(), rawInfo->name, rawInfo->id); in configureBattries()
371 const std::vector<int32_t> rawLightIds = getDeviceContext().getRawLightIds(); in configureLights()
375 std::optional<RawLightInfo> rawInfo = getDeviceContext().getRawLightInfo(rawId); in configureLights()
422 std::make_unique<PlayerIdLight>(getDeviceContext(), playerIdName, ++mNextId, in configureLights()
438 std::make_unique<RgbLight>(getDeviceContext(), ++mNextId, rawRgbIds, rawGlobalId); in configureLights()
[all …]
DPeripheralController.h46 inline InputDeviceContext& getDeviceContext() { return mDeviceContext; } in getDeviceContext() function
47 inline InputDeviceContext& getDeviceContext() const { return mDeviceContext; } in getDeviceContext() function
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1197 const std::optional<uint8_t> displayPort = getDeviceContext().getAssociatedDisplayPort(); in configure()
2138 std::vector<int32_t> getVibratorIds() override { return getDeviceContext().getVibratorIds(); } in getVibratorIds()
2167 int32_t getEventHubId() const { return getDeviceContext().getEventHubId(); } in getEventHubId()
2174 return getDeviceContext().getBatteryCapacity(batteryId); in getBatteryCapacity()
2178 return getDeviceContext().getBatteryStatus(batteryId); in getBatteryStatus()
2182 getDeviceContext().setLightBrightness(lightId, color >> 24); in setLightColor()
2187 std::optional<int32_t> result = getDeviceContext().getLightBrightness(lightId); in getLightColor()
2201 inline InputDeviceContext& getDeviceContext() { return mDeviceContext; } in getDeviceContext() function in android::FakePeripheralController
2202 inline InputDeviceContext& getDeviceContext() const { return mDeviceContext; } in getDeviceContext() function in android::FakePeripheralController
3057 event.deviceId = mapper.getDeviceContext().getEventHubId(); in process()