Searched refs:center (Results 1 - 25 of 60) sorted by relevance

123

/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/
H A Dh264bsdFillRow7.s30 center RN 3 label
71 ASR tmp2,center,#2
86 ; SUB center, center, #4
90 ; SUB center, center, #4
94 ; SUB center, center, #4
98 ; SUB center, center, #
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
H A DRectangle.java45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) { argument
46 Point p0 = new Point(center.x - size.x/2f, center.y - size.y/2f);
47 Point p1 = new Point(center.x + size.x/2f, center.y - size.y/2f);
48 Point p2 = new Point(center.x - size.x/2f, center.y + size.y/2f);
49 Point p3 = new Point(center.x + size.x/2f, center.y + size.y/2f);
50 return new Rectangle(p0.rotatedAround(center, rotatio
60 fromCenterVerticalAxis(Point center, Point vAxis, Point size) argument
77 public Point center() { method in class:Rectangle
[all...]
H A DPoint.java105 public Point rotatedAround(Point center, float radians) { argument
106 return this.minus(center).rotated(radians).plus(center);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
H A Dh264bsdFillRow7.S30 #define center r3 define
44 void h264bsdFillRow7(const u8 * ref, u8 * fill, i32 left, i32 center,
62 ASR tmp2,center,#2
78 SUB center, center, #32
84 SUB center, center, #28
91 SUB center, center, #24
96 SUB center, cente
[all...]
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
H A Dfisheye.rsh20 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);
H A Dfisheye_approx.rsh20 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/ImageProcessing2/src/com/android/rs/image/
H A Dfisheye.rsh20 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);
H A Dfisheye_approx.rsh20 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/
H A Dfisheye.rsh20 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);
H A Dfisheye_approx.rsh20 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/
H A Dfisheye_approx_f.rsh20 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/core/java/android/gesture/
H A DInstance.java93 float[] center = GestureUtils.computeCentroid(pts);
94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]);
107 GestureUtils.translate(pts, -center[0], -center[1]);
/frameworks/base/libs/hwui/tests/common/scenes/
H A DHwBitmapInCompositeShader.cpp59 SkPoint center; variable
60 center.set(50, 50);
64 sk_sp<SkShader> gradientShader = SkGradientShader::MakeRadial(center, 50, colors, nullptr,
/frameworks/support/compat/java/android/support/v4/graphics/drawable/
H A DIconCompat.java241 float center = size * 0.5f;
242 float radius = center * ICON_DIAMETER_FACTOR;
248 canvas.drawCircle(center, center, radius, paint);
252 canvas.drawCircle(center, center, radius, paint);
264 canvas.drawCircle(center, center, radius, paint);
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.cpp137 bool SlantedRect::FromCenterAxisAndLengths(const Point& center,
150 points_[0] = center - dx - dy;
151 points_[1] = center + dx - dy;
152 points_[2] = center - dx + dy;
153 points_[3] = center + dx + dy;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DMultiUserSwitch.java124 View center = getChildCount() > 0 ? getChildAt(0) : this;
126 center.getLocationInWindow(mTmpInt2);
127 mTmpInt2[0] += center.getWidth() / 2;
128 mTmpInt2[1] += center.getHeight() / 2;
/frameworks/base/libs/hwui/
H A DSpotShadow.h50 static void sort(Vector2* poly, int polyLength, const Vector2& center);
53 static void quicksortCirc(Vector2* points, int low, int high, const Vector2& center);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java184 PointF center = center();
188 PointF topLeft = rotatePoint(topLeft(), center, cosa, sina);
189 PointF topRight = rotatePoint(topRight(), center, cosa, sina);
190 PointF bottomLeft = rotatePoint(bottomLeft(), center, cosa, sina);
191 PointF bottomRight = rotatePoint(bottomRight(), center, cosa, sina);
218 public PointF center() { method in class:Quad
219 // As the diagonals bisect each other, we can simply return the center of one of the
249 PointF pc = center();
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/
H A DFadeAndShortSlide.java113 Rect center = t.getEpicenter();
114 final int sceneRootCenter = center == null ? (position[0] + sceneRoot.getWidth() / 2)
115 : center.centerX();
143 Rect center = getEpicenter();
144 final int sceneRootCenter = center == null ? (position[1] + sceneRoot.getHeight() / 2)
145 : center.centerY();
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A Dbugdroid.rs68 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;
96 static short disk(float3 center, float circleRadius, float3 normal, float rad,
99 * sigmoid(distanceDisk(center, circleRadius, normal, img) - rad));
103 static short cogDisk(float3 center, float circleRadius, float3 normal,
105 float3 vec = center
[all...]
/frameworks/support/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/
H A DChangeImageTransformUsage.java58 case R.id.center:
81 findViewById(R.id.center).setOnClickListener(listener);
/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/
H A DChangeImageTransformUsage.java58 case R.id.center:
81 findViewById(R.id.center).setOnClickListener(listener);
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/
H A DHorizontalGravityTest.java47 mCenter = activity.findViewById(R.id.center);
/frameworks/base/test-runner/src/android/test/
H A DViewAsserts.java284 * Assert that the <code>test</code> view is horizontally center aligned
288 * @param test The view that should be center aligned with the reference view
298 int center = (reference.getMeasuredWidth() - test.getMeasuredWidth()) / 2;
301 assertEquals("views are not horizontally center aligned", center, delta);
305 * Assert that the <code>test</code> view is vertically center aligned
309 * @param test The view that should be center aligned with the reference view
319 int center = (reference.getMeasuredHeight() - test.getMeasuredHeight()) / 2;
322 assertEquals("views are not vertically center aligned", center, delt
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DLinearSnapHelper.java28 * The implementation will snap the center of the target child view to the center of
177 * Return the child view that is currently closest to the center of this parent.
183 * @return the child view that is currently closest to the center of this parent.
194 final int center;
196 center = helper.getStartAfterPadding() + helper.getTotalSpace() / 2;
198 center = helper.getEnd() / 2;
206 int absDistance = Math.abs(childCenter - center);
208 /** if child center is closer than previous closest, set it as closest **/

Completed in 5292 milliseconds

123