Lines Matching defs:value

86 inline static T abs(const T& value) {
87 return value < 0 ? - value : value;
110 inline static int32_t signExtendNybble(int32_t value) {
111 return value >= 8 ? value - 16 : value;
114 static inline const char* toString(bool value) {
115 return value ? "true" : "false";
118 static int32_t rotateValueUsingRotationMap(int32_t value, int32_t orientation,
122 if (value == map[i][0]) {
127 return value;
682 // value. Otherwise, return AKEY_STATE_UP as long as one device reports it.
1036 ALOGD("Input event: device=%d type=0x%04x code=0x%04x value=0x%08x when=%lld",
1037 rawEvent->deviceId, rawEvent->type, rawEvent->code, rawEvent->value,
1110 // value. Otherwise, return AKEY_STATE_UP as long as one mapper reports it.
1220 mBtnLeft = rawEvent->value;
1223 mBtnRight = rawEvent->value;
1226 mBtnMiddle = rawEvent->value;
1229 mBtnBack = rawEvent->value;
1232 mBtnSide = rawEvent->value;
1235 mBtnForward = rawEvent->value;
1238 mBtnExtra = rawEvent->value;
1241 mBtnTask = rawEvent->value;
1287 mRelX = rawEvent->value;
1290 mRelY = rawEvent->value;
1326 mRelWheel = rawEvent->value;
1329 mRelHWheel = rawEvent->value;
1396 mBtnTouch = rawEvent->value;
1399 mBtnStylus = rawEvent->value;
1403 mBtnStylus2 = rawEvent->value;
1406 mBtnToolFinger = rawEvent->value;
1409 mBtnToolPen = rawEvent->value;
1412 mBtnToolRubber = rawEvent->value;
1415 mBtnToolBrush = rawEvent->value;
1418 mBtnToolPencil = rawEvent->value;
1421 mBtnToolAirbrush = rawEvent->value;
1424 mBtnToolMouse = rawEvent->value;
1427 mBtnToolLens = rawEvent->value;
1430 mBtnToolDoubleTap = rawEvent->value;
1433 mBtnToolTripleTap = rawEvent->value;
1436 mBtnToolQuadTap = rawEvent->value;
1607 mAbsX = rawEvent->value;
1610 mAbsY = rawEvent->value;
1613 mAbsPressure = rawEvent->value;
1616 mAbsToolWidth = rawEvent->value;
1619 mAbsDistance = rawEvent->value;
1622 mAbsTiltX = rawEvent->value;
1625 mAbsTiltY = rawEvent->value;
1693 mCurrentSlot = rawEvent->value;
1714 slot->mAbsMTPositionX = rawEvent->value;
1718 slot->mAbsMTPositionY = rawEvent->value;
1722 slot->mAbsMTTouchMajor = rawEvent->value;
1726 slot->mAbsMTTouchMinor = rawEvent->value;
1731 slot->mAbsMTWidthMajor = rawEvent->value;
1735 slot->mAbsMTWidthMinor = rawEvent->value;
1740 slot->mAbsMTOrientation = rawEvent->value;
1743 if (mUsingSlotsProtocol && rawEvent->value < 0) {
1749 slot->mAbsMTTrackingId = rawEvent->value;
1754 slot->mAbsMTPressure = rawEvent->value;
1758 slot->mAbsMTDistance = rawEvent->value;
1762 slot->mAbsMTToolType = rawEvent->value;
1926 processSwitch(rawEvent->code, rawEvent->value);
2186 processKey(rawEvent->when, rawEvent->value != 0, keyCode, scanCode, flags);
2192 mCurrentHidUsage = rawEvent->value;
2473 ALOGW("Invalid value for cursor.mode: '%s'", cursorModeString.string());
2965 ALOGW("Invalid value for touch.gestureMode: '%s'", gestureModeString.string());
3000 ALOGW("Invalid value for touch.deviceType: '%s'", deviceTypeString.string());
3422 // Note that the maximum value reported is an inclusive maximum value so it is one
3479 // This value determines the area around the pointer that is affected by freeform
3606 ALOGW("Invalid value for touch.size.calibration: '%s'",
3629 ALOGW("Invalid value for touch.pressure.calibration: '%s'",
3648 ALOGW("Invalid value for touch.orientation.calibration: '%s'",
3662 ALOGW("Invalid value for touch.distance.calibration: '%s'",
3678 ALOGW("Invalid value for touch.coverage.calibration: '%s'",
3934 last->rawPointerData.touchingIdBits.value,
3935 next->rawPointerData.touchingIdBits.value,
3936 last->rawPointerData.hoveringIdBits.value,
3937 next->rawPointerData.hoveringIdBits.value);
4364 BitSet32 upIdBits(lastIdBits.value & ~currentIdBits.value);
4365 BitSet32 downIdBits(currentIdBits.value & ~lastIdBits.value);
4366 BitSet32 moveIdBits(lastIdBits.value & currentIdBits.value);
4367 BitSet32 dispatchedIdBits(lastIdBits.value);
4400 ALOG_ASSERT(moveIdBits.value == dispatchedIdBits.value);
4889 BitSet32 movedGestureIdBits(mPointerGesture.currentGestureIdBits.value
4890 & mPointerGesture.lastGestureIdBits.value);
4919 upGestureIdBits.value = dispatchedGestureIdBits.value
4920 & ~mPointerGesture.currentGestureIdBits.value;
4951 BitSet32 downGestureIdBits(mPointerGesture.currentGestureIdBits.value
4952 & ~dispatchedGestureIdBits.value);
5488 for (BitSet32 idBits(mCurrentCookedState.fingerIdBits.value
5489 & ~mPointerGesture.referenceIdBits.value); !idBits.isEmpty(); ) {
5498 BitSet32 commonIdBits(mLastCookedState.fingerIdBits.value
5499 & mCurrentCookedState.fingerIdBits.value);
5697 mappedTouchIdBits.value = mLastCookedState.fingerIdBits.value
5698 & mCurrentCookedState.fingerIdBits.value;
5703 for (BitSet32 upTouchIdBits(mLastCookedState.fingerIdBits.value
5704 & ~mCurrentCookedState.fingerIdBits.value);
5719 mappedTouchIdBits.value, usedGestureIdBits.value,
5785 mPointerGesture.currentGestureMode, mPointerGesture.currentGestureIdBits.value,
5786 mPointerGesture.lastGestureMode, mPointerGesture.lastGestureIdBits.value);
6919 newValue = (axis.rawAxisInfo.maxValue - rawEvent->value)
6924 if (rawEvent->value < axis.axisInfo.splitValue) {
6925 newValue = (axis.axisInfo.splitValue - rawEvent->value)
6928 } else if (rawEvent->value > axis.axisInfo.splitValue) {
6930 highNewValue = (rawEvent->value - axis.axisInfo.splitValue)
6938 newValue = rawEvent->value * axis.scale + axis.offset;
6997 int32_t axis, float value) {
6998 pointerCoords->setAxisValue(axis, value);
7001 * values for the old axes as mirrors of the value of their corresponding
7005 pointerCoords->setAxisValue(compatAxis, value);
7033 // Filter out small changes in value unless the value is converging on the axis