Home
last modified time | relevance | path

Searched refs:offsetY (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconShape.java98 public abstract void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, in drawShape() argument
101 public abstract void addToPath(Path path, float offsetX, float offsetY, float radius); in addToPath() argument
139 public final void drawShape(Canvas canvas, float offsetX, float offsetY, float radius,
142 addToPath(mTmpPath, offsetX, offsetY, radius);
188 public void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, Paint p) {
189 canvas.drawCircle(radius + offsetX, radius + offsetY, radius, p);
193 public void addToPath(Path path, float offsetX, float offsetY, float radius) {
194 path.addCircle(radius + offsetX, radius + offsetY, radius, Path.Direction.CW);
220 public void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, Paint p) {
222 float cy = radius + offsetY;
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DTiledTexture.java114 public int offsetY; field in TiledTexture.Tile
139 int y = BORDER_SIZE - offsetY; in onGetBitmap()
211 tile.offsetY = y; 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/Camera2/src/com/android/camera/processing/imagebackend/
DTaskConvertImageToRGBPreview.java294 int offsetY = calculateMemoryOffsetFromPixelOffsets(inscribedXMin, j, subsample, in colorInscribedDataCircleFromYuvImage() local
319 for (int i = inscribedXMin; i < inscribedXMax; i += 2, offsetY += 2 * yPixelStride, in colorInscribedDataCircleFromYuvImage()
349 int y00 = (int) (buf0.get(offsetY) & 255); in colorInscribedDataCircleFromYuvImage()
385 int y01 = (int) (buf0.get(offsetY + yPixelStride) & 255); in colorInscribedDataCircleFromYuvImage()
418 int y10 = (int) (buf0.get(offsetY + yByteStride) & 255); in colorInscribedDataCircleFromYuvImage()
452 int y11 = (int) (buf0.get(offsetY + yByteStride + yPixelStride) & 255); in colorInscribedDataCircleFromYuvImage()
617 int offsetY = calculateMemoryOffsetFromPixelOffsets(inscribedXMin, j, subsample, in colorSubSampleFromYuvImage() local
630 for (int i = inscribedXMin; i < inscribedXMax; i += 2, offsetY += 2 * yPixelStride, in colorSubSampleFromYuvImage()
649 int y00 = (int) (bufY.get(offsetY) & 255); in colorSubSampleFromYuvImage()
680 int y01 = (int) (bufY.get(offsetY + yPixelStride) & 255); in colorSubSampleFromYuvImage()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/
DImageToPdfTask.java126 float offsetY = (extent.height() - mBitmap.getHeight() * scale) / 2; in drawDirect() local
133 matrix.postTranslate(offsetX, offsetY); in drawDirect()
145 float offsetY = ((targetHeight / scale) - mBitmap.getHeight()) / 2; in drawOptimized() local
156 bitmapCanvas.drawBitmap(mBitmap, offsetX, offsetY, new Paint(Paint.FILTER_BITMAP_FLAG)); in drawOptimized()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewBackground.java231 int offsetY = getOffsetY(); in drawShadow() local
234 saveCount = canvas.saveLayer(offsetX - mStrokeWidth, offsetY, in drawShadow()
235 offsetX + radius + shadowRadius, offsetY + shadowRadius + shadowRadius, null); in drawShadow()
243 mShaderMatrix.postTranslate(radius + offsetX, shadowRadius + offsetY); in drawShadow()
252 getShape().drawShape(canvas, offsetX, offsetY, radius, mPaint); in drawShadow()
DFolderIcon.java477 float offsetY = mTmpParams.transY + (mTmpParams.scale * intrinsicIconSize) / 2; in getLocalCenterForIndex() local
480 center[1] = Math.round(offsetY); in getLocalCenterForIndex()
/packages/apps/Dialer/java/com/android/dialer/widget/
DFloatingActionButtonController.java128 private void align(int align, int offsetX, int offsetY, boolean animate) { in align() argument
139 .translationY(offsetY) in align()
145 fab.setTranslationY(offsetY); 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
138 .translationY(offsetY) in align()
144 mFloatingActionButtonContainer.setTranslationY(offsetY); in align()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DBitmapTileProvider.java88 int offsetY = -y; in getTile() local
89 canvas.drawBitmap(mipmap, offsetX, offsetY, null); in getTile()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DLauncherRecentsView.java241 int offsetY = (int) (mTaskHeight * taskView.getScaleY() * getScaleY() in redrawLiveTile() local
250 if (mightNeedToRefill && offsetY > 0) { in redrawLiveTile()
251 mTempRect.top -= offsetY; in redrawLiveTile()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DDotRenderer.java116 float offsetY = Math.max(0, canvasBounds.top - (dotCenterY + mBitmapOffset)); in draw() local
119 canvas.translate(dotCenterX + offsetX, dotCenterY + offsetY); in draw()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDragHoverListener.java180 final float offsetY = isScrollView ? 0 : v.getY(); in transformToScrollViewCoordinate() local
181 return new Point(Math.round(offsetX + x), Math.round(offsetY + y)); in transformToScrollViewCoordinate()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java246 public static void offsetPoints(float[] points, float offsetX, float offsetY) { in offsetPoints() argument
249 points[i + 1] += offsetY; in offsetPoints()
/packages/apps/Gallery/src/com/android/camera/
DGalleryPicker.java622 int heightPadding, int offsetX, int offsetY, in placeImage() argument
628 int yPos = (row * (imageHeight + heightPadding)) - offsetY; in placeImage()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepAppTransitionManagerImpl.java551 float offsetY = (scaledWindowHeight - iconHeight) / 2; in getOpeningWindowAnimators()
559 float transY0 = temp.top - offsetY; in getOpeningWindowAnimators()