Searched refs:dx (Results 1 - 25 of 64) sorted by relevance

123

/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 DPath.java193 * @param dx The amount to add to the x-coordinate of the end of the
198 public void rMoveTo(float dx, float dy) { argument
199 native_rMoveTo(mNativePath, dx, dy);
219 * @param dx The amount to add to the x-coordinate of the previous point on
224 public void rLineTo(float dx, float dy) { argument
225 native_rLineTo(mNativePath, dx, dy);
445 * Add a copy of src to the path, offset by (dx,dy)
448 * @param dx The amount to translate the path in X as it is added
450 public void addPath(Path src, float dx, float dy) { argument
451 native_addPath(mNativePath, src.mNativePath, dx, d
480 offset(float dx, float dy, Path dst) argument
494 offset(float dx, float dy) argument
504 setLastPoint(float dx, float dy) argument
557 native_rMoveTo(int nPath, float dx, float dy) argument
559 native_rLineTo(int nPath, float dx, float dy) argument
583 native_addPath(int nPath, int src, float dx, float dy) argument
587 native_offset(int nPath, float dx, float dy, int dst_path) argument
589 native_offset(int nPath, float dx, float dy) argument
590 native_setLastPoint(int nPath, float dx, float dy) argument
[all...]
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 DMatrix.java99 /** Set the matrix to translate by (dx, dy). */
100 public void setTranslate(float dx, float dy) { argument
101 native_setTranslate(native_instance, dx, dy);
174 * M' = M * T(dx, dy)
176 public boolean preTranslate(float dx, float dy) { argument
177 return native_preTranslate(native_instance, dx, dy);
238 * M' = T(dx, dy) * M
240 public boolean postTranslate(float dx, float dy) { argument
241 return native_postTranslate(native_instance, dx, dy);
604 float dx, floa
603 native_setTranslate(int native_object, float dx, float dy) argument
623 native_preTranslate(int native_object, float dx, float dy) argument
639 native_postTranslate(int native_object, float dx, float dy) argument
[all...]
/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/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));
/frameworks/base/include/ui/
H A DRegion.h79 Region& translateSelf(int dx, int dy);
80 Region& orSelf(const Region& rhs, int dx, int dy);
81 Region& andSelf(const Region& rhs, int dx, int dy);
82 Region& subtractSelf(const Region& rhs, int dx, int dy);
85 const Region translate(int dx, int dy) const;
86 const Region merge(const Region& rhs, int dx, int dy) const;
87 const Region intersect(const Region& rhs, int dx, int dy) const;
88 const Region subtract(const Region& rhs, int dx, int dy) const;
135 Region& operationSelf(const Region& r, int dx, int dy, int op);
138 const Region operation(const Region& rhs, int dx, in
[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/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/tools/layoutlib/bridge/src/android/graphics/
H A DLayerRasterizer_Delegate.java64 /*package*/ static void nativeAddLayer(int native_layer, int native_paint, float dx, float dy) { argument
H A DPath_Delegate.java221 /*package*/ static void native_rMoveTo(int nPath, float dx, float dy) { argument
227 pathDelegate.rMoveTo(dx, dy);
241 /*package*/ static void native_rLineTo(int nPath, float dx, float dy) { argument
247 pathDelegate.rLineTo(dx, dy);
404 /*package*/ static void native_addPath(int nPath, int src, float dx, float dy) { argument
405 addPath(nPath, src, AffineTransform.getTranslateInstance(dx, dy));
424 /*package*/ static void native_offset(int nPath, float dx, float dy, int dst_path) { argument
433 pathDelegate.offset(dx, dy, dstDelegate);
437 /*package*/ static void native_offset(int nPath, float dx, float dy) { argument
438 native_offset(nPath, dx, d
442 native_setLastPoint(int nPath, float dx, float dy) argument
585 rMoveTo(float dx, float dy) argument
613 rLineTo(float dx, float dy) argument
773 offset(float dx, float dy, Path_Delegate dst) argument
[all...]
H A DSweepGradient_Delegate.java173 float dx = pt2[0];
177 if (dx == 0) {
180 angle = (float) (dx < 0 ? Math.PI : 0);
182 angle = (float) Math.atan(dy / dx);
183 if (dx > 0) {
/frameworks/base/libs/ui/
H A DRegion.cpp201 Region& Region::orSelf(const Region& rhs, int dx, int dy) {
202 return operationSelf(rhs, dx, dy, op_or);
204 Region& Region::andSelf(const Region& rhs, int dx, int dy) {
205 return operationSelf(rhs, dx, dy, op_and);
207 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) {
208 return operationSelf(rhs, dx, dy, op_nand);
210 Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) {
212 boolean_operation(op, *this, lhs, rhs, dx, dy);
218 const Region Region::merge(const Region& rhs, int dx, int dy) const {
219 return operation(rhs, 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/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/media/libstagefright/codecs/avc/dec/src/
H A Davcdec_lib.h107 \param "dx" "Fraction of x_pos in quarter pel."
122 int blkwidth, int blkheight, int dx);
125 int blkwidth, int blkheight, int dx);
150 void ChromaBorderMC(uint8 *ref, int picwidth, int dx, int dy,
152 void ChromaDiagonalMC(uint8 *ref, int picwidth, int dx, int dy,
158 void ChromaBorderMCOutside(uint8 *ref, int picwidth, int dx, int dy,
162 int dx, int dy, uint8 *pred, int pred_pitch,
166 void ChromaDiagonalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
169 void ChromaHorizontalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
172 void ChromaVerticalMC_SIMD(uint8 *pRef, int srcPitch, int dx, in
[all...]
H A Dpred_inter.cpp24 /* (blkwidth << 2) + (dy << 1) + dx */
244 int dx, dy; local
249 dx = x_pos & 3;
255 if (dx == 0 && dy == 0)
276 HorzInterp1MC(ref, picwidth, pred, pred_pitch, blkwidth, blkheight, dx);
282 HorzInterp1MC(&temp[0][2], 24, pred, pred_pitch, blkwidth, blkheight, dx);
285 else if (dx == 0)
310 HorzInterp2MC(&temp2[0][2], 21, pred, pred_pitch, blkwidth, blkheight, dx);
318 HorzInterp2MC(&temp2[0][2], 21, pred, pred_pitch, blkwidth, blkheight, dx);
321 else if (dx
547 HorzInterp1MC(uint8 *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight, int dx) argument
837 HorzInterp2MC(int *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight, int dx) argument
1985 int dx, dy; local
2016 ChromaDiagonalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2108 ChromaHorizontalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2156 ChromaVerticalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2198 ChromaDiagonalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2240 ChromaHorizontalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2261 ChromaVerticalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2286 ChromaFullMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
[all...]
/frameworks/base/libs/rs/java/Film/src/com/android/film/
H A DFilmStripMesh.java69 float dx = v1.x - v2.x;
72 float len = (float)java.lang.Math.sqrt(dx*dx + dy*dy + dz*dz);
73 dx /= len;
77 nx = dx * dz;
79 nz = (float)java.lang.Math.sqrt(dx*dx + dy*dy);
/frameworks/base/media/libstagefright/codecs/avc/enc/src/
H A Dmotion_comp.cpp25 /* (blkwidth << 2) + (dy << 1) + dx */
128 int dx, dy; local
132 dx = x_pos & 3;
138 if (dx == 0 && dy == 0)
151 eHorzInterp1MC(ref, picpitch, pred, pred_pitch, blkwidth, blkheight, dx);
153 else if (dx == 0)
167 eHorzInterp2MC(&temp2[0][2], 21, pred, pred_pitch, blkwidth, blkheight, dx);
169 else if (dx == 2)
182 ref += (y_pos * picpitch) + x_pos + (dx / 2);
269 int blkwidth, int blkheight, int dx)
268 eHorzInterp1MC(uint8 *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight, int dx) argument
558 eHorzInterp2MC(int *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight, int dx) argument
1814 int dx, dy; local
1837 eChromaDiagonalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
1929 eChromaHorizontalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
1978 eChromaVerticalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2021 eChromaDiagonalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2064 eChromaHorizontalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2086 eChromaVerticalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2112 eChromaFullMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
[all...]
H A Davcenc_lib.h434 int blkwidth, int blkheight, int dx);
437 int blkwidth, int blkheight, int dx);
459 void eChromaDiagonalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
462 void eChromaHorizontalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
465 void eChromaVerticalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
468 void eChromaFullMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
471 void eChromaVerticalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
474 void eChromaHorizontalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
477 void eChromaDiagonalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
/frameworks/base/core/java/android/widget/
H A DScroller.java255 * @param dx Horizontal distance to travel. Positive numbers will scroll the
260 public void startScroll(int startX, int startY, int dx, int dy) { argument
261 startScroll(startX, startY, dx, dy, DEFAULT_DURATION);
271 * @param dx Horizontal distance to travel. Positive numbers will scroll the
277 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument
284 mFinalX = startX + dx;
286 mDeltaX = dx;

Completed in 425 milliseconds

123