Home
last modified time | relevance | path

Searched refs:xy (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/test-runner/src/android/test/
DViewAsserts.java45 int[] xy = new int[2]; in assertOnScreen() local
46 view.getLocationOnScreen(xy); in assertOnScreen()
51 int y = xy[1] - xyRoot[1]; in assertOnScreen()
67 int[] xy = new int[2]; in assertOffScreenBelow() local
68 view.getLocationOnScreen(xy); in assertOffScreenBelow()
73 int y = xy[1] - xyRoot[1]; in assertOffScreenBelow()
87 int[] xy = new int[2]; in assertOffScreenAbove() local
88 view.getLocationOnScreen(xy); in assertOffScreenAbove()
93 int y = xy[1] - xyRoot[1]; in assertOffScreenAbove()
107 int[] xy = new int[2]; in assertHasScreenCoordinates() local
[all …]
DTouchUtils.java227 int[] xy = new int[2]; in dragViewToBottom() local
228 v.getLocationOnScreen(xy); in dragViewToBottom()
233 final float x = xy[0] + (viewWidth / 2.0f); in dragViewToBottom()
234 float fromY = xy[1] + (viewHeight / 2.0f); in dragViewToBottom()
247 int[] xy = new int[2]; in tapView() local
248 v.getLocationOnScreen(xy); in tapView()
253 final float x = xy[0] + (viewWidth / 2.0f); in tapView()
254 float y = xy[1] + (viewHeight / 2.0f); in tapView()
287 int[] xy = new int[2]; in touchAndCancelView() local
288 v.getLocationOnScreen(xy); in touchAndCancelView()
[all …]
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DFindRegion.java39 public FindRegion(float[] xy, Bitmap img) { in FindRegion() argument
40 mPointsXY = xy; in FindRegion()
43 mRoiBounds = getBoundingRect(xy); in FindRegion()
103 private static Rect getBoundingRect(float[] xy) { in getBoundingRect() argument
104 RectF mRect = calcBounds(xy); in getBoundingRect()
112 private static RectF calcBounds(float[] xy) { in calcBounds() argument
113 float minx = xy[0], miny = xy[1]; in calcBounds()
114 float maxx = xy[0], maxy = xy[1]; in calcBounds()
115 for (int i = 0; i < xy.length; i += 2) { in calcBounds()
116 minx = Math.min(minx, xy[i]); in calcBounds()
[all …]
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 -= convert_int2(bounds.zw - bounds.xy);
[all …]
DHealing.java49 private static Bitmap buildMask(Rect rec, float[] xy) { in buildMask() argument
57 for (int i = 0; i < xy.length; i += 2) { in buildMask()
59 path.moveTo(xy[i] - rec.left, xy[i + 1] - rec.top); in buildMask()
61 path.lineTo(xy[i] - rec.left, xy[i + 1] - rec.top); in buildMask()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DFindRegion.java47 public FindRegion(float[] xy, Bitmap img) { in FindRegion() argument
48 mPointsXY = xy; in FindRegion()
53 mRoiBounds = getBoundingRect(xy); in FindRegion()
148 private static Rect getBoundingRect(float[] xy) { in getBoundingRect() argument
149 RectF mRect = calcBounds(xy); in getBoundingRect()
157 private static RectF calcBounds(float[] xy) { in calcBounds() argument
158 float minx = xy[0], miny = xy[1]; in calcBounds()
159 float maxx = xy[0], maxy = xy[1]; in calcBounds()
160 for (int i = 0; i < xy.length; i += 2) { in calcBounds()
161 minx = Math.min(minx, xy[i]); in calcBounds()
[all …]
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);
DHealing.java49 private static Bitmap buildMask(Rect rec, float[] xy) { in buildMask() argument
57 for (int i = 0; i < xy.length; i += 2) { in buildMask()
59 path.moveTo(xy[i] - rec.left, xy[i + 1] - rec.top); in buildMask()
61 path.lineTo(xy[i] - rec.left, xy[i + 1] - rec.top); in buildMask()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dg_pitch.c37 Word16 xy, yy, exp_xy, exp_yy, gain; in G_pitch() local
41 xy = extract_h(Dot_product12_asm(xn, y1, L_subfr, &exp_xy)); in G_pitch()
46 xy = extract_h(Dot_product12(xn, y1, L_subfr, &exp_xy)); in G_pitch()
53 g_coeff[2] = xy; in G_pitch()
57 if (xy < 0) in G_pitch()
62 xy >>= 1; /* Be sure xy < yy */ in G_pitch()
63 gain = div_s(xy, yy); in G_pitch()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DCustomViewActions.java86 int[] xy = view.getLocationOnScreen(); in calculateCoordinates() local
92 x = xy[0] + hDelta; in calculateCoordinates()
95 x = xy[0] + w + hDelta; in calculateCoordinates()
98 x = xy[0] + w / 2 + hDelta; in calculateCoordinates()
104 y = xy[1] + vDelta; in calculateCoordinates()
107 y = xy[1] + h + vDelta; in calculateCoordinates()
110 y = xy[1] + h / 2 + vDelta; in calculateCoordinates()
DTextViewActions.java560 final int[] xy = new int[2]; in convertToScreenCoordinates() local
561 textView.getLocationOnScreen(xy); in convertToScreenCoordinates()
562 return new float[]{ x + textView.getTotalPaddingLeft() - textView.getScrollX() + xy[0], in convertToScreenCoordinates()
563 y + textView.getTotalPaddingTop() - textView.getScrollY() + xy[1] }; in convertToScreenCoordinates()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dg_pitch.cpp309 Word16 xy; in G_pitch() local
399 xy = pv_round(L_temp, pOverflow); in G_pitch()
423 xy = pv_round(L_temp, pOverflow); in G_pitch()
430 g_coeff[2] = xy; in G_pitch()
434 if (xy < 4) in G_pitch()
442 xy = xy >> 1; in G_pitch()
444 gain = div_s(xy, yy); in G_pitch()
Dg_code.cpp236 Word16 xy, yy, exp_xy, exp_yy, gain; in G_code() local
265 xy = (Word16)(s >> (17 - exp_xy)); in G_code()
269 xy = (Word16)(s << (exp_xy - 17)); in G_code()
274 if (xy <= 0) in G_code()
303 gain = div_s(xy, yy); in G_code()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DRequestRectangleVisibleTest.java202 int[] xy = new int[2]; in assertOnBottomEdgeOfScreen() local
203 view.getLocationOnScreen(xy); in assertOnBottomEdgeOfScreen()
208 int bottom = xy[1] + view.getHeight(); in assertOnBottomEdgeOfScreen()
213 assertTrue(xy[1] < bottomOfRoot); in assertOnBottomEdgeOfScreen()
223 int[] xy = new int[2]; in assertOnTopEdgeOfScreen() local
224 view.getLocationOnScreen(xy); in assertOnTopEdgeOfScreen()
229 int bottom = xy[1] + view.getHeight(); in assertOnTopEdgeOfScreen()
235 assertTrue(xy[1] < xyRoot[1]); in assertOnTopEdgeOfScreen()
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
Dyuv.rs70 int2 xy = {x, y};
71 xy -= vignette_half_dims;
72 xy *= xy;
74 float d = vignette_dist_mod * (xy.x + xy.y);
/frameworks/base/core/java/android/hardware/camera2/params/
DMeteringRectangle.java112 public MeteringRectangle(Point xy, Size dimensions, int meteringWeight) { in MeteringRectangle() argument
113 checkNotNull(xy, "xy must not be null"); in MeteringRectangle()
116 mX = checkArgumentNonnegative(xy.x, "x must be nonnegative"); in MeteringRectangle()
117 mY = checkArgumentNonnegative(xy.y, "y must be nonnegative"); in MeteringRectangle()
/frameworks/rs/rsov/compiler/spirit/test_data/
Dgreyscale3.spt16 OpName %xy "xy"
79 %xy = OpVariable %_ptr_Function_v2int Function
87 OpStore %xy %17
89 %27 = OpLoad %v2int %xy
Dgreyscale2.spt16 OpName %xy "xy"
82 %xy = OpVariable %_ptr_Function_v2int Function
90 OpStore %xy %17
92 %27 = OpLoad %v2int %xy
Dgreyscale.spt23 OpName %xy "xy"
85 %xy = OpVariable %_ptr_Function_v2int Function
93 OpStore %xy %34
95 %42 = OpLoad %v2int %xy
/frameworks/native/libs/math/tests/
Dhalf_test.cpp89 half2 h2(f4.xy); in TEST_F()
93 EXPECT_EQ(f4.xy, h2); in TEST_F()
/frameworks/base/rs/java/android/renderscript/
DMatrix3f.java127 float xy = x * y; in loadRotate() local
134 mMat[3] = xy*nc - zs; in loadRotate()
136 mMat[1] = xy*nc + zs; in loadRotate()
/frameworks/rs/support/java/src/androidx/renderscript/
DMatrix3f.java130 float xy = x * y; in loadRotate() local
137 mMat[3] = xy*nc - zs; in loadRotate()
139 mMat[1] = xy*nc + zs; in loadRotate()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DQuaternion.java135 double xy = x[1] * x[2]; in matrix() local
147 m[1] = 2 * (xy - zw); in matrix()
150 m[4] = 2 * (xy + zw); in matrix()
Drasterize.rs64 p1[total] = f1.xy;
65 p2[total] = f2.xy;
66 p3[total] = f3.xy;
/frameworks/rs/driver/runtime/
Drs_quaternion.c34 float xy = q->x * q->y; in rsQuaternionGetMatrixUnit() local
44 m->m[4] = 2.0f * ( xy - zw ); in rsQuaternionGetMatrixUnit()
46 m->m[1] = 2.0f * ( xy + zw ); in rsQuaternionGetMatrixUnit()

123