/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapShaderTest.java | 22 import android.graphics.Bitmap; 28 import android.graphics.Bitmap.Config; 45 args = {Bitmap.class, TileMode.class, TileMode.class} 48 Bitmap tile = Bitmap.createBitmap(TILE_WIDTH, TILE_HEIGHT, Config.ARGB_8888); 59 // create a bitmap that fits (NUM_TILES - 0.5) tiles in both directions 60 Bitmap b = Bitmap.createBitmap(NUM_TILES * TILE_WIDTH - TILE_WIDTH / 2, 75 * bitmap. 77 private void checkTile(Bitmap bitmap, int tileX, int tileY) [all...] |
ComposeShaderTest.java | 22 import android.graphics.Bitmap; 33 import android.graphics.Bitmap.Config; 57 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); local 58 Canvas canvas = new Canvas(bitmap); 68 int pixel = bitmap.getPixel(x, y); 88 Bitmap greenBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); 90 Bitmap cyanBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888) 100 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local [all...] |
EmbossMaskFilterTest.java | 23 import android.graphics.Bitmap; 30 import android.graphics.Bitmap.Config; 63 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 64 bitmap.eraseColor(Color.BLACK); 66 Canvas c = new Canvas(bitmap); 74 assertTrue(brightness(bitmap, top) > brightness(bitmap, bottom)); 75 assertTrue(brightness(bitmap, left) > brightness(bitmap, right)) [all...] |
PaintFlagsDrawFilterTest.java | 23 import android.graphics.Bitmap; 29 import android.graphics.Bitmap.Config; 56 Bitmap bitmapWithoutFilter = drawText(null); 59 Bitmap bitmapWithFilter = drawText(filter); 61 Bitmap combined = delta(bitmapWithoutFilter, bitmapWithFilter); 65 private Bitmap drawText(PaintFlagsDrawFilter filter) { 71 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); 79 private Bitmap delta(Bitmap bitmapWithoutFilter, Bitmap bitmapWithFilter) [all...] |
ColorMatrixColorFilterTest.java | 23 import android.graphics.Bitmap; 29 import android.graphics.Bitmap.Config; 61 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 62 Canvas canvas = new Canvas(bitmap); 67 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); 70 assertColor(Color.GREEN, bitmap.getPixel(0, 0)); 73 assertColor(Color.RED, bitmap.getPixel(0, 0)); 77 assertColor(Color.WHITE, bitmap.getPixel(0, 0)) [all...] |
LightingColorFilterTest.java | 23 import android.graphics.Bitmap; 28 import android.graphics.Bitmap.Config; 43 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 44 Canvas canvas = new Canvas(bitmap); 51 assertColor(Color.MAGENTA, bitmap.getPixel(0, 0)); 56 assertColor(Color.BLUE, bitmap.getPixel(0, 0)); 61 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); 64 bitmap.eraseColor(Color.TRANSPARENT) [all...] |
PictureTest.java | 24 import android.graphics.Bitmap; 99 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local 100 canvas = new Canvas(bitmap); 103 checkBitmap(bitmap); 108 // create a new Canvas with a new bitmap 109 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888) [all...] |
/frameworks/base/core/jni/android/graphics/ |
Bitmap.cpp | 224 SkBitmap bitmap;
local 226 bitmap.setConfig(config, width, height);
227 if (!GraphicsJNI::setJavaPixelRef(env, &bitmap, NULL, true)) {
233 0, 0, width, height, bitmap);
236 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), isMutable,
253 static void Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) {
254 delete bitmap;
257 static void Bitmap_recycle(JNIEnv* env, jobject, SkBitmap* bitmap) {
258 bitmap->setPixels(NULL, NULL);
261 // These must match the int values in Bitmap.java 351 SkBitmap* bitmap = new SkBitmap; local [all...] |
/packages/apps/Gallery3D/src/com/cooliris/media/ |
ResourceTexture.java | 22 import android.graphics.Bitmap; 40 protected Bitmap load(RenderView view) { 41 // Load a bitmap from the resource. 42 Bitmap bitmap = null; local 45 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 46 bitmap = BitmapFactory.decodeResource(view.getResources(), mResourceId, options); 52 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 53 bitmap = BitmapFactory.decodeStream(inputStream, null, options); 63 return bitmap; [all...] |
/external/e2fsprogs/tests/r_resize_inode/ |
expect | 49 Block bitmap at 259 (+258), Inode bitmap at 260 (+259) 57 Block bitmap at 1283 (+258), Inode bitmap at 1284 (+259) 63 Block bitmap at 2049 (+0), Inode bitmap at 2050 (+1) 71 Block bitmap at 3331 (+258), Inode bitmap at 3332 (+259) 77 Block bitmap at 4097 (+0), Inode bitmap at 4098 (+1 [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Bitmap.java | 27 public final class Bitmap extends _Original_Bitmap { 31 public Bitmap(File input) throws IOException { 37 public Bitmap(InputStream is) throws IOException { 43 Bitmap(BufferedImage image) { 86 * Returns an immutable bitmap from the source bitmap. The new bitmap may 89 public static Bitmap createBitmap(Bitmap src) { 94 * Returns an immutable bitmap from the specified subset of the sourc [all...] |
/dalvik/tests/079-phantom/src/ |
Main.java | 18 Bitmap mBitmap1, mBitmap2, mBitmap3, mBitmap4; 66 Bitmap.shutDown(); 79 Bitmap.NativeWrapper dataA = Bitmap.allocNativeStorage(10, 10); 80 Bitmap.NativeWrapper dataB = Bitmap.allocNativeStorage(20, 20); 81 mBitmap1 = new Bitmap("one", 10, 10, dataA); 82 mBitmap2 = new Bitmap("two", 20, 20, dataB); 83 mBitmap3 = mBitmap4 = new Bitmap("three/four", 20, 20, dataB);
|
/external/e2fsprogs/tests/f_overfsblks/ |
expect.1 | 4 Group 0's inode bitmap at 3 conflicts with some other fs block. 7 Relocating group 0's inode bitmap from 3 to 4... 12 Inode bitmap differences: -(12--21)
|
/frameworks/base/graphics/java/android/graphics/ |
Bitmap.java | 29 public final class Bitmap implements Parcelable { 31 * Indicates that the bitmap was created for an unknown pixel density. 33 * @see Bitmap#getDensity() 34 * @see Bitmap#setDensity(int) 76 bitmap int (pointer). 80 private Bitmap(int nativeBitmap, boolean isMutable, byte[] ninePatchChunk, 83 throw new RuntimeException("internal error: native bitmap is 0"); 96 * <p>Returns the density for this bitmap.</p> 120 * <p>Specifies the density for this bitmap. When the bitmap i 416 Bitmap bitmap; local [all...] |
BitmapFactory.java | 32 * Creates Bitmap objects from various sources, including files, streams, 47 * If set to true, the decoder will return null (no bitmap), but 49 * the bitmap without having to allocate the memory for its pixels. 57 * pixel in the decoded bitmap. For example, inSampleSize == 4 returns 60 * decoder will try to fulfill this request, but the resulting bitmap 73 public Bitmap.Config inPreferredConfig; 82 * The pixel density to use for the bitmap. This will always result 83 * in the returned bitmap having a density set for it (see 84 * {@link Bitmap#setDensity(int) Bitmap.setDensity(int)). In addition [all...] |
NinePatch.java | 21 * The NinePatch class permits drawing a bitmap in nine sections. 39 * Create a drawable projection from a bitmap to nine patches. 41 * @param bitmap The bitmap describing the patches. 43 * bitmap is split apart and drawn. 44 * @param srcName The name of the source for the bitmap. Might be null. 46 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { 47 mBitmap = bitmap; 71 * Draw a bitmap of nine patches [all...] |
/external/e2fsprogs/tests/m_raid_opt/ |
expect.1 | 115 Block bitmap differences: +(3--5) +(7--10) +(12--32) +(35--37) +39 -(65--66) -70 -75 -77 -(97--98) -102 -(107--109) -(129--130) -134 -139 -142 -(161--162) -166 -171 -(174--175) -(193--194) -198 -(203--204) -(206--207) -(225--226) -230 -235 -(239--240) -(257--258) -262 -267 -271 -273 -(289--290) -294 +295 -299 -(301--305) 124 Inode bitmap differences: +(1--2) +(4--5) +(7--10) -35 -38 -(43--44) -67 -70 -75 -77 -99 -102 -(107--109) -131 -134 -139 -142 -163 -166 -171 -(174--175) -195 -198 -(203--204) -(206--207) -227 -230 -235 -(239--240) 166 Block bitmap at 35 (+34), Inode bitmap at 36 (+35) 173 Block bitmap at 1072 (+47), Inode bitmap at 1073 (+48) 179 Block bitmap at 2107 (+58), Inode bitmap at 2108 (+59) 186 Block bitmap at 3145 (+72), Inode bitmap at 3146 (+73 [all...] |
/external/e2fsprogs/tests/f_illibitmap/ |
expect.1 | 1 Note: if several inode or block bitmap blocks or part 7 Inode bitmap for group 0 is not in group. (block 4000) 13 Relocating group 0's inode bitmap to 4... 18 Inode bitmap differences: +(1--11)
|
/packages/apps/Camera/res/drawable/ |
camera_background.xml | 2 <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
/packages/apps/Camera/src/com/android/camera/ui/ |
ResourceTexture.java | 20 import android.graphics.Bitmap; 31 private Bitmap mBitmap; 39 protected Bitmap getBitmap() { 46 Bitmap oldBitmap = mBitmap; 72 protected void freeBitmap(Bitmap bitmap) { 73 Util.Assert(bitmap == mBitmap); 74 bitmap.recycle();
|
/external/e2fsprogs/tests/f_badtable/ |
expect.1 | 4 Group 0's block bitmap (3) is bad. Relocate? yes 6 Group 0's inode bitmap (4) is bad. Relocate? yes 8 Relocating group 0's block bitmap from 3 to 9... 9 Relocating group 0's inode bitmap from 4 to 10... 21 Block bitmap differences: -(12--20) 30 Inode bitmap differences: +(12--16) +(25--32)
|
/packages/apps/Camera/tests/src/com/android/camera/gallery/ |
MockImage.java | 3 import android.graphics.Bitmap; 27 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels) { 31 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, 36 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, 93 public Bitmap miniThumbBitmap() { 104 public Bitmap thumbBitmap(boolean rotateAsNeeded) {
|
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
MockImage.java | 3 import android.graphics.Bitmap; 27 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels) { 31 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, 36 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, 93 public Bitmap miniThumbBitmap() { 104 public Bitmap thumbBitmap(boolean rotateAsNeeded) {
|
/frameworks/base/media/tests/omxjpegdecoder/ |
jpeg_decoder_bench.cpp | 53 SkBitmap* bitmap) { 58 // Decode the input stream and then use the bitmap. 59 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) { 63 printf("WidthxHeight: %dx%d\n", bitmap->width(), bitmap->height()); 70 SkBitmap* bitmap) { 75 // Decode the input stream and then use the bitmap. 76 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) { 82 return storeBitmapToFile(bitmap, filename); 89 SkBitmap* bitmap = new SkBitmap local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
DensityActivity.java | 26 import android.graphics.Bitmap; 59 addLabelToRoot(root, "Prescaled bitmap in drawable"); 66 addLabelToRoot(root, "Autoscaled bitmap in drawable"); 88 addLabelToRoot(root, "Prescaled bitmap"); 95 addLabelToRoot(root, "Autoscaled bitmap"); 135 Bitmap bitmap; local 136 bitmap = loadAndPrintDpi(resource, scale); 140 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); 161 Bitmap bitmap local 185 Bitmap bitmap; local [all...] |