Searched refs:dx (Results 51 - 73 of 73) sorted by relevance

123

/frameworks/base/awt/java/awt/
H A DBasicStroke.java862 double dx = x2 - x1;
865 if (dx == 0.0 && dy == 0.0) {
869 dx = w2;
872 double w = w2 / Math.sqrt(dx * dx + dy * dy);
873 dx *= w;
878 double ly1 = y1 + dx;
880 double ry1 = y1 - dx;
893 lp.lineTo(x2 - dy, y2 + dx);
894 rp.lineTo(x2 + dy, y2 - dx);
[all...]
H A DGraphics.java370 * Copies the rectangle area to another area specified by a distance (dx,
371 * dy) from the original rectangle's location. Positive dx and dy values
373 * original location, negative dx and dy values - to the left and up.
383 * @param dx
390 public abstract void copyArea(int sx, int sy, int width, int height, int dx, int dy); argument
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java905 * @param dx the number of pixels to scroll by on the X axis
908 public final void smoothScrollBy(int dx, int dy) { argument
919 dx = Math.max(0, Math.min(scrollX + dx, maxX)) - scrollX;
921 mScroller.startScroll(scrollX, mScrollY, dx, 0);
927 scrollBy(dx, dy);
H A DScrollView.java906 * @param dx the number of pixels to scroll by on the X axis
909 public final void smoothScrollBy(int dx, int dy) { argument
928 scrollBy(dx, dy);
H A DTextView.java428 float dx = 0, dy = 0, r = 0;
608 dx = a.getFloat(attr, 0);
878 setShadowLayer(r, dx, dy, shadowcolor);
1799 public void setShadowLayer(float radius, float dx, float dy, int color) { argument
1800 mTextPaint.setShadowLayer(radius, dx, dy, color);
1803 mShadowDx = dx;
5583 int dx = hs - mScrollX;
5587 mScroller.startScroll(mScrollX, mScrollY, dx, dy);
5595 scrollBy(dx, dy);
/frameworks/base/awt/java/awt/geom/
H A DAffineTransform.java332 double dx = m00 * m00 + m10 * m10;
334 if (dx != dy) {
336 } else if (dx != 1.0) {
/frameworks/base/awt/org/apache/harmony/awt/gl/render/
H A DJavaShapeRasterizer.java361 int dx = edgesX[end] - x1;
364 activeXStep[activeCount] = dx / (float)dy;
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java645 final float dx = Math.abs(x - mInProgressX);
647 if (dx + dy > mSquareWidth * 0.01f) {
817 final float dx = percentageOfNextCircle *
821 mInProgressX = centerX + dx;
H A DRotarySelector.java640 final int dx = (int) (totalDeltaX * (1 - interpolation));
641 mRotaryOffsetX = mAnimatingDeltaXEnd + dx;
/frameworks/base/awt/com/android/internal/awt/
H A DAndroidGraphics2D.java744 public void copyArea(int sx, int sy, int width, int height, int dx, int dy) { argument
745 copyArea(mC, sx, sy, width + dx, height + dy, dx, dy);
1346 public void copyArea(Canvas canvas, int sx, int sy, int width, int height, int dx, int dy) { argument
1352 dx, dy);
/frameworks/base/core/java/android/inputmethodservice/
H A DInputMethodService.java1682 int dx = 0, dy = 0;
1685 dx = -count;
1688 dx = count;
1697 onExtractedCursorMovement(dx, dy);
1884 * @param dx The amount of cursor movement in the x dimension.
1887 public void onExtractedCursorMovement(int dx, int dy) { argument
/frameworks/base/core/java/android/webkit/
H A DWebTextView.java477 int dx = Math.abs(mScrollX - initialScrollX);
483 if (dx > smallerSlop || dy > smallerSlop) {
H A DWebViewCore.java1876 private void contentScrollBy(int dx, int dy, boolean animate) { argument
1883 WebView.SCROLL_BY_MSG_ID, dx, dy, new Boolean(animate));
2284 private native void nativeSetScrollOffset(int gen, int dx, int dy); argument
H A DWebView.java2809 private static int computeDuration(int dx, int dy) { argument
2810 int distance = Math.max(Math.abs(dx), Math.abs(dy));
2817 private boolean pinScrollBy(int dx, int dy, boolean animate, int animationDuration) { argument
2818 return pinScrollTo(mScrollX + dx, mScrollY + dy, animate, animationDuration);
2825 int dx = x - mScrollX;
2828 if ((dx | dy) == 0) {
2832 // Log.d(LOGTAG, "startScroll: " + dx + " " + dy);
2833 mScroller.startScroll(mScrollX, mScrollY, dx, dy,
2834 animationDuration > 0 ? animationDuration : computeDuration(dx, dy));
/frameworks/base/core/jni/android/graphics/
H A DCanvas.cpp193 static void translate(JNIEnv* env, jobject jcanvas, jfloat dx, jfloat dy) { argument
195 SkScalar dx_ = SkFloatToScalar(dx);
621 const SkScalar dx = w / meshWidth; local
634 x += dx;
H A DPaint.cpp413 jfloat dx, jfloat dy, int color) {
422 SkFloatToScalar(dx),
412 setShadowLayer(JNIEnv* env, jobject jpaint, jfloat radius, jfloat dx, jfloat dy, int color) argument
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp295 float dx = x1 - x0; local
298 *pSphere++ = x0 + dx * 0.5f;
301 *pSphere++ = distance(dx, dy, dz) * 0.5f;
/frameworks/base/services/java/com/android/server/
H A DInputDevice.java221 //int dx = x - mLastData[joff + MotionEvent.SAMPLE_X];
223 //if (dx < 0) dx = -dx;
452 int dx = newX-oldX;
454 int delta = dx*dx + dy*dy;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas.java253 public void translate(float dx, float dy) { argument
254 getGraphics2d().translate(dx, dy);
H A DPaint.java530 public void setShadowLayer(float radius, float dx, float dy, int color) { argument
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java794 public native void setShadowLayer(float radius, float dx, float dy, argument
H A DCanvas.java362 * @param dx The distance to translate in X
365 public native void translate(float dx, float dy); argument
/frameworks/base/core/java/android/view/
H A DViewGroup.java2653 int dx = child.mLeft - mScrollX;
2656 offset.x += dx;
2659 r.offset(dx, dy);

Completed in 1231 milliseconds

123