/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/graphics/src/android/graphics/cts/ |
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 | 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 | 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()
|
D | ShaderTest.java | 31 int width = 80; in testAccessLocalMatrix() local 33 int[] color = new int[width * height]; in testAccessLocalMatrix() 34 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565); in testAccessLocalMatrix()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutLineBreakingTest.java | 76 float width = getCharWidth(chars[index + i]); in getTextRunAdvances() local 77 advances[advancesIndex + i] = width; in getTextRunAdvances() 78 res += width; in getTextRunAdvances() 102 private static StaticLayout getStaticLayout(CharSequence source, int width) { in getStaticLayout() argument 103 return new StaticLayout(source, mTextPaint, width, ALIGN, SPACE_MULTI, SPACE_ADD, false); in getStaticLayout() 110 private static int[] getBreaks(CharSequence source, int width) { in getBreaks() argument 111 StaticLayout staticLayout = getStaticLayout(source, width); in getBreaks() 138 private static void layout(CharSequence source, int[] breaks, int width) { in layout() argument 139 StaticLayout staticLayout = getStaticLayout(source, width); in layout() 508 for (int width: widths) { in testNarrowWidth() [all …]
|
/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/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/renderscript/src/android/renderscript/cts/ |
D | AllocationCopy2DRangeTest.java | 33 int width = random.nextInt(512); in testAllocationCopy2DRange() local 36 int[] inArray = new int[width * height]; in testAllocationCopy2DRange() 37 int[] outArray = new int[width * height]; in testAllocationCopy2DRange() 39 for (int i = 0; i < width * height; i++) { in testAllocationCopy2DRange() 45 typeBuilder.setX(width).setY(height); in testAllocationCopy2DRange() 48 mInAllocation.copy2DRangeFrom(0, 0, width, height, inArray); in testAllocationCopy2DRange() 51 mScript.set_width(width); in testAllocationCopy2DRange() 58 compareTwoArrays(inArray, outArray, width*height)); in testAllocationCopy2DRange()
|
D | YuvTest.java | 23 int width; field in YuvTest 36 return (width + 1) / 2; in getCWidth() 44 width = w; in makeYuvBuffer() 79 tb.setX(width); in makeOutput() 94 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)]; in testV17() 96 for (int j = 0; j < (width * height); j++) { in testV17() 135 tb.setX(width); in test_NV21() 140 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)]; in test_NV21() 142 for (int j = 0; j < (width * height); j++) { in test_NV21() 178 tb.setX(width); in test_YV12() [all …]
|
/cts/apps/CtsVerifier/lib/colorchecker/ |
D | colorcheckertest.cpp | 122 int width = mImage->getWidth(); in edgeDetection() local 125 bool* edgeMap = new bool[height * width]; in edgeDetection() 126 unsigned char* grayImage = new unsigned char[height * width]; in edgeDetection() 130 float* gradientMap = new float[height * width * 2]; in edgeDetection() 135 float* gradientMagnitude = new float[height * width]; in edgeDetection() 136 int* gradientDirectionInt = new int[height * width]; in edgeDetection() 137 float* gradientDirection = new float[height * width]; in edgeDetection() 141 for (int j = 1; j < width - 1; ++j) { in edgeDetection() 142 gradientMagnitude[i * width + j] = in edgeDetection() 143 sqrt(gradientMap[(i * width + j) * 2] * in edgeDetection() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TableLayout_LayoutParamsTest.java | 49 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 54 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 62 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 66 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 72 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 | TableRow_LayoutParamsTest.java | 60 assertEquals(200, layoutParams.width); in testConstructor() 67 assertEquals(200, layoutParams.width); in testConstructor() 83 assertEquals(200, layoutParams.width); in testConstructor() 89 assertEquals(200, layoutParams.width); in testConstructor() 115 assertEquals(200, mockLayoutParams.width); in testSetBaseAttributes() 124 assertEquals(400, mockLayoutParams.width); in testSetBaseAttributes() 129 assertEquals(600, mockLayoutParams.width); in testSetBaseAttributes() 139 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, mockLayoutParams.width); in testSetBaseAttributes() 144 assertEquals(TableLayout.LayoutParams.WRAP_CONTENT, mockLayoutParams.width); in testSetBaseAttributes() 154 assertEquals(600, mockLayoutParams.width); in testSetBaseAttributes() [all …]
|
D | AbsListView_LayoutParamsTest.java | 49 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors() 54 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors() 59 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors() 64 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | IvfWriter.java | 51 int width, int height, in IvfWriter() argument 54 mWidth = width; in IvfWriter() 72 public IvfWriter(String filename, int width, int height) throws IOException { in IvfWriter() argument 73 this(filename, width, height, 1, 1000000); in IvfWriter() 109 private static byte[] makeIvfHeader(int frameCount, int width, int height, int scale, int rate){ in makeIvfHeader() argument 121 lay16Bits(ivfHeader, 12, width); in makeIvfHeader()
|
D | MediaPlayerTestBase.java | 178 protected void playVideoTest(String path, int width, int height) throws Exception { in playVideoTest() argument 179 playVideoWithRetries(path, width, height, 0); in playVideoTest() 182 protected void playVideoWithRetries(String path, Integer width, Integer height, int playTime) in playVideoWithRetries() argument 188 playLoadedVideo(width, height, playTime); in playVideoWithRetries() 199 protected void playVideoTest(int resid, int width, int height) throws Exception { in playVideoTest() argument 201 playLoadedVideo(width, height, 0); in playVideoTest() 215 protected void playLoadedVideo(final Integer width, final Integer height, int playTime) in playLoadedVideo() argument 231 if (width != null) { in playLoadedVideo() 232 assertEquals(width.intValue(), w); in playLoadedVideo()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | Camera_SizeTest.java | 51 private void checkSize(Parameters parameters, int width, int height) { in checkSize() argument 52 parameters.setPictureSize(width, height); in checkSize() 53 assertEquals(width, parameters.getPictureSize().width); in checkSize()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/ |
D | PlayVideoActivity.java | 170 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { 171 if (width != 0 && height != 0) { 172 mVideoWidth = width; 196 if (rect.width() / aspectRatio <= rect.height()) { 197 lp.width = rect.width(); 198 lp.height = (int) (rect.width() / aspectRatio); 200 lp.width = (int) (rect.height() * aspectRatio); 206 @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {}
|
/cts/tests/src/android/rsg/cts/ |
D | graphics_runner.rs | 22 float width = 4, height = 4; 25 startX + width, startY + height, 0, 1, 1, 26 startX + width, startY, 0, 1, 0);
|
/cts/tools/tradefed-host/res/report/ |
D | cts_result.css | 28 border-width: 0px; 49 border-width: 0px 0px 0px 0px; 79 border-width:1; 85 width: 95%; 90 border-width: 1px; 98 border-width: 1px; 137 border-width: 1px; 147 border-width: 1px; 158 border-width: 1px; 169 border-width: 1px;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/ |
D | CameraFormatsActivity.java | 194 int width, int height) { in onSurfaceTextureAvailable() argument 196 mPreviewTexWidth = width; in onSurfaceTextureAvailable() 203 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument 278 if (lhs.width < rhs.width) return -1; in setUpCamera() 279 if (lhs.width > rhs.width) return 1; in setUpCamera() 295 Integer.toString(mPreviewSizes.get(i).width) + " x " + in setUpCamera() 321 + previewSize.width + "x" + previewSize.height in setUpCamera() 402 float widthRatio = mNextPreviewSize.width / (float)mPreviewTexWidth; in startPreview() 416 p.setPreviewSize(mPreviewSize.width, mPreviewSize.height); in startPreview() 469 mPreviewSize.width != mRgbWidth || in doInBackground() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/ |
D | CameraVideoActivity.java | 297 int width, int height) { in onSurfaceTextureAvailable() argument 299 mPreviewTexWidth = width; in onSurfaceTextureAvailable() 307 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument 353 + mNextPreviewSize.width + "x" + mNextPreviewSize.height); 478 private int width; field in CameraVideoActivity.ResolutionQuality 486 width = newWidth; in ResolutionQuality() 523 qualityList.add(new ResolutionQuality(CamcorderProfile.QUALITY_LOW, minSize.width, in findRecordSize() 525 qualityList.add(new ResolutionQuality(CamcorderProfile.QUALITY_HIGH, maxSize.width, in findRecordSize() 528 qualityList.add(new ResolutionQuality(possibleQuality[i], sizes[i].width, in findRecordSize() 535 recordSize = mCamera.new Size(qualityList.get(i).width, in findRecordSize() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | ImageReaderTest.java | 211 int width = sz.getWidth(); in prepareImageReader() local 213 mReader = ImageReader.newInstance(width, height, format, MAX_NUM_IMAGES); in prepareImageReader() 303 private void validateImage(Image image, int width, int height, int format) { in validateImage() argument 304 checkImage(image, width, height, format); in validateImage() 317 validateJpegData(data, width, height); in validateImage() 319 validateYuvData(data, width, height, format, image.getTimestamp()); in validateImage() 323 private void validateJpegData(byte[] jpegData, int width, int height) { in validateJpegData() argument 329 assertEquals(width, bmpOptions.outWidth); in validateJpegData() 338 DEBUG_FILE_NAME_BASE + width + "x" + height + ".yuv"; in validateJpegData() 343 private void validateYuvData(byte[] yuvData, int width, int height, int format, long ts) { in validateYuvData() argument [all …]
|