/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
D | Quad.java | 21 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/ |
D | PointF.java | 26 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(Point p) { in PointF() method in PointF 53 public final void set(PointF p) { in set() 80 PointF pointF = (PointF) o; in equals() 133 public static final Parcelable.Creator<PointF> CREATOR = new Parcelable.Creator<PointF>() { 137 public PointF createFromParcel(Parcel in) { 138 PointF r = new PointF(); 146 public PointF[] newArray(int size) { [all …]
|
/frameworks/base/core/java/android/animation/ |
D | PointFEvaluator.java | 18 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()
|
D | PathKeyframes.java | 19 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/services/tests/servicestests/src/com/android/server/accessibility/ |
D | GestureDescriptionTest.java | 28 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 …]
|
D | AccessibilityGestureDetectorTest.java | 28 import android.graphics.PointF; 45 private static final PointF PATH_START = new PointF(300f, 300f); 133 ArrayList<PointF> path = new ArrayList<>(); in testPath() 136 PointF segmentEnd = new PointF(PATH_START.x + delta.x, PATH_START.y + delta.y); in testPath() 144 ArrayList<PointF> path = new ArrayList<>(); in testPath() 147 PointF startPlusDelta1 = new PointF(PATH_START.x + delta1.x, PATH_START.y + delta1.y); in testPath() 150 PointF startPlusDelta2 = new PointF(PATH_START.x + delta2.x, PATH_START.y + delta2.y); in testPath() 157 private void fillPath(PointF start, PointF end, ArrayList<PointF> path) { in fillPath() 168 path.add(new PointF( in fillPath() 175 private void testPath(ArrayList<PointF> path, int gestureId) { in testPath() [all …]
|
D | MagnificationControllerTest.java | 40 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); 75 static final PointF OTHER_BOUNDS_LOWER_RIGHT_2X_CENTER = new PointF(400, 500); 198 final PointF center = INITIAL_MAGNIFICATION_BOUNDS_CENTER; 199 final PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, center, scale); 216 PointF pivotPoint = INITIAL_BOUNDS_LOWER_RIGHT_2X_CENTER; 221 PointF newCenter = new PointF((pivotPoint.x + INITIAL_MAGNIFICATION_BOUNDS.centerX()) / 2, 223 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipTouchState.java | 19 import android.graphics.PointF; 37 private final PointF mDownTouch = new PointF(); 38 private final PointF mDownDelta = new PointF(); 39 private final PointF mLastTouch = new PointF(); 40 private final PointF mLastDelta = new PointF(); 41 private final PointF mVelocity = new PointF(); 172 public PointF getVelocity() { in getVelocity() 179 public PointF getLastTouchPosition() { in getLastTouchPosition() 187 public PointF getLastTouchDelta() { in getLastTouchDelta() 194 public PointF getDownTouchPosition() { in getDownTouchPosition() [all …]
|
/frameworks/support/transition/src/android/support/transition/ |
D | ChangeBounds.java | 30 import android.graphics.PointF; 67 private static final Property<Drawable, PointF> DRAWABLE_ORIGIN_PROPERTY = 68 new Property<Drawable, PointF>(PointF.class, "boundsOrigin") { 72 public void set(Drawable object, PointF value) { 79 public PointF get(Drawable object) { 81 return new PointF(mBounds.left, mBounds.top); 85 private static final Property<ViewBounds, PointF> TOP_LEFT_PROPERTY = 86 new Property<ViewBounds, PointF>(PointF.class, "topLeft") { 88 public void set(ViewBounds viewBounds, PointF topLeft) { 93 public PointF get(ViewBounds viewBounds) { [all …]
|
D | PropertyValuesHolderUtils.java | 21 import android.graphics.PointF; 47 static PropertyValuesHolder ofPointF(Property<?, PointF> property, Path path) { in ofPointF()
|
D | ObjectAnimatorUtils.java | 21 import android.graphics.PointF; 37 static <T> ObjectAnimator ofPointF(T target, Property<T, PointF> property, Path path) { in ofPointF()
|
/frameworks/base/core/java/android/transition/ |
D | ChangeBounds.java | 30 import android.graphics.PointF; 67 private static final Property<Drawable, PointF> DRAWABLE_ORIGIN_PROPERTY = 68 new Property<Drawable, PointF>(PointF.class, "boundsOrigin") { 72 public void set(Drawable object, PointF value) { 79 public PointF get(Drawable object) { 81 return new PointF(mBounds.left, mBounds.top); 85 private static final Property<ViewBounds, PointF> TOP_LEFT_PROPERTY = 86 new Property<ViewBounds, PointF>(PointF.class, "topLeft") { 88 public void set(ViewBounds viewBounds, PointF topLeft) { 93 public PointF get(ViewBounds viewBounds) { [all …]
|
D | ChangeTransform.java | 27 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/support/transition/api14/android/support/transition/ |
D | PathProperty.java | 21 import android.graphics.PointF; 37 private final Property<T, PointF> mProperty; 41 private final PointF mPointF = new PointF(); 44 PathProperty(Property<T, PointF> property, Path path) { in PathProperty()
|
D | PropertyValuesHolderUtilsApi14.java | 21 import android.graphics.PointF; 29 public PropertyValuesHolder ofPointF(Property<?, PointF> property, Path path) { in ofPointF()
|
D | ObjectAnimatorUtilsApi14.java | 21 import android.graphics.PointF; 29 public <T> ObjectAnimator ofPointF(T target, Property<T, PointF> property, Path path) { in ofPointF()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityGestureDetector.java | 26 import android.graphics.PointF; 473 ArrayList<PointF> path = new ArrayList<>(); in recognizeGesture() 474 PointF lastDelimiter = new PointF(mStrokeBuffer.get(0).x, mStrokeBuffer.get(0).y); in recognizeGesture() 482 PointF next = new PointF(); in recognizeGesture() 484 next = new PointF(mStrokeBuffer.get(i).x, mStrokeBuffer.get(i).y); in recognizeGesture() 497 PointF newDelimiter = new PointF(length * currentDX + lastDelimiter.x, in recognizeGesture() 548 ArrayList<PointF> path) { in recognizeGesturePath() 551 PointF start = path.get(0); in recognizeGesturePath() 552 PointF end = path.get(1); in recognizeGesturePath() 571 PointF start = path.get(0); in recognizeGesturePath() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/animation/ |
D | CurvedTranslateAnimation.java | 22 import android.graphics.PointF; 39 PointF location = (PointF) mKeyframes.getValue(interpolatedTime); in applyTransformation()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/ |
D | OctopusDrawable.java | 26 import android.graphics.PointF; 50 final PointF point = new PointF(); 264 static Path pathMoveTo(Path p, PointF pt) { in pathMoveTo() 268 static Path pathQuadTo(Path p, PointF p1, PointF p2) { in pathQuadTo() 273 static void mapPointF(Matrix m, PointF point) { in mapPointF() 310 public PointF start() { in start() 311 return new PointF(coords[0].getValue(), coords[1].getValue()); in start() 313 public PointF end() { in end() 314 return new PointF(coords[0].getValue()+dx,coords[1].getValue()+dy); in end() 316 public PointF mid() { in mid() [all …]
|
/frameworks/support/transition/base/android/support/transition/ |
D | PropertyValuesHolderUtilsImpl.java | 21 import android.graphics.PointF; 26 PropertyValuesHolder ofPointF(Property<?, PointF> property, Path path); in ofPointF()
|
D | ObjectAnimatorUtilsImpl.java | 21 import android.graphics.PointF; 26 <T> ObjectAnimator ofPointF(T target, Property<T, PointF> property, Path path); in ofPointF()
|
/frameworks/support/transition/api21/android/support/transition/ |
D | PropertyValuesHolderUtilsApi21.java | 21 import android.graphics.PointF; 29 public PropertyValuesHolder ofPointF(Property<?, PointF> property, Path path) { in ofPointF()
|
D | ObjectAnimatorUtilsApi21.java | 21 import android.graphics.PointF; 29 public <T> ObjectAnimator ofPointF(T target, Property<T, PointF> property, Path path) { in ofPointF()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | LinearSmoothScroller.java | 20 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/core/java/com/android/internal/widget/ |
D | LinearSmoothScroller.java | 21 import android.graphics.PointF; 87 protected PointF mTargetVector; 232 PointF scrollVector = computeScrollVectorForPosition(getTargetPosition()); in updateActionForInterimTarget() 351 public PointF computeScrollVectorForPosition(int targetPosition) { in computeScrollVectorForPosition()
|