/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | NinePatchDrawableTest.java | 100 Bitmap bmp = BitmapFactory.decodeResource(mResources, R.drawable.ninepatch_0); in testConstructors() local 103 new NinePatchDrawable(bmp, chunk, r, name); in testConstructors() 105 new NinePatchDrawable(new NinePatch(bmp, chunk, name)); in testConstructors() 110 new NinePatchDrawable(bmp, chunk, r, name); in testConstructors() 119 Bitmap bmp = Bitmap.createBitmap(9, 9, Config.ARGB_8888); in testDraw() local 120 Canvas c = new Canvas(bmp); in testDraw() 126 verifyColorFillRect(bmp, 0, 0, 4, 4, Color.RED); in testDraw() 127 verifyColorFillRect(bmp, 5, 0, 4, 4, Color.BLUE); in testDraw() 128 verifyColorFillRect(bmp, 0, 5, 4, 4, ocean); in testDraw() 129 verifyColorFillRect(bmp, 5, 5, 4, 4, Color.YELLOW); in testDraw() [all …]
|
D | TransitionDrawableTest.java | 212 private void verifyColorFillRect(Bitmap bmp, int x, int y, int w, int h, int color) { in verifyColorFillRect() argument 215 assertEquals(color, bmp.getPixel(i, j)); in verifyColorFillRect() 220 private void verifyColorNotFillRect(Bitmap bmp, int x, int y, int w, int h, int color) { in verifyColorNotFillRect() argument 223 assertTrue(color != bmp.getPixel(i, j)); in verifyColorNotFillRect()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BitmapUtils.java | 116 final Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in generateRandomBitmap() local 120 bmp.setPixel(x, y, generator.nextInt(Integer.MAX_VALUE)); in generateRandomBitmap() 123 return bmp; in generateRandomBitmap() 127 final Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in generateWhiteBitmap() local 128 bmp.eraseColor(Color.WHITE); in generateWhiteBitmap() 129 return bmp; in generateWhiteBitmap() 140 public static ByteArrayInputStream bitmapToInputStream(Bitmap bmp) { in bitmapToInputStream() argument 142 bmp.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos); in bitmapToInputStream()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | BitmapUtils.java | 116 final Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in generateRandomBitmap() local 120 bmp.setPixel(x, y, generator.nextInt(Integer.MAX_VALUE)); in generateRandomBitmap() 123 return bmp; in generateRandomBitmap() 127 final Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in generateWhiteBitmap() local 128 bmp.eraseColor(Color.WHITE); in generateWhiteBitmap() 129 return bmp; in generateWhiteBitmap() 140 public static ByteArrayInputStream bitmapToInputStream(Bitmap bmp) { in bitmapToInputStream() argument 142 bmp.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos); in bitmapToInputStream()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | EmojiTest.java | 80 private String describeBitmap(final Bitmap bmp) { in describeBitmap() argument 82 sb.append("[ID:0x" + Integer.toHexString(System.identityHashCode(bmp))); in describeBitmap() 83 sb.append(" " + Integer.toString(bmp.getWidth()) + "x" + Integer.toString(bmp.getHeight())); in describeBitmap() 85 if (bmp.getConfig() == Bitmap.Config.ALPHA_8) { in describeBitmap() 87 } else if (bmp.getConfig() == Bitmap.Config.RGB_565) { in describeBitmap() 89 } else if (bmp.getConfig() == Bitmap.Config.ARGB_4444) { in describeBitmap() 91 } else if (bmp.getConfig() == Bitmap.Config.ARGB_8888) { in describeBitmap()
|
D | BoringLayoutTest.java | 355 final Bitmap bmp = Bitmap.createBitmap(l.getWidth(), l.getHeight(), Bitmap.Config.RGB_565); in drawToBitmap() local 356 final Canvas c = new Canvas(bmp); in drawToBitmap() 362 return bmp; in drawToBitmap()
|
D | PrecomputedTextTest.java | 648 final Bitmap bmp = Bitmap.createBitmap(rect.width(), in drawToBitmap() local 650 final Canvas c = new Canvas(bmp); in drawToBitmap() 655 return bmp; in drawToBitmap()
|
D | StaticLayoutTest.java | 1298 final Bitmap bmp = Bitmap.createBitmap(l.getWidth(), l.getHeight(), Bitmap.Config.RGB_565); 1299 final Canvas c = new Canvas(bmp); 1305 return bmp;
|
/cts/tests/app/src/android/app/cts/ |
D | WallpaperColorsTest.java | 83 Bitmap bmp = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888); in fromBitmapTest() local 84 Canvas canvas = new Canvas(bmp); in fromBitmapTest() 87 WallpaperColors colors = WallpaperColors.fromBitmap(bmp); in fromBitmapTest()
|
D | WallpaperManagerTest.java | 417 Bitmap bmp = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in ensureCleanState() local 453 mWallpaperManager.setBitmap(bmp); in ensureCleanState() 466 bmp.recycle(); in ensureCleanState()
|
/cts/tests/openglperf2/src/android/opengl2/cts/reference/ |
D | GLGameActivity.java | 156 Bitmap bmp = BitmapFactory.decodeStream(in, null, op); in loadTexture() local 170 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bmp, 0); in loadTexture() 178 bmp.recycle(); in loadTexture()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | CtsMediaTextureRender.java | 292 Bitmap bmp = Bitmap.createBitmap(colors, width, height, Bitmap.Config.ARGB_8888); in saveFrame() local 293 bmp.compress(Bitmap.CompressFormat.PNG, 90, fos); in saveFrame() 294 bmp.recycle(); in saveFrame()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | TextureRender.java | 288 Bitmap bmp = Bitmap.createBitmap(colors, width, height, Bitmap.Config.ARGB_8888); in saveFrame() local 289 bmp.compress(Bitmap.CompressFormat.PNG, 90, fos); in saveFrame() 290 bmp.recycle(); in saveFrame()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | FramebufferTest.java | 619 Bitmap bmp = Bitmap.createBitmap(colors, mWidth, mHeight, Bitmap.Config.ARGB_8888); in saveFrame() local 620 bmp.compress(Bitmap.CompressFormat.PNG, 90, bos); in saveFrame() 621 bmp.recycle(); in saveFrame()
|
/cts/tests/tests/media/assets/hls_variant/344388/ |
D | 11.ts | 1137 ��@c�SFʂړ^���.v�TRk�>bmp+�ws�qI
|
/cts/tests/tests/media/res/raw/ |
D | football_qvga.yuv | 195 …dcdedddddccdeeefeefeeedcccdedddddccccddccccccccccbcdccccbbcccbf��������|i^]bmp^MIUaXHGWp���thdcbbc…
|