/frameworks/base/test-runner/src/android/test/ |
D | ViewAsserts.java | 45 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 …]
|
D | TouchUtils.java | 227 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/ |
D | FindRegion.java | 39 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 …]
|
D | find_region.rs | 54 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 …]
|
D | Healing.java | 49 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/ |
D | FindRegion.java | 47 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 …]
|
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);
|
D | Healing.java | 49 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/ |
D | g_pitch.c | 37 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/ |
D | CustomViewActions.java | 86 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()
|
D | TextViewActions.java | 560 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/ |
D | g_pitch.cpp | 309 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()
|
D | g_code.cpp | 236 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/ |
D | RequestRectangleVisibleTest.java | 202 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/ |
D | yuv.rs | 70 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/ |
D | MeteringRectangle.java | 112 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/ |
D | greyscale3.spt | 16 OpName %xy "xy" 79 %xy = OpVariable %_ptr_Function_v2int Function 87 OpStore %xy %17 89 %27 = OpLoad %v2int %xy
|
D | greyscale2.spt | 16 OpName %xy "xy" 82 %xy = OpVariable %_ptr_Function_v2int Function 90 OpStore %xy %17 92 %27 = OpLoad %v2int %xy
|
D | greyscale.spt | 23 OpName %xy "xy" 85 %xy = OpVariable %_ptr_Function_v2int Function 93 OpStore %xy %34 95 %42 = OpLoad %v2int %xy
|
/frameworks/native/libs/math/tests/ |
D | half_test.cpp | 89 half2 h2(f4.xy); in TEST_F() 93 EXPECT_EQ(f4.xy, h2); in TEST_F()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Matrix3f.java | 127 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/ |
D | Matrix3f.java | 130 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/ |
D | Quaternion.java | 135 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()
|
D | rasterize.rs | 64 p1[total] = f1.xy; 65 p2[total] = f2.xy; 66 p3[total] = f3.xy;
|
/frameworks/rs/driver/runtime/ |
D | rs_quaternion.c | 34 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()
|