/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilterTest.java | 80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), in testFaceSquareFilter() 89 int left = (faceRect.left+WIDTH_OFFSET)*bitmap.getWidth()/FACE_X_RANGE; in testFaceSquareFilter() 90 int right = (faceRect.right+WIDTH_OFFSET)*bitmap.getWidth()/FACE_X_RANGE; in testFaceSquareFilter() 99 } else if (left > bitmap.getWidth()) { in testFaceSquareFilter() 100 left = bitmap.getWidth(); in testFaceSquareFilter() 107 if (right > bitmap.getWidth()) { in testFaceSquareFilter() 108 right = bitmap.getWidth(); in testFaceSquareFilter() 116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
D | ShadowPainter.java | 80 int width = source.getWidth(); in createDropShadow() 88 int dstWidth = image.getWidth(); in createDropShadow() 189 int width = source.getWidth(); in createRectangularDropShadow() 216 int width = source.getWidth(); in createSmallRectangularDropShadow() 297 assert ShadowBottomRight.getWidth(null) == SHADOW_SIZE; in drawRectangleShadow() 300 int blWidth = ShadowBottomLeft.getWidth(null); in drawRectangleShadow() 309 gc.drawImage(ShadowBottomLeft, x - ShadowBottomLeft.getWidth(null), y + height, null); in drawRectangleShadow() 312 gc.drawImage(ShadowTopLeft, x - ShadowTopLeft.getWidth(null), y, null); in drawRectangleShadow() 315 0, 0, ShadowBottom.getWidth(null), ShadowBottom.getHeight(null), null); in drawRectangleShadow() 317 … x + width, y + ShadowTopRight.getHeight(null), x + width + ShadowRight.getWidth(null), y + height, in drawRectangleShadow() [all …]
|
/frameworks/support/v7/gridlayout/tests/src/android/support/v7/widget/test/ |
D | GridLayoutTest.java | 52 int left = getActivity().findViewById(R.id.leftView).getWidth(); in testUseDefaultMargin() 53 int right = getActivity().findViewById(R.id.rightView).getWidth(); in testUseDefaultMargin() 54 int total = getActivity().findViewById(R.id.gridView).getWidth(); in testUseDefaultMargin() 65 int left = getActivity().findViewById(R.id.leftView).getWidth(); in testImplicitFillHorizontal() 66 int right = getActivity().findViewById(R.id.rightView).getWidth(); in testImplicitFillHorizontal() 67 int total = getActivity().findViewById(R.id.gridView).getWidth(); in testImplicitFillHorizontal() 78 int left = getActivity().findViewById(R.id.leftView).getWidth(); in testMakeViewGone() 79 final int right = getActivity().findViewById(R.id.rightView).getWidth(); in testMakeViewGone() 80 int total = getActivity().findViewById(R.id.gridView).getWidth(); in testMakeViewGone() 95 left = getActivity().findViewById(R.id.leftView).getWidth(); in testMakeViewGone()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | SwipeDismissBehavior.java | 219 final int childWidth = child.getWidth(); 259 final int thresholdDistance = Math.round(child.getWidth() * mDragDismissThreshold); 268 return child.getWidth(); 279 min = mOriginalCapturedViewLeft - child.getWidth(); 283 max = mOriginalCapturedViewLeft + child.getWidth(); 288 max = mOriginalCapturedViewLeft + child.getWidth(); 290 min = mOriginalCapturedViewLeft - child.getWidth(); 294 min = mOriginalCapturedViewLeft - child.getWidth(); 295 max = mOriginalCapturedViewLeft + child.getWidth(); 309 + child.getWidth() * mAlphaStartSwipeDistance; [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FrameImage2D.java | 137 if (bitmap.getWidth() != dimensions[0] || bitmap.getHeight() != dimensions[1]) { in validateBitmapSize() 138 throw new IllegalArgumentException("Cannot assign bitmap of size " + bitmap.getWidth() in validateBitmapSize() 160 Rect srcIRect = new Rect((int) srcRect.left * srcImage.getWidth(), in cpuImageCopy() 162 (int) srcRect.right * srcImage.getWidth(), in cpuImageCopy() 164 Rect dstIRect = new Rect((int) dstRect.left * srcImage.getWidth(), in cpuImageCopy() 166 (int) dstRect.right * srcImage.getWidth(), in cpuImageCopy() 171 Bitmap dstBitmap = Bitmap.createBitmap(dstImage.getWidth(), dstImage.getHeight(), config); in cpuImageCopy()
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
D | ImageUtils.java | 63 int maxDimension = Math.max(image.getWidth(), image.getHeight()); in requireSimilar() 88 BufferedImage temp = new BufferedImage(goldenImage.getWidth(), goldenImage.getHeight(), in assertImageSimilar() 95 int imageWidth = Math.min(goldenImage.getWidth(), image.getWidth()); in assertImageSimilar() 154 } else if (Math.abs(goldenImage.getWidth() - image.getWidth()) >= 2) { in assertImageSimilar() 156 goldenImage.getWidth() + "x" + goldenImage.getHeight() + in assertImageSimilar() 157 "vs" + image.getWidth() + "x" + image.getHeight(); in assertImageSimilar() 160 goldenImage.getWidth() + "x" + goldenImage.getHeight() + in assertImageSimilar() 161 "vs" + image.getWidth() + "x" + image.getHeight(); in assertImageSimilar() 204 int sourceWidth = source.getWidth(); in scale()
|
/frameworks/base/media/java/android/media/ |
D | ImageUtils.java | 102 Size srcSize = new Size(src.getWidth(), src.getHeight()); in imageCopy() 103 Size dstSize = new Size(dst.getWidth(), dst.getHeight()); in imageCopy() 141 int srcByteCount = effectivePlaneSize.getWidth() * srcPlanes[i].getPixelStride(); in imageCopy() 225 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 227 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage() 231 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 233 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage() 245 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
|
D | Image.java | 154 public abstract int getWidth(); in getWidth() method in Image 214 return new Rect(0, 0, getWidth(), getHeight()); in getCropRect() 231 if (!cropRect.intersect(0, 0, getWidth(), getHeight())) { in setCropRect()
|
/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()
|
D | Alpha8BitmapActivity.java | 50 mBitmap1 = Bitmap.createBitmap(texture.getWidth(), texture.getHeight(), in BitmapsView() 59 final float width = texture.getWidth() / 3.0f; in BitmapsView() 86 Rect src = new Rect(0, 0, mBitmap1.getWidth() / 2, mBitmap1.getHeight() / 2); in onDraw() 87 Rect dst = new Rect(0, mBitmap1.getHeight() * 3, mBitmap1.getWidth(), in onDraw()
|
D | ClipRegion2Activity.java | 72 mRegion.set(0, 0, getWidth(), getHeight()); in dispatchDraw() 73 mRegion.op(getWidth() / 4, getHeight() / 4, 3 * getWidth() / 4, 3 * getHeight() / 4, in dispatchDraw()
|
/frameworks/base/libs/hwui/ |
D | LayerCache.cpp | 83 LAYER_LOGD("Destroying layer %dx%d, fbo %d", layer->getWidth(), layer->getHeight(), in deleteLayer() 85 mSize -= layer->getWidth() * layer->getHeight() * 4; in deleteLayer() 111 mSize -= layer->getWidth() * layer->getHeight() * 4; in get() 113 LAYER_LOGD("Reusing layer %dx%d", layer->getWidth(), layer->getHeight()); in get() 144 const uint32_t size = layer->getWidth() * layer->getHeight() * 4; in put() 157 LAYER_LOGD(" Deleting layer %.2fx%.2f", victim->layer.getWidth(), in put()
|
D | Layer.cpp | 35 getWidth(), getHeight()) 105 if (desiredWidth <= getWidth() && desiredHeight <= getHeight()) { in resize() 118 uint32_t oldWidth = getWidth(); in resize() 215 ALOGD(" Allocate layer: %dx%d", getWidth(), getHeight()); in allocateTexture() 219 glTexImage2D(renderTarget, 0, GL_RGBA, getWidth(), getHeight(), 0, in allocateTexture() 228 const float width = layer.getWidth(); in defer() 263 renderer->setViewport(layer.getWidth(), layer.getHeight()); in flush() 282 renderer->setViewport(layer.getWidth(), layer.getHeight()); in render()
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/ |
D | IconTest.java | 119 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testWithBitmapResource() 146 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testWithFile() 179 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testAsync() 206 originalbits.getWidth() * originalbits.getHeight() * 2); // guess 50% compression in testParcel() 252 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testParcel() 291 final int w = a.getWidth(); in printBits() 297 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) return false; in equalBitmaps() 299 final int w = a.getWidth(); in equalBitmaps() 311 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) { in findBitmapDifferences() 313 a.getWidth(), a.getHeight(), b.getWidth(), b.getHeight()); in findBitmapDifferences() [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/core/java/android/widget/ |
D | HorizontalScrollView.java | 191 final int rightEdge = getWidth() - mPaddingRight; in getRightFadingEdgeStrength() 264 int childWidth = child.getWidth(); in canScroll() 265 return getWidth() < childWidth + mPaddingLeft + mPaddingRight ; in canScroll() 623 mEdgeGlowLeft.onPull((float) deltaX / getWidth(), in onTouchEvent() 629 mEdgeGlowRight.onPull((float) deltaX / getWidth(), in onTouchEvent() 780 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight; in performAccessibilityActionInternal() 792 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight; in performAccessibilityActionInternal() 842 child.getWidth() - (getWidth() - mPaddingLeft - mPaddingRight)); in getScrollRange() 872 final int rightWithoutFadingEdge = left + getWidth() - fadingEdgeLength; in findFocusableViewInMyBounds() 980 int width = getWidth(); in pageScroll() [all …]
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/ |
D | VrView.java | 199 double dist_x = (mDownPointX - x) * mDownScreenWidth / getWidth(); in panMove() 200 double dist_y = (y - mDownPointY) * mDownScreenWidth / getWidth(); in panMove() 260 deltax = (float) ((mDownPointX - e.getX()) / getWidth()); in actionMove() 261 deltay = (float) -((mDownPointY - e.getY()) / getWidth()); in actionMove() 265 deltax = (float) ((mDownPointX - e.getX()) / getWidth()); in actionMove() 266 deltay = (float) -((mDownPointY - e.getY()) / getWidth()); in actionMove() 270 deltax = (float) ((mDownPointX - e.getX()) / getWidth()); in actionMove() 271 deltay = (float) -((mDownPointY - e.getY()) / getWidth()); in actionMove() 299 mState1.mTransform.look(looks[last_look], mState1.mCubeScreen, getWidth(), getHeight()); in resetCut() 312 mState1.mTransform.look(ViewMatrix.DOWN_AT, mState1.mCubeScreen, getWidth(), getHeight()); in setVolume() [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewOutlineProvider.java | 40 outline.setRect(0, 0, view.getWidth(), view.getHeight()); 55 outline.setRect(0, 0, view.getWidth(), view.getHeight()); 70 view.getWidth() - view.getPaddingRight(),
|
D | TextureView.java | 326 mSurface.setDefaultBufferSize(getWidth(), getHeight()); in onSizeChanged() 329 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); in onSizeChanged() 362 mSurface.setDefaultBufferSize(getWidth(), getHeight()); in getHardwareLayer() 368 mListener.onSurfaceTextureAvailable(mSurface, getWidth(), getHeight()); in getHardwareLayer() 385 mSurface.setDefaultBufferSize(getWidth(), getHeight()); in getHardwareLayer() 439 mLayer.prepare(getWidth(), getHeight(), mOpaque); in applyUpdate() 519 return getBitmap(getWidth(), getHeight()); in getBitmap()
|
/frameworks/base/core/java/android/transition/ |
D | Slide.java | 75 return view.getTranslationX() - sceneRoot.getWidth(); 85 x = view.getTranslationX() + sceneRoot.getWidth(); 87 x = view.getTranslationX() - sceneRoot.getWidth(); 103 return view.getTranslationX() + sceneRoot.getWidth(); 113 x = view.getTranslationX() - sceneRoot.getWidth(); 115 x = view.getTranslationX() + sceneRoot.getWidth();
|
/frameworks/base/libs/hwui/font/ |
D | CacheTexture.cpp | 122 getWidth() - TEXTURE_BORDER_SIZE, getHeight() - TEXTURE_BORDER_SIZE); in CacheTexture() 151 getWidth() - TEXTURE_BORDER_SIZE, getHeight() - TEXTURE_BORDER_SIZE); in init() 183 mPixelBuffer = PixelBuffer::create(mFormat, getWidth(), getHeight()); in allocatePixelBuffer() 192 glTexImage2D(GL_TEXTURE_2D, 0, mFormat, getWidth(), getHeight(), 0, in allocatePixelBuffer() 209 uint32_t width = mHasUnpackRowLength ? dirtyRect.getWidth() : getWidth(); in upload() 215 glPixelStorei(GL_UNPACK_ROW_LENGTH, getWidth()); in upload()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/ |
D | ItemTouchHelperTest.java | 93 basicSwipeTest(LEFT, LEFT | RIGHT, -getActivity().getWindow().getDecorView().getWidth()); in testSwipeLeft() 97 basicSwipeTest(RIGHT, LEFT | RIGHT, getActivity().getWindow().getDecorView().getWidth()); in testSwipeRight() 101 basicSwipeTest(START, START | END, -getActivity().getWindow().getDecorView().getWidth()); in testSwipeStart() 105 basicSwipeTest(END, START | END, getActivity().getWindow().getDecorView().getWidth()); in testSwipeEnd() 110 basicSwipeTest(START, START | END, getActivity().getWindow().getDecorView().getWidth()); in testSwipeStartInRTL() 115 basicSwipeTest(END, START | END, -getActivity().getWindow().getDecorView().getWidth()); in testSwipeEndInRTL() 262 final int viewWidth = v.getWidth(); in tapView() 301 final int viewWidth = v.getWidth(); in touchAndCancelView() 336 final int viewWidth = v.getWidth(); in clickView() 382 final int viewWidth = v.getWidth(); in longClickView() [all …]
|