/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetImageView.java | 76 if (mBitmap.getWidth() > getWidth()) { in updateDstRectF() 77 float scale = ((float) getWidth()) / mBitmap.getWidth(); in updateDstRectF() 78 mDstRectF.set(0, 0, getWidth(), scale * mBitmap.getHeight()); in updateDstRectF() 81 (getWidth() - mBitmap.getWidth()) * 0.5f, in updateDstRectF() 83 (getWidth() + mBitmap.getWidth()) * 0.5f, in updateDstRectF()
|
D | WidgetsContainerView.java | 199 int maxWidth = Math.min((int) (icon.getWidth() * minScale), size[0]); in beginDraggingWidget() 205 if (previewSizeBeforeScale[0] < icon.getWidth()) { in beginDraggingWidget() 207 int padding = (icon.getWidth() - previewSizeBeforeScale[0]) / 2; in beginDraggingWidget() 208 if (icon.getWidth() > image.getWidth()) { in beginDraggingWidget() 209 padding = padding * image.getWidth() / icon.getWidth(); in beginDraggingWidget() 215 scale = bounds.width() / (float) preview.getWidth(); in beginDraggingWidget() 221 scale = ((float) mLauncher.getDeviceProfile().iconSizePx) / preview.getWidth(); in beginDraggingWidget()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | TrimTimeBar.java | 80 return mTrimStartScrubber.getWidth() * 3 / 4; in trimStartScrubberTipOffset() 84 return mTrimEndScrubber.getWidth() / 4; in trimEndScrubberTipOffset() 97 mScrubberLeft = mPlayedBar.right - mScrubber.getWidth() / 2; in updatePlayedBarAndScrubberFromTime() 106 mScrubberLeft = mProgressBar.left - mScrubber.getWidth() / 2; in updatePlayedBarAndScrubberFromTime() 150 int scrubberRight = startX + scrubber.getWidth(); in inScrubber() 173 int margin = mScrubber.getWidth() / 3; in onLayout() 203 getWidth() - getPaddingRight() - mTimeBounds.width() / 2, in onDraw() 219 mCurrentTime = getScrubberTime(mScrubberLeft, mScrubber.getWidth() / 2); in updateTimeFromPos() 264 mScrubber.getWidth() / 2, in onTouchEvent() 267 mScrubber.getWidth() / 2); in onTouchEvent() [all …]
|
D | TimeBar.java | 124 mScrubberLeft = mPlayedBar.right - mScrubber.getWidth() / 2; in update() 154 int scrubberRight = mScrubberLeft + mScrubber.getWidth(); in inScrubber() 161 int half = mScrubber.getWidth() / 2; in clampScrubber() 168 return (int) ((long) (mScrubberLeft + mScrubber.getWidth() / 2 - mProgressBar.left) in getScrubberTime() 179 int margin = mScrubber.getWidth() / 3; in onLayout() 210 getWidth() - getPaddingRight() - mTimeBounds.width() / 2, in onDraw() 226 : mScrubber.getWidth() / 2; in onTouchEvent()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
D | IconView.java | 102 int x = (int) (canvas.getWidth() - textWidth - 2*mMargin); in drawText() 104 x = (int) ((canvas.getWidth() - textWidth) / 2.0f); in drawText() 181 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth() - mMargin/2, in computeBitmapBounds() 185 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth()/2, getHeight()); in computeBitmapBounds() 187 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth() - mMargin/2, getHeight()); in computeBitmapBounds() 206 m.setRectToRect(new RectF(0, 0, mBitmap.getWidth(), mBitmap.getHeight()), in onDraw() 209 float scaleWidth = mBitmapBounds.width() / (float) mBitmap.getWidth(); in onDraw() 212 float dx = (mBitmapBounds.width() - (mBitmap.getWidth() * scale)) / 2f; in onDraw() 234 startGradient = getWidth()/2; in onDraw() 236 canvas.drawRect(new RectF(startGradient, start, getWidth(), end), mPaint); in onDraw()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/ |
D | ForwardingImageProxy.java | 91 public int getWidth() { in getWidth() method in ForwardingImageProxy 92 return mImpl.getWidth(); in getWidth() 107 .add("width", getWidth()) in toString() 122 otherImage.getWidth() == getWidth() && in equals() 129 return Objects.hashCode(getFormat(), getWidth(), getHeight(), getTimestamp()); in hashCode()
|
D | AndroidImageProxy.java | 106 mWidth = mImage.getWidth(); in AndroidImageProxy() 190 public int getWidth() { in getWidth() method in AndroidImageProxy 209 .add("width", getWidth()) in toString() 224 otherImage.getWidth() == getWidth() && in equals() 231 return Objects.hashCode(getFormat(), getWidth(), getHeight(), getTimestamp()); in hashCode()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationItemViewCoordinates.java | 100 public int getWidth() { in getWidth() method in ConversationItemViewCoordinates.Config 288 final int widthSpec = MeasureSpec.makeMeasureSpec(config.getWidth(), MeasureSpec.EXACTLY); in ConversationItemViewCoordinates() 295 folderLayoutWidth = (int) (view.getWidth() * in ConversationItemViewCoordinates() 297 folderCellWidth = (int) (view.getWidth() * in ConversationItemViewCoordinates() 306 contactImagesWidth = contactImagesView.getWidth(); in ConversationItemViewCoordinates() 320 starWidth = star.getWidth(); in ConversationItemViewCoordinates() 326 sendersWidth = senders.getWidth(); in ConversationItemViewCoordinates() 335 subjectWidth = subject.getWidth(); in ConversationItemViewCoordinates() 343 maxSnippetWidth = snippet.getWidth(); in ConversationItemViewCoordinates() 349 foldersRight = foldersLeft + folders.getWidth(); in ConversationItemViewCoordinates() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImageShow.java | 126 Bitmap a = Bitmap.createBitmap(b.getWidth(), b.getHeight(), Bitmap.Config.ALPHA_8); in convertToAlphaMask() 229 reflectRotation, master.getOriginalBounds(), getWidth(), getHeight()); in getImageToScreenMatrix() 233 m.postScale(scaleFactor, scaleFactor, getWidth() / 2.0f, getHeight() / 2.0f); in getImageToScreenMatrix() 260 getWidth() - 2*mShadowMargin, in onDraw() 298 float dx = (getHeight() - getWidth()) / 2f; in onDraw() 299 if (getWidth() > getHeight()) { in onDraw() 300 dx = - (getWidth() - getHeight()) / 2f; in onDraw() 303 canvas.rotate(180, getWidth()/2, getHeight()/2); in onDraw() 305 canvas.rotate(90, getWidth()/2, getHeight()/2); in onDraw() 308 canvas.rotate(270, getWidth()/2, getHeight()/2); in onDraw() [all …]
|
D | ImageCrop.java | 233 int width = image.getWidth(); in forceStateConsistency() 265 mImageBounds.set(0, 0, bitmap.getWidth(), bitmap.getHeight()); in onDraw() 270 bitmap.getWidth(), bitmap.getHeight(), canvas.getWidth(), canvas.getHeight()); in onDraw() 274 bitmap.getWidth(), bitmap.getHeight(), canvas.getWidth(), canvas.getHeight()); in onDraw() 291 int delta = Math.min(canvas.getWidth(), canvas.getHeight()) / 4; in onDraw() 312 FilterCropRepresentation.findScaledCrop(mScreenCropBounds, bitmap.getWidth(), in onDraw()
|
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/ |
D | LogoUtilsTest.java | 48 assertEquals(10, newBitmap.getWidth()); in testPartiallyResizedBitmap() 62 assertEquals(2, newBitmap.getWidth()); in testPartiallyResizedElongatedBitmap() 74 assertEquals(4, newBitmap.getWidth()); in testResizeBitmapKeepRatio() 84 assertEquals(16, newBitmap.getWidth()); in testResizeBitmapNoScalingNeeded() 92 assertEquals(10, newBitmap.getWidth()); in testResizeBitmapNoIntegerRatio() 138 assertEquals(b1.getWidth(), b2.getWidth()); in assertBitmapEquals() 140 for (int x = 0; x < b1.getWidth(); x++) { in assertBitmapEquals()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 155 final int viewWidth = getWidth(); in setImageRotateBitmapResetBase() 194 mBitmapDisplayed.getBitmap().getWidth(), in center() 216 int viewWidth = getWidth(); in center() 260 float viewWidth = getWidth(); in getProperBaseMatrix() 263 float w = bitmap.getWidth(); in getProperBaseMatrix() 301 float fw = (float) mBitmapDisplayed.getWidth() / (float) mThisWidth; in maxZoom() 341 float cx = getWidth() / 2F; in zoomTo() 348 float cx = getWidth() / 2F; in zoomToPoint() 371 float cx = getWidth() / 2F; in zoomIn() 383 float cx = getWidth() / 2F; in zoomOut()
|
D | RotateBitmap.java | 60 int cx = mBitmap.getWidth() / 2; in getRotateMatrix() 64 matrix.postTranslate(getWidth() / 2, getHeight() / 2); in getRotateMatrix() 75 return mBitmap.getWidth(); in getHeight() 81 public int getWidth() { in getWidth() method in RotateBitmap 85 return mBitmap.getWidth(); in getWidth()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | ProgressSpinner.java | 41 mWidth = Math.max(mOuter.getWidth(), mInner.getWidth()); in ProgressSpinner() 45 public int getWidth() { in getWidth() method in ProgressSpinner 75 mOuter.draw(canvas, -mOuter.getWidth() / 2, -mOuter.getHeight() / 2); in draw() 77 mInner.draw(canvas, -mInner.getWidth() / 2, -mInner.getHeight() / 2); in draw()
|
D | SlideshowView.java | 69 mCurrentTexture.getWidth(), mCurrentTexture.getHeight(), in next() 73 mCurrentTexture.getHeight(), mCurrentTexture.getWidth(), in next() 104 mPrevTexture.draw(canvas, -mPrevTexture.getWidth() / 2, in render() 114 mCurrentTexture.draw(canvas, -mCurrentTexture.getWidth() / 2, in render() 139 int viewWidth = getWidth(); in apply()
|
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/ |
D | CarDrawerLayout.java | 726 int contentRight = contentLp.getMarginStart() + getWidth(); in onLayout() 732 int onScreen = (int) (drawerView.getWidth() * drawerLp.onScreen); in onLayout() 735 offset = onScreen - drawerView.getWidth(); in onLayout() 870 final int offScreen = (int) ((1 - drawerLp.onScreen) * findDrawerView().getWidth()); in drawChild() 871 final int drawerRight = getWidth() - drawerLp.getMarginEnd() - offScreen; in drawChild() 881 final int onScreen = (int) (findDrawerView().getWidth() * drawerLp.onScreen); in drawChild() 882 final int drawerLeft = drawerLp.getMarginStart() + getWidth() - onScreen; in drawChild() 1049 left = drawerLp.getMarginStart() + getWidth() - drawerView.getWidth(); in openDrawer() 1085 left = drawerLp.getMarginStart() - drawerView.getWidth(); in closeDrawer() 1087 left = drawerLp.getMarginStart() + getWidth(); in closeDrawer() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | BitmapWorkerTask.java | 172 if (bitmap.getWidth() > outputOptions.getWidth()) { in scaleBitmapIfNecessary() 173 widthScale = (float) outputOptions.getWidth() / (float) bitmap.getWidth(); in scaleBitmapIfNecessary() 180 int width = (int) (bitmap.getWidth() * scale); in scaleBitmapIfNecessary() 186 + bitmap.getWidth() + "x" + bitmap.getHeight() + " to " + width in scaleBitmapIfNecessary() 223 int width = options.getWidth(); 233 + bitmapOptions.outHeight + "). Max size: (" + options.getWidth() + "x" 324 width = workerOptions.getWidth(); 366 .width(options.getWidth())
|
/packages/apps/TV/src/com/android/tv/util/ |
D | BitmapUtils.java | 60 final double bmRatio = bm.getHeight() / (double) bm.getWidth(); in calculateNewSize() 64 rect.bottom = Math.round((float) bm.getHeight() * maxWidth / bm.getWidth()); in calculateNewSize() 66 rect.right = Math.round((float) bm.getWidth() * maxHeight / bm.getHeight()); in calculateNewSize() 75 calculateInSampleSize(bm.getWidth(), bm.getHeight(), maxWidth, maxHeight)); in createScaledBitmapInfo() 227 boolean reload = (size.right >= bitmap.getWidth() * 2 in needToReload() 240 return needToReload(other.bitmap.getWidth(), other.bitmap.getHeight()); in needToReload() 245 return "ScaledBitmapInfo[" + id + "](in=" + inSampleSize + ", w=" + bitmap.getWidth() in toString()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | Api2Camera.java | 190 mCameraInfoCache.getYuvStream1Size().getWidth(), in InitializeAllTheThings() 198 mCameraInfoCache.getYuvStream1Size().getWidth(), in InitializeAllTheThings() 207 mCameraInfoCache.getYuvStream2Size().getWidth(), in InitializeAllTheThings() 241 mCameraInfoCache.getRawStreamSize().getWidth(), in InitializeAllTheThings() 388 Log.v(TAG, " .. added SurfaceView " + mCameraInfoCache.getPreviewSize().getWidth() + in startCaptureSession() 392 Log.v(TAG, " .. added YUV ImageReader " + mCameraInfoCache.getYuvStream1Size().getWidth() + in startCaptureSession() 397 … Log.v(TAG, " .. added YUV ImageReader " + mCameraInfoCache.getYuvStream2Size().getWidth() + in startCaptureSession() 408 … Log.v(TAG, " .. added Raw ImageReader " + mCameraInfoCache.getRawStreamSize().getWidth() + in startCaptureSession() 414 … Log.v(TAG, " .. added JPEG ImageReader " + mCameraInfoCache.getJpegStreamSize().getWidth() + in startCaptureSession() 420 …Configuration inputConfig = new InputConfiguration(mCameraInfoCache.getYuvStream1Size().getWidth(), in startCaptureSession() [all …]
|
D | CameraInfoCache.java | 194 float activeWidthFraction = activeArraySize.width() / (float) pixelArraySize.getWidth(); in getFieldOfView() 201 2 * Math.atan(physicalSize.getWidth() * activeWidthFraction / 2 / focalLength)); in getFieldOfView() 214 if (sizes[j].getHeight() * sizes[j].getWidth() > area) { in returnLargestSize() 215 area = sizes[j].getHeight() * sizes[j].getWidth(); in returnLargestSize() 227 return (mActiveArea.width() - mLargestYuvSize.getWidth()) / 2; in faceOffsetX() 251 float aspect = mLargestYuvSize.getWidth() / mLargestYuvSize.getHeight(); in getPreviewSize()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryActiveView.java | 36 if (getWidth() != 0) { in setProvider() 44 if (getWidth() != 0) { in onSizeChanged() 66 canvas.drawRect(start / period * getWidth(), 0, end / period * getWidth(), getHeight(), in drawColor()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | HolographicOutlineHelper.java | 97 int[] srcBuffer = new int[srcDst.getWidth() * srcDst.getHeight()]; in applyExpensiveOutlineWithBlur() 99 0, srcDst.getWidth(), 0, 0, srcDst.getWidth(), srcDst.getHeight()); in applyExpensiveOutlineWithBlur() 107 0, srcDst.getWidth(), 0, 0, srcDst.getWidth(), srcDst.getHeight()); in applyExpensiveOutlineWithBlur() 133 srcDstCanvas.drawRect(0, 0, thickInnerBlur.getWidth(), -thickInnerBlurOffset[1], in applyExpensiveOutlineWithBlur()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | HolographicOutlineHelper.java | 107 int[] srcBuffer = new int[srcDst.getWidth() * srcDst.getHeight()]; in applyExpensiveOutlineWithBlur() 109 0, srcDst.getWidth(), 0, 0, srcDst.getWidth(), srcDst.getHeight()); in applyExpensiveOutlineWithBlur() 117 0, srcDst.getWidth(), 0, 0, srcDst.getWidth(), srcDst.getHeight()); in applyExpensiveOutlineWithBlur() 175 srcDstCanvas.drawRect(0, 0, thickInnerBlur.getWidth(), -thickInnerBlurOffset[1], in applyExpensiveOutlineWithBlur()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EmergencyActionGroup.java | 244 int centerX = v.getLeft() + v.getWidth() / 2; in revealTheButton() 251 Math.max(centerX, mSelectedContainer.getWidth() - centerX) in revealTheButton() 270 (v.getLeft() + v.getWidth() / 2 - mSelectedContainer.getWidth() / 2) / 5); in animateHintText() 289 int centerX = v.getLeft() + v.getWidth() / 2; in hideTheButton() 295 Math.max(centerX, mSelectedContainer.getWidth() - centerX) in hideTheButton() 320 ripple.getLeft() + ripple.getWidth() / 2, in startRipple() 323 ripple.getWidth() / 2); in startRipple()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | AnimationManager.java | 50 float slideDistance = (float) (parentView.getWidth() - view.getLeft()); in startCaptureAnimation() 52 float scaleX = ((float) parentView.getWidth()) / ((float) view.getWidth()); in startCaptureAnimation() 56 int centerX = view.getLeft() + view.getWidth() / 2; in startCaptureAnimation() 95 parentView.getWidth() / 2 - centerX, 0f) in startCaptureAnimation()
|