/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/nestedscroll/ |
D | LargeTopAppBarNestedScrollConnectionTest.kt | 19 import androidx.compose.ui.geometry.Offset 42 available: Offset, in NestedScrollConnection() 43 consumedByScroll: Offset = Offset.Zero, in NestedScrollConnection() 56 scrollConnection.onPreScroll(available = Offset(x = 0f, y = -1f), source = scrollSource) in onScrollUp_consumeHeightFirst() 59 assertThat(offsetConsumed).isEqualTo(Offset(0f, -1f)) in onScrollUp_consumeHeightFirst() 69 scrollConnection.scroll(available = Offset(0f, 1f), consumedByScroll = Offset(0f, 1f)) in onScrollUpAfterContentScrolled_ignoreUpEvent() 72 scrollConnection.onPreScroll(available = Offset(x = 0f, y = -1f), source = scrollSource) in onScrollUpAfterContentScrolled_ignoreUpEvent() 75 assertThat(offsetConsumed).isEqualTo(Offset.Zero) in onScrollUpAfterContentScrolled_ignoreUpEvent() 85 scrollConnection.scroll(available = Offset(0f, 1f), consumedByScroll = Offset(0f, 1f)) in onScrollUpAfterContentReturnedToZero_consumeHeight() 88 scrollConnection.scroll(available = Offset(0f, -1f), consumedByScroll = Offset(0f, -1f)) in onScrollUpAfterContentReturnedToZero_consumeHeight() [all …]
|
D | PriorityNestedScrollConnectionTest.kt | 21 import androidx.compose.ui.geometry.Offset in <lambda>() 38 private var lastScroll: Offset? = null in <lambda>() 39 private var returnOnScroll = Offset.Zero in <lambda>() 61 private val offset1 = Offset(1f, 1f) in <lambda>() 62 private val offset2 = Offset(2f, 2f) in <lambda>() 71 consumed = Offset.Zero, in <lambda>() 72 available = Offset.Zero, in <lambda>() 83 scrollConnection.onPreScroll(available = Offset.Zero, source = NestedScrollSource.Drag) in <lambda>() 90 consumed = Offset.Zero, in <lambda>() 91 available = Offset.Zero, in <lambda>() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
D | DelayMix_16x16.cpp | 33 LVM_INT16 Offset = *pOffset; in DelayMix_Float() local 38 temp = (LVM_FLOAT)(*dst + (LVM_FLOAT)delay[Offset]) / 2.0f; in DelayMix_Float() 42 delay[Offset] = *src; in DelayMix_Float() 43 Offset++; in DelayMix_Float() 47 if (Offset >= size) { in DelayMix_Float() 48 Offset = 0; in DelayMix_Float() 52 temp = (LVM_FLOAT)(*dst + (LVM_FLOAT)delay[Offset]) / 2.0f; in DelayMix_Float() 56 delay[Offset] = *src; in DelayMix_Float() 57 Offset++; in DelayMix_Float() 61 temp = (LVM_FLOAT)(*dst - (LVM_FLOAT)delay[Offset]) / 2.0f; in DelayMix_Float() [all …]
|
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/nestedscroll/ |
D | PriorityNestedScrollConnection.kt | 20 import androidx.compose.ui.geometry.Offset in <lambda>() 38 private val canStartPreScroll: (offsetAvailable: Offset, offsetBeforeStart: Offset) -> Boolean, in <lambda>() 39 private val canStartPostScroll: (offsetAvailable: Offset, offsetBeforeStart: Offset) -> Boolean, in <lambda>() 43 private val onStart: (offsetAvailable: Offset) -> Unit, in <lambda>() 44 private val onScroll: (offsetAvailable: Offset) -> Offset, in <lambda>() 51 private var offsetScrolledBeforePriorityMode = Offset.Zero in <lambda>() 54 consumed: Offset, in <lambda>() 55 available: Offset, in <lambda>() 57 ): Offset { in <lambda>() 68 return Offset.Zero in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/ |
D | NotificationScrimNestedScrollConnectionTest.kt | 19 import androidx.compose.ui.geometry.Offset in <lambda>() 58 available = Offset(x = 0f, y = -1f), in <lambda>() 62 assertThat(offsetConsumed).isEqualTo(Offset.Zero) in <lambda>() 73 available = Offset(x = 0f, y = -1f), in <lambda>() 77 assertThat(offsetConsumed).isEqualTo(Offset.Zero) in <lambda>() 85 val availableOffset = Offset(x = 0f, y = -1f) in <lambda>() 101 val availableOffset = Offset(x = 0f, y = -2f) in <lambda>() 102 val consumableOffset = Offset(x = 0f, y = -1f) in <lambda>() 117 consumed = Offset.Zero, in <lambda>() 118 available = Offset(x = 0f, y = -1f), in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/transformation/ |
D | EdgeTranslate.kt | 19 import androidx.compose.ui.geometry.Offset 32 ) : PropertyTransformation<Offset> { 39 value: Offset in transform() 40 ): Offset { in transform() 50 Offset(value.x, -elementSize.height.toFloat()) in transform() 52 Offset(value.x, 0f) in transform() 56 Offset(-elementSize.width.toFloat(), value.y) in transform() 58 Offset(0f, value.y) in transform() 62 Offset(value.x, sceneSize.height.toFloat()) in transform() 64 Offset(value.x, (sceneSize.height - elementSize.height).toFloat()) in transform() [all …]
|
D | Translate.kt | 19 import androidx.compose.ui.geometry.Offset 33 ) : PropertyTransformation<Offset> { 40 value: Offset, in transform() 41 ): Offset { in transform() 43 Offset( in transform() 55 ) : PropertyTransformation<Offset> { 62 value: Offset, in transform() 63 ): Offset { in transform() 69 return Offset( in transform()
|
D | AnchoredTranslate.kt | 19 import androidx.compose.ui.geometry.Offset 32 ) : PropertyTransformation<Offset> { 39 value: Offset, in transform() 40 ): Offset { in transform() 50 fun anchorOffsetIn(scene: SceneKey): Offset? { in transform() 64 Offset( in transform() 69 Offset( in transform()
|
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/ |
D | LVCS_StereoEnhancer.cpp | 54 LVM_UINT16 Offset; in LVCS_SEnhancerInit() local 67 Offset = (LVM_UINT16)pParams->SampleRate; in LVCS_SEnhancerInit() 70 LVCS_SEMidCoefTable[Offset].A0, LVCS_SEMidCoefTable[Offset].A1, 0.0, in LVCS_SEnhancerInit() 71 LVCS_SEMidCoefTable[Offset].B1, 0.0}; in LVCS_SEnhancerInit() 75 Offset = (LVM_UINT16)(pParams->SampleRate); in LVCS_SEnhancerInit() 79 coefs = {pSESideCoefs[Offset].A0, pSESideCoefs[Offset].A1, pSESideCoefs[Offset].A2, in LVCS_SEnhancerInit() 80 pSESideCoefs[Offset].B1, pSESideCoefs[Offset].B2}; in LVCS_SEnhancerInit()
|
D | LVCS_Equaliser.cpp | 58 LVM_UINT16 Offset; in LVCS_EqualiserInit() local 70 Offset = (LVM_UINT16)(pParams->SampleRate + (pParams->SpeakerType * (1 + LVM_FS_48000))); in LVCS_EqualiserInit() 74 pEqualiserCoefTable[Offset].A0, pEqualiserCoefTable[Offset].A1, in LVCS_EqualiserInit() 75 pEqualiserCoefTable[Offset].A2, pEqualiserCoefTable[Offset].B1, in LVCS_EqualiserInit() 76 pEqualiserCoefTable[Offset].B2}; in LVCS_EqualiserInit()
|
D | LVCS_ReverbGenerator.cpp | 63 LVM_UINT16 Offset; in LVCS_ReverbGeneratorInit() local 88 Offset = (LVM_UINT16)pParams->SampleRate; in LVCS_ReverbGeneratorInit() 92 pReverbCoefTable[Offset].A0, pReverbCoefTable[Offset].A1, in LVCS_ReverbGeneratorInit() 93 pReverbCoefTable[Offset].A2, pReverbCoefTable[Offset].B1, in LVCS_ReverbGeneratorInit() 94 pReverbCoefTable[Offset].B2}; in LVCS_ReverbGeneratorInit()
|
D | LVCS_Control.cpp | 76 LVM_INT16 Offset; in LVCS_Control() local 109 Offset = (LVM_INT16)(pParams->SpeakerType + in LVCS_Control() 112 pInstance->VolCorrect = pLVCS_VolCorrectTable[Offset]; in LVCS_Control() 119 Gain = (LVM_FLOAT)(pOutputGainTable[Offset].Loss); in LVCS_Control() 120 Gain = (LVM_FLOAT)pOutputGainTable[Offset].UnprocLoss * (Gain); in LVCS_Control() 156 Offset = (LVM_INT16)(pParams->SpeakerType + in LVCS_Control() 159 pInstance->VolCorrect = pLVCS_VolCorrectTable[Offset]; in LVCS_Control()
|
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/ui/util/ |
D | SpaceVectorConverter.kt | 20 import androidx.compose.ui.geometry.Offset 24 fun Offset.toFloat(): Float in toFloat() method 26 fun Float.toOffset(): Offset in toFloat() 38 override fun Offset.toFloat() = x in toFloat() 40 override fun Float.toOffset() = Offset(this, 0f) in toFloat() 46 override fun Offset.toFloat() = y in toFloat() 48 override fun Float.toOffset() = Offset(0f, this) in toFloat()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/ui/util/ |
D | MathHelpersTest.kt | 3 import androidx.compose.ui.geometry.Offset 26 val scale1 = Scale(1f, 1f, Offset(1f, 1f)) in lerpScaleWithFirstPivotSpecified() 28 val expectedScale = Scale(3f, 2f, Offset(1f, 1f)) in lerpScaleWithFirstPivotSpecified() 38 val scale2 = Scale(5f, 3f, Offset(1f, 1f)) in lerpScaleWithSecondPivotSpecified() 39 val expectedScale = Scale(3f, 2f, Offset(1f, 1f)) in lerpScaleWithSecondPivotSpecified() 48 val scale1 = Scale(1f, 1f, Offset(1f, 1f)) in lerpScaleWithBothPivotsSpecified() 49 val scale2 = Scale(5f, 3f, Offset(3f, 5f)) in lerpScaleWithBothPivotsSpecified() 50 val expectedScale = Scale(3f, 2f, Offset(2f, 3f)) in lerpScaleWithBothPivotsSpecified()
|
/frameworks/compile/mclinker/include/mcld/Fragment/ |
D | FragmentRef.h | 29 typedef uint64_t Offset; // FIXME: use SizeTraits<T>::Offset typedef 53 FragmentRef& assign(Fragment& pFrag, Offset pOffset = 0); 61 void memcpy(void* pDest, size_t pNBytes, Offset pOffset = 0) const; 70 Offset offset() const { return m_Offset; } in offset() 72 Offset getOutputOffset() const; 81 explicit FragmentRef(Fragment& pFrag, Offset pOffset = 0); 86 Offset m_Offset;
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/ |
D | GridDragDropState.kt | 39 import androidx.compose.ui.geometry.Offset in <lambda>() 58 updateDragPositionForRemove: (offset: Offset) -> Boolean, in <lambda>() 92 private val updateDragPositionForRemove: (offset: Offset) -> Boolean 102 private var draggingItemDraggedDelta by mutableStateOf(Offset.Zero) 103 private var draggingItemInitialOffset by mutableStateOf(Offset.Zero) 104 private var dragStartPointerOffset by mutableStateOf(Offset.Zero) 106 internal val draggingItemOffset: Offset 111 ?: Offset.Zero 116 internal fun onDragStart(offset: Offset, contentOffset: Offset) { in onDragStart() 134 updateDragPositionForRemove(Offset.Zero) in onDragInterrupted() [all …]
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/ |
D | Vec2.kt | 19 import androidx.compose.ui.geometry.Offset 28 typealias Vec2 = Offset 32 fun Vec2(x: Float, y: Float): Vec2 = Offset(x, y) in str() 54 fun Offset.Companion.makeWithAngleMag(a: Float, m: Float): Vec2 { in makeWithAngleMag() method 58 fun Vec2.rotate(angle: Float, origin: Vec2 = Vec2.Zero): Offset { in rotate() 61 Offset( in rotate()
|
/frameworks/av/media/libeffects/lvm/lib/Bass/src/ |
D | LVDBE_Control.cpp | 105 LVM_UINT16 Offset = in LVDBE_SetFilters() local 113 LVDBE_HPF_Table[Offset].A0, LVDBE_HPF_Table[Offset].A1, LVDBE_HPF_Table[Offset].A2, in LVDBE_SetFilters() 114 -(LVDBE_HPF_Table[Offset].B1), -(LVDBE_HPF_Table[Offset].B2)}; in LVDBE_SetFilters() 121 coefs = {LVDBE_BPF_Table[Offset].A0, 0.0, -(LVDBE_BPF_Table[Offset].A0), in LVDBE_SetFilters() 122 -(LVDBE_BPF_Table[Offset].B1), -(LVDBE_BPF_Table[Offset].B2)}; in LVDBE_SetFilters()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/extensions/ |
D | OffsetOperators.kt | 19 import androidx.compose.ui.geometry.Offset 30 operator fun Offset.plus(size: Size): Offset { in plus() 31 return Offset(x + size.width, y + size.height) in plus()
|
D | LazyGridStateExt.kt | 20 import androidx.compose.ui.geometry.Offset in <lambda>() 29 fun Iterable<LazyGridItemInfo>.firstItemAtOffset(offset: Offset): LazyGridItemInfo? = in <lambda>() 39 fun Sequence<LazyGridItemInfo>.firstItemAtOffset(offset: Offset): LazyGridItemInfo? = in firstItemAtOffset() 44 private fun isItemAtOffset(item: LazyGridItemInfo, offset: Offset): Boolean { in isItemAtOffset()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/ |
D | MultiPointerDraggableTest.kt | 29 import androidx.compose.ui.geometry.Offset in <lambda>() 55 val middle = Offset(size / 2f, size / 2f) in <lambda>() 90 moveBy(Offset(0f, touchSlop)) in <lambda>() 126 val middle = Offset(size / 2f, size / 2f) in <lambda>() 178 moveBy(Offset(0f, touchSlop)) in <lambda>() 183 rule.onRoot().performTouchInput { moveBy(Offset(0f, touchSlop)) } in <lambda>() 227 val middle = Offset(size / 2f, size / 2f) in <lambda>() 298 moveBy(Offset(0f, touchSlop)) in <lambda>() 303 rule.onRoot().performTouchInput { moveBy(Offset(0f, touchSlop)) } in <lambda>() 354 val middle = Offset(size / 2f, size / 2f) in <lambda>() [all …]
|
D | SwipeToSceneTest.kt | 30 import androidx.compose.ui.geometry.Offset in <lambda>() 57 private val Density.middle: Offset in <lambda>() 58 get() = Offset((LayoutWidth / 2).toPx(), (LayoutHeight / 2).toPx()) in <lambda>() 61 private val Density.middleTop: Offset in <lambda>() 62 get() = Offset((LayoutWidth / 2).toPx(), 0f) in <lambda>() 65 private val Density.middleLeft: Offset in <lambda>() 66 get() = Offset(0f, (LayoutHeight / 2).toPx()) in <lambda>() 146 moveBy(Offset(-55.dp.toPx() - touchSlop, 0f), delayMillis = 1_000) in <lambda>() 177 moveBy(Offset(0f, 56.dp.toPx() + touchSlop), delayMillis = 1_000) in <lambda>() 225 end = middle - Offset(55.dp.toPx() + touchSlop, 0f), in <lambda>() [all …]
|
D | DraggableHandlerTest.kt | 23 import androidx.compose.ui.geometry.Offset 132 Offset(x = 0f, y = down(fractionOfScreen)) 174 startedPosition: Offset = Offset.Zero, in onDragStarted() 184 startedPosition: Offset = Offset.Zero, in onDragStartedImmediately() 192 startedPosition: Offset = Offset.Zero, in onDragStarted() 218 available: Offset, in NestedScrollConnection() 219 consumedByScroll: Offset = Offset.Zero, in NestedScrollConnection() 387 startedPosition = Offset(SCREEN_SIZE * 0.5f, SCREEN_SIZE), in <lambda>() 553 consumed = Offset.Zero, in <lambda>() 554 available = Offset.Zero, in <lambda>() [all …]
|
/frameworks/compile/libbcc/lib/ |
D | RSX86TranslateGEPPass.cpp | 70 llvm::Value *Offset = nullptr; in computeGEPOffset() local 88 Offset = incrementOffset(Offset, Incr, GEP); in computeGEPOffset() 97 Offset = incrementOffset(Offset, Incr, GEP); in computeGEPOffset() 101 return Offset; in computeGEPOffset()
|
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/ |
D | PunchHole.kt | 21 import androidx.compose.ui.geometry.Offset 59 offset: () -> Offset, in Modifier() 77 private val offset: () -> Offset, in Modifier() 91 var offset: () -> Offset, 173 private fun holeOffset(): Offset { in holeOffset() 174 val holeCoords = holeCoords() ?: return Offset.Zero in holeOffset() 176 return lastCoords.localPositionOf(holeCoords, relativeToSource = Offset.Zero) in holeOffset()
|