Searched defs:xy (Results 1 - 25 of 25) sorted by last modified time

/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 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/rs/cpu_ref/
H A DrsCpuIntrinsics_x86.cpp153 __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 Drs_quaternion.c34 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 DrsMatrix4x4.cpp221 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 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 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.java55 * @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 DTMatHelpers.h511 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 Dquat.h69 TVec2<T> xy; member in union:android::details::TQuaternion::__anon1694
H A Dvec3.h51 TVec2<T> xy; member in union:android::details::TVec3::__anon1701
H A Dvec4.h51 TVec2<T> xy; member in union:android::details::TVec4::__anon1705
/frameworks/native/opengl/libagl/
H A Dmatrix.cpp367 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 Dvec.h126 // 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 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/base/libs/hwui/
H A DMatrix.cpp352 const float xy = x * y; local
360 data[kSkewX] = xy * nc - zs;
362 data[kSkewY] = xy * nc + zs;
H A DRecordingCanvas.cpp664 SkShader::TileMode xy[2]; local
665 if (shader->isABitmap(&bitmap, nullptr, xy)) {
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/base/libs/hwui/tests/unit/
H A DSkiaBehaviorTests.cpp50 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 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/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/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...]

Completed in 276 milliseconds