Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 240) sorted by relevance

12345678910

/cts/suite/cts/deviceTests/browserbench/assets/octane/css/
Dbootstrap-responsive.css35 width: 100%;
60 @media (max-width: 767px) {
75 @media (min-width: 768px) and (max-width: 979px) {
90 @media (max-width: 480px) {
104 width: auto;
123 width: auto;
138 @media (max-width: 767px) {
153 width: auto;
161 width: auto;
164 width: 100%;
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationCopyPaddedTest.java27 int width = random.nextInt(128);; in test_AllocationPadded_Byte3_1D() local
28 int arr_len = width * 3; in test_AllocationPadded_Byte3_1D()
35 typeBuilder.setX(width); in test_AllocationPadded_Byte3_1D()
54 int width = random.nextInt(128); in test_AllocationPadded_Byte3_2D() local
56 int arr_len = width * height * 3; in test_AllocationPadded_Byte3_2D()
63 typeBuilder.setX(width).setY(height); in test_AllocationPadded_Byte3_2D()
111 int width = random.nextInt(512); in test_AllocationPadded_Short3_1D() local
112 int arr_len = width * 3; in test_AllocationPadded_Short3_1D()
122 typeBuilder.setX(width); in test_AllocationPadded_Short3_1D()
141 int width = random.nextInt(128); in test_AllocationPadded_Short3_2D() local
[all …]
DrsAllocationCopyTest.java29 int width = random.nextInt(512); in test_rsAllocationCopy1D_Byte() local
30 int arr_len = width; in test_rsAllocationCopy1D_Byte()
39 typeBuilder.setX(width); in test_rsAllocationCopy1D_Byte()
74 int width = random.nextInt(512); in test_rsAllocationCopy1D_Short() local
75 int arr_len = width; in test_rsAllocationCopy1D_Short()
86 typeBuilder.setX(width); in test_rsAllocationCopy1D_Short()
121 int width = random.nextInt(512); in test_rsAllocationCopy1D_Int() local
122 int arr_len = width; in test_rsAllocationCopy1D_Int()
133 typeBuilder.setX(width); in test_rsAllocationCopy1D_Int()
168 int width = random.nextInt(512); in test_rsAllocationCopy1D_Float() local
[all …]
DAllocationCopy2DRangeTest.java32 int width = random.nextInt(512); in testAllocationCopy2DRange() local
35 int[] inArray = new int[width * height]; in testAllocationCopy2DRange()
36 int[] outArray = new int[width * height]; in testAllocationCopy2DRange()
38 for (int i = 0; i < width * height; i++) { in testAllocationCopy2DRange()
44 typeBuilder.setX(width).setY(height); in testAllocationCopy2DRange()
47 mInAllocation.copy2DRangeFrom(0, 0, width, height, inArray); in testAllocationCopy2DRange()
50 mScript.set_width(width); in testAllocationCopy2DRange()
57 compareTwoArrays(inArray, outArray, width*height)); in testAllocationCopy2DRange()
DAllocationCopyToTest.java29 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Byte() local
30 int arr_len = width; in test_Allocationcopy1DRangeTo_Byte()
37 typeBuilder.setX(width); in test_Allocationcopy1DRangeTo_Byte()
63 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Short() local
64 int arr_len = width; in test_Allocationcopy1DRangeTo_Short()
74 typeBuilder.setX(width); in test_Allocationcopy1DRangeTo_Short()
100 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Int() local
101 int arr_len = width; in test_Allocationcopy1DRangeTo_Int()
111 typeBuilder.setX(width); in test_Allocationcopy1DRangeTo_Int()
137 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Float() local
[all …]
DYuvTest.java23 int width; field in YuvTest
36 return (width + 1) / 2; in getCWidth()
44 width = w; in makeYuvBuffer()
72 … return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height)); in makeOutput()
76 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32_4(mRS), width, height)); in makeOutput_f4()
87 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)]; in testV17()
89 for (int j = 0; j < (width * height); j++) { in testV17()
128 tb.setX(width); in test_NV21()
133 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)]; in test_NV21()
135 for (int j = 0; j < (width * height); j++) { in test_NV21()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPorterDuffColorFilterTest.java32 int width = 100; in testPorterDuffColorFilter() local
34 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888); in testPorterDuffColorFilter()
36 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888); in testPorterDuffColorFilter()
39 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); in testPorterDuffColorFilter()
49 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
50 int lowerLeft = target.getPixel(width / 4, height * 3 / 4); in testPorterDuffColorFilter()
53 int lowerRight = target.getPixel(width * 3 / 4, height * 3 / 4); in testPorterDuffColorFilter()
62 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
63 assertEquals(Color.BLUE, target.getPixel(width / 4, height * 3 / 4)); in testPorterDuffColorFilter()
64 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPorterDuffColorFilter()
[all …]
DYuvImageTest.java93 int width = 100; in testYuvImage() local
95 byte[] yuv = new byte[width * height * 2]; in testYuvImage()
101 image = new YuvImage(yuv, mFormats[i], width, height, null); in testYuvImage()
113 expected = new int[] {width, width}; in testYuvImage()
115 expected = new int[] {width * 2}; in testYuvImage()
119 image = new YuvImage(yuv, mFormats[i], width, height, null); in testYuvImage()
141 image = new YuvImage(yuv, format, width, -1, null); in testYuvImage()
149 image = new YuvImage(null, format, width, height, null); in testYuvImage()
200 int width = mTestBitmaps[0].getWidth(); in testGetYuvData() local
202 int stride = width; in testGetYuvData()
[all …]
DPixelXorXfermodeTest.java30 int width = 100; in testPixelXorXfermode() local
32 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888); in testPixelXorXfermode()
34 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888); in testPixelXorXfermode()
37 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); in testPixelXorXfermode()
44 assertEquals(Color.WHITE, target.getPixel(width / 4, height / 4)); in testPixelXorXfermode()
46 assertEquals(Color.YELLOW, target.getPixel(width / 4, height * 3 / 4)); in testPixelXorXfermode()
48 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPixelXorXfermode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DSelectableResolution.java24 public final int width; field in SelectableResolution
30 public SelectableResolution(int cameraId, int width, int height) { in SelectableResolution() argument
32 this.width = width; in SelectableResolution()
40 return "Cam " + cameraId + ": " + width + " x " + height + " - " in toString()
DSize.java23 public final int width; field in Size
26 public Size(int width, int height) { in Size() argument
27 this.width = width; in Size()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DResourceModifier.java98 final float width = bitmap.getWidth() / 8.0f; in ResourceModifier() local
102 0.0f, 0.0f, width, 0.0f, width * 2, 0.0f, width * 3, 0.0f, in ResourceModifier()
103 0.0f, height, width, height, width * 2, height, width * 4, height, in ResourceModifier()
104 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, in ResourceModifier()
105 0.0f, height * 4, width, height * 4, width * 2, height * 4, width * 4, height * 4, in ResourceModifier()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dnavier-stokes.js109 for (var i = 1; i <= width; i++) {
116 x[(width + 1) + j * rowSize] = -x[width + j * rowSize];
119 for (var i = 1; i <= width; i++) {
126 x[(width + 1) + j * rowSize] = x[width + j * rowSize];
129 for (var i = 1; i <= width; i++) {
136 x[(width + 1) + j * rowSize] = x[width + j * rowSize];
142 x[(width+1)] = 0.5 * (x[width] + x[(width + 1) + rowSize]);
143 x[(width+1)+maxEdge] = 0.5 * (x[width + maxEdge] + x[(width + 1) + height * rowSize]);
152 for (var i = 0; i < width; i++) {
167 for (var i=1; i<=width; i++)
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSYuvTest.java31 int width; field in RSYuvTest
41 return (width + 1) / 2; in getCWidth()
49 width = w; in makeYuvBuffer()
77 … return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height)); in makeOutput()
88 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)]; in testV17()
90 for (int j = 0; j < (width * height); j++) { in testV17()
105 byte[] nativeByteAlloc = new byte[width * height * 4]; in testV17()
106 yuvTest(this.getContext().getCacheDir().toString(), width, height, tmp, nativeByteAlloc, 0); in testV17() local
122 tb.setX(width); in test_YV12()
127 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)]; in test_YV12()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DShaderTests.java42 public void draw(Canvas canvas, int width, int height) { in testSinglePixelBitmapShader()
49 canvas.drawRect(0, 0, width, height, mPaint); in testSinglePixelBitmapShader()
62 public void draw(Canvas canvas, int width, int height) { in testSinglePixelComposeShader()
80 canvas.drawRect(0, 0, width, height, mPaint); in testSinglePixelComposeShader()
104 public void draw(Canvas canvas, int width, int height) { in testComplexShaderUsage()
106 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ALPHA_8); in testComplexShaderUsage()
109 final float radius = width / 2.0f; in testComplexShaderUsage()
110 bitmapCanvas.drawCircle(width / 2, height / 2, radius, mPaint); in testComplexShaderUsage()
114 width, height, Bitmap.Config.ALPHA_8); in testComplexShaderUsage()
116 bitmapCanvas.drawCircle(width / 2, 0, radius, mPaint); in testComplexShaderUsage()
[all …]
DExactCanvasTests.java43 public void draw(Canvas canvas, int width, int height) { in testBlueRect()
58 public void draw(Canvas canvas, int width, int height) { in testPoints()
76 public void draw(Canvas canvas, int width, int height) { in testBlackRectWithStroke()
94 public void draw(Canvas canvas, int width, int height) { in testBlackLineOnGreenBack()
110 public void draw(Canvas canvas, int width, int height) { in testDrawRedRectOnBlueBack()
125 public void draw(Canvas canvas, int width, int height) { in testDrawLine()
143 public void draw(Canvas canvas, int width, int height) { in testDrawWhiteScreen()
156 public void draw(Canvas canvas, int width, int height) { in testBasicText()
172 public void draw(Canvas canvas, int width, int height) { in testBasicColorXfermode()
192 public void draw(Canvas canvas, int width, int height) { in testBluePaddedSquare()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DBitmapDumper.java78 int width = idealBitmap.getWidth(); in dumpBitmaps() local
80 int[] testedArray = new int[width * height]; in dumpBitmaps()
81 int[] idealArray = new int[width * height]; in dumpBitmaps()
82 idealBitmap.getPixels(testedArray, 0, width, 0, 0, width, height); in dumpBitmaps()
83 testedBitmap.getPixels(idealArray, 0, width, 0, 0, width, height); in dumpBitmaps()
85 visualizerBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in dumpBitmaps()
86 visualizerBitmap.setPixels(visualizerArray, 0, width, 0, 0, width, height); in dumpBitmaps()
87 Bitmap croppedBitmap = Bitmap.createBitmap(testedBitmap, 0, 0, width, height); in dumpBitmaps()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DMeanSquaredComparer.java44 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
46 float totalError = getMSE(ideal, given, offset, stride, width, height); in verifySame()
53 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
58 mScript.set_WIDTH(width); in verifySameRowsRS()
68 error /= (height * width); in verifySameRowsRS()
78 public static float getMSE(int[] ideal, int[] given, int offset, int stride, int width, in getMSE() argument
83 for (int x = 0 ; x < width ; x++) { in getMSE()
92 totalError /= (width * height); in getMSE()
/cts/tests/tests/hardware/src/android/hardware/cts/
DCamera_SizeTest.java90 float jpegAspect = largestJpegDimen.width / (float) largestJpegDimen.height; in testMaxAspectRatios()
92 largestPreviewDimen.width / (float) largestPreviewDimen.height; in testMaxAspectRatios()
96 "Largest preview dimension (w=" + largestPreviewDimen.width + ", h=" + in testMaxAspectRatios()
98 "as the largest Jpeg dimension (w=" + largestJpegDimen.width + in testMaxAspectRatios()
108 private void checkSize(Parameters parameters, int width, int height) { in checkSize() argument
109 parameters.setPictureSize(width, height); in checkSize()
110 assertEquals(width, parameters.getPictureSize().width); in checkSize()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DGoldenImageVerifier.java35 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
37 width, height); in verify()
39 mDifferenceBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in verify()
41 mDifferenceBitmap.setPixels(differences, 0, width, 0, 0, width, height); in verify()
/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutLineBreakingTest.java72 float width = getCharWidth(chars[index + i]); in getTextRunAdvances() local
73 advances[advancesIndex + i] = width; in getTextRunAdvances()
74 res += width; in getTextRunAdvances()
98 private static StaticLayout getStaticLayout(CharSequence source, int width) { in getStaticLayout() argument
99 return new StaticLayout(source, mTextPaint, width, ALIGN, SPACE_MULTI, SPACE_ADD, false); in getStaticLayout()
106 private static int[] getBreaks(CharSequence source, int width) { in getBreaks() argument
107 StaticLayout staticLayout = getStaticLayout(source, width); in getBreaks()
134 private static void layout(CharSequence source, int[] breaks, int width) { in layout() argument
135 StaticLayout staticLayout = getStaticLayout(source, width); in layout()
430 for (int width: widths) { in testNarrowWidth()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DIvfWriter.java52 int width, int height, in IvfWriter() argument
55 mWidth = width; in IvfWriter()
73 public IvfWriter(String filename, int width, int height) throws IOException { in IvfWriter() argument
74 this(filename, width, height, 1, 1000000); in IvfWriter()
110 private static byte[] makeIvfHeader(int frameCount, int width, int height, int scale, int rate){ in makeIvfHeader() argument
122 lay16Bits(ivfHeader, 12, width); in makeIvfHeader()
/cts/tests/tests/widget/src/android/widget/cts/
DTableLayout_LayoutParamsTest.java48 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor()
53 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor()
61 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor()
65 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor()
71 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, mockLayoutParams.width); in testSetBaseAttributes()
81 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, mockLayoutParams.width); in testSetBaseAttributes()
86 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, mockLayoutParams.width); in testSetBaseAttributes()
96 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, mockLayoutParams.width); in testSetBaseAttributes()
101 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, mockLayoutParams.width); in testSetBaseAttributes()
111 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, mockLayoutParams.width); in testSetBaseAttributes()
[all …]
DRadioGroup_LayoutParamsTest.java52 assertEquals(Integer.MIN_VALUE, mLayoutParams.width); in testConstructor()
57 assertEquals(Integer.MAX_VALUE, mLayoutParams.width); in testConstructor()
63 assertEquals(Integer.MIN_VALUE, mLayoutParams.width); in testConstructor()
69 assertEquals(Integer.MIN_VALUE, mLayoutParams.width); in testConstructor()
74 assertEquals(40, mLayoutParams.width); in testConstructor()
86 assertEquals(100, mLayoutParams.width); in testConstructor()
101 assertEquals(10, mLayoutParams.width); in testConstructor()
125 assertEquals(LayoutParams.MATCH_PARENT, mLayoutParams.width); in testConstructor()
129 assertEquals(RadioGroup.LayoutParams.WRAP_CONTENT, mLayoutParams.width); in testConstructor()
143 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.width); in testSetBaseAttributes()
[all …]
DListPopupWindowTest.java133 int width = getDisplay().getWidth() / 2; in testAccessWidth() local
134 mPopupWindow.setWidth(width); in testAccessWidth()
135 assertEquals(width, mPopupWindow.getWidth()); in testAccessWidth()
137 width = getDisplay().getWidth(); in testAccessWidth()
138 mPopupWindow.setWidth(width); in testAccessWidth()
139 assertEquals(width, mPopupWindow.getWidth()); in testAccessWidth()
144 width = getDisplay().getWidth() * 2; in testAccessWidth()
145 mPopupWindow.setWidth(width); in testAccessWidth()
146 assertEquals(width, mPopupWindow.getWidth()); in testAccessWidth()
148 width = - getDisplay().getWidth() / 2; in testAccessWidth()
[all …]

12345678910