Home
last modified time | relevance | path

Searched refs:clamped (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/material/
DSwipeable.kt203 val clamped = newAbsolute.coerceIn(minBound, maxBound) in <lambda>() constant
204 val overflow = newAbsolute - clamped in <lambda>()
206 offsetState.value = clamped + resistanceDelta in <lambda>()
391 val clamped = potentiallyConsumed.coerceIn(minBound, maxBound) in performDrag() constant
392 val deltaToConsume = clamped - absoluteOffset.value in performDrag()
/frameworks/base/core/java/android/text/
DLayout.java1634 public float getPrimaryHorizontal(int offset, boolean clamped) { in getPrimaryHorizontal() argument
1636 return getHorizontal(offset, trailing, clamped); in getPrimaryHorizontal()
1654 public float getSecondaryHorizontal(int offset, boolean clamped) { in getSecondaryHorizontal() argument
1656 return getHorizontal(offset, !trailing, clamped); in getSecondaryHorizontal()
1663 private float getHorizontal(int offset, boolean trailing, boolean clamped) { in getHorizontal() argument
1666 return getHorizontal(offset, trailing, line, clamped); in getHorizontal()
1669 private float getHorizontal(int offset, boolean trailing, int line, boolean clamped) { in getHorizontal() argument
1693 if (clamped && wid > mWidth) { in getHorizontal()
1710 private float[] getLineHorizontals(int line, boolean clamped, boolean primary) { in getLineHorizontals() argument
1740 if (clamped) { in getLineHorizontals()
[all …]
/frameworks/rs/script_api/
Drs_convert.spec107 of this range, the resulting outputs will be clamped to be between 0 and 255. As this
/frameworks/proto_logging/stats/atoms/cronet/
Dcronet_extension_atoms.proto390 // rounded, and clamped to the int64 range. (This should result in distinct
/frameworks/rs/script_api/include/
Drs_convert.rsh1570 * of this range, the resulting outputs will be clamped to be between 0 and 255. As this
Drs_math.rsh736 * value: Value to be clamped.
/frameworks/base/core/java/android/widget/
DEditor.java2442 final boolean clamped = layout.shouldClampCursor(line); in updateCursorPosition()
2443 updateCursorPosition(top, bottom, layout.getPrimaryHorizontal(transformedOffset, clamped)); in updateCursorPosition()