Home
last modified time | relevance | path

Searched refs:PointF (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
DQuad.java21 import android.graphics.PointF;
40 private final PointF mTopLeft;
41 private final PointF mTopRight;
42 private final PointF mBottomLeft;
43 private final PointF mBottomRight;
61 return new Quad(new PointF(rect.left, rect.top), in fromRect()
62 new PointF(rect.right, rect.top), in fromRect()
63 new PointF(rect.left, rect.bottom), in fromRect()
64 new PointF(rect.right, rect.bottom)); in fromRect()
77 return new Quad(new PointF(x, y), in fromRect()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DCornerPathRenderer.java20 import android.graphics.PointF;
61 List<PointF> points = shiftBy(getApproximatePoints(input), delta); in approximateInnerPath()
65 private ArrayList<PointF> getApproximatePoints(Path path) { in getApproximatePoints()
68 ArrayList<PointF> output = new ArrayList<>(); in getApproximatePoints()
71 output.add(new PointF(rawInput[i + 1], rawInput[i + 2])); in getApproximatePoints()
77 private ArrayList<PointF> shiftBy(ArrayList<PointF> input, float delta) { in shiftBy()
78 ArrayList<PointF> output = new ArrayList<>(); in shiftBy()
81 PointF point = input.get(i); in shiftBy()
82 PointF normal = normalAt(input, i); in shiftBy()
83 PointF shifted = in shiftBy()
[all …]
/frameworks/base/graphics/java/android/graphics/
DPointF.java26 public class PointF implements Parcelable { class
30 public PointF() {} in PointF() method in PointF
32 public PointF(float x, float y) { in PointF() method in PointF
37 public PointF(@NonNull Point p) { in PointF() method in PointF
53 public final void set(@NonNull PointF p) { in set()
80 PointF pointF = (PointF) o; in equals()
133 …final @android.annotation.NonNull Parcelable.Creator<PointF> CREATOR = new Parcelable.Creator<Poin…
138 public PointF createFromParcel(Parcel in) {
139 PointF r = new PointF();
148 public PointF[] newArray(int size) {
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DGestureDescriptionTest.java28 import android.graphics.PointF;
44 PointF click = new PointF(10, 20); in testGestureShorterThanSampleRate_producesStartAndEnd()
68 PointF start = new PointF(10, 20); in testSwipe_shouldContainEvenlySpacedPoints()
69 PointF end = new PointF(10 + numSamples * stepX, 20 + numSamples * stepY); in testSwipe_shouldContainEvenlySpacedPoints()
83 PointF interpPoint = new PointF(start.x + stepX * i, start.y + stepY * i); in testSwipe_shouldContainEvenlySpacedPoints()
97 assertThat(swipeGestureSteps.get(0), hasPoint(new PointF(10, 21))); in testSwipeWithNonIntegerValues_shouldRound()
98 assertThat(swipeGestureSteps.get(1), hasPoint(new PointF(12, 22))); in testSwipeWithNonIntegerValues_shouldRound()
108 PointF path0Start = new PointF(100, 150); in testPathsWithOverlappingTiming_produceCorrectSteps()
109 PointF path0Turn = new PointF(100, 200); in testPathsWithOverlappingTiming_produceCorrectSteps()
110 PointF path0End = new PointF(250, 200); in testPathsWithOverlappingTiming_produceCorrectSteps()
[all …]
DAccessibilityGestureDetectorTest.java28 import android.graphics.PointF;
44 private static final PointF PATH_START = new PointF(300f, 300f);
107 ArrayList<PointF> path = new ArrayList<>(); in testPath()
110 PointF segmentEnd = new PointF(PATH_START.x + delta.x, PATH_START.y + delta.y); in testPath()
118 ArrayList<PointF> path = new ArrayList<>(); in testPath()
121 PointF startPlusDelta1 = new PointF(PATH_START.x + delta1.x, PATH_START.y + delta1.y); in testPath()
124 PointF startPlusDelta2 = new PointF(PATH_START.x + delta2.x, PATH_START.y + delta2.y); in testPath()
131 private void fillPath(PointF start, PointF end, ArrayList<PointF> path) { in fillPath()
142 path.add(new PointF( in fillPath()
149 private void testPath(ArrayList<PointF> path, int gestureId) { in testPath()
[all …]
DMagnificationControllerTest.java41 import android.graphics.PointF;
70 static final PointF INITIAL_MAGNIFICATION_BOUNDS_CENTER = new PointF(
72 static final PointF INITIAL_BOUNDS_UPPER_LEFT_2X_CENTER = new PointF(25, 50);
73 static final PointF INITIAL_BOUNDS_LOWER_RIGHT_2X_CENTER = new PointF(75, 150);
76 static final PointF OTHER_BOUNDS_LOWER_RIGHT_2X_CENTER = new PointF(400, 500);
218 final PointF center = INITIAL_MAGNIFICATION_BOUNDS_CENTER;
219 final PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, center, scale);
245 PointF pivotPoint = INITIAL_BOUNDS_LOWER_RIGHT_2X_CENTER;
251 PointF newCenter = new PointF((pivotPoint.x + INITIAL_MAGNIFICATION_BOUNDS.centerX()) / 2,
253 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale);
[all …]
DTouchExplorerTest.java24 import android.graphics.PointF;
161 private static PointF p(int x, int y) { in p()
162 return new PointF(x, y); in p()
284 private void moveEachPointers(MotionEvent event, PointF... points) { in moveEachPointers()
/frameworks/base/core/java/android/animation/
DPointFEvaluator.java18 import android.graphics.PointF;
23 public class PointFEvaluator implements TypeEvaluator<PointF> {
29 private PointF mPoint;
50 public PointFEvaluator(PointF reuse) { in PointFEvaluator()
72 public PointF evaluate(float fraction, PointF startValue, PointF endValue) { in evaluate()
80 return new PointF(x, y); in evaluate()
DPathKeyframes.java19 import android.graphics.PointF;
46 private PointF mTempPointF = new PointF();
99 private PointF interpolateInRange(float fraction, int startIndex, int endIndex) { in interpolateInRange()
126 return PointF.class; in getType()
138 private PointF pointForIndex(int index) { in pointForIndex()
159 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction); in createXFloatKeyframes()
173 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
187 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
201 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
DPropertyValuesHolder.java20 import android.graphics.PointF;
428 TypeConverter<PointF, ?> converter, Path path) { in ofObject() argument
431 pvh.mValueType = PointF.class; in ofObject()
513 TypeConverter<PointF, V> converter, Path path) { in ofObject() argument
516 pvh.mValueType = PointF.class; in ofObject()
1661 private static class PointFToFloatArray extends TypeConverter<PointF, float[]> {
1665 super(PointF.class, float[].class); in PointFToFloatArray()
1669 public float[] convert(PointF value) { in convert()
1679 private static class PointFToIntArray extends TypeConverter<PointF, int[]> {
1683 super(PointF.class, int[].class); in PointFToIntArray()
[all …]
/frameworks/base/core/java/android/transition/
DChangeBounds.java31 import android.graphics.PointF;
69 private static final Property<Drawable, PointF> DRAWABLE_ORIGIN_PROPERTY =
70 new Property<Drawable, PointF>(PointF.class, "boundsOrigin") {
74 public void set(Drawable object, PointF value) {
81 public PointF get(Drawable object) {
83 return new PointF(mBounds.left, mBounds.top);
87 private static final Property<ViewBounds, PointF> TOP_LEFT_PROPERTY =
88 new Property<ViewBounds, PointF>(PointF.class, "topLeft") {
90 public void set(ViewBounds viewBounds, PointF topLeft) {
95 public PointF get(ViewBounds viewBounds) {
[all …]
DChangeTransform.java27 import android.graphics.PointF;
82 private static final Property<PathAnimatorMatrix, PointF> TRANSLATIONS_PROPERTY =
83 new Property<PathAnimatorMatrix, PointF>(PointF.class, "translations") {
85 public PointF get(PathAnimatorMatrix object) {
90 public void set(PathAnimatorMatrix object, PointF value) {
525 public void setTranslation(PointF translation) { in setTranslation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchState.java19 import android.graphics.PointF;
48 private final PointF mDownTouch = new PointF();
49 private final PointF mDownDelta = new PointF();
50 private final PointF mLastTouch = new PointF();
51 private final PointF mLastDelta = new PointF();
52 private final PointF mVelocity = new PointF();
206 public PointF getVelocity() {
213 public PointF getLastTouchPosition() {
221 public PointF getLastTouchDelta() {
228 public PointF getDownTouchPosition() {
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityGestureDetector.java26 import android.graphics.PointF;
488 ArrayList<PointF> path = new ArrayList<>(); in recognizeGesture()
489 PointF lastDelimiter = new PointF(mStrokeBuffer.get(0).x, mStrokeBuffer.get(0).y); in recognizeGesture()
497 PointF next = new PointF(); in recognizeGesture()
499 next = new PointF(mStrokeBuffer.get(i).x, mStrokeBuffer.get(i).y); in recognizeGesture()
512 PointF newDelimiter = new PointF(length * currentDX + lastDelimiter.x, in recognizeGesture()
563 ArrayList<PointF> path) { in recognizeGesturePath()
566 PointF start = path.get(0); in recognizeGesturePath()
567 PointF end = path.get(1); in recognizeGesturePath()
586 PointF start = path.get(0); in recognizeGesturePath()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
DSwipeDetector.java21 import android.graphics.PointF;
74 abstract float getDisplacement(MotionEvent ev, int pointerIndex, PointF refPoint); in getDisplacement()
79 abstract float getActiveTouchSlop(MotionEvent ev, int pointerIndex, PointF downPos); in getActiveTouchSlop()
85 float getDisplacement(MotionEvent ev, int pointerIndex, PointF refPoint) {
90 float getActiveTouchSlop(MotionEvent ev, int pointerIndex, PointF downPos) {
98 float getDisplacement(MotionEvent ev, int pointerIndex, PointF refPoint) {
103 float getActiveTouchSlop(MotionEvent ev, int pointerIndex, PointF downPos) {
154 private final PointF mDownPos = new PointF();
155 private final PointF mLastPos = new PointF();
/frameworks/base/services/core/java/com/android/server/wm/animation/
DCurvedTranslateAnimation.java22 import android.graphics.PointF;
39 PointF location = (PointF) mKeyframes.getValue(interpolatedTime); in applyTransformation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/
DBubbleFlyoutViewTest.java25 import android.graphics.PointF;
63 "Hello", new PointF(100, 100), 500, true, Color.WHITE, null, null, mDotCenter); in testShowFlyout_isVisible()
74 "Hello", new PointF(100, 100), 500, true, Color.WHITE, null, after, mDotCenter); in testFlyoutHide_runsCallback()
83 "Hello", new PointF(100, 100), 500, true, Color.WHITE, null, null, mDotCenter); in testSetCollapsePercent()
/frameworks/base/core/tests/coretests/src/android/widget/
DSelectionActionModeHelperTest.java23 import android.graphics.PointF;
110 final PointF point = new PointF(pointX, pointY); in testMovePointInsideNearestRectangle()
111 final PointF adjustedPoint = in testMovePointInsideNearestRectangle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DStackAnimationController.java20 import android.graphics.PointF;
96 private PointF mStackPosition = new PointF(-1, -1);
102 @Nullable private PointF mRestingStackPosition;
187 public PointF getStackPosition() { in getStackPosition()
289 public PointF getStackPositionAlongNearestHorizontalEdge() {
290 final PointF stackPos = getStackPosition();
310 setStackPosition(new PointF(x, y));
368 mRestingStackPosition = new PointF();
770 private void setStackPosition(PointF pos) {
794 private PointF getDefaultStartPosition() {
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleTouchHandler.java20 import android.graphics.PointF;
56 private final PointF mTouchDown = new PointF();
57 private final PointF mViewPositionOnTouchDown = new PointF();
/frameworks/base/core/java/com/android/internal/widget/
DLinearSmoothScroller.java21 import android.graphics.PointF;
87 protected PointF mTargetVector;
232 PointF scrollVector = computeScrollVectorForPosition(getTargetPosition()); in updateActionForInterimTarget()
351 public PointF computeScrollVectorForPosition(int targetPosition) { in computeScrollVectorForPosition()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DCoordinateTransformsTest.java33 import android.graphics.PointF;
198 final PointF transformedPoint = new PointF(fs[0], fs[1]); in checkPoint()
202 transformedPoint, is(new PointF(expectedX, expectedY))); in checkPoint()
/frameworks/base/media/java/android/media/
DFaceDetector.java20 import android.graphics.PointF;
58 public void getMidPoint(PointF point) { in getMidPoint()
/frameworks/base/core/java/android/hardware/camera2/params/
DTonemapCurve.java21 import android.graphics.PointF;
189 public PointF getPoint(int colorChannel, int index) { in getPoint()
200 return new PointF(pIn, pOut); in getPoint()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/
DStackAnimationControllerTest.java23 import android.graphics.PointF;
81 assertEquals(new PointF(200, 100), mStackController.getStackPosition()); in testMoveFirstBubbleWithStackFollowing()
97 assertEquals(new PointF(1000, 500), mStackController.getStackPosition()); in testMoveFirstBubbleWithStackFollowing()
221 final PointF prevStackPos = mStackController.getStackPosition(); in testRestoredAtRestingPosition()

123