/frameworks/base/test-runner/src/android/test/ |
H A D | ViewAsserts.java | 45 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 D | TouchUtils.java | 227 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 D | g_pitch.c | 37 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 D | TouchUtils.java | 34 int[] xy = new int[2]; 35 v.getLocationOnScreen(xy); 40 final float x = xy[0] + (viewWidth / 2.0f); 41 float y = xy[1] + (viewHeight / 2.0f); 65 int[] xy = new int[2]; 66 v.getLocationOnScreen(xy); 71 final float x = xy[0] + (viewWidth / 2.0f); 72 float y = xy[1] + (viewHeight / 2.0f); 92 int[] xy = new int[2]; 93 v.getLocationOnScreen(xy); 183 getStartLocation(View v, int gravity, int[] xy) argument [all...] |
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | FindRegion.java | 47 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 D | find_region.rs | 69 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 D | Healing.java | 49 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 D | Region.java | 55 * @param xy A list of xy points that represents the polygon
58 public Region(float[] xy, Bitmap img) {
argument 59 mPointsXY = xy;
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | SkiaBehaviorTests.cpp | 38 SkShader::TileMode xy[2]; local 39 ASSERT_TRUE(s->isABitmap(&bitmap, nullptr, xy)) 41 EXPECT_EQ(SkShader::kClamp_TileMode, xy[0]); 42 EXPECT_EQ(SkShader::kRepeat_TileMode, xy[1]);
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | g_code.cpp | 148 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 D | g_pitch.cpp | 172 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 D | MeteringRectangle.java | 103 * <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 D | RequestRectangleVisibleTest.java | 202 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/base/libs/hwui/ |
H A D | SkiaShader.cpp | 206 SkShader::TileMode xy[2]; local 207 if (!shader.isABitmap(&bitmap, nullptr, xy)) { 228 && (xy[0] != SkShader::kClamp_TileMode || xy[1] != SkShader::kClamp_TileMode)) { 230 description->bitmapWrapS = gTileModes[xy[0]]; 231 description->bitmapWrapT = gTileModes[xy[1]]; 236 outData->wrapS = gTileModes[xy[0]]; 237 outData->wrapT = gTileModes[xy[1]];
|
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | IconUtilities.java | 177 int[] xy = new int[2]; 178 Bitmap mask = src.extractAlpha(mBlurPaint, xy); 180 dest.drawBitmap(mask, xy[0], xy[1],
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | rasterize.rs | 64 p1[total] = f1.xy; 65 p2[total] = f2.xy; 66 p3[total] = f3.xy;
|
H A D | Quaternion.java | 135 double xy = x[1] * x[2];
147 m[1] = 2 * (xy - zw);
150 m[4] = 2 * (xy + zw);
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix3f.java | 127 float xy = x * y; 134 mMat[3] = xy*nc - zs; 136 mMat[1] = xy*nc + zs;
|
H A D | Matrix4f.java | 172 float xy = x * y; 179 mMat[ 4] = xy*nc - zs; 181 mMat[ 1] = xy*nc + zs;
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Matrix3f.java | 130 float xy = x * y; 137 mMat[3] = xy*nc - zs; 139 mMat[1] = xy*nc + zs;
|
H A D | Matrix4f.java | 173 float xy = x * y; 180 mMat[ 4] = xy*nc - zs; 182 mMat[ 1] = xy*nc + zs;
|
/frameworks/rs/api/ |
H A D | rs_quaternion.spec | 76 float xy = q->x * q->y; 86 m->m[4] = 2.0f * ( xy - zw ); 88 m->m[1] = 2.0f * ( xy + zw );
|
/frameworks/rs/driver/runtime/ |
H A D | rs_quaternion.c | 34 float xy = q->x * q->y; local 44 m->m[4] = 2.0f * ( xy - zw ); 46 m->m[1] = 2.0f * ( xy + zw );
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A D | TextViewActions.java | 543 final int[] xy = new int[2]; 544 textView.getLocationOnScreen(xy); 545 return new float[]{ x + textView.getTotalPaddingLeft() - textView.getScrollX() + xy[0], 546 y + textView.getTotalPaddingTop() - textView.getScrollY() + xy[1] };
|
/frameworks/rs/ |
H A D | rsMatrix4x4.cpp | 221 const float xy = x * y; local 228 m[ 4] = xy*nc - zs; 230 m[ 1] = xy*nc + zs;
|