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

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

Completed in 417 milliseconds