Home
last modified time | relevance | path

Searched refs:offsetX (Results 1 – 16 of 16) sorted by relevance

/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSecondLevelIndicatorControlBar.java182 int offsetX = padding; in onLayout() local
185 getChildAt(i).layout(offsetX, 0, offsetX + iconWidth, height); in onLayout()
186 offsetX += increment; in onLayout()
190 offsetX = width - iconWidth - 2 * padding; in onLayout()
191 mDivider.layout(offsetX, padding, (offsetX + mDivider.getMeasuredWidth()), in onLayout()
194 offsetX = width - iconWidth - padding; in onLayout()
196 mCloseIcon.layout(offsetX, 0, (offsetX + iconWidth), height); in onLayout()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconShape.java77 public abstract void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, in drawShape() argument
80 public abstract void addToPath(Path path, float offsetX, float offsetY, float radius); in addToPath() argument
113 public final void drawShape(Canvas canvas, float offsetX, float offsetY, float radius,
116 addToPath(mTmpPath, offsetX, offsetY, radius);
192 public void addToPath(Path path, float offsetX, float offsetY, float radius) {
193 path.addCircle(radius + offsetX, radius + offsetY, radius, Path.Direction.CW);
218 public void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, Paint p) {
219 float cx = radius + offsetX;
226 public void addToPath(Path path, float offsetX, float offsetY, float radius) {
227 float cx = radius + offsetX;
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DTiledTexture.java113 public int offsetX; field in TiledTexture.Tile
138 int x = BORDER_SIZE - offsetX; in onGetBitmap()
210 tile.offsetX = x; in TiledTexture()
286 src.offset(t.offsetX, t.offsetY); in drawMixed()
288 src.offset(BORDER_SIZE - t.offsetX, BORDER_SIZE - t.offsetY); in drawMixed()
305 src.offset(t.offsetX, t.offsetY); in draw()
307 src.offset(BORDER_SIZE - t.offsetX, BORDER_SIZE - t.offsetY); in draw()
328 src.offset(t.offsetX, t.offsetY); in draw()
331 src.offset(BORDER_SIZE - t.offsetX, BORDER_SIZE - t.offsetY); in draw()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewBackground.java258 int offsetX = getOffsetX(); in drawShadow() local
262 saveCount = canvas.saveLayer(offsetX - mStrokeWidth, offsetY, in drawShadow()
263 offsetX + radius + shadowRadius, offsetY + shadowRadius + shadowRadius, null); in drawShadow()
271 mShaderMatrix.postTranslate(radius + offsetX, shadowRadius + offsetY); in drawShadow()
280 getShape().drawShape(canvas, offsetX, offsetY, radius, mPaint); in drawShadow()
355 float offsetX = basePreviewOffsetX - radiusDifference; in getClipPath() local
357 getShape().addToPath(mPath, offsetX, offsetY, radius); in getClipPath()
DFolderIcon.java572 float offsetX = mTmpParams.transX + (mTmpParams.scale * intrinsicIconSize) / 2; in getLocalCenterForIndex() local
575 center[0] = Math.round(offsetX); in getLocalCenterForIndex()
/packages/services/BuiltInPrintService/src/com/android/bips/
DImageToPdfTask.java125 float offsetX = (extent.width() - mBitmap.getWidth() * scale) / 2; in drawDirect() local
133 matrix.postTranslate(offsetX, offsetY); in drawDirect()
144 float offsetX = ((targetWidth / scale) - mBitmap.getWidth()) / 2; in drawOptimized() local
156 bitmapCanvas.drawBitmap(mBitmap, offsetX, offsetY, new Paint(Paint.FILTER_BITMAP_FLAG)); in drawOptimized()
/packages/apps/Dialer/java/com/android/dialer/widget/
DFloatingActionButtonController.java128 private void align(int align, int offsetX, int offsetY, boolean animate) { in align() argument
138 .translationX(translationX + offsetX) in align()
144 fab.setTranslationX(translationX + offsetX); in align()
/packages/apps/Contacts/src/com/android/contacts/widget/
DFloatingActionButtonController.java127 public void align(int align, int offsetX, int offsetY, boolean animate) { in align() argument
137 .translationX(translationX + offsetX) in align()
143 mFloatingActionButtonContainer.setTranslationX(translationX + offsetX); in align()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DBitmapTileProvider.java87 int offsetX = -x; in getTile() local
89 canvas.drawBitmap(mipmap, offsetX, offsetY, null); in getTile()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDragHoverListener.java179 final float offsetX = isScrollView ? 0 : v.getX(); in transformToScrollViewCoordinate() local
181 return new Point(Math.round(offsetX + x), Math.round(offsetY + y)); in transformToScrollViewCoordinate()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java1353 final int offsetX = removedItem.getMeasuredWidth() + mViewGapInPixel; in animateItemRemoval() local
1357 mViewItems[i].setLeftPosition(mViewItems[i].getLeftPosition() - offsetX); in animateItemRemoval()
1389 mViewItems[i].setTranslationX(offsetX); in animateItemRemoval()
1413 mCenterX -= offsetX; in animateItemRemoval()
1430 mViewItems[i].setTranslationX(-offsetX); in animateItemRemoval()
1509 final int offsetX = dim.x + mViewGapInPixel; in updateInsertion() local
1525 mViewItems[i].setTranslationX(-offsetX); in updateInsertion()
1539 mViewItems[i].setTranslationX(offsetX); in updateInsertion()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryChartView.java428 final float offsetX = mDividerWidth + unitWidth; in drawVerticalDividers() local
430 xOffsets[index] = baselineX + index * offsetX * 3; in drawVerticalDividers()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepTransitionManager.java707 float offsetX = (scaledCropWidth - iconWidth) / 2; in getOpeningWindowAnimators()
715 float windowTransX0 = tmpRectF.left - offsetX - crop.left * scale; in getOpeningWindowAnimators()
722 floatingIconBounds.left -= offsetX; in getOpeningWindowAnimators()
724 floatingIconBounds.right += offsetX; in getOpeningWindowAnimators()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPersister.java446 int offsetX = Math.max(0, -(screenSize.x / 2 - scaledCenter.x)); in cropAndSetWallpaperBitmapInRotationStatic() local
450 wallpaperSize, defaultCropSurfaceSize, screenSize, offsetX, offsetY); in cropAndSetWallpaperBitmapInRotationStatic()
/packages/apps/Gallery/src/com/android/camera/
DGalleryPicker.java622 int heightPadding, int offsetX, int offsetY, in placeImage() argument
627 int xPos = (col * (imageWidth + widthPadding)) - offsetX; in placeImage()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java288 public static void offsetPoints(float[] points, float offsetX, float offsetY) { in offsetPoints() argument
290 points[i] += offsetX; in offsetPoints()