Home
last modified time | relevance | path

Searched defs:offset (Results 1 – 25 of 239) sorted by relevance

12345678910

/compose/ui/ui-text/src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/android/
DLayoutGetHorizontalTest.kt96 val offset = 0 // Before L1 in getHorizontal_LTRText_LTRParagraph_FirstCharacter() constant
121 val offset = 5 // before L6 in getHorizontal_LTRText_LTRParagraph_LineBreakOffset() constant
150 val offset = layout.layout.text.length // after LC in getHorizontal_LTRText_LTRParagraph_LastOffset() constant
175 val offset = 7 // before L8 in getHorizontal_LTRText_LTRParagraph_Other() constant
200 val offset = 0 // before L1 in getHorizontal_LTRText_RTLParagraph_FirstCharacter() constant
225 val offset = 5 // before L6 == after L5 in getHorizontal_LTRText_RTLParagraph_LineBreakOffset() constant
254 val offset = layout.layout.text.length // after LC in getHorizontal_LTRText_RTLParagraph_LastOffset() constant
279 val offset = 7 // before L8 in getHorizontal_LTRText_RTLParagraph_Other() constant
304 val offset = 0 // before R1 in getHorizontal_RTLText_RTLParagraph_FirstCharacter() constant
329 val offset = 5 // before R6 == after R5 in getHorizontal_RTLText_RTLParagraph_LineBreakOffset() constant
[all …]
/compose/ui/ui-geometry/src/androidUnitTest/kotlin/androidx/compose/ui/geometry/
DOffsetTest.kt37 val offset = Offset(100f, 200f) in testOffsetCopy() constant
43 val offset = Offset(100f, 200f) in testOffsetCopyOverwriteX() constant
51 val offset = Offset(100f, 200f) in testOffsetCopyOverwriteY() constant
100 val offset = Offset(10f, 20f) in testIsSpecified() constant
DRectTest.kt220 val offset = Offset(177f, 288f) in rect contains() constant
236 val offset = Offset(220f, 300f) in rect from offset and size() constant
250 val offset = Offset(100f, 50f) in rect from center and radius() constant
/compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/
DRuler.kt52 val offset = Offset(coordinate, sourceCoordinates.size.height / 2f) in calculateCoordinate() constant
69 val offset = Offset(sourceCoordinates.size.width / 2f, coordinate) in calculateCoordinate() constant
/compose/ui/ui-unit/src/androidUnitTest/kotlin/androidx/compose/ui/unit/
DVelocityTest.kt78 val offset = Velocity(100f, 200f) in testOffsetCopy() constant
84 val offset = Velocity(100f, 200f) in testOffsetCopyOverwriteX() constant
92 val offset = Velocity(100f, 200f) in testOffsetCopyOverwriteY() constant
/compose/foundation/foundation/src/androidUnitTest/kotlin/androidx/compose/foundation/text/selection/
DSelectableInfoTest.kt161 val offset = 0 in toAnchor_nonEmptyLine_matchesInfo() constant
182 val offset = 0 in toAnchor_nonEmptyLine_matchesInfo_rtl() constant
203 val offset = 0 in toAnchor_emptyText_usesParagraphDirection() constant
225 val offset = 0 in toAnchor_emptyText_usesParagraphDirection_rtl() constant
247 val offset = 6 in toAnchor_emptyLine_usesParagraphDirection() constant
270 val offset = 6 in toAnchor_emptyLine_usesParagraphDirection_rtl() constant
DSelectionFakes.kt126 val offset = invocation.arguments[0] as Int in getTextLayoutResultMock() constant
133 val offset = invocation.arguments[0] as Int in getTextLayoutResultMock() constant
140 val offset = invocation.arguments[0] as Int in getTextLayoutResultMock() constant
149 val offset = invocation.arguments[0] as Int in getTextLayoutResultMock() constant
/compose/ui/ui-test/src/androidInstrumentedTest/kotlin/androidx/compose/ui/test/
DInfiniteAnimationTest.kt50 val offset = transition.animateFloat(0f, 100f, animationSpec) in <lambda>() constant
59 val offset = remember { mutableStateOf(1f) } in <lambda>() constant
95 val offset = transition.animateFloat(0f, 100f, animationSpec) in <lambda>() constant
/compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/
DLayoutOffsetSample.kt62 var offset by remember { mutableStateOf(0) } in OffsetPxModifier() variable
73 var offset by remember { mutableStateOf(0) } in AbsoluteOffsetPxModifier() variable
/compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/gestures/snapping/
DLazyGridSnapLayoutInfoProviderTest.kt75 val offset = state.layoutInfo.visibleItemsInfo.first { it.index == 100 }.offset in calculateSnappingOffset_velocityIsZero_shouldReturnClosestItemOffset() constant
106 val offset = in calculateSnappingOffset_velocityPositive_moreThanMinThreshold_shouldReturnNextItemOffset() constant
145 val offset = in calculateSnappingOffset_velocityNegative_moreThanMinThreshold_shouldReturnPrevItemOffset() constant
DLazyListSnapLayoutInfoProviderTest.kt103 val offset = in calculateSnappingOffset_velocityPositive_moreThanMinThreshold_shouldReturnNextItemOffset() constant
136 val offset = in calculateSnappingOffset_velocityNegative_moreThanMinThreshold_shouldReturnPrevItemOffset() constant
/compose/ui/ui-unit/src/commonMain/kotlin/androidx/compose/ui/unit/
DConstraints.kt92 val offset = minHeightOffsets(bitOffset) constant
104 val offset = minHeightOffsets(bitOffset) + 31 constant
129 val offset = minHeightOffsets(bitOffset) + 31 constant
150 val offset = minHeightOffsets(bitOffset) constant
168 val offset = minHeightOffsets(bitOffset) + 31 constant
543 fun Constraints.offset(horizontal: Int = 0, vertical: Int = 0) = in Constraints() method
/compose/foundation/foundation/src/androidUnitTest/kotlin/androidx/compose/foundation/text/
DTextLayoutHelperTest.kt335 val offset = defaultText.indexOf('W') in getLineHeight_valid() constant
351 val offset = 0 in getLineHeight_zero_length_text_return_zero() constant
363 val offset = defaultText.indexOf('W') in getLineHeight_line_index_more_then_lines_limit_should_return_zero() constant
/compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/snapshots/
DSnapshotIdSet.kt55 val offset = id - lowerBound in <lambda>() constant
67 val offset = id - lowerBound in <lambda>() constant
147 val offset = id - lowerBound in <lambda>() constant
/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/layout/
DPlacementLayoutCoordinatesTest.kt331 var offset by mutableStateOf(DpOffset(0.dp, 0.dp)) in <lambda>() variable
361 var offset by mutableStateOf(DpOffset(0.dp, 0.dp)) in <lambda>() variable
393 var offset by mutableStateOf(DpOffset(0.dp, 0.dp)) in <lambda>() variable
432 var offset by mutableStateOf(DpOffset.Zero) in <lambda>() variable
528 var offset by mutableStateOf(Offset.Zero) in <lambda>() variable
565 var offset by mutableStateOf(Offset.Zero) in <lambda>() variable
644 var offset by mutableStateOf(0) in <lambda>() variable
678 var offset by mutableStateOf(0) in <lambda>() variable
733 var offset by mutableStateOf(0) in <lambda>() variable
792 var offset by mutableStateOf(0) in <lambda>() variable
DPlacementScopeMotionFrameOfReferenceTest.kt62 var offset by mutableStateOf(IntOffset(0, 0)) in <lambda>() variable
129 var offset by mutableStateOf(IntOffset(0, 0)) in <lambda>() variable
200 var offset by mutableStateOf(IntOffset(0, 0)) in <lambda>() variable
263 var offset by mutableStateOf(IntOffset(0, 0)) in <lambda>() variable
/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/input/internal/
DOffsetMappingCalculator.kt402 val offset = values[i * OpArrayElementSize] in copyOf() constant
409 val offset = values[i * OpArrayElementSize] in copyOf() constant
/compose/foundation/foundation/samples/src/main/java/androidx/compose/foundation/samples/
DTransformableSample.kt65 var offset by remember { mutableStateOf(Offset.Zero) } in <lambda>() variable
115 var offset by remember { mutableStateOf(Offset.Zero) } in TransformableSampleInsideScroll() variable
169 var offset by remember { mutableStateOf(Offset.Zero) } in TransformableAnimateBySample() variable
/compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/snapping/
DNonItemBasedSnapping.kt73 val offset = offsetList.firstOrNull { it > currentOffset } in calculateApproachOffset() constant
77 val offset = offsetList.reversed().firstOrNull { it < currentOffset } in calculateApproachOffset() constant
/compose/animation/animation-core/src/commonTest/kotlin/androidx/compose/animation/core/
DRepeatableAnimationTest.kt166 val offset = duration / 2 in testStartOffsetRepeatable() constant
235 val offset = 31 in testStartOffsetInfiniteRepeatable() constant
/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/
DTextLayoutHelper.kt105 val offset = getOffsetForPosition(position) in isPositionInsideSelection() constant
DTextFieldScroll.kt182 val offset = -scrollerPosition.offset in measure() constant
228 val offset = -scrollerPosition.offset in measure() constant
277 var offset by mutableFloatStateOf(initial) variable
/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/carousel/
DKeylineSnapPosition.kt39 var offset = in getSnapPositionOffset() variable
/compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/
DOffset.kt50 fun Modifier.offset(x: Dp = 0.dp, y: Dp = 0.dp) = in offset() method
110 fun Modifier.offset(offset: Density.() -> IntOffset) = in offset() method
215 val offset: Density.() -> IntOffset, constant in androidx.compose.foundation.layout.OffsetPxElement
247 private class OffsetPxNode(var offset: Density.() -> IntOffset, var rtlAware: Boolean) : variable in androidx.compose.foundation.layout.OffsetPxNode
/compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/
DOverscrollTest.kt555 val offset = Offset(x = 0f, y = 50f) in <lambda>() constant
618 val offset = Offset(x = 0f, y = 50f) in <lambda>() constant
704 val offset = Offset(x = 50f, y = 0f) in <lambda>() constant
790 val offset = Offset(x = 50f, y = 50f) in <lambda>() constant
871 val offset = Offset(x = 0f, y = 50f) in <lambda>() constant
923 val offset = Offset(x = 50f, y = 0f) in <lambda>() constant
975 val offset = Offset(x = 50f, y = 50f) in <lambda>() constant
1003 val offset = Offset(-10f, -10f) in <lambda>() constant
1033 val offset = Offset(0f, 10f) in <lambda>() constant
1569 val offset = Offset(x = 500f, y = 500f) in <lambda>() constant
[all …]

12345678910