Home
last modified time | relevance | path

Searched refs:xOffset (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/anim/
DStateTransitionAnimation.java152 int xOffset = view.getWidth() / 2; in applyOldTexture() local
154 canvas.translate(xOffset, yOffset); in applyOldTexture()
156 mOldScreenTexture.draw(canvas, -xOffset, -yOffset); in applyOldTexture()
167 int xOffset = view.getWidth() / 2; in applyContentTransform() local
169 canvas.translate(xOffset, yOffset); in applyContentTransform()
171 canvas.translate(-xOffset, -yOffset); in applyContentTransform()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java578 int xOffset = 0; in computeDayLeftPosition() local
580 xOffset = SPACING_WEEK_NUMBER + mPadding; in computeDayLeftPosition()
581 effectiveWidth -= xOffset; in computeDayLeftPosition()
583 x = day * effectiveWidth / mNumDays + xOffset; in computeDayLeftPosition()
595 int xOffset = SPACING_WEEK_NUMBER + mPadding; in drawDaySeparators() local
597 lines[i++] = xOffset; in drawDaySeparators()
599 lines[i++] = xOffset; in drawDaySeparators()
990 int xOffset = (DNA_ALL_DAY_WIDTH - DNA_WIDTH) / 2; in drawDNA() local
997 canvas.drawLine(mDayXs[i] + xOffset, DNA_MARGIN, mDayXs[i] + xOffset, in drawDNA()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFlingAnimation.java47 float xOffset = ((scale - 1f) * d.dragView.getMeasuredWidth()) / 2f; in FlingAnimation() local
49 mFrom.left += xOffset; in FlingAnimation()
50 mFrom.right -= xOffset; in FlingAnimation()
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTarget.java37 public int xOffset = -1; field in DropTarget.DragObject
87 int left = x - xOffset; in getVisualCenter()
DButtonDropTarget.java293 final int xOffset = (int) -(viewWidth - width) / 2; in getIconRect() local
295 to.offset(xOffset, yOffset); in getIconRect()
DDragController.java248 mDragObject.xOffset = b.getWidth() / 2; in startDrag()
252 mDragObject.xOffset = mMotionDownX - (dragLayerX + dragRegionLeft); in startDrag()
DWorkspace.java1602 float xOffset = 1.0f / mNumPagesForWallpaperParallax; in setWallpaperOffsetSteps() local
1603 if (xOffset != mLastSetWallpaperOffsetSteps) { in setWallpaperOffsetSteps()
1604 mWallpaperManager.setWallpaperOffsetSteps(xOffset, 1.0f); in setWallpaperOffsetSteps()
1605 mLastSetWallpaperOffsetSteps = xOffset; in setWallpaperOffsetSteps()
DFolder.java705 mScrollAreaOffset = d.dragView.getDragRegionWidth() / 2 - d.xOffset; in onDragEnter()
/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java375 final int xOffset = viewWrapper.prevLeft - view.getLeft(); in trySlideAttachmentView() local
380 if (xOffset == 0 && yOffset == 0 && scaleX == 1 && scaleY == 1) { in trySlideAttachmentView()
387 animationSet.addAnimation(new TranslateAnimation(xOffset, 0, yOffset, 0)); in trySlideAttachmentView()
/packages/apps/Launcher2/src/com/android/launcher2/
DButtonDropTarget.java151 final int xOffset = (int) -(viewWidth - width) / 2; in getIconRect() local
153 to.offset(xOffset, yOffset); in getIconRect()
DDeleteDropTarget.java350 float xOffset = ((scale - 1f) * dragView.getMeasuredWidth()) / 2f;
353 mFrom.left += xOffset;
DFolder.java623 float[] r = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, null); in onDragOver()
642 private float[] getDragViewVisualCenter(int x, int y, int xOffset, int yOffset, in getDragViewVisualCenter() argument
655 int left = x - xOffset; in getDragViewVisualCenter()
DAppWidgetResizeFrame.java402 int xOffset = mCellLayout.getLeft() + mCellLayout.getPaddingLeft() in snapToWidget() local
412 int newX = mWidgetView.getLeft() - mBackgroundPadding + xOffset + mWidgetPaddingLeft; in snapToWidget()
DDropTarget.java37 public int xOffset = -1; field in DropTarget.DragObject
DWorkspace.java1975 mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset,
2171 mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView,
2721 private float[] getDragViewVisualCenter(int x, int y, int xOffset, int yOffset,
2739 int left = x - xOffset;
2767 mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset,
DDragController.java239 mDragObject.xOffset = mMotionDownX - (dragLayerX + dragRegionLeft); in startDrag()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DSimSelectorAvatarRequest.java105 final float xOffset = halfWidth - textBound.centerX(); in renderSimAvatarInternal() local
107 canvas.drawText(firstCharString, xOffset, yOffset, paint); in renderSimAvatarInternal()
DAvatarRequest.java174 final float xOffset = halfWidth - textBound.centerX(); in renderLetterTile() local
176 canvas.drawText(firstCharString, xOffset, yOffset, paint); in renderLetterTile()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLCanvas.java179 public abstract void texSubImage2D(BasicTexture texture, int xOffset, int yOffset, in texSubImage2D() argument
DGLES11Canvas.java956 public void texSubImage2D(BasicTexture texture, int xOffset, int yOffset, Bitmap bitmap, in texSubImage2D() argument
960 GLUtils.texSubImage2D(target, 0, xOffset, yOffset, bitmap, format, type); in texSubImage2D()
DGLES20Canvas.java933 public void texSubImage2D(BasicTexture texture, int xOffset, int yOffset, Bitmap bitmap, in texSubImage2D() argument
938 GLUtils.texSubImage2D(target, 0, xOffset, yOffset, bitmap, format, type); in texSubImage2D()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DGLCanvas.java177 public abstract void texSubImage2D(BasicTexture texture, int xOffset, int yOffset, in texSubImage2D() argument
DGLES20Canvas.java932 public void texSubImage2D(BasicTexture texture, int xOffset, int yOffset, Bitmap bitmap, in texSubImage2D() argument
937 GLUtils.texSubImage2D(target, 0, xOffset, yOffset, bitmap, format, type); in texSubImage2D()
/packages/apps/Camera2/src/com/android/camera/
DPhotoModule.java839 int xOffset = (originalWidth - newWidth)/2; in cropJpegDataToAspectRatio() local
842 if (xOffset < 0 || yOffset < 0) { in cropJpegDataToAspectRatio()
846 Bitmap resized = Bitmap.createBitmap(original,xOffset,yOffset,newWidth, newHeight); in cropJpegDataToAspectRatio()