Home
last modified time | relevance | path

Searched refs:translateX (Results 1 – 20 of 20) sorted by relevance

/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java999 final float translateX; in translate() local
1002 translateX = Math.max(maxLeft - mTranslateRect.right, in translate()
1007 translateX = maxLeft + ((maxRight - maxLeft) - (r + l)) / 2; in translate()
1009 translateX = Math.max(maxRight - r, Math.min(maxLeft - l, tx)); in translate()
1033 mMatrix.postTranslate(translateX, translateY); in translate()
1036 boolean didTranslateX = translateX == tx; in translate()
1061 final float translateX; in snap() local
1064 translateX = maxLeft + ((maxRight - maxLeft) - (r + l)) / 2; in snap()
1067 translateX = maxLeft - l; in snap()
1070 translateX = maxRight - r; in snap()
[all …]
/frameworks/base/libs/hwui/
DVectorDrawable.h417 float translateX = 0; member
455 return mPrimitiveFields.translateX; in getTranslateX()
457 void setTranslateX(float translateX) { in setTranslateX() argument
458 VD_SET_PRIMITIVE_FIELD_AND_NOTIFY(translateX, translateX); in setTranslateX()
467 float scaleX, float scaleY, float translateX, float translateY) { in updateProperties() argument
473 mPrimitiveFields.translateX = translateX; in updateProperties()
488 translateX, enumerator
DGlopBuilder.cpp517 const float translateX = meshTransform.getTranslateX(); in setModelViewMapUnitToRectSnap() local
520 left = (int) floorf(left + translateX + 0.5f) - translateX; in setModelViewMapUnitToRectSnap()
544 const float translateX = meshTransform.getTranslateX(); in setModelViewOffsetRectSnap() local
547 … offsetX = (int) floorf(offsetX + translateX + source.left + 0.5f) - translateX - source.left; in setModelViewOffsetRectSnap()
DVectorDrawable.cpp356 case Property::translateX: in getPropertyValue()
385 case Property::translateX: in setPropertyValue()
DBakedOpDispatcher.cpp341 const VertexBuffer& vertexBuffer, float translateX, float translateY, in renderVertexBuffer() argument
354 .setModelViewOffsetRect(translateX, translateY, vertexBuffer.getBounds()) in renderVertexBuffer()
/frameworks/layoutlib/bridge/src/android/graphics/drawable/
DVectorDrawable_Delegate.java283 float pivotY, float scaleX, float scaleY, float translateX, float translateY) { in nUpdateGroupProperties() argument
291 group.setTranslateX(translateX); in nUpdateGroupProperties()
381 static void nSetTranslateX(long groupPtr, float translateX) { in nSetTranslateX() argument
383 group.setTranslateX(translateX); in nSetTranslateX()
943 private void setTranslateX(float translateX) { in setTranslateX() argument
944 if (translateX != mTranslateX) { in setTranslateX()
945 mTranslateX = translateX; in setTranslateX()
/frameworks/base/services/core/java/com/android/server/wm/
DDragState.java587 final float translateX = mOriginalX - mCurrentX; in createReturnAnimationLocked() local
589 set.addAnimation(new TranslateAnimation( 0, translateX, 0, translateY)); in createReturnAnimationLocked()
592 final double travelDistance = Math.sqrt(translateX * translateX + translateY * translateY); in createReturnAnimationLocked()
/frameworks/base/core/jni/
Dandroid_graphics_drawable_VectorDrawable.cpp172 jfloat pivotY, jfloat scaleX, jfloat scaleY, jfloat translateX, jfloat translateY) { in updateGroupProperties() argument
175 translateX, translateY); in updateGroupProperties()
251 static void setTranslateX(JNIEnv*, jobject, jlong groupPtr, jfloat translateX) { in setTranslateX() argument
253 group->mutateStagingProperties()->setTranslateX(translateX); in setTranslateX()
/frameworks/base/core/java/android/widget/
DScrollView.java1747 final float translateX; in draw() local
1752 translateX = mPaddingLeft; in draw()
1757 translateX = 0; in draw()
1760 canvas.translate(translateX, Math.min(0, scrollY) + translateY); in draw()
1771 final float translateX; in draw() local
1776 translateX = mPaddingLeft; in draw()
1781 translateX = 0; in draw()
1784 canvas.translate(-width + translateX, in draw()
DEdgeEffect.java331 float translateX = mBounds.width() * displacement / 2; in draw() local
334 canvas.translate(translateX, 0); in draw()
DAbsListView.java4316 final int translateX; in draw() local
4322 translateX = mPaddingLeft; in draw()
4327 translateX = 0; in draw()
4332 canvas.clipRect(translateX, translateY, in draw()
4333 translateX + width ,translateY + mEdgeGlowTop.getMaxHeight()); in draw()
4335 canvas.translate(translateX, edgeY); in draw()
4344 canvas.clipRect(translateX, translateY + height - mEdgeGlowBottom.getMaxHeight(), in draw()
4345 translateX + width, translateY + height); in draw()
4346 final int edgeX = -width + translateX; in draw()
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewController.java1006 final int translateX = calculateTranslate(mAnimationStartX, mAnimationStartWidth, in runEnterAnimation() local
1022 mTemporaryImage.setTranslationX(translateX); in runEnterAnimation()
1049 final Animation translateAnimation = new TranslateAnimation(translateX, in runEnterAnimation()
1096 final int translateX = calculateTranslate(mAnimationStartX, mAnimationStartWidth, in runExitAnimation() local
1119 .translationX(translateX).translationY(translateY) in runExitAnimation()
1123 .translationX(translateX).translationY(translateY) in runExitAnimation()
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
DAndroidResources.java39 android.R.attr.translateX, android.R.attr.translateY
DVectorDrawableCompat.java1491 public void setTranslateX(float translateX) { in setTranslateX() argument
1492 if (translateX != mTranslateX) { in setTranslateX()
1493 mTranslateX = translateX; in setTranslateX()
/frameworks/base/graphics/java/android/graphics/drawable/
DVectorDrawable.java1313 float translateX = a.getFloat(R.styleable.VectorDrawableGroup_translateX, in updateStateFromTypedArray() local
1324 translateX, translateY); in updateStateFromTypedArray()
1477 public void setTranslateX(float translateX) { in setTranslateX() argument
1479 nSetTranslateX(mNativePtr, translateX); in setTranslateX()
2222 float pivotY, float scaleX, float scaleY, float translateX, float translateY); in nUpdateGroupProperties() argument
2257 private static native void nSetTranslateX(long groupPtr, float translateX); in nSetTranslateX() argument
/frameworks/support/core-utils/java/android/support/v4/print/
DPrintHelper.java431 final float translateX = (content.width() in getMatrix() local
435 matrix.postTranslate(translateX, translateY); in getMatrix()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt1323 field public static final int translateX = 16843866; // 0x101045a
/frameworks/base/api/
Dcurrent.txt1435 field public static final int translateX = 16843866; // 0x101045a
Dtest-current.txt1435 field public static final int translateX = 16843866; // 0x101045a
Dsystem-current.txt1571 field public static final int translateX = 16843866; // 0x101045a