/frameworks/native/services/inputflinger/reader/mapper/ |
D | JoystickInputMapper.cpp | 37 addMotionRange(axis.axisInfo.axis, axis, info); in populateDeviceInfo() 39 if (axis.axisInfo.mode == AxisInfo::MODE_SPLIT) { in populateDeviceInfo() 40 addMotionRange(axis.axisInfo.highAxis, axis, info); in populateDeviceInfo() 76 const char* label = InputEventLookup::getAxisLabel(axis.axisInfo.axis); in dump() 80 dump += StringPrintf(INDENT4 "%d", axis.axisInfo.axis); in dump() 82 if (axis.axisInfo.mode == AxisInfo::MODE_SPLIT) { in dump() 83 label = InputEventLookup::getAxisLabel(axis.axisInfo.highAxis); in dump() 85 dump += StringPrintf(" / %s (split at %d)", label, axis.axisInfo.splitValue); in dump() 87 dump += StringPrintf(" / %d (split at %d)", axis.axisInfo.highAxis, in dump() 88 axis.axisInfo.splitValue); in dump() [all …]
|
D | JoystickInputMapper.h | 42 explicit Axis(const RawAbsoluteAxisInfo& rawAxisInfo, const AxisInfo& axisInfo, in Axis() 47 axisInfo(axisInfo), in Axis() 63 AxisInfo axisInfo; member
|
D | SensorInputMapper.h | 51 explicit Axis(const RawAbsoluteAxisInfo& rawAxisInfo, const AxisInfo& axisInfo, float scale, in Axis() 55 axisInfo(axisInfo), in Axis() 68 AxisInfo axisInfo; member
|
D | SensorInputMapper.cpp | 139 AxisInfo axisInfo; in reconfigure() local 142 axisInfo.mode = AxisInfo::MODE_NORMAL; in reconfigure() 143 axisInfo.axis = -1; in reconfigure() 149 const Axis& axis = createAxis(axisInfo, rawAxisInfo); in reconfigure() 160 SensorInputMapper::Axis SensorInputMapper::createAxis(const AxisInfo& axisInfo, in createAxis() argument 163 int32_t rawFlat = axisInfo.flatOverride < 0 ? rawAxisInfo.flat : axisInfo.flatOverride; in createAxis() 182 return Axis(rawAxisInfo, axisInfo, scale, offset, min, max, flat, fuzz, resolution, filter); in createAxis()
|
D | InputMapper.cpp | 119 status_t InputMapper::getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo) { in getAbsoluteAxisInfo() argument 120 return getDeviceContext().getAbsoluteAxisInfo(axis, axisInfo); in getAbsoluteAxisInfo()
|
D | InputMapper.h | 129 status_t getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo);
|
/frameworks/native/libs/input/ |
D | KeyLayoutMap.cpp | 268 const AxisInfo& axisInfo = it->second; in mapAxis() local 272 scanCode, axisInfo.mode, axisInfo.axis, axisInfo.highAxis, axisInfo.splitValue, in mapAxis() 273 axisInfo.flatOverride); in mapAxis() 274 return axisInfo; in mapAxis() 432 AxisInfo axisInfo; in parseAxis() local 437 axisInfo.mode = AxisInfo::MODE_INVERT; in parseAxis() 447 axisInfo.axis = *axis; in parseAxis() 449 axisInfo.mode = AxisInfo::MODE_SPLIT; in parseAxis() 459 axisInfo.splitValue = *splitValue; in parseAxis() 469 axisInfo.axis = *axis; in parseAxis() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvUinputBridge.cpp | 428 const GamepadAxis* axisInfo = getGamepadAxis(axis); in nativeSendGamepadAxisValue() local 429 if (axisInfo == nullptr) { in nativeSendGamepadAxisValue() 434 if (value > axisInfo->androidRangeMax) { in nativeSendGamepadAxisValue() 435 value = axisInfo->androidRangeMax; in nativeSendGamepadAxisValue() 436 } else if (value < axisInfo->androidRangeMin) { in nativeSendGamepadAxisValue() 437 value = axisInfo->androidRangeMin; in nativeSendGamepadAxisValue() 441 float movementPercent = (value - axisInfo->androidRangeMin) / in nativeSendGamepadAxisValue() 442 (axisInfo->androidRangeMax - axisInfo->androidRangeMin); in nativeSendGamepadAxisValue() 443 int axisRawValue = axisInfo->linuxUinputRangeMin + in nativeSendGamepadAxisValue() 444 movementPercent * (axisInfo->linuxUinputRangeMax - axisInfo->linuxUinputRangeMin); in nativeSendGamepadAxisValue() [all …]
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputDevice.h | 308 inline status_t getAbsoluteAxisInfo(int32_t code, RawAbsoluteAxisInfo* axisInfo) const { in getAbsoluteAxisInfo() argument 309 if (const auto status = mEventHub->getAbsoluteAxisInfo(mId, code, axisInfo); status != OK) { in getAbsoluteAxisInfo() 314 if (axisInfo->valid && axisInfo->minValue == axisInfo->maxValue) { in getAbsoluteAxisInfo() 318 axisInfo->valid = false; in getAbsoluteAxisInfo()
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | MapperHelpers.h | 119 void setAbsoluteAxisInfo(int32_t deviceId, int axis, const RawAbsoluteAxisInfo& axisInfo) { in setAbsoluteAxisInfo() argument 120 mAxes[deviceId][axis] = axisInfo; in setAbsoluteAxisInfo()
|
/frameworks/native/services/inputflinger/reader/ |
D | EventHub.cpp | 647 auto& [axisInfo, value] = absState[axis]; in populateAbsoluteAxisStates() 648 axisInfo.valid = true; in populateAbsoluteAxisStates() 649 axisInfo.minValue = info.minimum; in populateAbsoluteAxisStates() 650 axisInfo.maxValue = info.maximum; in populateAbsoluteAxisStates() 651 axisInfo.flat = info.flat; in populateAbsoluteAxisStates() 652 axisInfo.fuzz = info.fuzz; in populateAbsoluteAxisStates() 653 axisInfo.resolution = info.resolution; in populateAbsoluteAxisStates()
|