Searched defs:dx (Results 26 - 50 of 116) sorted by path

12345

/frameworks/base/core/java/android/widget/
H A DOverScroller.java350 * @param dx Horizontal distance to travel. Positive numbers will scroll the
355 public void startScroll(int startX, int startY, int dx, int dy) { argument
356 startScroll(startX, startY, dx, dy, DEFAULT_DURATION);
366 * @param dx Horizontal distance to travel. Positive numbers will scroll the
372 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument
374 mScrollerX.startScroll(startX, dx, duration);
532 final int dx = mScrollerX.mFinal - mScrollerX.mStart;
534 return !isFinished() && Math.signum(xvel) == Math.signum(dx) &&
H A DScrollView.java1191 * @param dx the number of pixels to scroll by on the X axis
1194 public final void smoothScrollBy(int dx, int dy) { argument
1217 scrollBy(dx, dy);
H A DScroller.java363 * @param dx Horizontal distance to travel. Positive numbers will scroll the
368 public void startScroll(int startX, int startY, int dx, int dy) { argument
369 startScroll(startX, startY, dx, dy, DEFAULT_DURATION);
380 * @param dx Horizontal distance to travel. Positive numbers will scroll the
386 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument
393 mFinalX = startX + dx;
395 mDeltaX = dx;
425 float dx = (float) (mFinalX - mStartX);
427 float hyp = (float) Math.hypot(dx, dy);
429 float ndx = dx / hy
[all...]
H A DTextView.java739 float dx = 0, dy = 0, r = 0;
811 dx = appearance.getFloat(attr, 0);
1056 dx = a.getFloat(attr, 0);
1433 setShadowLayer(r, dx, dy, shadowcolor);
2839 final float dx = ta.getFloat(R.styleable.TextAppearance_shadowDx, 0);
2842 setShadowLayer(r, dx, dy, shadowColor);
3349 public void setShadowLayer(float radius, float dx, float dy, int color) { argument
3350 mTextPaint.setShadowLayer(radius, dx, dy, color);
3353 mShadowDx = dx;
5842 final float dx
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java641 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
H A DSwipeDismissLayout.java212 float dx = ev.getRawX() - mDownX;
215 if (dx != 0 && canScroll(this, false, dx, x, y)) {
337 * Tests scrollability within child views of v in the direction of dx.
342 * @param dx Delta scrolled in pixels. Only the sign of this is used.
345 * @return true if child views of v can be scrolled by delta of dx.
347 protected boolean canScroll(View v, boolean checkV, float dx, float x, float y) { argument
357 canScroll(child, true, dx, x + scrollX - child.getLeft(),
364 return checkV && v.canScrollHorizontally((int) -dx);
H A DViewPager.java799 int dx = x - sx;
801 if (dx == 0 && dy == 0) {
813 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dx) / width);
823 final float pageDelta = (float) Math.abs(dx) / (pageWidth + mPageMargin);
828 mScroller.startScroll(sx, sy, dx, dy, duration);
1812 private boolean isGutterDrag(float x, float dx) { argument
1813 return (x < mGutterSize && dx > 0) || (x > getWidth() - mGutterSize && dx < 0);
1880 final float dx = x - mLastMotionX;
1881 final float xDiff = Math.abs(dx);
2432 canScroll(View v, boolean checkV, int dx, int x, int y) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DCamera.cpp35 jfloat dx, jfloat dy, jfloat dz) {
38 v->translate(dx, dy, dz);
34 Camera_translate(JNIEnv* env, jobject obj, jfloat dx, jfloat dy, jfloat dz) argument
H A DMatrix.cpp70 static void setTranslate(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) { argument
72 obj->setTranslate(dx, dy);
113 static void preTranslate(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) { argument
115 obj->preTranslate(dx, dy);
154 static void postTranslate(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) { argument
156 obj->postTranslate(dx, dy);
H A DPaint.cpp635 jfloat dx, jfloat dy, jint color) {
642 paint->setLooper(SkBlurDrawLooper::Create((SkColor)color, sigma, dx, dy))->unref();
634 setShadowLayer(JNIEnv* env, jobject clazz, jlong paintHandle, jfloat radius, jfloat dx, jfloat dy, jint color) argument
H A DPath.cpp118 static void rMoveTo(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) { argument
120 obj->rMoveTo(dx, dy);
128 static void rLineTo(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) { argument
130 obj->rLineTo(dx, dy);
216 static void addPath__PathFF(JNIEnv* env, jobject clazz, jlong objHandle, jlong srcHandle, jfloat dx, jfloat dy) { argument
219 obj->addPath(*src, dx, dy);
235 static void offset__FF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) { argument
237 obj->offset(dx, dy);
240 static void setLastPoint(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) { argument
242 obj->setLastPt(dx, d
[all...]
H A DRasterizer.cpp80 static void addLayer(JNIEnv* env, jobject, jlong layerHandle, jlong paintHandle, jfloat dx, jfloat dy) { argument
85 nr->fBuilder.addLayer(*paint, dx, dy);
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp392 float dx = x1 - x0; local
395 *pSphere++ = x0 + dx * 0.5f;
398 *pSphere++ = distance(dx, dy, dz) * 0.5f;
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp156 static void translate(JNIEnv*, jobject, jlong canvasHandle, jfloat dx, jfloat dy) { argument
157 get_canvas(canvasHandle)->translate(dx, dy);
/frameworks/base/graphics/java/android/graphics/
H A DCamera.java161 public native float dotWithNormal(float dx, float dy, float dz); argument
H A DCanvas.java554 * @param dx The distance to translate in X
557 public void translate(float dx, float dy) { argument
558 native_translate(mNativeCanvasWrapper, dx, dy);
2018 float dx, float dy);
2017 native_translate(long canvasHandle, float dx, float dy) argument
H A DLayerRasterizer.java30 public void addLayer(Paint paint, float dx, float dy) { argument
31 nativeAddLayer(native_instance, paint.getNativeInstance(), dx, dy);
39 private static native void nativeAddLayer(long native_layer, long native_paint, float dx, float dy); argument
H A DMatrix.java54 public void setTranslate(float dx, float dy) {
105 public boolean preTranslate(float dx, float dy) {
153 public boolean postTranslate(float dx, float dy) {
301 /** Set the matrix to translate by (dx, dy). */
302 public void setTranslate(float dx, float dy) { argument
303 native_setTranslate(native_instance, dx, dy);
382 * M' = M * T(dx, dy)
384 public boolean preTranslate(float dx, float dy) { argument
385 native_preTranslate(native_instance, dx, dy);
454 * M' = T(dx, d
456 postTranslate(float dx, float dy) argument
847 native_setTranslate(long native_object, float dx, float dy) argument
868 native_preTranslate(long native_object, float dx, float dy) argument
884 native_postTranslate(long native_object, float dx, float dy) argument
[all...]
H A DOutline.java274 * Offsets the Outline by (dx,dy)
276 public void offset(int dx, int dy) { argument
278 mRect.offset(dx, dy);
280 mPath.offset(dx, dy);
H A DPaint.java1245 public void setShadowLayer(float radius, float dx, float dy, int shadowColor) { argument
1246 nSetShadowLayer(mNativePaint, radius, dx, dy, shadowColor);
2703 float radius, float dx, float dy, int color);
2702 nSetShadowLayer(long paintPtr, float radius, float dx, float dy, int color) argument
H A DPath.java338 * @param dx The amount to add to the x-coordinate of the end of the
343 public void rMoveTo(float dx, float dy) { argument
344 native_rMoveTo(mNativePath, dx, dy);
365 * @param dx The amount to add to the x-coordinate of the previous point on
370 public void rLineTo(float dx, float dy) { argument
372 native_rLineTo(mNativePath, dx, dy);
665 * Add a copy of src to the path, offset by (dx,dy)
668 * @param dx The amount to translate the path in X as it is added
670 public void addPath(Path src, float dx, float dy) { argument
672 native_addPath(mNativePath, src.mNativePath, dx, d
703 offset(float dx, float dy, @Nullable Path dst) argument
718 offset(float dx, float dy) argument
737 setLastPoint(float dx, float dy) argument
817 native_rMoveTo(long nPath, float dx, float dy) argument
819 native_rLineTo(long nPath, float dx, float dy) argument
846 native_addPath(long nPath, long src, float dx, float dy) argument
849 native_offset(long nPath, float dx, float dy) argument
850 native_setLastPoint(long nPath, float dx, float dy) argument
[all...]
H A DPoint.java61 * Offset the point's coordinates by dx, dy
63 public final void offset(int dx, int dy) { argument
64 x += dx;
H A DPointF.java63 public final void offset(float dx, float dy) { argument
64 x += dx;
H A DRect.java286 * Offset the rectangle by adding dx to its left and right coordinates, and
289 * @param dx The amount to add to the rectangle's left and right coordinates
292 public void offset(int dx, int dy) { argument
293 left += dx;
295 right += dx;
314 * Inset the rectangle by (dx,dy). If dx is positive, then the sides are
315 * moved inwards, making the rectangle narrower. If dx is negative, then the
319 * @param dx The amount to add(subtract) from the rectangle's left(right)
322 public void inset(int dx, in argument
[all...]
H A DRectF.java231 * Offset the rectangle by adding dx to its left and right coordinates, and
234 * @param dx The amount to add to the rectangle's left and right coordinates
237 public void offset(float dx, float dy) { argument
238 left += dx;
240 right += dx;
259 * Inset the rectangle by (dx,dy). If dx is positive, then the sides are
260 * moved inwards, making the rectangle narrower. If dx is negative, then the
264 * @param dx The amount to add(subtract) from the rectangle's left(right)
267 public void inset(float dx, floa argument
[all...]

Completed in 7922 milliseconds

12345