/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
D | Rectangle.java | 45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) { in fromRotatedRect() argument 46 Point p0 = new Point(center.x - size.x/2f, center.y - size.y/2f); in fromRotatedRect() 47 Point p1 = new Point(center.x + size.x/2f, center.y - size.y/2f); in fromRotatedRect() 48 Point p2 = new Point(center.x - size.x/2f, center.y + size.y/2f); in fromRotatedRect() 49 Point p3 = new Point(center.x + size.x/2f, center.y + size.y/2f); in fromRotatedRect() 50 return new Rectangle(p0.rotatedAround(center, rotation), in fromRotatedRect() 51 p1.rotatedAround(center, rotation), in fromRotatedRect() 52 p2.rotatedAround(center, rotation), in fromRotatedRect() 53 p3.rotatedAround(center, rotation)); in fromRotatedRect() 60 public static Rectangle fromCenterVerticalAxis(Point center, Point vAxis, Point size) { in fromCenterVerticalAxis() argument [all …]
|
D | Point.java | 110 public Point rotatedAround(Point center, float radians) { in rotatedAround() argument 111 return this.minus(center).rotated(radians).plus(center); in rotatedAround()
|
/frameworks/base/core/java/android/gesture/ |
D | Instance.java | 93 float[] center = GestureUtils.computeCentroid(pts); in temporalSampler() local 94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]); in temporalSampler() 107 GestureUtils.translate(pts, -center[0], -center[1]); in temporalSampler()
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | fisheye_approx.rsh | 20 static float2 center, neg_center, inv_dimensions, axis_scale; 24 center.x = center_x; 25 center.y = center_y; 26 neg_center = -center; 46 // Convert x and y to floating point coordinates with center as origin 54 const float2 new_coord = mad(coord, scalar, center);
|
D | fisheye.rsh | 20 static float2 center, neg_center, inv_dimensions, axis_scale; 24 center.x = center_x; 25 center.y = center_y; 26 neg_center = -center; 46 // Convert x and y to floating point coordinates with center as origin 54 const float2 new_coord = mad(coord, scalar, center);
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | fisheye.rsh | 20 static float2 center, neg_center, inv_dimensions, axis_scale; 24 center.x = center_x; 25 center.y = center_y; 26 neg_center = -center; 46 // Convert x and y to floating point coordinates with center as origin 54 const float2 new_coord = mad(coord, scalar, center);
|
D | fisheye_approx.rsh | 20 static float2 center, neg_center, inv_dimensions, axis_scale; 24 center.x = center_x; 25 center.y = center_y; 26 neg_center = -center; 46 // Convert x and y to floating point coordinates with center as origin 54 const float2 new_coord = mad(coord, scalar, center);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | fisheye_approx.rsh | 20 static float2 center, neg_center, inv_dimensions, axis_scale; 24 center.x = center_x; 25 center.y = center_y; 26 neg_center = -center; 46 // Convert x and y to floating point coordinates with center as origin 54 const float2 new_coord = mad(coord, scalar, center);
|
D | fisheye.rsh | 20 static float2 center, neg_center, inv_dimensions, axis_scale; 24 center.x = center_x; 25 center.y = center_y; 26 neg_center = -center; 46 // Convert x and y to floating point coordinates with center as origin 54 const float2 new_coord = mad(coord, scalar, center);
|
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/ |
D | fisheye_approx_f.rsh | 20 static float2 center, neg_center, inv_dimensions, axis_scale; 26 center.x = center_x; 27 center.y = center_y; 28 neg_center = -center; 48 // Convert x and y to floating point coordinates with center as origin 56 const float2 new_coord = mad(coord, scalar, center);
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | geometry.cpp | 137 bool SlantedRect::FromCenterAxisAndLengths(const Point& center, in FromCenterAxisAndLengths() argument 150 points_[0] = center - dx - dy; in FromCenterAxisAndLengths() 151 points_[1] = center + dx - dy; in FromCenterAxisAndLengths() 152 points_[2] = center - dx + dy; in FromCenterAxisAndLengths() 153 points_[3] = center + dx + dy; in FromCenterAxisAndLengths()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
D | Quad.java | 184 PointF center = center(); in rotated() local 188 PointF topLeft = rotatePoint(topLeft(), center, cosa, sina); in rotated() 189 PointF topRight = rotatePoint(topRight(), center, cosa, sina); in rotated() 190 PointF bottomLeft = rotatePoint(bottomLeft(), center, cosa, sina); in rotated() 191 PointF bottomRight = rotatePoint(bottomRight(), center, cosa, sina); in rotated() 218 public PointF center() { in center() method in Quad 249 PointF pc = center(); in grow()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | bugdroid.rs | 68 static float distanceCircle(float3 center, float radius, float3 normal, 70 float3 pc = img - center; 77 static short circle(float3 center, float circleRadius, float3 normal, float rad, 80 * sigmoid(distanceCircle(center, circleRadius, normal, img) - rad)); 83 static float distanceDisk(float3 center, float radius, float3 normal, 85 float3 pc = img - center; 103 static short cogDisk(float3 center, float circleRadius, float3 normal, 105 float3 vec = center - img; 109 distanceDisk(center, circleRadius * (1 + angle / 10),
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | HwBitmapInCompositeShader.cpp | 57 SkPoint center; in createContent() local 58 center.set(50, 50); in createContent() 63 center, 50, colors, nullptr, 2, SkShader::TileMode::kRepeat_TileMode); in createContent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | MultiUserSwitch.java | 149 View center = getChildCount() > 0 ? getChildAt(0) : this; in onClick() local 151 center.getLocationInWindow(mTmpInt2); in onClick() 152 mTmpInt2[0] += center.getWidth() / 2; in onClick() 153 mTmpInt2[1] += center.getHeight() / 2; in onClick()
|
/frameworks/base/test-runner/src/android/test/ |
D | ViewAsserts.java | 298 int center = (reference.getMeasuredWidth() - test.getMeasuredWidth()) / 2; in assertHorizontalCenterAligned() local 301 assertEquals("views are not horizontally center aligned", center, delta); in assertHorizontalCenterAligned() 319 int center = (reference.getMeasuredHeight() - test.getMeasuredHeight()) / 2; in assertVerticalCenterAligned() local 322 assertEquals("views are not vertically center aligned", center, delta); in assertVerticalCenterAligned()
|
/frameworks/av/media/extractors/mp4/ |
D | SampleTable.cpp | 738 uint32_t center = left + (right_plus_one - left) / 2; in findSampleAtTime() local 740 getSampleTime(center, scale_num, scale_den); in findSampleAtTime() 743 right_plus_one = center; in findSampleAtTime() 745 left = center + 1; in findSampleAtTime() 747 *sample_index = mSampleTimeEntries[center].mSampleIndex; in findSampleAtTime() 820 uint32_t center = left + (right_plus_one - left) / 2; in findSyncSampleNear() local 821 uint32_t x = mSyncSamples[center]; in findSyncSampleNear() 824 right_plus_one = center; in findSyncSampleNear() 826 left = center + 1; in findSyncSampleNear()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FatalTestCanvas.h | 77 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& dst, const SkPaint*) { in onDrawImageNine() argument 91 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, in onDrawBitmapNine() argument
|
/frameworks/base/libs/hwui/ |
D | Lighting.h | 25 Vector3 center; member
|
D | RecordingCanvas.cpp | 317 DrawImageNine(sk_sp<const SkImage>&& image, const SkIRect& center, const SkRect& dst, in DrawImageNine() 319 : image(std::move(image)), center(center), dst(dst) { in DrawImageNine() 325 SkIRect center; member 329 c->drawImageNine(image.get(), center, dst, &paint); in draw() 617 void DisplayListData::drawImageNine(sk_sp<const SkImage> image, const SkIRect& center, in drawImageNine() argument 619 this->push<DrawImageNine>(0, std::move(image), center, dst, paint); in drawImageNine() 893 void RecordingCanvas::onDrawBitmapNine(const SkBitmap& bm, const SkIRect& center, const SkRect& dst, in onDrawBitmapNine() argument 895 fDL->drawImageNine(SkImage::MakeFromBitmap(bm), center, dst, paint); in onDrawBitmapNine() 944 void RecordingCanvas::onDrawImageNine(const SkImage* img, const SkIRect& center, const SkRect& dst, in onDrawImageNine() argument 946 fDL->drawImageNine(sk_ref_sp(img), center, dst, paint); in onDrawImageNine()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | PipSnapAlgorithm.java | 163 final int center = movementBounds.centerX(); in getEdgeIntersect() local 164 if ((startPoint < center && endPoint < center) in getEdgeIntersect() 165 || (startPoint > center && endPoint > center)) { in getEdgeIntersect()
|
/frameworks/base/core/java/android/widget/ |
D | CalendarView.java | 564 public void setDate(long date, boolean animate, boolean center) { in setDate() argument 565 mDelegate.setDate(date, animate, center); in setDate() 639 void setDate(long date, boolean animate, boolean center); in setDate() argument
|
/frameworks/base/core/jni/android/graphics/ |
D | Shader.cpp | 141 SkPoint center; in RadialGradient_create() local 142 center.set(x, y); in RadialGradient_create() 153 sk_sp<SkShader> shader = SkGradientShader::MakeRadial(center, radius, &colors[0], in RadialGradient_create()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestUtils.java | 1597 public static Rect getCropRegionForZoom(float zoomFactor, final PointF center, in getCropRegionForZoom() argument 1602 if (center.x > 1.0 || center.x < 0) { in getCropRegionForZoom() 1603 throw new IllegalArgumentException("center.x " + center.x in getCropRegionForZoom() 1606 if (center.y > 1.0 || center.y < 0) { in getCropRegionForZoom() 1607 throw new IllegalArgumentException("center.y " + center.y in getCropRegionForZoom() 1617 float minCenterLength = Math.min(Math.min(center.x, 1.0f - center.x), in getCropRegionForZoom() 1618 Math.min(center.y, 1.0f - center.y)); in getCropRegionForZoom() 1621 throw new IllegalArgumentException("Requested center " + center.toString() + in getCropRegionForZoom() 1632 int cropCenterX = (int)(activeArray.width() * center.x); in getCropRegionForZoom() 1633 int cropCenterY = (int)(activeArray.height() * center.y); in getCropRegionForZoom()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
D | HorizontalGravityTest.java | 47 mCenter = activity.findViewById(R.id.center); in setUp()
|