/cts/suite/cts/deviceTests/browserbench/assets/octane/css/ |
D | bootstrap-responsive.css | 35 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/ |
D | AllocationCopyPaddedTest.java | 27 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 …]
|
D | rsAllocationCopyTest.java | 29 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 …]
|
D | AllocationCopy2DRangeTest.java | 32 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()
|
D | AllocationCopyToTest.java | 29 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 …]
|
D | YuvTest.java | 23 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/ |
D | PorterDuffColorFilterTest.java | 32 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 …]
|
D | YuvImageTest.java | 93 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 …]
|
D | PixelXorXfermodeTest.java | 30 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/ |
D | SelectableResolution.java | 24 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()
|
D | Size.java | 23 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/ |
D | ResourceModifier.java | 98 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/ |
D | navier-stokes.js | 109 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/ |
D | RSYuvTest.java | 31 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/ |
D | ShaderTests.java | 42 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 …]
|
D | ExactCanvasTests.java | 43 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/ |
D | BitmapDumper.java | 78 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/ |
D | MeanSquaredComparer.java | 44 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/ |
D | Camera_SizeTest.java | 90 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/ |
D | GoldenImageVerifier.java | 35 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/ |
D | StaticLayoutLineBreakingTest.java | 72 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/ |
D | IvfWriter.java | 52 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/ |
D | TableLayout_LayoutParamsTest.java | 48 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 …]
|
D | RadioGroup_LayoutParamsTest.java | 52 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 …]
|
D | ListPopupWindowTest.java | 133 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 …]
|