/frameworks/base/media/java/android/media/videoeditor/ |
D | VideoEditor.java | 238 destRect = new Rect(0, 0, overlayCanvas.getWidth(), in renderOverlay() 240 srcRect = new Rect(0, 0, mOverlayBitmap.getWidth(), in renderOverlay() 248 aROverlayImage = (float)(mOverlayBitmap.getWidth()) / in renderOverlay() 251 aRCanvas = (float)(overlayCanvas.getWidth()) / in renderOverlay() 255 int newHeight = ((overlayCanvas.getWidth() * mOverlayBitmap.getHeight()) in renderOverlay() 256 / mOverlayBitmap.getWidth()); in renderOverlay() 259 right = overlayCanvas.getWidth(); in renderOverlay() 262 int newWidth = ((overlayCanvas.getHeight() * mOverlayBitmap.getWidth()) in renderOverlay() 264 left = (overlayCanvas.getWidth() - newWidth) / 2; in renderOverlay() 271 … srcRect = new Rect(0, 0, mOverlayBitmap.getWidth(), mOverlayBitmap.getHeight()); in renderOverlay() [all …]
|
D | OverlayFrame.java | 200 mOFWidth = mBitmap.getWidth(); in save() 329 resizedRGBFileWidth = overlayBitmap.getWidth(); in generateOverlayWithRenderingMode() 350 destRect = new Rect(0, 0, overlayCanvas.getWidth(), in generateOverlayWithRenderingMode() 352 srcRect = new Rect(0, 0, overlayBitmap.getWidth(), in generateOverlayWithRenderingMode() 360 aROverlayImage = (float)(overlayBitmap.getWidth()) / in generateOverlayWithRenderingMode() 363 aRCanvas = (float)(overlayCanvas.getWidth()) / in generateOverlayWithRenderingMode() 367 int newHeight = ((overlayCanvas.getWidth() * overlayBitmap.getHeight()) in generateOverlayWithRenderingMode() 368 / overlayBitmap.getWidth()); in generateOverlayWithRenderingMode() 371 right = overlayCanvas.getWidth(); in generateOverlayWithRenderingMode() 374 int newWidth = ((overlayCanvas.getHeight() * overlayBitmap.getWidth()) in generateOverlayWithRenderingMode() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/videoeditor/ |
D | MediaItemThumbnailTest.java | 75 assertEquals("Thumbnail Width", outWidth, thumbNailBmp.getWidth()); in validateThumbnail() 95 final int outWidth = (mediaVideoItem.getWidth() / 2); in testThumbnailForH263QCIF() 115 final int outWidth = (mediaVideoItem.getWidth() / 2); in testThumbnailForMPEG4VGA() 134 final int outWidth = mediaVideoItem.getWidth() / 2; in testThumbnailForMPEG4NTSC() 154 final int outWidth = mediaVideoItem.getWidth() * 2; in testThumbnailForMPEG4WVGA() 174 final int outWidth = mediaVideoItem.getWidth(); in testThumbnailForMPEG4QCIF() 194 final int outWidth = mediaVideoItem.getWidth() * 2; in testThumbnailForH264QCIF() 291 final int outWidth = mediaVideoItem.getWidth() / 2; in testThumbnailForH264HD1080() 314 final int outWidth = mediaVideoItem.getWidth(); in testThumbnailForH264VGADifferentDuration() 344 final int outWidth = mediaVideoItem.getWidth(); in testThumbnailForMP4VGA() [all …]
|
/frameworks/base/libs/hwui/ |
D | LayerCache.cpp | 72 LAYER_LOGD("Destroying layer %dx%d, fbo %d", layer->getWidth(), layer->getHeight(), in deleteLayer() 74 mSize -= layer->getWidth() * layer->getHeight() * 4; in deleteLayer() 98 mSize -= layer->getWidth() * layer->getHeight() * 4; in get() 100 LAYER_LOGD("Reusing layer %dx%d", layer->getWidth(), layer->getHeight()); in get() 136 if (entry.mWidth <= layer->getWidth() && entry.mHeight <= layer->getHeight()) { in resize() 140 uint32_t oldWidth = layer->getWidth(); in resize() 159 const uint32_t size = layer->getWidth() * layer->getHeight() * 4; in put() 172 LAYER_LOGD(" Deleting layer %.2fx%.2f", victim->layer.getWidth(), in put()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
D | WeightTest.java | 61 assertEquals(mCell1.getWidth() + mCell2.getWidth() + mCell3.getWidth(), mRow.getWidth()); in testAllCellsFillParent()
|
D | FixedWidthTest.java | 59 assertEquals(150, mFixedWidth.getWidth()); in testFixedWidth() 60 assertEquals(mFixedWidth.getWidth(), mNonFixedWidth.getWidth()); in testFixedWidth()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | Transform3dActivity.java | 57 final float centerX = getWidth() / 2.0f - mBitmap1.getWidth() / 2.0f; in onDraw() 67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix); in onDraw() 70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix); in onDraw() 73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix); in onDraw()
|
D | BitmapMutateActivity.java | 74 mPixels = new int[mBitmap1.getWidth() * mBitmap1.getHeight()]; in BitmapsView() 75 mSlice = mBitmap1.getWidth() / 3; in BitmapsView() 87 int width = mBitmap1.getWidth(); in onDraw() 90 canvas.translate((getWidth() - width) / 2, 0); in onDraw()
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 177 final int rightEdge = getWidth() - mPaddingRight; in getRightFadingEdgeStrength() 250 int childWidth = child.getWidth(); in canScroll() 251 return getWidth() < childWidth + mPaddingLeft + mPaddingRight ; in canScroll() 608 mEdgeGlowLeft.onPull((float) deltaX / getWidth()); in onTouchEvent() 613 mEdgeGlowRight.onPull((float) deltaX / getWidth()); in onTouchEvent() 758 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight; in performAccessibilityAction() 769 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight; in performAccessibilityAction() 812 child.getWidth() - (getWidth() - mPaddingLeft - mPaddingRight)); in getScrollRange() 842 final int rightWithoutFadingEdge = left + getWidth() - fadingEdgeLength; in findFocusableViewInMyBounds() 950 int width = getWidth(); in pageScroll() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ZeroSizedTest.java | 63 assertTrue(mWithDimension.getWidth() > 0); in testDrawingCacheWithDimension() 70 assertTrue(mWithNoWdith.getWidth() == 0); in testDrawingCacheWithNoWidth() 77 assertTrue(mWithNoHeight.getWidth() > 0); in testDrawingCacheWithNoHeight() 84 assertTrue(mWithNoDimension.getWidth() == 0); in testDrawingCacheWithNoDimension()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Bitmap_Delegate.java | 226 int width = srcImage.getWidth(); in nativeCopy() 277 g.fillRect(0, 0, image.getWidth(), image.getHeight()); in nativeErase() 291 return delegate.mImage.getWidth(); in nativeWidth() 313 return delegate.mImage.getWidth(); in nativeRowBytes() 486 image1.getWidth() != image2.getWidth() || in nativeSameAs() 492 int w = image1.getWidth(); in nativeSameAs() 542 int w = image.getWidth(); in createCopy() 548 image.getRGB(0, 0, image.getWidth(), image.getHeight(), argb, 0, image.getWidth()); in createCopy()
|
/frameworks/base/core/java/android/view/ |
D | TextureView.java | 317 nSetDefaultBufferSize(mSurface, getWidth(), getHeight()); in onSizeChanged() 320 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); in onSizeChanged() 357 nSetDefaultBufferSize(mSurface, getWidth(), getHeight()); in getHardwareLayer() 377 mListener.onSurfaceTextureAvailable(mSurface, getWidth(), getHeight()); in getHardwareLayer() 394 nSetDefaultBufferSize(mSurface, getWidth(), getHeight()); in getHardwareLayer() 446 mLayer.update(getWidth(), getHeight(), mOpaque); in applyUpdate() 525 return getBitmap(getWidth(), getHeight()); in getBitmap()
|
/frameworks/ex/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 313 final float viewWidth = getWidth(); in interceptMoveLeft() 346 final float viewWidth = getWidth(); in interceptMoveRight() 401 (mDrawable.getIntrinsicWidth() != photoBitmap.getWidth() || in bindPhoto() 559 final int drawLeft = (getWidth() - videoImage.getWidth()) / 2; in onDraw() 572 canvas.drawRect(0, 0, getWidth(), getHeight(), sCropDimPaint); in onDraw() 591 final int layoutWidth = getWidth(); in onLayout() 655 final int vwidth = getWidth(); in configureBounds() 686 final int vwidth = mAllowCrop ? sCropSize : getWidth(); in generateMatrix() 716 final int vwidth = mAllowCrop ? getCropSize() : getWidth(); in generateScale() 759 mMatrix.postRotate(-mRotation, getWidth() / 2, getHeight() / 2); in scale() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | GLFrame.java | 120 if (!nativeAllocate(mGLEnvironment, getFormat().getWidth(), getFormat().getHeight())) { in initNew() 127 int width = getFormat().getWidth(); in initWithTexture() 137 int width = getFormat().getWidth(); in initWithFbo() 229 if (getFormat().getWidth() != bitmap.getWidth() || in setBitmap() 244 Bitmap result = Bitmap.createBitmap(getFormat().getWidth(), in getBitmap()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 311 final float viewWidth = getWidth(); in interceptMoveLeft() 344 final float viewWidth = getWidth(); in interceptMoveRight() 399 (mDrawable.getIntrinsicWidth() != photoBitmap.getWidth() || in bindPhoto() 557 final int drawLeft = (getWidth() - videoImage.getWidth()) / 2; in onDraw() 570 canvas.drawRect(0, 0, getWidth(), getHeight(), sCropDimPaint); in onDraw() 589 final int layoutWidth = getWidth(); in onLayout() 653 final int vwidth = getWidth(); in configureBounds() 684 final int vwidth = mAllowCrop ? sCropSize : getWidth(); in generateMatrix() 718 final int vwidth = mAllowCrop ? getCropSize() : getWidth(); in generateScale() 761 mMatrix.postRotate(-mRotation, getWidth() / 2, getHeight() / 2); in scale() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | EventHole.java | 75 final boolean visible = isShown() && mWindowVis && getWidth() > 0 && getHeight() > 0; in onComputeInternalInsets() 79 final int r = l + getWidth(); in onComputeInternalInsets() 91 info.touchableRegion.set(0, 0, top.getWidth(), top.getHeight()); in onComputeInternalInsets()
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 180 int width = bitmap.getWidth(); in createVideoThumbnail() 225 if (source.getWidth() < source.getHeight()) { in extractThumbnail() 226 scale = width / (float) source.getWidth(); in extractThumbnail() 370 int deltaX = source.getWidth() - targetWidth; in transform() 388 deltaXHalf + Math.min(targetWidth, source.getWidth()), in transform() 404 float bitmapWidthF = source.getWidth(); in transform() 430 source.getWidth(), source.getHeight(), scaler, true); in transform() 439 int dx1 = Math.max(0, b1.getWidth() - targetWidth); in transform()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 474 final int width = src.getWidth(); in createScaledBitmap() 497 return createBitmap(src, 0, 0, src.getWidth(), src.getHeight()); in createBitmap() 545 if (x + width > source.getWidth()) { in createBitmap() 553 if (!source.isMutable() && x == 0 && y == 0 && width == source.getWidth() && in createBitmap() 908 public final int getWidth() { in getWidth() method in Bitmap 922 return scaleFromDensity(getWidth(), mDensity, canvas.mDensity); in getScaledWidth() 938 return scaleFromDensity(getWidth(), mDensity, metrics.densityDpi); in getScaledWidth() 957 return scaleFromDensity(getWidth(), mDensity, targetDensity); in getScaledWidth() 1154 if (x >= getWidth()) { in checkPixelAccess() 1183 if (x + width > getWidth()) { in checkPixelsAccess()
|
/frameworks/base/opengl/java/android/opengl/ |
D | ETC1Util.java | 74 int width = texture.getWidth(); in loadTexture() 127 public int getWidth() { return mWidth; } in getWidth() method in ETC1Util.ETC1Texture 166 width = ETC1.getWidth(headerBuffer); in createTexture() 210 int width = texture.getWidth(); in writeTexture()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | WeightSumTest.java | 52 final int childWidth = mChild.getWidth(); in testLayout() 53 final int containerWidth = mContainer.getWidth(); in testLayout()
|
/frameworks/native/services/surfaceflinger/ |
D | Layer.cpp | 206 crop = Rect(mActiveBuffer->getWidth(), mActiveBuffer->getHeight()); in computeBufferCrop() 452 temp.active.crop.getWidth(), in doTransaction() 459 temp.requested.crop.getWidth(), in doTransaction() 466 front.active.crop.getWidth(), in doTransaction() 473 front.requested.crop.getWidth(), in doTransaction() 578 uint32_t bufWidth = buf->getWidth(); in latchBuffer() 622 front.active.crop.getWidth(), in latchBuffer() 629 front.requested.crop.getWidth(), in latchBuffer() 682 uint32_t bufWidth = mActiveBuffer->getWidth(); in latchBuffer() 715 w0 = buf0->getWidth(); in dump()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | VideoEditorStressTest.java | 543 (mediaItem2.getWidth() / 3), (mediaItem2.getHeight() / 2), in testStressAddRemoveEffects() 544 (mediaItem2.getWidth() / 2)); in testStressAddRemoveEffects() 545 final Rect endRect = new Rect(0, 0, mediaItem2.getWidth(), in testStressAddRemoveEffects() 602 mediaVideoItem.getThumbnailList(mediaVideoItem.getWidth()*3, in testStressThumbnailVideoItem() 611 mediaVideoItem.getThumbnailList(mediaVideoItem.getWidth()/2, in testStressThumbnailVideoItem() 620 mediaVideoItem.getThumbnailList(mediaVideoItem.getWidth()*2, in testStressThumbnailVideoItem() 629 mediaVideoItem.getThumbnailList(mediaVideoItem.getWidth(), in testStressThumbnailVideoItem() 700 videoWidth, mediaItem1.getWidth()); in testStressMediaProperties() 714 imageWidth, mediaItem2.getWidth()); in testStressMediaProperties() 1044 (mediaItem2.getWidth() / 3), (mediaItem2.getHeight() / 2), in testStressOverlayTransKenBurn() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/ |
D | NotificationPeekPanel.java | 37 final int r = getWidth() - getPaddingRight(); in isInContentArea() 62 if (x >= 0 && x < getWidth() && y >= 0 && y < getHeight()) { in dispatchHoverEvent()
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
D | FakeView.java | 74 int x = mRandom.nextInt(getWidth()) - (getWidth()/2); in onDraw()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | TrackingPatternView.java | 40 mTextureWidth = mTexture.getWidth(); in TrackingPatternView() 52 final int width = getWidth(); in onDraw()
|