Home
last modified time | relevance | path

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

/aosp12/frameworks/native/services/inputflinger/reader/mapper/
H A 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()
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()
380 return getDeviceContext().markSupportedKeyCodes(numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
417 ledState.avail = getDeviceContext().hasLed(led); in initializeLedState()
[all …]
H A 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()
H A DVibratorInputMapper.cpp76 return getDeviceContext().getVibratorIds(); in getVibratorIds()
110 getDeviceContext().vibrate(element); in nextStep()
115 getDeviceContext().cancelVibrate(); in nextStep()
132 getDeviceContext().cancelVibrate(); in stopVibrating()
H A DExternalStylusInputMapper.cpp50 mTouchButtonAccumulator.configure(getDeviceContext()); in configure()
54 mSingleTouchMotionAccumulator.reset(getDeviceContext()); in reset()
55 mTouchButtonAccumulator.reset(getDeviceContext()); in reset()
H A DSensorInputMapper.cpp65 const auto& config = getDeviceContext().getConfiguration(); in tryGetProperty()
92 dump += StringPrintf(INDENT3 " isDeviceEnabled %d\n", getDeviceContext().isDeviceEnabled()); in dump()
131 mHasHardwareTimestamp = getDeviceContext().hasMscEvent(MSC_TIMESTAMP); in configure()
135 if (!(getAbsAxisUsage(abs, getDeviceContext().getDeviceClasses()) in configure()
148 auto ret = getDeviceContext().mapSensor(abs); in configure()
200 InputDeviceIdentifier identifier = getDeviceContext().getDeviceIdentifier(); in createSensor()
348 getDeviceContext().enableDevice(); in enableSensor()
373 getDeviceContext().disableDevice(); in disableSensor()
H A DCursorInputMapper.cpp124 mCursorScrollAccumulator.configure(getDeviceContext()); in configure()
228 if (getDeviceContext().getConfiguration().tryGetProperty(String8("cursor.mode"), in configureParameters()
238 getDeviceContext().getConfiguration().tryGetProperty(String8("cursor.orientationAware"), in configureParameters()
277 mCursorButtonAccumulator.reset(getDeviceContext()); in reset()
278 mCursorMotionAccumulator.reset(getDeviceContext()); in reset()
279 mCursorScrollAccumulator.reset(getDeviceContext()); in reset()
393 if ((buttonsPressed || moved || scrolled) && getDeviceContext().isExternal()) { in sync()
496 return getDeviceContext().getScanCodeState(scanCode); in getScanCodeState()
H A DInputMapper.cpp92 return getDeviceContext().getAbsoluteAxisInfo(axis, axisInfo); in getAbsoluteAxisInfo()
96 getDeviceContext().bumpGeneration(); in bumpGeneration()
H A DMultiTouchInputMapper.cpp231 mMultiTouchMotionAccumulator.reset(getDeviceContext()); in reset()
379 mMultiTouchMotionAccumulator.configure(getDeviceContext(), slotCount, in configureRawPointerAxes()
382 mMultiTouchMotionAccumulator.configure(getDeviceContext(), MAX_POINTERS, in configureRawPointerAxes()
H A DTouchInputMapper.cpp361 mCursorScrollAccumulator.configure(getDeviceContext()); in configure()
362 mTouchButtonAccumulator.configure(getDeviceContext()); in configure()
435 if (getDeviceContext().hasInputProperty(INPUT_PROP_DIRECT)) { in configureParameters()
441 } else if (getDeviceContext().hasRelativeAxis(REL_X) || in configureParameters()
442 getDeviceContext().hasRelativeAxis(REL_Y)) { in configureParameters()
504 if (getDeviceContext().getAssociatedDisplayPort()) { in configureParameters()
511 mParameters.wake = getDeviceContext().isExternal(); in configureParameters()
570 return getDeviceContext().getAssociatedViewport(); in findViewport()
1409 mCursorButtonAccumulator.reset(getDeviceContext()); in reset()
1410 mCursorScrollAccumulator.reset(getDeviceContext()); in reset()
[all …]
H A DSwitchInputMapper.cpp68 return getDeviceContext().getSwitchState(switchCode); in getSwitchState()
H A DSingleTouchInputMapper.cpp27 mSingleTouchMotionAccumulator.reset(getDeviceContext()); in reset()
H A DJoystickInputMapper.cpp114 if (!(getAbsAxisUsage(abs, getDeviceContext().getDeviceClasses()) in configure()
124 const bool explicitlyMapped = !getDeviceContext().mapAxis(abs, &axisInfo); in configure()
H A DInputMapper.h47 inline InputDeviceContext& getDeviceContext() { return mDeviceContext; } in getDeviceContext() function
/aosp12/frameworks/native/services/inputflinger/reader/controller/
H A 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()
475 return getDeviceContext().getBatteryCapacity(batteryId); in getBatteryCapacity()
[all …]
H A DPeripheralController.h45 inline InputDeviceContext& getDeviceContext() { return mDeviceContext; } in getDeviceContext() function
/aosp12/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp1101 const std::optional<uint8_t> displayPort = getDeviceContext().getAssociatedDisplayPort(); in configure()
2005 std::vector<int32_t> getVibratorIds() override { return getDeviceContext().getVibratorIds(); } in getVibratorIds()
2038 return getDeviceContext().getBatteryCapacity(batteryId); in getBatteryCapacity()
2042 return getDeviceContext().getBatteryStatus(batteryId); in getBatteryStatus()
2046 getDeviceContext().setLightBrightness(lightId, color >> 24); in setLightColor()
2051 std::optional<int32_t> result = getDeviceContext().getLightBrightness(lightId); in getLightColor()
2065 inline InputDeviceContext& getDeviceContext() { return mDeviceContext; } in getDeviceContext() function in android::FakePeripheralController
2763 event.deviceId = mapper.getDeviceContext().getEventHubId(); in process()