/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
H A D | TouchUtils.java | 33 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 D | FindRegion.java | 39 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 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 | 46 * @param xy A list of xy points that represents the polygon
49 public Region(float[] xy, Bitmap img) {
argument 50 mPointsXY = xy;
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsics_x86.cpp | 153 __m128i xy, zw; local 167 xy = _mm_shuffle_epi8(i4, Mxy); 170 x2 = _mm_madd_epi16(xy, _mm_shuffle_epi32(c0, 0x00)); 171 y2 = _mm_madd_epi16(xy, _mm_shuffle_epi32(c0, 0x55)); 172 z2 = _mm_madd_epi16(xy, _mm_shuffle_epi32(c0, 0xaa)); 173 w2 = _mm_madd_epi16(xy, _mm_shuffle_epi32(c0, 0xff)); 209 __m128i xy, zw; local 223 xy = _mm_shuffle_epi8(i4, Mxy); 226 x2 = _mm_madd_epi16(xy, _mm_shuffle_epi32(c0, 0x00)); 227 y2 = _mm_madd_epi16(xy, _mm_shuffle_epi3 261 __m128i xy, zw; local [all...] |
/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/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;
|
/frameworks/rs/tests/java_api/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 | 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/native/libs/math/include/math/ |
H A D | TMatHelpers.h | 511 T xy = x * y; local 517 r[0][0] = x*x*nc + c; r[1][0] = xy*nc - zs; r[2][0] = zx*nc + ys; 518 r[0][1] = xy*nc + zs; r[1][1] = y*y*nc + c; r[2][1] = yz*nc - xs;
|
H A D | quat.h | 69 TVec2<T> xy; member in union:android::details::TQuaternion::__anon1694
|
H A D | vec3.h | 51 TVec2<T> xy; member in union:android::details::TVec3::__anon1701
|
H A D | vec4.h | 51 TVec2<T> xy; member in union:android::details::TVec4::__anon1705
|
/frameworks/native/opengl/libagl/ |
H A D | matrix.cpp | 367 const GLfloat xy = x * y; local 373 r[ 0] = x*x*nc + c; r[ 4] = xy*nc - zs; r[ 8] = zx*nc + ys; 374 r[ 1] = xy*nc + zs; r[ 5] = y*y*nc + c; r[ 9] = yz*nc - xs;
|
/frameworks/native/services/sensorservice/ |
H A D | vec.h | 126 // This is needed for performance when using ".xy{z}" element access 277 vbase<float, 2> xy; member in union:android::vbase::__anon1870 290 vbase<float, 2> xy; member in union:android::vbase::__anon1873
|
/frameworks/base/test-runner/src/android/test/ |
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/base/libs/hwui/ |
H A D | Matrix.cpp | 352 const float xy = x * y; local 360 data[kSkewX] = xy * nc - zs; 362 data[kSkewY] = xy * nc + zs;
|
H A D | RecordingCanvas.cpp | 664 SkShader::TileMode xy[2]; local 665 if (shader->isABitmap(&bitmap, nullptr, xy)) {
|
H A D | SkiaShader.cpp | 204 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/base/libs/hwui/tests/unit/ |
H A D | SkiaBehaviorTests.cpp | 50 SkShader::TileMode xy[2]; local 51 ASSERT_TRUE(s->isABitmap(&bitmap, nullptr, xy)) 53 EXPECT_EQ(SkShader::kClamp_TileMode, xy[0]); 54 EXPECT_EQ(SkShader::kRepeat_TileMode, xy[1]);
|
/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/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/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...] |