Searched refs:xy (Results 1 - 25 of 57) sorted by relevance

123

/frameworks/base/test-runner/src/android/test/
H A DViewAsserts.java45 int[] xy = new int[2];
46 view.getLocationOnScreen(xy);
51 int y = xy[1] - xyRoot[1];
67 int[] xy = new int[2];
68 view.getLocationOnScreen(xy);
73 int y = xy[1] - xyRoot[1];
87 int[] xy = new int[2];
88 view.getLocationOnScreen(xy);
93 int y = xy[1] - xyRoot[1];
107 int[] xy
[all...]
H A DTouchUtils.java227 int[] xy = new int[2];
228 v.getLocationOnScreen(xy);
233 final float x = xy[0] + (viewWidth / 2.0f);
234 float fromY = xy[1] + (viewHeight / 2.0f);
247 int[] xy = new int[2];
248 v.getLocationOnScreen(xy);
253 final float x = xy[0] + (viewWidth / 2.0f);
254 float y = xy[1] + (viewHeight / 2.0f);
287 int[] xy = new int[2];
288 v.getLocationOnScreen(xy);
492 getStartLocation(View v, int gravity, int[] xy) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dg_pitch.c37 Word16 xy, yy, exp_xy, exp_yy, gain; local
41 xy = extract_h(Dot_product12_asm(xn, y1, L_subfr, &exp_xy));
46 xy = extract_h(Dot_product12(xn, y1, L_subfr, &exp_xy));
53 g_coeff[2] = xy;
56 /* If (xy < 0) gain = 0 */
57 if (xy < 0)
60 /* compute gain = xy/yy */
62 xy >>= 1; /* Be sure xy < yy */
63 gain = div_s(xy, y
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
H A DTouchUtils.java33 int[] xy = new int[2];
34 v.getLocationOnScreen(xy);
39 final float x = xy[0] + (viewWidth / 2.0f);
40 float y = xy[1] + (viewHeight / 2.0f);
64 int[] xy = new int[2];
65 v.getLocationOnScreen(xy);
70 final float x = xy[0] + (viewWidth / 2.0f);
71 float y = xy[1] + (viewHeight / 2.0f);
91 int[] xy = new int[2];
92 v.getLocationOnScreen(xy);
182 getStartLocation(View v, int gravity, int[] xy) argument
[all...]
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A DFindRegion.java39 public FindRegion(float[] xy, Bitmap img) { argument
40 mPointsXY = xy;
43 mRoiBounds = getBoundingRect(xy);
100 * @param xy points of polygon [x1,y1,x2,y2,...]
103 private static Rect getBoundingRect(float[] xy) { argument
104 RectF mRect = calcBounds(xy);
112 private static RectF calcBounds(float[] xy) { argument
113 float minx = xy[0], miny = xy[1];
114 float maxx = xy[
[all...]
H A Dfind_region.rs54 static float4 gCalcBounds(rs_allocation xy) {
55 int len = rsAllocationGetDimX(xy);
56 float2 min_xy = rsGetElementAt_float2(xy, 0);
59 float2 v = rsGetElementAt_float2(xy, i);
84 int2 size = roiBounds.zw - roiBounds.xy;
85 int2 minr = max((int2){0, 0}, roiBounds.xy - size * (1 + pad));
114 p = (p - regionInSearch.xy) *
152 mSearchOffset = searchRange.xy;
153 mImgOffset = roiBounds.xy;
172 noZone.xy
[all...]
H A DHealing.java49 private static Bitmap buildMask(Rect rec, float[] xy) { argument
57 for (int i = 0; i < xy.length; i += 2) {
59 path.moveTo(xy[i] - rec.left, xy[i + 1] - rec.top);
61 path.lineTo(xy[i] - rec.left, xy[i + 1] - rec.top);
H A DRegion.java46 * @param xy A list of xy points that represents the polygon
49 public Region(float[] xy, Bitmap img) { argument
50 mPointsXY = xy;
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DCustomViewActions.java86 int[] xy = view.getLocationOnScreen();
92 x = xy[0] + hDelta;
95 x = xy[0] + w + hDelta;
98 x = xy[0] + w / 2 + hDelta;
104 y = xy[1] + vDelta;
107 y = xy[1] + h + vDelta;
110 y = xy[1] + h / 2 + vDelta;
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
H A DFindRegion.java47 public FindRegion(float[] xy, Bitmap img) { argument
48 mPointsXY = xy;
53 mRoiBounds = getBoundingRect(xy);
145 * @param xy points of polygon [x1,y1,x2,y2,...]
148 private static Rect getBoundingRect(float[] xy) { argument
149 RectF mRect = calcBounds(xy);
157 private static RectF calcBounds(float[] xy) { argument
158 float minx = xy[0], miny = xy[1];
159 float maxx = xy[
171 buildMask(Rect rec, float[] xy) argument
[all...]
H A Dfind_region.rs69 static float4 gcalcBounds(rs_allocation xy) {
70 int len = rsAllocationGetDimX(xy);
71 float2 min_xy = rsGetElementAt_float(xy, 0);
74 float2 v = rsGetElementAt_float2(xy, i);
83 void calcBounds(rs_allocation xy, rs_allocation rect) {
84 float4 r = gcalcBounds(xy);
85 rsSetElementAt_float2(rect, r.xy, 0);
H A DHealing.java49 private static Bitmap buildMask(Rect rec, float[] xy) { argument
57 for (int i = 0; i < xy.length; i += 2) {
59 path.moveTo(xy[i] - rec.left, xy[i + 1] - rec.top);
61 path.lineTo(xy[i] - rec.left, xy[i + 1] - rec.top);
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dg_code.cpp148 Word16 xy, yy, exp_xy, exp_yy, gain;
171 xy = extract_h (L_shl (s, exp_xy));
173 // If (xy < 0) gain = 0
175 if (xy <= 0)
188 // compute gain = xy/yy
190 xy = shr (xy, 1); // Be sure xy < yy
191 gain = div_s (xy, yy);
236 Word16 xy, y local
[all...]
H A Dg_pitch.cpp172 Word16 xy, yy, exp_xy, exp_yy, gain;
225 xy = pv_round (L_shl (s, exp_xy));
235 xy = pv_round (L_shl (s, exp_xy));
241 g_coeff[2] = xy;
244 // If (xy < 4) gain = 0
246 i = sub (xy, 4);
251 // compute gain = xy/yy
253 xy = shr (xy, 1); // Be sure xy < y
309 Word16 xy; local
[all...]
/frameworks/base/core/java/android/hardware/camera2/params/
H A DMeteringRectangle.java103 * <p>The point {@code xy}'s data is copied; the reference is not retained.</p>
105 * @param xy a non-{@code null} {@link Point} with both x,y >= 0
112 public MeteringRectangle(Point xy, Size dimensions, int meteringWeight) { argument
113 checkNotNull(xy, "xy must not be null");
116 mX = checkArgumentNonnegative(xy.x, "x must be nonnegative");
117 mY = checkArgumentNonnegative(xy.y, "y must be nonnegative");
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DRequestRectangleVisibleTest.java202 int[] xy = new int[2];
203 view.getLocationOnScreen(xy);
208 int bottom = xy[1] + view.getHeight();
213 assertTrue(xy[1] < bottomOfRoot);
223 int[] xy = new int[2];
224 view.getLocationOnScreen(xy);
229 int bottom = xy[1] + view.getHeight();
235 assertTrue(xy[1] < xyRoot[1]);
/frameworks/support/v13/tests/java/android/support/v13/view/
H A DDragStartHelperTest.java90 final int[] xy = new int[2];
91 view.getLocationOnScreen(xy);
92 xy[0] += view.getWidth() / 2;
93 xy[1] += view.getHeight() / 2;
94 return xy;
100 final int[] xy = getViewCenter(anchor);
102 eventTime, eventTime, action, xy[0] + offsetX, xy[1] + offsetY, 0);
113 final int[] xy = getViewCenter(anchor);
124 coords[0].x = xy[
[all...]
/frameworks/base/libs/hwui/
H A DSkiaShader.cpp204 SkShader::TileMode xy[2]; local
205 if (!shader.isABitmap(&bitmap, nullptr, xy)) {
230 && (xy[0] != SkShader::kClamp_TileMode || xy[1] != SkShader::kClamp_TileMode))) {
234 description->bitmapWrapS = gTileModes[xy[0]];
235 description->bitmapWrapT = gTileModes[xy[1]];
240 outData->wrapS = gTileModes[xy[0]];
241 outData->wrapT = gTileModes[xy[1]];
/frameworks/native/libs/math/tests/
H A Dhalf_test.cpp89 half2 h2(f4.xy);
93 EXPECT_EQ(f4.xy, h2);
/frameworks/support/design/tests/src/android/support/design/widget/
H A DFloatingActionButtonTest.java220 final int[] xy = new int[2];
221 fab.getLocationOnScreen(xy);
226 xy[0] + rect.centerX(),
227 xy[1] + rect.centerY()
236 final int[] xy = new int[2];
237 view.getLocationOnScreen(xy);
240 xy[0] + (view.getWidth() / 2f),
241 xy[1] + (view.getHeight() * 1.5f)
/frameworks/base/services/core/java/com/android/server/policy/
H A DIconUtilities.java177 int[] xy = new int[2];
178 Bitmap mask = src.extractAlpha(mBlurPaint, xy);
180 dest.drawBitmap(mask, xy[0], xy[1],
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A Drasterize.rs64 p1[total] = f1.xy;
65 p2[total] = f2.xy;
66 p3[total] = f3.xy;
/frameworks/base/libs/hwui/tests/unit/
H A DSkiaBehaviorTests.cpp51 SkShader::TileMode xy[2]; local
52 ASSERT_TRUE(s->isABitmap(&bitmap, nullptr, xy))
/frameworks/base/rs/java/android/renderscript/
H A DMatrix3f.java127 float xy = x * y;
134 mMat[3] = xy*nc - zs;
136 mMat[1] = xy*nc + zs;
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DMatrix3f.java130 float xy = x * y;
137 mMat[3] = xy*nc - zs;
139 mMat[1] = xy*nc + zs;

Completed in 825 milliseconds

123