/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/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/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/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/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/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()
|
/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/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/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/crop/ |
D | CropActivity.java | 206 if (bitmap != null && bitmap.getWidth() != 0 && bitmap.getHeight() != 0) { in doneLoadBitmap() 207 RectF imgBounds = new RectF(0, 0, bitmap.getWidth(), bitmap.getHeight()); in doneLoadBitmap() 309 RectF photo = new RectF(0, 0, mOriginalBitmap.getWidth(), mOriginalBitmap.getHeight()); in startFinishOutput() 325 || currentBitmap.getWidth() == 0 || currentBitmap.getHeight() == 0 in startBitmapIO() 453 ret.getHeight(), m, true); in doInBackground() 518 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); in doInBackground() 537 crop.getHeight(), m, true); in doInBackground() 618 RectF imageBounds = new RectF(0, 0, image.getWidth(), image.getHeight()); in getCroppedImage() 630 if (image == null || image.getWidth() == 0 || image.getHeight() == 0 || max_size < 16) { in getDownsampledBitmap() 640 image.getHeight() >> shifts, true); in getDownsampledBitmap() [all …]
|
/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/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/PackageInstaller/src/android/support/wearable/view/ |
D | WearableListView.java | 681 return getHeight() / 2; in getTopViewMaxTop() 766 return v.getHeight() - v.getPaddingBottom() - v.getPaddingTop(); in getAdjustedHeight() 773 int height = getHeight(); in computeTapRegions() 866 final int parentBottom = getHeight() - getPaddingBottom(); in onLayoutChildren() 1013 final int heightSpec = getChildMeasureSpec(getHeight(), in measureView() 1020 measureView(v, (int) (1 + (float) getHeight() / THIRD)); in measureThirdView() 1024 measureView(v, getHeight()); in measureZoomView() 1070 getHeight() : getTopViewMaxTop(); in scrollVerticallyBy() 1078 final int parentHeight = getHeight(); in scrollVerticallyBy() 1099 Math.max(-dy + scrolled, getHeight() / 2 - bottomView.getBottom()); in scrollVerticallyBy() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | CachingPipeline.java | 179 Log.v(LOGTAG,"setOriginal, size " + bitmap.getWidth() + " x " + bitmap.getHeight()); in setOriginal() 325 … Log.v(LOGTAG, "after update, req bitmap (" + bitmap.getWidth() + "x" + bitmap.getHeight() in render() 327 + mResizedOriginalBitmap.getHeight()); in render() 360 float minSize = Math.min(source.getWidth(), source.getHeight()); in render() 365 float dy = (iconBounds.height() - (source.getHeight() * scale))/2.0f; in render() 448 bitmap.getWidth() != mWidth || bitmap.getHeight() != mHeight) { in prepareRenderscriptAllocations() 464 || bitmap.getHeight() != mHeight) { in prepareRenderscriptAllocations() 466 mHeight = bitmap.getHeight(); in prepareRenderscriptAllocations()
|
/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()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 160 m.postTranslate(b.getHeight(), 0); in rotateAndMirror() 168 (float) b.getWidth() / 2, (float) b.getHeight() / 2); in rotateAndMirror() 173 b, 0, 0, b.getWidth(), b.getHeight(), m, true); in rotateAndMirror() 430 float height = size.getHeight(); in constrainToAspectRatio() 543 int targetHeight = Math.min(defaultDisplaySize.getWidth(), defaultDisplaySize.getHeight()); in getOptimalPreviewSizeIndex() 547 double ratio = (double) size.getWidth() / size.getHeight(); in getOptimalPreviewSizeIndex() 552 double heightDiff = Math.abs(size.getHeight() - targetHeight); in getOptimalPreviewSizeIndex() 559 if (size.getHeight() < targetHeight) { in getOptimalPreviewSizeIndex() 572 if (Math.abs(size.getHeight() - targetHeight) < minDiff) { in getOptimalPreviewSizeIndex() 574 minDiff = Math.abs(size.getHeight() - targetHeight); in getOptimalPreviewSizeIndex() [all …]
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
D | CarLayoutManager.java | 402 && (getDecoratedTop(focusedChild) >= getHeight() - getPaddingBottom() in onScrollStateChanged() 643 int listBottom = getHeight() - getPaddingBottom(); in getLastFullyVisibleChildIndex() 884 && adjacentRowTop < getPaddingTop() - getHeight()) { 890 && adjacentRowBottom > getHeight() - getPaddingBottom()) { 903 int childrenStart = getPaddingTop() - getHeight(); in recycleChildrenFromStart() 938 int childrenEnd = getHeight(); in recycleChildrenFromEnd() 1225 if (childTop < referenceViewTop - getHeight()) { in calculatePreviousPageBreakPosition() 1259 if (childBottom - referenceViewTop > getHeight() - getPaddingTop()) { in calculateNextPageBreakPosition() 1355 if (bottomEdgeThatMustBeOnScreen > getHeight()) { in onRequestChildFocusSuperMarioStyle() 1359 bottomEdgeThatMustBeOnScreen - getHeight(); in onRequestChildFocusSuperMarioStyle() [all …]
|
/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()
|