Searched defs:dx (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/base/core/jni/android/graphics/
H A DLayerRasterizer.cpp10 static void addLayer(JNIEnv* env, jobject, SkLayerRasterizer* layer, const SkPaint* paint, float dx, float dy) { argument
13 layer->addLayer(*paint, SkFloatToScalar(dx), SkFloatToScalar(dy));
H A DCamera.cpp28 float dx, float dy, float dz) {
30 v->translate(SkFloatToScalar(dx), SkFloatToScalar(dy), SkFloatToScalar(dz));
27 Camera_translate(JNIEnv* env, jobject obj, float dx, float dy, float dz) argument
/frameworks/base/graphics/java/com/android/internal/graphics/
H A DNativeUtils.java35 * @param dx horizontal offset
39 int dx, int dy);
38 nativeScrollRect(Canvas canvas, Rect src, int dx, int dy) argument
/frameworks/base/graphics/java/android/graphics/
H A DLayerRasterizer.java29 public void addLayer(Paint paint, float dx, float dy) { argument
30 nativeAddLayer(native_instance, paint.mNativePaint, dx, dy);
38 private static native void nativeAddLayer(int native_layer, int native_paint, float dx, float dy); argument
H A DPoint.java56 * Offset the point's coordinates by dx, dy
58 public final void offset(int dx, int dy) { argument
59 x += dx;
H A DPointF.java62 public final void offset(float dx, float dy) { argument
63 x += dx;
H A DCamera.java41 public native float dotWithNormal(float dx, float dy, float dz); argument
H A DRect.java254 * Offset the rectangle by adding dx to its left and right coordinates, and
257 * @param dx The amount to add to the rectangle's left and right coordinates
260 public void offset(int dx, int dy) { argument
261 left += dx;
263 right += dx;
282 * Inset the rectangle by (dx,dy). If dx is positive, then the sides are
283 * moved inwards, making the rectangle narrower. If dx is negative, then the
287 * @param dx The amount to add(subtract) from the rectangle's left(right)
290 public void inset(int dx, in argument
[all...]
H A DRectF.java175 * Offset the rectangle by adding dx to its left and right coordinates, and
178 * @param dx The amount to add to the rectangle's left and right coordinates
181 public void offset(float dx, float dy) { argument
182 left += dx;
184 right += dx;
203 * Inset the rectangle by (dx,dy). If dx is positive, then the sides are
204 * moved inwards, making the rectangle narrower. If dx is negative, then the
208 * @param dx The amount to add(subtract) from the rectangle's left(right)
211 public void inset(float dx, floa argument
[all...]
/frameworks/base/awt/java/awt/
H A DPoint.java197 * position given by (x+dx, x+dy) coordinates.
199 * @param dx
206 public void translate(int dx, int dy) { argument
207 x += dx;
H A DGradientPaintContext.java75 int dx; field in class:GradientPaintContext
117 dx = dy = delta = 0;
122 dx = (int)(by.getX() * mult);
176 int c = x * dy - y * dx - delta;
178 int cy = - w * dy - dx;
H A DRectangle.java401 * distance of dx horizonally and a distance of dy vertically. Specifically,
403 * with [x-dx, y-dy, width+2*dx, height+2*dy] parameters.
405 * @param dx
410 public void grow(int dx, int dy) { argument
411 x -= dx;
413 width += dx + dx;
/frameworks/base/awt/org/apache/harmony/awt/gl/image/
H A DBufferedImageGraphics2D.java57 public void copyArea(int x, int y, int width, int height, int dx, int dy) { argument
H A DOrdinaryWritableRaster.java85 public void setRect(int dx, int dy, Raster srcRaster) { argument
86 super.setRect(dx, dy, srcRaster);
/frameworks/base/core/jni/
H A Dcom_android_internal_graphics_NativeUtils.cpp37 static jboolean scrollRect(JNIEnv* env, jobject graphics2D, jobject canvas, jobject rect, int dx, int dy) { argument
50 return bitmap.scrollRect(srcPtr, dx, dy, NULL);
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpp_semaphore_chroma_inter.cpp29 dx = horizontal component of the motion vector (int)
116 int dx, /* i */
188 if (((dx&0xF) != 0) && (mmvx + 1 < (mvwidth >> 1) - 1))
189 { /* dx is not a multiple of 16 */
199 { /* dx is a multiple of 16 */
111 pp_semaphore_chroma_inter( int xpred, int ypred, uint8 *pp_dec_u, uint8 *pstprcTypPrv, int dx, int dy, int mvwidth, int height, int32 size, int mv_loc, uint8 msk_deblock ) argument
H A Dpp_semaphore_luma.cpp33 dx = horizontal component of the motion vector (int)
119 int dx, /* i */
165 if ((dx&0xF) != 0)
166 { /* dx is not a multiple of 16 */
190 { /* dx is a multiple of 16 */
289 if (((dx&0xF) != 0) && (mmvx + 1 < mvwidth - 1))
290 { /* dx is not a multiple of 16 and the block */
324 { /* dx is a multiple of 16 or the block x */
112 pp_semaphore_luma( int xpred, int ypred, uint8 *pp_dec_y, uint8 *pstprcTypPrv, int *ll, int *mv_loc, int dx, int dy, int mvwidth, int width, int height ) argument
H A Dmb_motion_comp.cpp146 /* Motion vector (dx,dy) in half-pel resolution */
147 int dx, dy; local
195 dx = px[0] = px[1] = px[2] = px[3] = video->motX[imv];
197 if ((dx & 3) == 0)
199 dx = dx >> 1;
204 dx = (dx >> 1) | 1;
226 dx = PV_SIGN(xsum) * (roundtab16[(PV_ABS(xsum)) & 0xF] +
416 video->pstprcTypPrv, dx, d
[all...]
/frameworks/base/libs/rs/java/Film/res/raw/
H A Dfilmimage.c16 int dx, dy, idx; local
44 dx = scriptRand(con, 0x10000) - 0x8000;
48 storeI32(con, 2, idx, dx);
66 dx = loadI32(con, 2, srcIdx);
95 posx = posx + dx;
100 //storeI32(con, 2, srcIdx, dx);
/frameworks/base/awt/java/awt/image/
H A DWritableRaster.java247 * is copied to pixel with (x+dx, y+dy) coordinates in this WritableRaster.
248 * The pixels with (x+dx, y+dy) coordinates which are out the bounds of this
251 * @param dx
260 public void setRect(int dx, int dy, Raster srcRaster) { argument
267 int dstX = srcX + dx;
/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java380 float dx = points[i + 2] - points[i];
382 sum += Math.sqrt(dx * dx + dy * dy);
389 float dx = points[2] - points[0];
391 return (float) Math.sqrt(dx * dx + dy * dy) / totalLen;
395 float dx = points[2] - points[0];
397 return (float) Math.sqrt(dx * dx + dy * dy) / totalLen;
576 static float[] translate(float[] points, float dx, floa argument
[all...]
/frameworks/base/include/private/ui/
H A DRegionHelper.h52 TYPE dx; member in struct:android::region_operator::region
55 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { }
57 : rects(r), count(c), dx(), dy() { }
58 inline region(RECT const* r, size_t c, TYPE dx, TYPE dy) argument
59 : rects(r), count(c), dx(dx), dy(dy) { }
224 SpannerBase::lhs_head = lhs.rects->left + lhs.dx;
225 SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
231 SpannerBase::rhs_head = rhs.rects->left + rhs.dx;
[all...]
/frameworks/base/include/ui/
H A DRect.h139 void translate(int dx, int dy) { // legacy, don't use. argument
140 offsetBy(dx, dy);
/frameworks/base/awt/org/apache/harmony/awt/gl/render/
H A DJavaLineRasterizer.java150 int dx, dy, adx, ady, sx, sy; field in class:JavaLineRasterizer.Line.Diag
157 dx = x2 - x1;
160 if (dx > 0) {
161 adx = dx;
164 adx = -dx;
171 return (float)Math.sqrt(dx * dx + dy * dy);
197 rasterize(dx > 0 ? nx2 - nx1 : nx1 - nx2);
396 newx1 = clipY(dx, dy, newy1, true);
401 newx1 = clipY(dx, d
464 int dx; field in class:JavaLineRasterizer.Line.Ortog.Hor
679 clipX(int dx, int dy, int cy, boolean top) argument
686 clipY(int dx, int dy, int cx, boolean top) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DScroller.java242 * @param dx Horizontal distance to travel. Positive numbers will scroll the
247 public void startScroll(int startX, int startY, int dx, int dy) { argument
248 startScroll(startX, startY, dx, dy, DEFAULT_DURATION);
258 * @param dx Horizontal distance to travel. Positive numbers will scroll the
264 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument
271 mFinalX = startX + dx;
273 mDeltaX = dx;

Completed in 860 milliseconds

12