Home
last modified time | relevance | path

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

1234567

/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/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/graphics/java/android/graphics/
DPointF.java27 public class PointF implements Parcelable { class
31 public PointF() {} in PointF() method in PointF
33 public PointF(float x, float y) { in PointF() method in PointF
38 public PointF(@NonNull Point p) { in PointF() method in PointF
50 public PointF(@NonNull PointF p) { in PointF() method in PointF
66 public final void set(@NonNull PointF p) { in set()
93 PointF pointF = (PointF) o; in equals()
146 …final @android.annotation.NonNull Parcelable.Creator<PointF> CREATOR = new Parcelable.Creator<Poin…
151 public PointF createFromParcel(Parcel in) {
152 PointF r = new PointF();
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipPinchResizingAlgorithm.java19 import android.graphics.PointF;
32 private final PointF mTmpDownVector = new PointF();
33 private final PointF mTmpLastVector = new PointF();
34 private final PointF mTmpDownCentroid = new PointF();
35 private final PointF mTmpLastCentroid = new PointF();
41 public float calculateBoundsAndAngle(PointF downPoint, PointF downSecondPoint, in calculateBoundsAndAngle()
42 PointF lastPoint, PointF lastSecondPoint, Point minSize, Point maxSize, in calculateBoundsAndAngle()
113 private void getCentroid(PointF p1, PointF p2, PointF centroidOut) { in getCentroid()
117 private float dot(PointF p1, PointF p2) { in dot()
121 private float cross(PointF p1, PointF p2) { in cross()
/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);
/frameworks/base/core/java/android/view/inputmethod/
DRemoveSpaceGesture.java22 import android.graphics.PointF;
31 private final PointF mStartPoint;
32 private final PointF mEndPoint;
34 private RemoveSpaceGesture(PointF startPoint, PointF endPoint, String fallbackText) { in RemoveSpaceGesture()
43 mStartPoint = source.readTypedObject(PointF.CREATOR); in RemoveSpaceGesture()
44 mEndPoint = source.readTypedObject(PointF.CREATOR); in RemoveSpaceGesture()
50 public PointF getStartPoint() { in getStartPoint()
56 public PointF getEndPoint() { in getEndPoint()
62 private PointF mStartPoint;
63 private PointF mEndPoint;
[all …]
DJoinOrSplitGesture.java21 import android.graphics.PointF;
34 private final PointF mPoint;
36 private JoinOrSplitGesture(PointF point, String fallbackText) { in JoinOrSplitGesture()
44 mPoint = source.readTypedObject(PointF.CREATOR); in JoinOrSplitGesture()
52 public PointF getJoinOrSplitPoint() { in getJoinOrSplitPoint()
58 private PointF mPoint;
73 public Builder setJoinOrSplitPoint(@NonNull PointF point) { in setJoinOrSplitPoint()
DInsertModeGesture.java21 import android.graphics.PointF;
45 private PointF mPoint;
47 private InsertModeGesture(PointF point, String fallbackText, in InsertModeGesture()
58 mPoint = source.readTypedObject(PointF.CREATOR); in InsertModeGesture()
79 public PointF getInsertionPoint() { in getInsertionPoint()
87 private PointF mPoint;
98 public Builder setInsertionPoint(@NonNull PointF point) { in setInsertionPoint()
DInsertGesture.java21 import android.graphics.PointF;
38 private PointF mPoint;
40 private InsertGesture(String text, PointF point, String fallbackText) { in InsertGesture()
51 mPoint = source.readTypedObject(PointF.CREATOR); in InsertGesture()
66 public PointF getInsertionPoint() { in getInsertionPoint()
75 private PointF mPoint;
96 public Builder setInsertionPoint(@NonNull PointF point) { in setInsertionPoint()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DFullScreenMagnificationGestureHandlerTest.java57 import android.graphics.PointF;
178 public static final PointF DEFAULT_POINT = new PointF(DEFAULT_X, DEFAULT_Y);
708 PointF pointer1 = DEFAULT_POINT; in testThreeFingersOneTap_activatedState_dispatchMotionEvents()
709 PointF pointer2 = new PointF(DEFAULT_X * 1.5f, DEFAULT_Y); in testThreeFingersOneTap_activatedState_dispatchMotionEvents()
710 PointF pointer3 = new PointF(DEFAULT_X * 2, DEFAULT_Y); in testThreeFingersOneTap_activatedState_dispatchMotionEvents()
713 send(pointerEvent(ACTION_POINTER_DOWN, new PointF[] {pointer1, pointer2}, 1)); in testThreeFingersOneTap_activatedState_dispatchMotionEvents()
714 send(pointerEvent(ACTION_POINTER_DOWN, new PointF[] {pointer1, pointer2, pointer3}, 2)); in testThreeFingersOneTap_activatedState_dispatchMotionEvents()
715 send(pointerEvent(ACTION_POINTER_UP, new PointF[] {pointer1, pointer2, pointer3}, 2)); in testThreeFingersOneTap_activatedState_dispatchMotionEvents()
716 send(pointerEvent(ACTION_POINTER_UP, new PointF[] {pointer1, pointer2, pointer3}, 2)); in testThreeFingersOneTap_activatedState_dispatchMotionEvents()
736 PointF pointer1 = DEFAULT_POINT; in testFirstFingerSwipe_twoPointerDownAndActivatedState_panningState()
[all …]
DTwoFingersDownOrSwipeTest.java30 import android.graphics.PointF;
100 new PointF(DEFAULT_X, DEFAULT_Y), new PointF(DEFAULT_X + 10, DEFAULT_Y + 10)); in sendTwoFingerDownEvent_onGestureCompleted_withoutCopiedEvents()
115 new PointF(DEFAULT_X, DEFAULT_Y), new PointF(DEFAULT_X + 10, DEFAULT_Y + 10)); in sendTwoFingerDownEvent_onGestureCompleted()
145 new PointF(DEFAULT_X, DEFAULT_Y), new PointF(DEFAULT_X + 10, DEFAULT_Y + 10)); in firstPointerMove_twoPointersDown_onGestureCompleted()
161 new PointF(DEFAULT_X, DEFAULT_Y), new PointF(DEFAULT_X + 10, DEFAULT_Y + 10)); in secondPointerMove_twoPointersDown_onGestureCompleted()
/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 …]
/frameworks/base/core/java/android/transition/
DChangeBounds.java33 import android.graphics.PointF;
71 private static final Property<Drawable, PointF> DRAWABLE_ORIGIN_PROPERTY =
72 new Property<Drawable, PointF>(PointF.class, "boundsOrigin") {
76 public void set(Drawable object, PointF value) {
83 public PointF get(Drawable object) {
85 return new PointF(mBounds.left, mBounds.top);
89 private static final Property<ViewBounds, PointF> TOP_LEFT_PROPERTY =
90 new Property<ViewBounds, PointF>(PointF.class, "topLeft") {
92 public void set(ViewBounds viewBounds, PointF topLeft) {
97 public PointF get(ViewBounds viewBounds) {
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DGestureManifoldTest.java28 import android.graphics.PointF;
47 private static final PointF PATH_START = new PointF(300f, 300f);
106 ArrayList<PointF> path = new ArrayList<>(); in testPath()
109 PointF segmentEnd = new PointF(PATH_START.x + delta.x, PATH_START.y + delta.y); in testPath()
117 ArrayList<PointF> path = new ArrayList<>(); in testPath()
120 PointF startPlusDelta1 = new PointF(PATH_START.x + delta1.x, PATH_START.y + delta1.y); in testPath()
123 PointF startPlusDelta2 = new PointF(PATH_START.x + delta2.x, PATH_START.y + delta2.y); in testPath()
130 private void fillPath(PointF start, PointF end, ArrayList<PointF> path) { in fillPath()
142 new PointF( in fillPath()
149 private void testPath(ArrayList<PointF> path, int gestureId) { in testPath()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchState.java19 import android.graphics.PointF;
52 private final PointF mDownTouch = new PointF();
53 private final PointF mDownDelta = new PointF();
54 private final PointF mLastTouch = new PointF();
55 private final PointF mLastDelta = new PointF();
56 private final PointF mVelocity = new PointF();
239 public PointF getVelocity() {
246 public PointF getLastTouchPosition() {
254 public PointF getLastTouchDelta() {
261 public PointF getDownTouchPosition() {
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipTouchState.java19 import android.graphics.PointF;
52 private final PointF mDownTouch = new PointF();
53 private final PointF mDownDelta = new PointF();
54 private final PointF mLastTouch = new PointF();
55 private final PointF mLastDelta = new PointF();
56 private final PointF mVelocity = new PointF();
239 public PointF getVelocity() {
246 public PointF getLastTouchPosition() {
254 public PointF getLastTouchDelta() {
261 public PointF getDownTouchPosition() {
[all …]
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DPositionListenerActivity.java22 import android.graphics.PointF;
48 PointF opts[] = new PointF[] { in onCreate()
49 new PointF(0, 0), in onCreate()
50 new PointF(0, -1f), in onCreate()
51 new PointF(1f, 0), in onCreate()
52 new PointF(0, 1f), in onCreate()
53 new PointF(-1f, 0), in onCreate()
54 new PointF(-1f, 1f), in onCreate()
73 PointF dir = opts[setting]; in onCreate()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DMultiFingerMultiTap.java20 import android.graphics.PointF;
50 private PointF[] mBases;
53 private ArrayList<PointF> mExcludedPointsForDownSlopChecked;
73 mBases = new PointF[mTargetFingerCount]; in MultiFingerMultiTap()
75 mBases[i] = new PointF(); in MultiFingerMultiTap()
109 final PointF nearest = findNearestPoint(rawEvent, mDoubleTapSlop, true); in onDown()
123 final PointF nearest = findNearestPoint(rawEvent, mTouchSlop, false); in onUp()
170 final PointF nearest; in onPointerDown()
223 private PointF initBaseLocation(MotionEvent event) { in initBaseLocation()
226 final PointF p = mBases[baseIndex]; in initBaseLocation()
[all …]
DSwipe.java23 import android.graphics.PointF;
50 private final ArrayList<PointF> mStrokeBuffer = new ArrayList<>(100);
181 mStrokeBuffer.add(new PointF(mBaseX, mBaseY)); in onMove()
206 mStrokeBuffer.add(new PointF(x, y)); in onMove()
222 mStrokeBuffer.add(new PointF(x, y)); in onUp()
257 ArrayList<PointF> path = new ArrayList<>(); in recognizeGesture()
258 PointF lastDelimiter = mStrokeBuffer.get(0); in recognizeGesture()
266 PointF next = null; in recognizeGesture()
281 PointF newDelimiter = in recognizeGesture()
282 new PointF( in recognizeGesture()
[all …]
DMultiFingerSwipe.java25 import android.graphics.PointF;
49 private final ArrayList<PointF>[] mStrokeBuffers;
55 private PointF[] mBase;
57 private PointF[] mPreviousGesturePoint;
83 mBase = new PointF[mTargetFingerCount]; in MultiFingerSwipe()
84 mPreviousGesturePoint = new PointF[mTargetFingerCount]; in MultiFingerSwipe()
104 mBase[i] = new PointF(); in clear()
109 mPreviousGesturePoint[i] = new PointF(); in clear()
233 mStrokeBuffers[pointerIndex].add(new PointF(x, y)); in onPointerUp()
297 mStrokeBuffers[i].add(new PointF(mBase[i])); in onMove()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DExpandedViewAnimationController.java18 import android.graphics.PointF;
62 void animateCollapse(Runnable startStackCollapse, Runnable after, PointF collapsePosition); in animateCollapse()
87 void animateExpansion(long startDelayMillis, Runnable after, PointF collapsePosition, in animateExpansion()
88 PointF bubblePosition); in animateExpansion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMagnificationGestureDetector.java22 import android.graphics.PointF;
81 private final PointF mPointerDown = new PointF();
82 private final PointF mPointerLocation = new PointF(Float.NaN, Float.NaN);
188 private static void resetPointF(PointF pointF) { in resetPointF()
193 private static boolean isLocationValid(PointF location) { in isLocationValid()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuAnimationController.java22 import android.graphics.PointF;
109 void moveToPosition(PointF position) { in moveToPosition()
114 void moveToPosition(PointF position, boolean animateMovement) { in moveToPosition()
168 moveAndPersistPosition(new PointF(draggableBounds.left, draggableBounds.top)); in moveToTopLeftPosition()
174 moveAndPersistPosition(new PointF(draggableBounds.right, draggableBounds.top)); in moveToTopRightPosition()
180 moveAndPersistPosition(new PointF(draggableBounds.left, draggableBounds.bottom)); in moveToBottomLeftPosition()
186 moveAndPersistPosition(new PointF(draggableBounds.right, draggableBounds.bottom)); in moveToBottomRightPosition()
189 void moveAndPersistPosition(PointF position) { in moveAndPersistPosition()
287 onSpringAnimationsEnd(new PointF(mMenuView.getTranslationX(),
312 new PointF(mMenuView.getTranslationX(), mMenuView.getTranslationY()), in maybeMoveToEdgeAndHide()
[all …]
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DParcelableHandwritingGestureTest.java23 import android.graphics.PointF;
85 .setInsertionPoint(new PointF(1, 1)).setFallbackText("") in testInsertGestureGesture()
92 .setInsertionPoint(new PointF(1, 1)).setFallbackText("") in testInsertModeGesture()
119 .setPoints(new PointF(1f, 2f), new PointF(3f, 4f)) in testRemoveSpaceGestureGesture()
127 .setJoinOrSplitPoint(new PointF(1f, 2f)) in testJoinOrSplitGestureGesture()

1234567