Home
last modified time | relevance | path

Searched refs:startX (Results 1 – 25 of 99) sorted by relevance

1234

/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DInteraction.java56 public static Interaction newFling(float startX, float startY, in newFling() argument
58 return new Interaction(Interaction.Type.FLING, new float[]{startX, endX}, in newFling()
62 public static Interaction newFlingDown(float startX, float startY) { in newFlingDown() argument
64 new float[]{startX, startX}, in newFlingDown()
68 public static Interaction newFlingUp(float startX, float startY) { in newFlingUp() argument
70 new float[]{startX, startX}, new float[]{startY, startY - DEFAULT_FLING_SIZE_PX}, in newFlingUp()
74 public static Interaction newTap(float startX, float startY) { in newTap() argument
76 new float[]{startX, startX}, new float[]{startY, startY}, in newTap()
112 float startX = xPos[0]; in createInterpolatedEventList() local
116 startTime, startTime, MotionEvent.ACTION_DOWN, startX, startY, 0); in createInterpolatedEventList()
[all …]
/frameworks/base/core/java/android/transition/
DPatternPathMotion.java110 float startX = pos[0]; in setPatternPath() local
113 if (startX == endX && startY == endY) { in setPatternPath()
117 mTempMatrix.setTranslate(-startX, -startY); in setPatternPath()
118 float dx = endX - startX; in setPatternPath()
130 public Path getPath(float startX, float startY, float endX, float endY) { in getPath() argument
131 double dx = endX - startX; in getPath()
138 mTempMatrix.postTranslate(startX, startY); in getPath()
DTranslationAnimationCreator.java52 float startX, float startY, float endX, float endY, TimeInterpolator interpolator, in createAnimation() argument
58 startX = startPosition[0] - viewPosX + terminalX; in createAnimation()
62 int startPosX = viewPosX + Math.round(startX - terminalX); in createAnimation()
65 view.setTranslationX(startX); in createAnimation()
67 if (startX == endX && startY == endY) { in createAnimation()
71 path.moveTo(startX, startY); in createAnimation()
99 int startX, int startY, float terminalX, float terminalY) { in TransitionPositionListener() argument
102 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener()
DArcMotion.java180 public Path getPath(float startX, float startY, float endX, float endY) { in getPath() argument
198 path.moveTo(startX, startY); in getPath()
202 float deltaX = endX - startX; in getPath()
209 float dx = (startX + endX) / 2; in getPath()
237 ex = startX; in getPath()
246 ex = startX + eDistX; in getPath()
274 float control1X = (startX + ex) / 2; in getPath()
DChangeScroll.java77 int startX = (Integer) startValues.values.get(PROPNAME_SCROLL_X); in createAnimator() local
83 if (startX != endX) { in createAnimator()
84 view.setScrollX(startX); in createAnimator()
85 scrollXAnimator = ObjectAnimator.ofInt(view, "scrollX", startX, endX); in createAnimator()
DExplode.java89 float startX = endX + mTempLoc[0]; in onAppear() local
93 startX, startY, endX, endY, sDecelerate, this); in onAppear()
105 float startX = view.getTranslationX(); in onDisappear() local
107 float endX = startX; in onDisappear()
122 viewPosX, viewPosY, startX, startY, endX, endY, sAccelerate, this); in onDisappear()
/frameworks/rs/toolkit/
DUtils.cpp52 if (restriction->startX >= sizeX || restriction->endX > sizeX) { in validRestriction()
55 tag, sizeX, restriction->startX, restriction->endY); in validRestriction()
64 if (restriction->startX >= restriction->endX) { in validRestriction()
67 tag, restriction->startX, restriction->endX); in validRestriction()
DConvolve3x3.cpp42 size_t startX, size_t startY, size_t endX, size_t endY);
45 virtual void processData(int threadIndex, size_t startX, size_t startY, size_t endX,
191 size_t startX, size_t startY, size_t endX, size_t endY, float* fp) { in convolveU() argument
197 size_t offset = (y * sizeX + startX) * vectorSize; in convolveU()
202 for (uint32_t x = startX; x < endX; x++, px++) { in convolveU()
209 size_t sizeY, size_t startX, size_t startY, size_t endX, in convolveU4() argument
216 size_t offset = (y * sizeX + startX) * paddedSize(vectorSize); in convolveU4()
221 kernelU4(px, startX, endX, py0, py1, py2); in convolveU4()
225 void Convolve3x3Task::processData(int /* threadIndex */, size_t startX, size_t startY, size_t endX, in processData() argument
232 startX, startY, endX, endY, mFp); in processData()
[all …]
DLut.cpp37 virtual void processData(int threadIndex, size_t startX, size_t startY, size_t endX,
53 void LutTask::processData(int /* threadIndex */, size_t startX, size_t startY, size_t endX, in processData() argument
56 size_t offset = mSizeX * y + startX; in processData()
59 for (size_t x = startX; x < endX; x++) { in processData()
DHistogram.cpp35 virtual void processData(int threadIndex, size_t startX, size_t startY, size_t endX,
67 virtual void processData(int threadIndex, size_t startX, size_t startY, size_t endX,
79 void HistogramTask::processData(int threadIndex, size_t startX, size_t startY, size_t endX, in processData() argument
105 const uchar* inPtr = mIn + (mSizeX * y + startX) * paddedSize(mVectorSize); in processData()
106 std::invoke(kernel, this, inPtr, sums, startX, endX); in processData()
173 void HistogramDotTask::processData(int threadIndex, size_t startX, size_t startY, size_t endX, in processData() argument
199 const uchar* inPtr = mIn + (mSizeX * y + startX) * paddedSize(mVectorSize); in processData()
200 std::invoke(kernel, this, inPtr, sums, startX, endX); in processData()
DConvolve5x5.cpp43 size_t startX, size_t startY, size_t endX, size_t endY);
46 virtual void processData(int threadIndex, size_t startX, size_t startY, size_t endX,
266 size_t startX, size_t startY, size_t endX, size_t endY, float* mFp) { in convolveU() argument
275 size_t offset = (y * sizeX + startX) * vectorSize; in convolveU()
282 for (uint32_t x = startX; x < endX; x++, px++) { in convolveU()
290 size_t sizeY, size_t startX, size_t startY, size_t endX, in convolveU4() argument
300 size_t offset = (y * sizeX + startX) * paddedSize(vectorSize); in convolveU4()
307 kernelU4(px, startX, endX, py0, py1, py2, py3, py4); in convolveU4()
311 void Convolve5x5Task::processData(int /* threadIndex */, size_t startX, size_t startY, size_t endX, in processData() argument
318 startX, startY, endX, endY, mFp); in processData()
[all …]
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/
DDesktopModeAppHelper.kt76 val startX = windowRect.centerX() in <lambda>() constant
89 device.drag(startX, startY, startX, endY, 100) in <lambda>()
143 val (startX, startY) = getStartCoordinatesForCornerResize(windowRect, corner) in <lambda>() constant
147 val endX = startX + horizontalChange in <lambda>()
150 device.drag(startX, startY, endX, endY, 100) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DDraggableConstraintLayout.java345 float startX = mView.getTranslationX(); in createSwipeDismissAnimation() local
352 if (startX > 0 || (startX == 0 && layoutDir == LAYOUT_DIRECTION_RTL)) { in createSwipeDismissAnimation()
357 float distance = Math.min(Math.abs(finalX - startX), in createSwipeDismissAnimation()
360 float distanceVector = Math.copySign(distance, finalX - startX); in createSwipeDismissAnimation()
364 startX, startX + distanceVector, animation.getAnimatedFraction()); in createSwipeDismissAnimation()
374 float startX = mView.getTranslationX(); in createSwipeReturnAnimation() local
379 startX, finalX, animation.getAnimatedFraction()); in createSwipeReturnAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/
DSwipeGestureListener.kt33 private var startX = 0f variable in com.android.systemui.screenshot.ui.SwipeGestureListener
40 startX = ev.rawX in onMotionEvent()
63 view.translationX = ev.rawX - startX in onMotionEvent()
/frameworks/base/graphics/java/android/graphics/
DRadialGradient.java138 public RadialGradient(float startX, float startY, @FloatRange(from = 0.0f) float startRadius, in RadialGradient() argument
142 this(startX, startY, startRadius, endX, endY, endRadius, colors.clone(), stops, tileMode, in RadialGradient()
150 private RadialGradient(float startX, float startY, float startRadius, float endX, float endY, in RadialGradient() argument
171 mFocalX = startX; in RadialGradient()
219 private static native long nativeCreate(long matrix, float startX, float startY, in nativeCreate() argument
/frameworks/rs/toolkit/test/
DReferenceResize.kt62 val startX: Int = floor(xf - 1).toInt() in bicubicU4() constant
69 val xs0: Int = max(0, startX + 0) in bicubicU4()
70 val xs1: Int = max(0, startX + 1) in bicubicU4()
71 val xs2: Int = kotlin.math.min(maxX, startX + 2) in bicubicU4()
72 val xs3: Int = kotlin.math.min(maxX, startX + 3) in bicubicU4()
DIntrinsicHistogram.kt56 options.setX(restriction.startX, restriction.endX) in intrinsicHistogram()
91 options.setX(restriction.startX, restriction.endX) in intrinsicHistogram()
141 options.setX(restriction.startX, restriction.endX) in intrinsicHistogramDot()
184 options.setX(restriction.startX, restriction.endX) in intrinsicHistogramDot()
/frameworks/base/core/java/android/widget/
DOverScroller.java348 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument
349 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll()
365 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument
367 mScrollerX.startScroll(startX, dx, duration); in startScroll()
383 public boolean springBack(int startX, int startY, int minX, int maxX, int minY, int maxY) { in springBack() argument
387 final boolean spingbackX = mScrollerX.springback(startX, minX, maxX); in springBack()
392 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
394 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling()
424 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
438 mScrollerX.fling(startX, velocityX, minX, maxX, overX); in fling()
[all …]
DScroller.java375 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument
376 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll()
393 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument
398 mStartX = startX; in startScroll()
400 mFinalX = startX + dx; in startScroll()
426 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
456 mStartX = startX; in fling()
470 mFinalX = startX + (int) Math.round(totalDistance * coeffX); in fling()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskPositioningController.java109 boolean startMovingTask(IWindow window, float startX, float startY) { in startMovingTask() argument
116 win, false /*resize*/, false /*preserveOrientation*/, startX, startY); in startMovingTask()
168 boolean preserveOrientation, float startX, float startY) { in startPositioningLocked() argument
172 + preserveOrientation + ", {" + startX + ", " + startY + "}"); in startPositioningLocked()
214 mTaskPositioner.startDrag(resize, preserveOrientation, startX, startY); in startPositioningLocked()
/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java257 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, in drag() argument
259 drag(vt, startX, endX, startY, endY, steps, startime, duration, new LinearInterpolator()); in drag()
266 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, in drag() argument
268 addMotionEvent(vt, startX, startY, startime, MotionEvent.ACTION_DOWN); in drag()
270 int distX = endX - startX; in drag()
274 int x = (int) (startX + distX * ii); in drag()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DRemoteRecentSplitTaskTransitionRunner.kt73 val startX = viewPosition[0] in <lambda>() constant
87 val x = startX + ((endX - startX) * progress) in <lambda>()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_impl_CameraExtensionJpegProcessor.cpp181 int startX; in loadAt() local
183 mTransform.map(0, y, &startX, &startY); in loadAt()
190 startX = min(startX, mPlane.width - 1); in loadAt()
194 startX = max(startX, 0); in loadAt()
202 int dx = sgn(endX - startX); in loadAt()
205 ALOGE("%s: Unexpected bounds: %dx%d %dx%d!", __FUNCTION__, startX, endX, startY, endY); in loadAt()
210 int plane_start = startX * mPlane.pixelStride + startY * mPlane.rowStride; in loadAt()
/frameworks/base/core/java/com/android/internal/transition/
DEpicenterTranslateClipReveal.java131 final float startX = startBounds.centerX() - endBounds.centerX(); in onAppear() local
136 view.setTranslationX(startX); in onAppear()
150 final State startStateX = new State(startClip.left, startClip.right, startX); in onAppear()
172 final float startX = (float) endValues.values.get(PROPNAME_TRANSLATE_X); in onDisappear() local
182 final State startStateX = new State(startClip.left, startClip.right, startX); in onDisappear()
210 private static Animator createRectAnimator(final View view, State startX, State startY, in createRectAnimator() argument
222 final ObjectAnimator animX = ObjectAnimator.ofObject(view, propX, evaluator, startX, endX); in createRectAnimator()
/frameworks/ex/camera2/extensions/jni/
DJpegEncoder.cpp179 int startX; in loadAt() local
181 mTransform.map(0, y, &startX, &startY); in loadAt()
188 startX = min(startX, mPlane.width - 1); in loadAt()
192 startX = max(startX, 0); in loadAt()
200 int dx = sgn(endX - startX); in loadAt()
203 ALOGE("%s: Unexpected bounds: %dx%d %dx%d!", __FUNCTION__, startX, endX, startY, endY); in loadAt()
208 int plane_start = startX * mPlane.pixelStride + startY * mPlane.rowStride; in loadAt()

1234