| /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
| BitmapUtils.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.CompressFormat; 43 * bitmap. 51 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED. 115 public static Bitmap resizeBitmapByScale( 116 Bitmap bitmap, float scale, boolean recycle) { 117 int width = Math.round(bitmap.getWidth() * scale); 118 int height = Math.round(bitmap.getHeight() * scale); 119 if (width == bitmap.getWidth( 184 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local 207 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
| DetailsHelper.java | 19 import android.graphics.Bitmap; 85 Bitmap bitmap = BitmapFactory.decodeFile(path); local 86 if (bitmap == null) return; 87 listener.onResolutionAvailable(bitmap.getWidth(), bitmap.getHeight());
|
| /packages/apps/Gallery2/src/com/android/photos/data/ |
| SparseArrayBitmapPool.java | 19 import android.graphics.Bitmap; 26 * Bitmap pool backed by a sparse array indexing linked lists of bitmaps 41 Bitmap bitmap; field in class:SparseArrayBitmapPool.Node 92 mStore.put(n.bitmap.getWidth(), n.nextInBucket); 120 mSizeBytes -= n.bitmap.getByteCount(); 121 if (recycleBitmap) n.bitmap.recycle(); 122 n.bitmap = null; 141 * @return Bitmap from the pool with the desired height/width or null if none available. 143 public synchronized Bitmap get(int width, int height) [all...] |
| /packages/apps/LegacyCamera/tests/src/com/android/camera/functional/ |
| ImageCaptureIntentTest.java | 25 import android.graphics.Bitmap; 66 Bitmap bitmap = (Bitmap) resultData.getParcelableExtra("data"); local 67 assertNotNull(bitmap); 68 assertTrue(bitmap.getWidth() > 0); 69 assertTrue(bitmap.getHeight() > 0); 101 Bitmap b = BitmapFactory.decodeByteArray(jpegData, 0, jpegData.length); 119 Bitmap bitmap = (Bitmap) resultData.getParcelableExtra("data") local [all...] |
| /packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
| ImageRequest.java | 19 import android.graphics.Bitmap; 37 * Base class that serves an image request for resolving, retrieving and decoding bitmap resources. 88 protected Bitmap getBitmapForResource() throws IOException { 120 final Bitmap loadedBitmap = loadBitmapInternal(); 122 throw new RuntimeException("failed decoding bitmap"); 136 protected Bitmap loadBitmapInternal() throws IOException { 141 // If the ImageRequest has a Bitmap object rather than a stream, there's little to do here 143 final Bitmap bitmap = getBitmapForResource(); local 144 if (bitmap != null && unknownSize) [all...] |
| /packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
| ImagePersistTask.java | 20 import android.graphics.Bitmap; 75 Bitmap bitmap = null; local 76 Bitmap clippedBitmap = null; 96 bitmap = BitmapFactory.decodeByteArray(mBytes, 0, mBytes.length); 100 Assert.equals(mWidth, bitmap.getHeight()); 101 Assert.equals(mHeight, bitmap.getWidth()); 105 Assert.equals(mWidth, bitmap.getWidth()); 106 Assert.equals(mHeight, bitmap.getHeight()); 110 final int offsetTop = (bitmap.getHeight() - clippedHeight) / 2 [all...] |
| /cts/tests/tests/widget/src/android/widget/cts/util/ |
| TestUtils.java | 24 import android.graphics.Bitmap; 52 * This method takes a view and returns a single bitmap that is the layered combination 64 public static Bitmap getCombinedBackgroundBitmap(View view) { 68 // Create a bitmap 69 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, local 70 Bitmap.Config.ARGB_8888); 71 // Create a canvas that wraps the bitmap 72 final Canvas canvas = new Canvas(bitmap); 150 Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), local 178 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, local [all...] |
| /frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/ |
| TestUtils.java | 23 import android.graphics.Bitmap; 44 * This method takes a view and returns a single bitmap that is the layered combination 56 public static Bitmap getCombinedBackgroundBitmap(View view) { 60 // Create a bitmap 61 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, local 62 Bitmap.Config.ARGB_8888); 63 // Create a canvas that wraps the bitmap 64 final Canvas canvas = new Canvas(bitmap); 123 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, local 188 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, Bitmap.Config.ARGB_8888); local [all...] |
| /art/runtime/gc/accounting/ |
| remembered_set.cc | 140 ContinuousSpaceBitmap* bitmap = space_->GetLiveBitmap(); local 146 bitmap->VisitMarkedRange(start, start + CardTable::kCardSize, obj_visitor);
|
| /art/runtime/gc/space/ |
| zygote_space.cc | 115 accounting::ContinuousSpaceBitmap* bitmap = zygote_space->GetLiveBitmap(); local 117 bitmap->Clear(ptrs[i]);
|
| /art/tools/ahat/src/main/com/android/ahat/ |
| BitmapHandler.java | 41 BufferedImage bitmap = null; local 44 bitmap = inst.asBitmap(); 47 if (bitmap != null) { 51 ImageIO.write(bitmap, "png", os); 58 doc.big(DocString.text("No bitmap found for the given request."));
|
| Summarizer.java | 102 AhatInstance bitmap = inst.getAssociatedBitmapInstance(); local 104 if (bitmap != null) { 105 URI uri = DocString.formattedUri("bitmap?id=0x%x", bitmap.getId()); 106 formatted.appendThumbnail(uri, "bitmap image");
|
| /cts/tests/app/src/android/app/cts/ |
| TaskDescriptionTest.java | 28 import android.graphics.Bitmap; 64 final Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 65 bitmap.eraseColor(0); 66 activity.setTaskDescription(new TaskDescription(TEST_LABEL, bitmap, TEST_COLOR));
|
| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| ColorMatrixColorFilterTest.java | 22 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 53 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 54 Canvas canvas = new Canvas(bitmap); 59 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); 62 ColorUtils.verifyColor(Color.GREEN, bitmap.getPixel(0, 0)); 65 ColorUtils.verifyColor(Color.RED, bitmap.getPixel(0, 0)); 69 ColorUtils.verifyColor(Color.WHITE, bitmap.getPixel(0, 0)) [all...] |
| ShaderTest.java | 23 import android.graphics.Bitmap; 47 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565); local 49 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); 74 Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.RGB_565) local [all...] |
| /cts/tests/tests/opengl/src/android/opengl/cts/ |
| CompressedTextureCtsActivity.java | 20 import android.graphics.Bitmap; 47 optionsRGB.inPreferredConfig = Bitmap.Config.RGB_565; 49 Bitmap bitmap = BitmapFactory.decodeResource(mResources, R.raw.basetex, optionsRGB); local 52 compressed = CompressedTextureLoader.createFromUncompressedETC1(bitmap); 61 mCompressedTextureView = new CompressedTextureSurfaceView(this, bitmap, compressed);
|
| /cts/tests/tests/permission/src/android/permission/cts/ |
| NoSystemFunctionPermissionTest.java | 25 import android.graphics.Bitmap; 93 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.RGB_565); local 96 mContext.setWallpaper(bitmap); 97 fail("Context.setWallpaper(BitMap) did not throw SecurityException as expected.");
|
| /cts/tests/tests/text/src/android/text/cts/ |
| MyanmarTest.java | 23 import android.graphics.Bitmap; 65 Bitmap bitmapA = cviewA.capture(textA); 67 Bitmap bitmapB = cviewB.capture(textB); 72 Bitmap bitmapC = cviewC.capture(textC); 75 Bitmap bitmapD = Bitmap.createBitmap(bitmapC.getWidth(), bitmapC.getHeight(), 88 Bitmap capture(String text) { 98 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()) local [all...] |
| /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
| ColorFilterAlphaTest.java | 19 import android.graphics.Bitmap; 113 private static Bitmap createMultiRectBitmap() { 114 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local 115 Canvas canvas = new Canvas(bitmap); 124 return bitmap; 139 private final Bitmap mBitmap = createMultiRectBitmap();
|
| /development/samples/ApiDemos/src/com/example/android/apis/view/ |
| LivePointerIconButton.java | 20 import android.graphics.Bitmap; 51 Bitmap bitmap = Bitmap.createBitmap(cursorSize, cursorSize, Bitmap.Config.ARGB_8888); local 52 Canvas canvas = new Canvas(bitmap); 60 // Draw a large circle filling the bitmap. 81 final int hotSpotX = bitmap.getWidth() / 2; 82 final int hotSpotY = bitmap.getHeight() / 2; 83 return PointerIcon.create(bitmap, hotSpotX, hotSpotY) [all...] |
| /development/samples/Snake/src/com/example/android/snake/ |
| TileView.java | 21 import android.graphics.Bitmap; 54 private Bitmap[] mTileArray; 100 Bitmap bitmap = Bitmap.createBitmap(mTileSize, mTileSize, Bitmap.Config.ARGB_8888); local 101 Canvas canvas = new Canvas(bitmap); 105 mTileArray[key] = bitmap; 130 mTileArray = new Bitmap[tilecount];
|
| /development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
| BitmapUtils.java | 24 import android.graphics.Bitmap; 52 static HashMap<Integer, Bitmap> sBitmapResourceMap = new HashMap<Integer, Bitmap>(); 63 Bitmap bitmap = getBitmap(resources, resourceId); local 64 Bitmap thumbnail = getThumbnail(bitmap, 200); 72 * Utility method to get bitmap from cache or, if not there, load it 75 static Bitmap getBitmap(Resources resources, int resourceId) { 76 Bitmap bitmap = sBitmapResourceMap.get(resourceId) local [all...] |
| /device/linaro/bootloader/edk2/StdLib/LibC/String/ |
| Searching.c | 60 #define BITMAP64 ((UINT64 *)bitmap)
64 BuildBitmap(unsigned char * bitmap, const char *s2, int n)
69 // Initialize bitmap. Bit 0 is always 1 which corresponds to '\0'
73 // Set bits in bitmap corresponding to the characters in s2
77 bitmap[index] = bitmap[index] | bit;
90 UINT8 bitmap[ (((UCHAR_MAX + 1) / CHAR_BIT) + (CHAR_BIT - 1)) & ~7U];
local 97 BuildBitmap( bitmap, s2, sizeof(bitmap) / sizeof(UINT64));
102 if ((bitmap[index] & bit) != 0) 117 UINT8 bitmap[ (((UCHAR_MAX + 1) \/ CHAR_BIT) + (CHAR_BIT - 1)) & ~7U]; local 162 UINT8 bitmap[ (((UCHAR_MAX + 1) \/ CHAR_BIT) + (CHAR_BIT - 1)) & ~7U]; local 224 UINT8 bitmap[ (((UCHAR_MAX + 1) \/ CHAR_BIT) + (CHAR_BIT - 1)) & ~7U]; local [all...] |
| /external/ImageMagick/coders/ |
| screenshot.c | 125 bitmap, 191 bitmap=CreateDIBSection(hDC,&bmi,DIB_RGB_COLORS,(void **) &p,NULL,0); 192 if (bitmap == (HBITMAP) NULL) 198 bitmapOld=(HBITMAP) SelectObject(bitmapDC,bitmap); 203 DeleteObject(bitmap); 230 DeleteObject(bitmap); 123 bitmap, local
|
| /external/freetype/src/base/ |
| ftglyph.c | 80 glyph->bitmap = slot->bitmap; 85 FT_Bitmap_Init( &glyph->bitmap ); 86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); 106 return FT_Bitmap_Copy( library, &source->bitmap, &target->bitmap ); 117 FT_Bitmap_Done( library, &glyph->bitmap ); 129 cbox->xMax = cbox->xMin + (FT_Pos)( glyph->bitmap.width * 64 ); 131 cbox->yMin = cbox->yMax - (FT_Pos)( glyph->bitmap.rows * 64 ) 536 FT_BitmapGlyph bitmap = NULL; local [all...] |