Home
last modified time | relevance | path

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

12

/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/wallpapers/PhaseBeam/src/com/android/phasebeam/
Dphasebeam.rs47 float xOffset = 0.5;
111 newOffset = xOffset*2;
117 vert->offsetX = -xOffset/2.0;
DPhaseBeamRS.java248 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
249 mScript.set_xOffset(xOffset); in setOffset()
/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/Launcher3/src/com/android/launcher3/
DDropTarget.java35 public int xOffset = -1; field in DropTarget.DragObject
83 int left = x - xOffset; in getVisualCenter()
DButtonDropTarget.java288 final int xOffset = (int) -(viewWidth - width) / 2; in getIconRect() local
290 to.offset(xOffset, yOffset); in getIconRect()
DDragController.java245 mDragObject.xOffset = b.getWidth() / 2; in startDrag()
249 mDragObject.xOffset = mMotionDownX - (dragLayerX + dragRegionLeft); in startDrag()
/packages/wallpapers/Basic/src/com/android/wallpaper/
DRenderScriptWallpaper.java90 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
92 if (mRenderer != null) mRenderer.setOffset(xOffset, yOffset, xPixels, yPixels); in onOffsetsChanged()
DRenderScriptScene.java85 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
DRenderScriptWallpaper.java94 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
96 mRenderer.setOffset(xOffset, yOffset, xStep, yStep, xPixels, yPixels); in onOffsetsChanged()
DMagicSmokeRS.java236 …public void setOffset(float xOffset, float yOffset, float xStep, float yStep, int xPixels, int yPi… in setOffset() argument
238 mWorldState.mXOffset = xOffset; in setOffset()
DRenderScriptScene.java89 …public void setOffset(float xOffset, float yOffset, float xStep, float yStep, int xPixels, int yPi… in setOffset() argument
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
DHoloSpiralWallpaper.java121 public void onOffsetsChanged(float xOffset, float yOffset, float xOffsetStep, in onOffsetsChanged() argument
123 mWallpaperRS.setOffset(xOffset, yOffset, xPixelOffset, yPixelOffset); in onOffsetsChanged()
DHoloSpiralRS.java78 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
79 mScript.set_gXOffset(xOffset); in setOffset()
/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()
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()
DDeleteDropTarget.java350 float xOffset = ((scale - 1f) * dragView.getMeasuredWidth()) / 2f;
353 mFrom.left += xOffset;
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
/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/wallpapers/Basic/src/com/android/wallpaper/polarclock/
DPolarClockWallpaper.java451 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
455 mOffsetX = xOffset; in onOffsetsChanged()
/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()

12