/aosp14/frameworks/base/core/tests/coretests/src/android/view/stylus/ |
H A D | HandwritingInitiatorTest.java | 136 final int y2 = y1; in onTouchEvent_startHandwriting_when_stylusMoveOnce_withinHWArea() local 161 final int y2 = y1; in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea() local 204 final int y2 = y1; in onTouchEvent_startHandwriting_when_stylusMove_withinExtendedHWArea() local 224 final int y2 = y1; in onTouchEvent_startHandwriting_inputConnectionBuiltAfterStylusMove() local 246 final int y2 = y1; in onTouchEvent_startHandwriting_inputConnectionBuilt_stylusMoveInExtendedHWArea() local 277 final int y2 = y1; in onTouchEvent_tryAcceptDelegation_delegatorCallbackCreatesInputConnection() local 300 final int y2 = y1; in onTouchEvent_tryAcceptDelegation_delegatorCallbackFocusesDelegate() local 356 final int y2 = y1; in onTouchEvent_notStartHandwriting_whenHandwritingNotAvailable() local 375 final int y2 = y1; in onTouchEvent_notStartHandwriting_when_stylusTap_withinHWArea() local 391 final int y2 = y1; in onTouchEvent_notStartHandwriting_when_stylusMove_outOfHWArea() local [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
H A D | FlingAnimationUtils.java | 82 float speedUpFactor, float x2, float y2) { in FlingAnimationUtils() argument 92 mY2 = y2; in FlingAnimationUtils() 239 float y2 = mY2; in getInterpolator() local 241 mInterpolator = new PathInterpolator(x1, y1, x2, y2); in getInterpolator() 244 + "x1=" + x1 + " y1=" + y1 + " x2=" + x2 + " y2=" + y2, e); in getInterpolator() 298 float y2 = calculateLinearOutFasterInY2(velAbs); in getDismissingProperties() local 300 float startGradient = y2 / LINEAR_OUT_FASTER_IN_X2; in getDismissingProperties() 301 Interpolator mLinearOutFasterIn = new PathInterpolator(0, 0, LINEAR_OUT_FASTER_IN_X2, y2); in getDismissingProperties() 445 public Builder setY2(float y2) { in setY2() argument 446 mY2 = y2; in setY2()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | Path.java | 373 public void quadTo(float x1, float y1, float x2, float y2) { in quadTo() argument 374 nQuadTo(mNativePath, x1, y1, x2, y2); in quadTo() 413 public void conicTo(float x1, float y1, float x2, float y2, float weight) { in conicTo() argument 414 nConicTo(mNativePath, x1, y1, x2, y2, weight); in conicTo() 450 public void cubicTo(float x1, float y1, float x2, float y2, in cubicTo() argument 452 nCubicTo(mNativePath, x1, y1, x2, y2, x3, y3); in cubicTo() 460 public void rCubicTo(float x1, float y1, float x2, float y2, in rCubicTo() argument 462 nRCubicTo(mNativePath, x1, y1, x2, y2, x3, y3); in rCubicTo() 844 private static native void nQuadTo(long nPath, float x1, float y1, float x2, float y2); in nQuadTo() argument 846 private static native void nConicTo(long nPath, float x1, float y1, float x2, float y2, in nConicTo() argument [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | Contrast.java | 98 public static float contrastYs(float y1, float y2) { in contrastYs() argument 99 final float lighter = Math.max(y1, y2); in contrastYs() 100 final float darker = (lighter == y1) ? y2 : y1; in contrastYs()
|
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
H A D | BrightnessMappingStrategyTest.java | 597 final float y2 = GAMMA_CORRECTION_SPLINE.interpolate(x2); in testGammaCorrectionLowChangeAtCenter() local 608 assertEquals(y2, strategy.getBrightness(x2), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 612 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionLowChangeAtCenter() 614 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 629 final float y2 = GAMMA_CORRECTION_SPLINE.interpolate(x2); in testGammaCorrectionHighChangeAtCenter() local 639 assertEquals(y2, strategy.getBrightness(x2), 0.0001f /* tolerance */); in testGammaCorrectionHighChangeAtCenter() 644 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionHighChangeAtCenter() 647 assertEquals(MathUtils.pow(y2, gamma), in testGammaCorrectionHighChangeAtCenter() 681 final float y2 = GAMMA_CORRECTION_SPLINE.interpolate(x2); in testGammaCorrectionChangeAtEdges() local 691 assertEquals(y2, strategy.getBrightness(x2), 0.0001f /* tolerance */); in testGammaCorrectionChangeAtEdges() [all …]
|
/aosp14/frameworks/base/core/java/android/view/animation/ |
H A D | PathInterpolator.java | 143 float y2 = a.getFloat(R.styleable.PathInterpolator_controlY2, 0); in parseInterpolatorFromTypeArray() local 144 initCubic(x1, y1, x2, y2); in parseInterpolatorFromTypeArray() 156 private void initCubic(float x1, float y1, float x2, float y2) { in initCubic() argument 159 path.cubicTo(x1, y1, x2, y2, 1f, 1f); in initCubic()
|
/aosp14/frameworks/base/services/core/java/com/android/server/power/ |
H A D | WirelessChargerDetector.java | 346 float x2, float y2, float z2) { in hasMoved() argument 347 final double dotProduct = (x1 * x2) + (y1 * y2) + (z1 * z2); in hasMoved() 349 final double mag2 = Math.sqrt((x2 * x2) + (y2 * y2) + (z2 * z2)); in hasMoved() 361 + ", x2=" + x2 + ", y2=" + y2 + ", z2=" + z2 in hasMoved()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 102 public static float dist(float x1, float y1, float x2, float y2) { in dist() argument 104 final float y = (y2 - y1); in dist() 108 public static float dist(float x1, float y1, float z1, float x2, float y2, float z2) { in dist() argument 110 final float y = (y2 - y1); in dist()
|
/aosp14/frameworks/base/core/java/android/transition/ |
H A D | CircularPropagation.java | 100 private static double distance(float x1, float y1, float x2, float y2) { in distance() argument 102 double y = y2 - y1; in distance()
|
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 83 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); in drawLine() argument 87 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); in drawRect() argument
|
H A D | GLES20Canvas.java | 479 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { in drawLine() argument 480 draw(GLES20.GL_LINE_STRIP, OFFSET_DRAW_LINE, COUNT_LINE_VERTEX, x1, y1, x2 - x1, y2 - y1, in drawLine()
|
/aosp14/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_shader_program.cpp | 143 jfloat y2, in Java_android_filterfw_core_ShaderProgram_setSourceRegion() argument 148 program->SetSourceRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3))); in Java_android_filterfw_core_ShaderProgram_setSourceRegion() 161 jfloat y2, in Java_android_filterfw_core_ShaderProgram_setTargetRegion() argument 166 program->SetTargetRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3))); in Java_android_filterfw_core_ShaderProgram_setTargetRegion()
|
H A D | jni_shader_program.h | 71 jfloat y2, 83 jfloat y2,
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | colorspace.cpp | 70 int u, v, y1, y2, y3, y4; in JNI_COLORSPACE_METHOD() local 73 y2 = pInY[1]; in JNI_COLORSPACE_METHOD() 81 pOutColor[1] = convertYuvToRgba(y2, u, v); in JNI_COLORSPACE_METHOD()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | PathInterpolatorBuilder.java | 50 private void initCubic(float x1, float y1, float x2, float y2) { in initCubic() argument 53 path.cubicTo(x1, y1, x2, y2, 1f, 1f); in initCubic()
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | Path.cpp | 94 jfloat x2, jfloat y2) { in quadTo__FFFF() argument 96 obj->quadTo(x1, y1, x2, y2); in quadTo__FFFF() 106 jfloat y2, jfloat weight) { in conicTo() argument 108 obj->conicTo(x1, y1, x2, y2, weight); in conicTo() 118 jfloat x2, jfloat y2, jfloat x3, jfloat y3) { in cubicTo__FFFFFF() argument 120 obj->cubicTo(x1, y1, x2, y2, x3, y3); in cubicTo__FFFFFF() 124 jfloat x2, jfloat y2, jfloat x3, jfloat y3) { in rCubicTo() argument 126 obj->rCubicTo(x1, y1, x2, y2, x3, y3); in rCubicTo()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | EditorTouchState.java | 211 public static boolean isDistanceWithin(float x1, float y1, float x2, float y2, in isDistanceWithin() argument 214 float deltaY = y2 - y1; in isDistanceWithin()
|
H A D | GridLayout.java | 921 private void drawLine(Canvas graphics, int x1, int y1, int x2, int y2, Paint paint) { in drawLine() argument 924 graphics.drawLine(width - x1, y1, width - x2, y2, paint); in drawLine() 926 graphics.drawLine(x1, y1, x2, y2, paint); in drawLine() 1177 int y2 = vLocations[rowSpan.max]; in onLayout() local 1180 int cellHeight = y2 - y1; in onLayout()
|
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | ShaderProgram.java | 269 float x2, float y2, float x3, float y3); in setSourceRegion() argument 272 float x2, float y2, float x3, float y3); in setTargetRegion() argument
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
H A D | Quad.java | 326 private Quad(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3) { in Quad() argument 329 mBottomLeft = new PointF(x2, y2); in Quad()
|
/aosp14/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputShellCommand.java | 403 final float y2 = Float.parseFloat(getNextArgRequired()); in sendSwipe() local 423 lerp(x1, x2, alpha), lerp(y1, y2, alpha), 1.0f, displayId); in sendSwipe() 426 injectMotionEvent(inputSource, MotionEvent.ACTION_UP, down, now, x2, y2, 0.0f, in sendSwipe()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | HandwritingInitiator.java | 648 private boolean largerThanTouchSlop(float x1, float y1, float x2, float y2) { in largerThanTouchSlop() argument 650 float dy = y1 - y2; in largerThanTouchSlop()
|
H A D | ViewGroup.java | 4145 if (x1 != x2 && y1 != y2) { in fillRect() 4149 if (y1 > y2) { in fillRect() 4150 int tmp = y1; y1 = y2; y2 = tmp; in fillRect() 4174 int x2, int y2, int x3, int y3, in fillDifference() argument 4177 int y1 = y2 - dy1; in fillDifference() 4182 fillRect(canvas, paint, x1, y1, x4, y2); in fillDifference() 4183 fillRect(canvas, paint, x1, y2, x2, y3); in fillDifference() 9368 sDebugLines[7] = y2; in drawRect() 9371 sDebugLines[9] = y2; in drawRect() 9373 sDebugLines[11] = y2; in drawRect() [all …]
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_DngCreator.cpp | 1052 double y2 = yp * yp; in undistort() local 1053 double r2 = x2 + y2; in undistort() 1065 double ypp = yp * kr + p1 * (r2 + 2.0 * y2) + p2 * xy2; in undistort()
|
/aosp14/frameworks/base/core/res/geoid_height_map_assets/ |
H A D | tile-9.textpb | 2 …\223\024\270\245\024\021F(\305!\034\322c\270\245\357\\.\352il\032n\342Z\243y2\325\031nh\007&\244\0…
|