Searched refs:getWidth (Results 1 - 25 of 907) sorted by relevance

1234567891011>>

/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DTexture.java39 public int getWidth(); method in interface:Texture
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
H A DShadowOverlayContainerTest.java58 assertTrue(textView.getWidth() > 0);
59 assertTrue(textView.getWidth() < 500);
62 assertEquals(container.getWidth(), textView.getWidth());
70 assertTrue(textView.getWidth() == 123);
72 assertEquals(container.getWidth(), textView.getWidth());
89 assertTrue(textView.getWidth() == 200);
92 assertEquals(container.getWidth(), textView.getWidth());
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilterTest.java80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(),
89 int left = (faceRect.left+WIDTH_OFFSET)*bitmap.getWidth()/FACE_X_RANGE;
90 int right = (faceRect.right+WIDTH_OFFSET)*bitmap.getWidth()/FACE_X_RANGE;
99 } else if (left > bitmap.getWidth()) {
100 left = bitmap.getWidth();
107 if (right > bitmap.getWidth()) {
108 right = bitmap.getWidth();
116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) +
118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (to
[all...]
/frameworks/base/core/java/android/view/
H A DViewOutlineProvider.java40 outline.setRect(0, 0, view.getWidth(), view.getHeight());
55 outline.setRect(0, 0, view.getWidth(), view.getHeight());
70 view.getWidth() - view.getPaddingRight(),
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/
H A DWeightTest.java61 assertEquals(mCell1.getWidth() + mCell2.getWidth() + mCell3.getWidth(), mRow.getWidth());
H A DFixedWidthTest.java59 assertEquals(150, mFixedWidth.getWidth());
60 assertEquals(mFixedWidth.getWidth(), mNonFixedWidth.getWidth());
/frameworks/ex/framesequence/jni/
H A DFrameSequence.cpp28 !frameSequence->getWidth() || !frameSequence->getHeight()) {
H A DFrameSequence.h47 virtual int getWidth() const = 0;
/frameworks/base/core/java/android/hardware/camera2/params/
H A DInputConfiguration.java60 public int getWidth() { method in class:InputConfiguration
100 if (otherInputConfig.getWidth() == mWidth &&
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DSizeAreaComparator.java45 long width = size.getWidth();
46 long width2 = size2.getWidth();
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
H A DWeightSumTest.java52 final int childWidth = mChild.getWidth();
53 final int containerWidth = mContainer.getWidth();
/frameworks/base/services/core/java/com/android/server/wm/utils/
H A DWmDisplayCutout.java69 mFrameSize.getWidth() - insetLeft - insetRight,
88 mFrameSize.getWidth() - frame.right, mFrameSize.getHeight() - frame.bottom);
102 if (displaySize.getWidth() < displaySize.getHeight()) {
109 } else if (displaySize.getWidth() > displaySize.getHeight()) {
111 new Rect(displaySize.getWidth() / 2, 0, displaySize.getWidth() / 2, 0))
144 if (boundingRect.right == display.getWidth()) {
145 inset = Math.max(inset, display.getWidth() - boundingRect.left);
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
H A DImageBuffersForRenderScript.java37 outputImage = Bitmap.createBitmap(inputImage.getWidth(),
42 imageWidthPadded = inputImage.getWidth() + 2 * margin;
H A DImageCompare.java49 if (bitmap1.getWidth() != bitmap2.getWidth() ||
60 final int width = bitmap1.getWidth();
/frameworks/layoutlib/bridge/src/android/view/
H A DShadowPainter.java82 int width = source.getWidth();
90 int dstWidth = image.getWidth();
191 int width = source.getWidth();
218 int width = source.getWidth();
299 assert ShadowBottomRight.getWidth(null) == SHADOW_SIZE;
302 int blWidth = ShadowBottomLeft.getWidth(null);
311 gc.drawImage(ShadowBottomLeft, x - ShadowBottomLeft.getWidth(null), y + height, null);
314 gc.drawImage(ShadowTopLeft, x - ShadowTopLeft.getWidth(null), y, null);
317 0, 0, ShadowBottom.getWidth(null), ShadowBottom.getHeight(null), null);
319 x + width, y + ShadowTopRight.getHeight(null), x + width + ShadowRight.getWidth(nul
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DZeroSizedTest.java63 assertTrue(mWithDimension.getWidth() > 0);
70 assertTrue(mWithNoWdith.getWidth() == 0);
77 assertTrue(mWithNoHeight.getWidth() > 0);
84 assertTrue(mWithNoDimension.getWidth() == 0);
/frameworks/base/libs/hwui/
H A DLayerUpdateQueue.cpp30 damage.doIntersect(0, 0, renderNode->getWidth(), renderNode->getHeight());
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFrameBuffer2D.java21 public int getWidth() { method in class:FrameBuffer2D
H A DFrameImage2D.java137 if (bitmap.getWidth() != dimensions[0] || bitmap.getHeight() != dimensions[1]) {
138 throw new IllegalArgumentException("Cannot assign bitmap of size " + bitmap.getWidth()
160 Rect srcIRect = new Rect((int) srcRect.left * srcImage.getWidth(),
162 (int) srcRect.right * srcImage.getWidth(),
164 Rect dstIRect = new Rect((int) dstRect.left * srcImage.getWidth(),
166 (int) dstRect.right * srcImage.getWidth(),
171 Bitmap dstBitmap = Bitmap.createBitmap(dstImage.getWidth(), dstImage.getHeight(), config);
/frameworks/base/media/java/android/media/
H A DImage.java166 public abstract int getWidth(); method in class:Image
258 return new Rect(0, 0, getWidth(), getHeight());
275 if (!cropRect.intersect(0, 0, getWidth(), getHeight())) {
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DClipRegion2Activity.java72 mRegion.set(0, 0, getWidth(), getHeight());
73 mRegion.op(getWidth() / 4, getHeight() / 4, 3 * getWidth() / 4, 3 * getHeight() / 4,
H A DTransform3dActivity.java57 final float centerX = getWidth() / 2.0f - mBitmap1.getWidth() / 2.0f;
67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix);
70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix);
73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix);
/frameworks/support/percent/src/androidTest/java/androidx/percentlayout/widget/
H A DPercentDynamicLayoutTest.java114 final int containerWidth = percentFrameLayout.getWidth();
126 0.5f * availableWidth, child1.getWidth());
130 0.5f * availableWidth, child2.getWidth());
144 final int containerWidth = percentFrameLayout.getWidth();
156 availableWidth, child1.getWidth());
160 availableWidth, child2.getWidth());
174 final int containerWidth = percentRelativeLayout.getWidth();
186 0.5f * availableWidth, child1.getWidth());
190 0.5f * availableWidth, child2.getWidth());
204 final int containerWidth = percentRelativeLayout.getWidth();
[all...]
/frameworks/support/gridlayout/src/androidTest/java/androidx/gridlayout/widget/
H A DGridLayoutTest.java80 int left = mLeftView.getWidth();
81 int right = mRightView.getWidth();
82 int total = mGridView.getWidth();
93 int left = mLeftView.getWidth();
94 int right = mRightView.getWidth();
95 int total = mGridView.getWidth();
106 int left = mLeftView.getWidth();
107 int right = mRightView.getWidth();
108 int total = mGridView.getWidth();
124 left = mActivityTestRule.getActivity().findViewById(R.id.leftView).getWidth();
[all...]
/frameworks/base/libs/hwui/pipeline/skia/
H A DLayerDrawable.h40 return SkRect::MakeWH(mLayerUpdater->getWidth(), mLayerUpdater->getHeight());

Completed in 516 milliseconds

1234567891011>>