/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/ |
D | ConfirmationViewHandler.java | 183 Log.d(TAG, " contentHeight: " + mContent.getHeight()); in onGlobalLayout() 192 if (mContent.getPaddingBottom() != mButtonBarContainer.getHeight()) { in onGlobalLayout() 194 mContent.getPaddingRight(), mButtonBarContainer.getHeight()); in onGlobalLayout() 196 Log.d(TAG, " set mContent.PaddingBottom: " + mButtonBarContainer.getHeight()); in onGlobalLayout() 200 mButtonBarContainer.setTranslationY(mButtonBarContainer.getHeight()); in onGlobalLayout() 264 final int screenHeight = mRoot.getHeight(); in showButtonBar() 266 final int buttonBarHeight = mButtonBarContainer.getHeight(); in showButtonBar() 267 final int contentHeight = mContent.getHeight() - buttonBarHeight; in showButtonBar() 299 final int contentHeight = mContent.getHeight() + topMargin; in hideButtonBar() 300 final int screenHeight = mRoot.getHeight(); in hideButtonBar() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/ |
D | ForwardingImageProxy.java | 67 public int getHeight() { in getHeight() method in ForwardingImageProxy 68 return mImpl.getHeight(); in getHeight() 108 .add("height", getHeight()) in toString() 123 otherImage.getHeight() == getHeight() && in equals() 129 return Objects.hashCode(getFormat(), getWidth(), getHeight(), getTimestamp()); in hashCode()
|
D | AndroidImageProxy.java | 107 mHeight = mImage.getHeight(); in AndroidImageProxy() 166 public int getHeight() { in getHeight() method in AndroidImageProxy 210 .add("height", getHeight()) in toString() 225 otherImage.getHeight() == getHeight() && in equals() 231 return Objects.hashCode(getFormat(), getWidth(), getHeight(), getTimestamp()); in hashCode()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
D | IconView.java | 111 int y = canvas.getHeight() - 2*mMargin; in drawText() 182 getHeight() - mTextSize - 2*mMargin); 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() 210 float scaleHeight = mBitmapBounds.height() / (float) mBitmap.getHeight(); in onDraw() 213 float dy = (mBitmapBounds.height() - (mBitmap.getHeight() * scale)) / 2f; in onDraw() 227 float start = getHeight() - 2 * mMargin - 2 * mTextSize; in onDraw() 228 float end = getHeight(); in onDraw()
|
D | Action.java | 162 int minSide = Math.min(destination.getWidth(), destination.getHeight()); in drawCenteredImage() 164 float scaleFactor = minSide / (float) Math.min(source.getWidth(), source.getHeight()); in drawCenteredImage() 167 float dy = (destination.getHeight() - source.getHeight() * scaleFactor) / 2.0f; in drawCenteredImage() 194 …s.drawBitmap(mOverlayBitmap, new Rect(0, 0, mOverlayBitmap.getWidth(), mOverlayBitmap.getHeight()), in available() 195 new Rect(0, 0, mImage.getWidth(), mImage.getHeight()), new Paint()); in available()
|
D | CategoryView.java | 94 canvas.drawCircle(getWidth() / 2, getHeight() / 2, getHeight() / 5, mPaint); in drawSpacer() 96 canvas.drawCircle(getWidth() / 2, getHeight() / 2, getWidth() / 5, mPaint); in drawSpacer() 117 mAction.setImageFrame(new Rect(0, 0, getWidth(), getHeight()), getOrientation()); in onDraw() 125 getWidth(), getHeight(), in onDraw()
|
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/ |
D | LogoUtilsTest.java | 49 assertEquals(15, newBitmap.getHeight()); in testPartiallyResizedBitmap() 63 assertEquals(8, newBitmap.getHeight()); in testPartiallyResizedElongatedBitmap() 75 assertEquals(8, newBitmap.getHeight()); in testResizeBitmapKeepRatio() 85 assertEquals(32, newBitmap.getHeight()); in testResizeBitmapNoScalingNeeded() 93 assertEquals(10, newBitmap.getHeight()); in testResizeBitmapNoIntegerRatio() 139 assertEquals(b1.getHeight(), b2.getHeight()); in assertBitmapEquals() 141 for (int y = 0; y < b1.getHeight(); y++) { in assertBitmapEquals()
|
/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() 261 getHeight() - 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 | 234 int height = image.getHeight(); 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() 313 bitmap.getHeight()); in onDraw()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 195 mBitmapDisplayed.getBitmap().getHeight()); in center() 205 int viewHeight = getHeight(); in center() 211 deltaY = getHeight() - rect.bottom; in center() 261 float viewHeight = getHeight(); in getProperBaseMatrix() 264 float h = bitmap.getHeight(); in getProperBaseMatrix() 302 float fh = (float) mBitmapDisplayed.getHeight() / (float) mThisHeight; in maxZoom() 342 float cy = getHeight() / 2F; in zoomTo() 349 float cy = getHeight() / 2F; in zoomToPoint() 372 float cy = getHeight() / 2F; in zoomIn() 384 float cy = getHeight() / 2F; in zoomOut()
|
D | RotateBitmap.java | 61 int cy = mBitmap.getHeight() / 2; in getRotateMatrix() 64 matrix.postTranslate(getWidth() / 2, getHeight() / 2); in getRotateMatrix() 73 public int getHeight() { in getHeight() method in RotateBitmap 77 return mBitmap.getHeight(); in getHeight() 83 return mBitmap.getHeight(); in getWidth()
|
D | Util.java | 68 (float) b.getWidth() / 2, (float) b.getHeight() / 2); in rotate() 71 b, 0, 0, b.getWidth(), b.getHeight(), m, true); in rotate() 157 int deltaY = source.getHeight() - targetHeight; in transform() 175 deltaYHalf + Math.min(targetHeight, source.getHeight())); in transform() 190 float bitmapHeightF = source.getHeight(); in transform() 215 source.getWidth(), source.getHeight(), scaler, true); in transform() 225 int dy1 = Math.max(0, b1.getHeight() - targetHeight); in transform()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | MultiShrinkScroller.java | 346 mMaximumPortraitHeaderHeight = mIsTwoPanel ? getHeight() in initialize() 349 mMaximumHeaderTextSize = mTitleAndPhoneticNameView.getHeight(); in initialize() 351 mMaximumHeaderHeight = getHeight(); in initialize() 396 titleGradientLayoutParams.height = (int) ((mTitleAndPhoneticNameView.getHeight() in configureGradientViewHeights() 516 EdgeEffectCompat.onPull(mEdgeGlowBottom, delta / getHeight(), in onTouchEvent() 669 final float heightRatio = (float) transparentHeight / getHeight(); in getTransparentHeightRatio() 700 - (getHeight() - getTransparentViewHeight()) + 1; in scrollUpForEntranceAnimation() 832 return getHeight() + getScroll_ignoreOversizedHeaderForSnapping() in getScrollUntilOffBottom() 871 final int height = getHeight(); in draw() 929 if (velocity < 0 && mTransparentView.getHeight() <= 0) { in fling() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | ProgressSpinner.java | 42 mHeight = Math.max(mOuter.getHeight(), mInner.getHeight()); in ProgressSpinner() 49 public int getHeight() { in getHeight() 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() 105 -mPrevTexture.getHeight() / 2); in render() 115 -mCurrentTexture.getHeight() / 2); in render() 140 int viewHeight = getHeight(); in apply()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | BitmapWorkerTask.java | 165 if (bitmap.getHeight() > outputOptions.getHeight()) { in scaleBitmapIfNecessary() 166 heightScale = (float) outputOptions.getHeight() / (float) bitmap.getHeight(); in scaleBitmapIfNecessary() 181 int height = (int) (bitmap.getHeight() * scale); in scaleBitmapIfNecessary() 186 + bitmap.getWidth() + "x" + bitmap.getHeight() + " to " + width in scaleBitmapIfNecessary() 215 int height = options.getHeight(); 234 + options.getHeight() + "). Chosen scale: " + scale + " -> " 328 height = workerOptions.getHeight(); 367 .height(options.getHeight())
|
D | BitmapDownloader.java | 295 key.getCacheKey(), key.getBitmapConfig(), bitmap.getHeight()); in addBitmapToMemoryCache() 301 if (currentBitmap.getWidth() >= bitmap.getWidth() && currentBitmap.getHeight() in addBitmapToMemoryCache() 302 >= bitmap.getHeight()) { in addBitmapToMemoryCache() 314 if (key.getHeight() != BitmapWorkerOptions.MAX_IMAGE_DIMENSION_PX) { in getBitmapFromMemCache() 317 getBucketKey(key.getCacheKey(), key.getBitmapConfig(), key.getHeight()); in getBitmapFromMemCache() 326 if (bitmap.getHeight() >= key.getHeight()) { in getBitmapFromMemCache() 336 if (SIZE_BUCKET[i] >= key.getHeight()) { in getBitmapFromMemCache()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureModuleUtil.java | 73 if (s.getHeight() <= MAX_ASPECT_HEIGHT) { in getOptimalPreviewSize() 81 if (s.getHeight() <= MAX_ASPECT_HEIGHT) { in getOptimalPreviewSize() 82 camera1Sizes.add(new Size(s.getWidth(), s.getHeight())); in getOptimalPreviewSize() 96 if (s.getWidth() == optimal.getWidth() && s.getHeight() == optimal.getHeight()) { in getOptimalPreviewSize()
|
/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() 228 || size.bottom >= bitmap.getHeight() * 2); in needToReload() 240 return needToReload(other.bitmap.getWidth(), other.bitmap.getHeight()); in needToReload() 246 + ", h=" + bitmap.getHeight() + ")"; in toString()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | Api2Camera.java | 191 mCameraInfoCache.getYuvStream1Size().getHeight(), in InitializeAllTheThings() 199 mCameraInfoCache.getYuvStream1Size().getHeight(), in InitializeAllTheThings() 208 mCameraInfoCache.getYuvStream2Size().getHeight(), in InitializeAllTheThings() 242 mCameraInfoCache.getRawStreamSize().getHeight(), in InitializeAllTheThings() 389 " x " + mCameraInfoCache.getPreviewSize().getHeight()); in startCaptureSession() 393 " x " + mCameraInfoCache.getYuvStream1Size().getHeight()); in startCaptureSession() 398 " x " + mCameraInfoCache.getYuvStream2Size().getHeight()); in startCaptureSession() 409 " x " + mCameraInfoCache.getRawStreamSize().getHeight()); in startCaptureSession() 415 " x " + mCameraInfoCache.getJpegStreamSize().getHeight()); in startCaptureSession() 421 mCameraInfoCache.getYuvStream1Size().getHeight(), ImageFormat.YUV_420_888); in startCaptureSession() [all …]
|
D | CameraInfoCache.java | 195 float activeHeightFraction = activeArraySize.height() / (float) pixelArraySize.getHeight(); in getFieldOfView() 203 2 * Math.atan(physicalSize.getHeight() * activeHeightFraction / 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() 231 return (mActiveArea.height() - mLargestYuvSize.getHeight()) / 2; in faceOffsetY() 251 float aspect = mLargestYuvSize.getWidth() / mLargestYuvSize.getHeight(); in getPreviewSize()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 47 int getHeight(); in getHeight() method 85 public int getHeight() { in getHeight() method in SimpleBitmapRegionDecoderWrapper 86 return mDecoder.getHeight(); in getHeight() 117 public int getHeight() { in getHeight() method in DumbBitmapRegionDecoder 118 return mBuffer.getHeight(); in getHeight() 177 int height = mDecoder.getHeight(); in loadInBackground() 405 mHeight = mDecoder.getHeight(); in BitmapRegionTileSource() 413 preview.getWidth() <= GL_SIZE_LIMIT && preview.getHeight() <= GL_SIZE_LIMIT) { in BitmapRegionTileSource() 421 preview == null ? -1 : preview.getHeight())); in BitmapRegionTileSource()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoProcessor.java | 208 int cropHeight = original.getHeight(); in getNormalizedBitmap() 235 c.drawRect(0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight(), WHITE_PAINT); in getNormalizedBitmap() 240 final RectF dst = new RectF(0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight()); in getNormalizedBitmap() 294 mDisplayPhoto.getHeight() > mThumbnailPhoto.getHeight()); in getThumbnailPhotoBytes()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 118 int height = Math.round(bitmap.getHeight() * scale); in resizeBitmapByScale() 120 && height == bitmap.getHeight()) return bitmap; in resizeBitmapByScale() 141 int srcHeight = bitmap.getHeight(); in resizeDownBySideLength() 150 int h = bitmap.getHeight(); in resizeAndCropCenter() 159 int height = Math.round(scale * bitmap.getHeight()); in resizeAndCropCenter() 181 int h = source.getHeight(); in rotateBitmap()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | JpegUtilNative.java | 128 int height = bitmap.getHeight(); in copyImagePlaneToBitmap() 191 img.getHeight()), degrees); in compressJpegFromYUV420Image() 253 cropTop = Math.min(cropTop, img.getHeight() - 1); in compressJpegFromYUV420Image() 257 cropBot = Math.min(cropBot, img.getHeight()); in compressJpegFromYUV420Image() 264 img.getWidth(), img.getHeight(), in compressJpegFromYUV420Image()
|