Searched defs:translate (Results 1 - 22 of 22) sorted by relevance

/frameworks/base/awt/java/awt/
H A DPoint.java206 public void translate(int dx, int dy) { method in class:Point
H A DPolygon.java322 * the distance to translate horizontally.
324 * the distance to translate vertically.
326 public void translate(int mx, int my) { method in class:Polygon
332 bounds.translate(mx, my);
H A DRectangle.java426 public void translate(int mx, int my) { method in class:Rectangle
H A DGraphics2D.java435 * Performs a translate transform relative to current Graphics2D Transform.
444 public abstract void translate(double tx, double ty); method in class:Graphics2D
456 * @see java.awt.Graphics#translate(int, int)
459 public abstract void translate(int x, int y); method in class:Graphics2D
H A DEvent.java564 public void translate(int dx, int dy) { method in class:Event
H A DGraphics.java76 res.translate(x, y);
923 public abstract void translate(int x, int y); method in class:Graphics
/frameworks/base/libs/rs/
H A DrsMatrix.h67 void translate(float x, float y, float z) { function in struct:android::renderscript::Matrix
/frameworks/base/core/java/android/gesture/
H A DGestureUtilities.java382 translate(points, -centroid[0], -centroid[1]);
458 static float[] translate(float[] points, float dx, float dy) { method in class:GestureUtilities
/frameworks/base/graphics/java/android/graphics/
H A DCamera.java29 public native void translate(float x, float y, float z); method in class:Camera
H A DRegion.java204 public void translate(int dx, int dy) { method in class:Region
205 translate(dx, dy, null);
212 public native void translate(int dx, int dy, Region dst); method in class:Region
H A DCanvas.java247 * calls to translate,scale,rotate,skew,concat or clipRect,clipPath
258 * stack. Subsequent calls to translate,scale,rotate,skew,concat or
273 * the canvas (or the previous layer). Subsequent calls to translate,
305 * the canvas (or the previous layer). Subsequent calls to translate,
362 * @param dx The distance to translate in X
363 * @param dy The distance to translate in Y
365 public native void translate(float dx, float dy); method in class:Canvas
384 translate(px, py);
386 translate(-px, -py);
404 translate(p
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DMatrix.java177 public void translate(float x, float y, float z) { method in class:Matrix
/frameworks/base/libs/ui/
H A DRegion.cpp161 if (x|y) translate(*this, x, y);
199 const Region Region::translate(int x, int y) const {
201 translate(result, *this, x, y);
507 void Region::translate(Region& reg, int dx, int dy)
511 validate(reg, "translate (before)");
513 reg.mBounds.translate(dx, dy);
517 rects->translate(dx, dy);
522 validate(reg, "translate (after)");
527 void Region::translate(Region& dst, const Region& reg, int dx, int dy)
530 translate(ds
69 LOGE_IF(err<0, Ó, strerror(err)); } Region::Region(const void* buffer) { status_t err = read(buffer); LOGE_IF(err<0, Ó, strerror(err)); } Region::~Region() { } Region& Region::operator = (const Region& rhs) { validate(rhs, Ó); mBounds = rhs.mBounds; mStorage = rhs.mStorage; return *this; } Region& Region::makeBoundsSelf() { mStorage.clear(); return *this; } void Region::clear() { mBounds.clear(); mStorage.clear(); } void Region::set(const Rect& r) { mBounds = r; mStorage.clear(); } void Region::set(uint32_t w, uint32_t h) { mBounds = Rect(int(w), int(h)); mStorage.clear(); } void Region::addRectUnchecked(int l, int t, int r, int b) { mStorage.add(Rect(l,t,r,b)); validate(*this, Ó); } Region& Region::orSelf(const Rect& r) { return operationSelf(r, op_or); } Region& Region::andSelf(const Rect& r) { return operationSelf(r, op_and); } Region& Region::subtractSelf(const Rect& r) { return operationSelf(r, op_nand); } Region& Region::operationSelf(const Rect& r, int op) { Region lhs(*this); boolean_operation(op, *this, lhs, r); return *this; } Region& Region::orSelf(const Region& rhs) { return operationSelf(rhs, op_or); } Region& Region::andSelf(const Region& rhs) { return operationSelf(rhs, op_and); } Region& Region::subtractSelf(const Region& rhs) { return operationSelf(rhs, op_nand); } Region& Region::operationSelf(const Region& rhs, int op) { Region lhs(*this); boolean_operation(op, *this, lhs, rhs); return *this; } Region& Region::translateSelf(int x, int y) { if (x|y) translate(*this, x, y); return *this; } const Region Region::merge(const Rect& rhs) const { return operation(rhs, op_or); } const Region Region::intersect(const Rect& rhs) const { return operation(rhs, op_and); } const Region Region::subtract(const Rect& rhs) const { return operation(rhs, op_nand); } const Region Region::operation(const Rect& rhs, int op) const { Region result; boolean_operation(op, result, *this, rhs); return result; } const Region Region::merge(const Region& rhs) const { return operation(rhs, op_or); } const Region Region::intersect(const Region& rhs) const { return operation(rhs, op_and); } const Region Region::subtract(const Region& rhs) const { return operation(rhs, op_nand); } const Region Region::operation(const Region& rhs, int op) const { Region result; boolean_operation(op, result, *this, rhs); return result; } const Region Region::translate(int x, int y) const { Region result; translate(result, *this, x, y); return result; } Region& Region::orSelf(const Region& rhs, int dx, int dy) { return operationSelf(rhs, dx, dy, op_or); } Region& Region::andSelf(const Region& rhs, int dx, int dy) { return operationSelf(rhs, dx, dy, op_and); } Region& Region::subtractSelf(const Region& rhs, int dx, int dy) { return operationSelf(rhs, dx, dy, op_nand); } Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) { Region lhs(*this); boolean_operation(op, *this, lhs, rhs, dx, dy); return *this; } const Region Region::merge(const Region& rhs, int dx, int dy) const { return operation(rhs, dx, dy, op_or); } const Region Region::intersect(const Region& rhs, int dx, int dy) const { return operation(rhs, dx, dy, op_and); } const Region Region::subtract(const Region& rhs, int dx, int dy) const { return operation(rhs, dx, dy, op_nand); } const Region Region::operation(const Region& rhs, int dx, int dy, int op) const { Region result; boolean_operation(op, result, *this, rhs, dx, dy); return result; } class Region::rasterizer : public region_operator<Rect>::region_rasterizer { Rect& bounds; Vector<Rect>& storage; Rect* head; Rect* tail; Vector<Rect> span; Rect* cur; public: rasterizer(Region& reg) : bounds(reg.mBounds), storage(reg.mStorage), head(), tail(), cur() { bounds.top = bounds.bottom = 0; bounds.left = INT_MAX; bounds.right = INT_MIN; storage.clear(); } ~rasterizer() { if (span.size()) { flushSpan(); } if (storage.size()) { bounds.top = storage.itemAt(0).top; bounds.bottom = storage.top().bottom; if (storage.size() == 1) { storage.clear(); } } else { bounds.left = 0; bounds.right = 0; } } virtual void operator()(const Rect& rect) { if (span.size()) { if (cur->top != rect.top) { flushSpan(); } else if (cur->right == rect.left) argument
[all...]
/frameworks/base/include/ui/
H A DRect.h139 void translate(int dx, int dy) { // legacy, don't use. function in class:android::Rect
/frameworks/base/libs/rs/java/Film/src/com/android/film/
H A DFilmRS.java30 public float translate; field in class:FilmRS.StripPosition
59 mPos.translate = 2f * anim + 0.5f; // translation
/frameworks/base/awt/org/apache/harmony/awt/gl/
H A DMultiRectArea.java632 public void translate(int x, int y) { method in class:MultiRectArea
641 bounds.translate(x, y);
646 element.translate(x, y);
H A DCommonGraphics2D.java212 mra.translate((int)transform.getTranslateX(), (int)transform.getTranslateY());
219 mra.translate((int)transform.getTranslateX(), (int)transform.getTranslateY());
795 res.translate(-Math.round((float)transform.getTranslateX()), -Math.round((float)transform.getTranslateY()));
806 res.translate(-Math.round((float)transform.getTranslateX()), -Math.round((float)transform.getTranslateY()));
907 public void translate(double tx, double ty) { method in class:CommonGraphics2D
909 System.err.println("CommonGraphics2D.translate("+tx+", "+ty+")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
912 transform.translate(tx, ty);
917 public void translate(int tx, int ty) { method in class:CommonGraphics2D
919 System.err.println("CommonGraphics2D.translate("+tx+", "+ty+")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
922 transform.translate(t
[all...]
/frameworks/base/awt/java/awt/geom/
H A DAffineTransform.java502 * the distance to translate in the x direction.
504 * the distance to translate in the y direction.
596 * the distance to translate in the x direction.
598 * the distance to translate in the y direction.
615 * the distance to translate in the x direction.
617 * the distance to translate in the y direction.
685 * the distance to translate in the x direction.
687 * the distance to translate in the y direction.
700 * the distance to translate in the x direction.
702 * the distance to translate i
704 public void translate(double mx, double my) { method in class:AffineTransform
[all...]
/frameworks/base/opengl/libagl/
H A Dmatrix.cpp316 void matrixf_t::translate(GLfloat x, GLfloat y, GLfloat z) { function in class:android::matrixf_t
424 void matrix_stack_t::translate(GLfloat x, GLfloat y, GLfloat z) function in class:android::matrix_stack_t
426 stack[depth].translate(x,y,z);
1041 c->transforms.current->translate(x, y, z);
1048 c->transforms.current->translate(
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas.java255 * @see android.graphics.Canvas#translate(float, float)
258 public void translate(float dx, float dy) { method in class:Canvas
259 getGraphics2d().translate(dx, dy);
619 g.translate(px, py);
621 g.translate(-px, -py);
639 g.translate(px, py);
641 g.translate(-px, -py);
/frameworks/base/awt/com/android/internal/awt/
H A DAndroidGraphics2D.java713 public void translate(double tx, double ty) { method in class:AndroidGraphics2D
719 public void translate(int x, int y) { method in class:AndroidGraphics2D
/frameworks/base/core/jni/android/graphics/
H A DCanvas.cpp193 static void translate(JNIEnv* env, jobject jcanvas, jfloat dx, jfloat dy) { function in class:android::SkCanvasGlue
197 (void)GraphicsJNI::getNativeCanvas(env, jcanvas)->translate(dx_, dy_);
489 canvas->translate(left_, top_);
891 {"translate","(FF)V", (void*) SkCanvasGlue::translate},

Completed in 507 milliseconds