Searched refs:getWidth (Results 1 - 25 of 699) 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/v17/tests/src/android/support/v17/leanback/widget/
H A DShadowOverlayContainerTest.java40 assertTrue(textView.getWidth() > 0);
41 assertTrue(textView.getWidth() < 500);
44 assertEquals(container.getWidth(), textView.getWidth());
52 assertTrue(textView.getWidth() == 123);
54 assertEquals(container.getWidth(), textView.getWidth());
70 assertTrue(textView.getWidth() == 200);
73 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/media/java/android/media/
H A DImage.java164 public abstract int getWidth(); method in class:Image
224 return new Rect(0, 0, getWidth(), getHeight());
241 if (!cropRect.intersect(0, 0, getWidth(), getHeight())) {
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
H A DDepthOfFieldOptions.java26 this.blurInfinity = (float)rgbz.getBlurInfinity() * Math.max(rgbz.getHeight(), rgbz.getWidth());
31 this.focalDepth = rgbz.getDepth((int)(x * rgbz.getWidth()), (int)(y * rgbz.getHeight()));
H A DImageBuffersForRenderScript.java37 outputImage = Bitmap.createBitmap(inputImage.getWidth(),
42 imageWidthPadded = inputImage.getWidth() + 2 * margin;
/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/tools/layoutlib/bridge/src/android/view/
H A DShadowPainter.java80 int width = source.getWidth();
88 int dstWidth = image.getWidth();
189 int width = source.getWidth();
216 int width = source.getWidth();
297 assert ShadowBottomRight.getWidth(null) == SHADOW_SIZE;
300 int blWidth = ShadowBottomLeft.getWidth(null);
309 gc.drawImage(ShadowBottomLeft, x - ShadowBottomLeft.getWidth(null), y + height, null);
312 gc.drawImage(ShadowTopLeft, x - ShadowTopLeft.getWidth(null), y, null);
315 0, 0, ShadowBottom.getWidth(null), ShadowBottom.getHeight(null), null);
317 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/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/tests/java/android/support/percent/
H A DPercentDynamicLayoutTest.java115 final int containerWidth = percentFrameLayout.getWidth();
127 0.5f * availableWidth, child1.getWidth());
131 0.5f * availableWidth, child2.getWidth());
145 final int containerWidth = percentFrameLayout.getWidth();
157 availableWidth, child1.getWidth());
161 availableWidth, child2.getWidth());
175 final int containerWidth = percentRelativeLayout.getWidth();
187 0.5f * availableWidth, child1.getWidth());
191 0.5f * availableWidth, child2.getWidth());
205 final int containerWidth = percentRelativeLayout.getWidth();
[all...]
/frameworks/support/design/tests/src/android/support/design/widget/
H A DAppBarWithToolbarTest.java47 final int centerX = appbarOnScreenXY[0] + mAppBar.getWidth() / 2;
97 assertEquals(mAppBar.getWidth(), scrollingContent.getWidth());
124 assertEquals(mAppBar.getWidth(), scrollingContent.getWidth());
/frameworks/support/design/src/android/support/design/widget/
H A DSwipeDismissBehavior.java250 final int childWidth = child.getWidth();
290 final int thresholdDistance = Math.round(child.getWidth() * mDragDismissThreshold);
299 return child.getWidth();
310 min = mOriginalCapturedViewLeft - child.getWidth();
314 max = mOriginalCapturedViewLeft + child.getWidth();
319 max = mOriginalCapturedViewLeft + child.getWidth();
321 min = mOriginalCapturedViewLeft - child.getWidth();
325 min = mOriginalCapturedViewLeft - child.getWidth();
326 max = mOriginalCapturedViewLeft + child.getWidth();
340 + child.getWidth() * mAlphaStartSwipeDistanc
[all...]
/frameworks/support/v7/gridlayout/tests/src/android/support/v7/widget/
H A DGridLayoutTest.java70 int left = mLeftView.getWidth();
71 int right = mRightView.getWidth();
72 int total = mGridView.getWidth();
83 int left = mLeftView.getWidth();
84 int right = mRightView.getWidth();
85 int total = mGridView.getWidth();
96 int left = mLeftView.getWidth();
97 int right = mRightView.getWidth();
98 int total = mGridView.getWidth();
114 left = mActivityTestRule.getActivity().findViewById(R.id.leftView).getWidth();
[all...]

Completed in 97 milliseconds

1234567891011>>