/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 | 245 int[] xy = new int[2]; in dragViewToBottom() local 246 v.getLocationOnScreen(xy); in dragViewToBottom() 251 final float x = xy[0] + (viewWidth / 2.0f); in dragViewToBottom() 252 float fromY = xy[1] + (viewHeight / 2.0f); in dragViewToBottom() 265 int[] xy = new int[2]; in tapView() local 266 v.getLocationOnScreen(xy); in tapView() 271 final float x = xy[0] + (viewWidth / 2.0f); in tapView() 272 float y = xy[1] + (viewHeight / 2.0f); in tapView() 305 int[] xy = new int[2]; in touchAndCancelView() local 306 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.rscript | 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.rscript | 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/codecs/amrwb/enc/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 | 661 final int[] xy = new int[2]; in convertToScreenCoordinates() local 662 textView.getLocationOnScreen(xy); in convertToScreenCoordinates() 663 return new float[]{ x + textView.getTotalPaddingLeft() - textView.getScrollX() + xy[0], in convertToScreenCoordinates() 664 y + textView.getTotalPaddingTop() - textView.getScrollY() + xy[1] }; in convertToScreenCoordinates()
|
/frameworks/av/media/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.rscript | 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/av/include/media/ |
D | Interpolator.h | 244 config->xy.push_back(pt.first); in writeToConfig() 245 config->xy.push_back(pt.second); in writeToConfig() 262 if ((config.xy.size() & 1) != 0) { in readFromConfig() 266 uint32_t size = config.xy.size() / 2; in readFromConfig() 274 float x = config.xy[i * 2]; in readFromConfig() 275 float y = config.xy[i * 2 + 1]; in readFromConfig()
|
/frameworks/base/libs/input/ |
D | PointerController.cpp | 157 const auto xy = transform.inverse().transform(*outX, *outY); in getPosition() local 158 *outX = xy.x; in getPosition() 159 *outY = xy.y; in getPosition() 205 const vec2 xy = transform.transform(spotCoords[index].getXYValue()); in setSpots() local 206 outSpotCoords[index].setAxisValue(AMOTION_EVENT_AXIS_X, xy.x); in setSpots() 207 outSpotCoords[index].setAxisValue(AMOTION_EVENT_AXIS_Y, xy.y); in setSpots()
|
/frameworks/native/libs/input/ |
D | Input.cpp | 140 vec2 transformWithoutTranslation(const ui::Transform& transform, const vec2& xy) { in transformWithoutTranslation() argument 141 const vec2 transformedXy = transform.transform(xy); in transformWithoutTranslation() 422 const vec2 xy = transform.transform(getXYValue()); in transform() local 423 setAxisValue(AMOTION_EVENT_AXIS_X, xy.x); in transform() 424 setAxisValue(AMOTION_EVENT_AXIS_Y, xy.y); in transform() 876 const vec2& xy) { in calculateTransformedXYUnchecked() argument 877 return shouldDisregardOffset(source) ? transformWithoutTranslation(transform, xy) in calculateTransformedXYUnchecked() 878 : transform.transform(xy); in calculateTransformedXYUnchecked() 882 const vec2& xy) { in calculateTransformedXY() argument 884 return xy; in calculateTransformedXY() [all …]
|
/frameworks/native/libs/math/tests/ |
D | half_test.cpp | 90 half2 h2(f4.xy); in TEST_F() 94 EXPECT_EQ(f4.xy, h2); in TEST_F()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Matrix3f.java | 131 float xy = x * y; in loadRotate() local 138 mMat[3] = xy*nc - zs; in loadRotate() 140 mMat[1] = xy*nc + zs; in loadRotate()
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Matrix3f.java | 134 float xy = x * y; in loadRotate() local 141 mMat[3] = xy*nc - zs; in loadRotate() 143 mMat[1] = xy*nc + zs; in loadRotate()
|
/frameworks/av/aidl/android/media/ |
D | InterpolatorConfig.aidl | 30 float[] xy;
|
/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()
|
/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()
|