| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
| HistogramView.java | 20 import android.graphics.Bitmap; 33 private Bitmap mBitmap; 40 class ComputeHistogramTask extends AsyncTask<Bitmap, Void, int[]> { 42 protected int[] doInBackground(Bitmap... params) { 44 Bitmap bitmap = params[0]; local 45 int w = bitmap.getWidth(); 46 int h = bitmap.getHeight(); 48 bitmap.getPixels(pixels, 0, w, 0, 0, w, h); 76 public void setBitmap(Bitmap bitmap) [all...] |
| /packages/apps/Gallery2/src/com/android/photos/ |
| BitmapRegionTileSource.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.Config; 78 mOptions.inPreferredConfig = Bitmap.Config.ARGB_8888; 83 // Although this is the same size as the Bitmap that is likely already 85 // thread. Thus to simplify, this source will decode its own bitmap. 86 Bitmap preview = decodePreview(path, previewSize); 125 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { 134 if (bitmap == null) 164 Bitmap bitmap = mDecoder.decodeRegion(mOverlapRegion, mOptions); local [all...] |
| /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
| LogoUtilsTest.java | 19 import android.graphics.Bitmap; 37 Bitmap bitmap = createSampleBitmap(20, 30); local 38 File tempFile = writeBitmapToTempFile(bitmap); 40 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 10, 15); 41 // It should have been able to get only the half bitmap. 51 Bitmap bitmap = createSampleBitmap(8, 32); local 52 File tempFile = writeBitmapToTempFile(bitmap); 54 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 8, 8) 65 Bitmap bitmap = createSampleBitmap(16, 32); local 74 Bitmap bitmap = createSampleBitmap(16, 32); local 84 Bitmap bitmap = createSampleBitmap(15, 15); local 92 Bitmap bitmap = createSampleBitmap(7, 5); local 119 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local 140 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local [all...] |
| /packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
| DecodedImageResource.java | 19 import android.graphics.Bitmap; 33 * Container class for holding a bitmap resource used by the MediaResourceManager. This resource 40 private Bitmap mBitmap; 44 public DecodedImageResource(final String key, final Bitmap bitmap, int orientation) { 46 mBitmap = bitmap; 51 * Gets the contained bitmap. 54 public Bitmap getBitmap() { 64 * Attempt to reuse the bitmap in the image resource and repurpose it for something else. 65 * After this, the image resource will relinquish ownership on the bitmap resource so tha 192 Bitmap bitmap = getBitmap(); local [all...] |
| /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
| ContactResolver.java | 18 package com.android.mail.bitmap; 25 import com.android.bitmap.BitmapCache; 26 import com.android.bitmap.DecodeTask; 27 import com.android.bitmap.RequestKey; 28 import com.android.bitmap.ReusableBitmap; 32 import com.android.mail.bitmap.ContactRequest.ContactRequestHolder; 258 final ReusableBitmap bitmap = values[0].bitmap; local 261 if (bitmap == null && mCache != null) { 266 request.destination.onDecodeComplete(request.contactRequest, bitmap); 282 public final ReusableBitmap bitmap; field in class:ContactResolver.Result [all...] |
| /packages/experimental/KBars/app/src/main/java/js/kbars/ |
| ImageBackgroundMenuItem.java | 5 import android.graphics.Bitmap; 6 import android.graphics.Bitmap.CompressFormat; 42 Bitmap bitmap = BitmapFactory.decodeStream(this.mActivity.getContentResolver().openInputStream(image)); local 43 if (bitmap != null) { 44 setTargetBackground(bitmap); 45 saveBitmap(bitmap); 63 private void saveBitmap(Bitmap bitmap) { 70 if (bitmap != null) 82 Bitmap bitmap = loadBitmapFromCache(); local [all...] |
| /packages/services/BuiltInPrintService/src/com/android/bips/render/ |
| PdfRenderService.java | 22 import android.graphics.Bitmap; 43 /** How large of a chunk of Bitmap data to copy at once to the output stream */ 96 // Use a thread to spool out the bitmap data 191 // Buffer will temporarily hold RGBA data from Bitmap 198 Bitmap bitmap = null; local 209 // Allocate and clear bitmap to white with no transparency 210 bitmap = Bitmap.createBitmap(mWidth, mRowsPerStripe, Bitmap.Config.ARGB_8888) [all...] |
| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| BitmapTest.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.CompressFormat; 28 import android.graphics.Bitmap.Config; 75 private Bitmap mBitmap; 120 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); 121 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); local 122 WidgetTestUtils.assertEquals(mBitmap, bitmap); 132 Bitmap srcBitmap = Bitmap.createBitmap(1, 1, src) 189 Bitmap bitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(), local 209 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); local 392 Bitmap bitmap; local 422 Bitmap bitmap; local 443 Bitmap bitmap = Bitmap.createBitmap(10, 10, Config.ARGB_8888); local 702 Bitmap bitmap = Bitmap.createBitmap(10, 10, fromConfig); local 989 Bitmap bitmap = Bitmap.createBitmap(1, 1, config); local 1009 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 1030 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 1057 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 1070 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 1302 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1308 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1324 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1330 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1336 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1342 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1348 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1354 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1360 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1366 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, HARDWARE_OPTIONS); local 1382 Bitmap bitmap = Bitmap.createBitmap(10, 20, Config.RGB_565); local 1453 Bitmap bitmap = Bitmap.createBitmap(10, 20, Config.RGB_565); local 1518 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, opts); local 1553 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, opts); local [all...] |
| BitmapShaderTest.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 46 Bitmap tile = Bitmap.createBitmap(TILE_WIDTH, TILE_HEIGHT, Config.ARGB_8888); 57 // create a bitmap that fits (NUM_TILES - 0.5) tiles in both directions 58 Bitmap b = Bitmap.createBitmap(NUM_TILES * TILE_WIDTH - TILE_WIDTH / 2, 73 * bitmap. 75 private void verifyTile(Bitmap bitmap, int tileX, int tileY) 101 Bitmap bitmap = Bitmap.createBitmap(2, 1, Config.ARGB_8888); local 123 Bitmap bitmap = Bitmap.createBitmap(2, 1, Config.ARGB_8888); local 145 Bitmap bitmap = Bitmap.createBitmap(2, 1, Config.ARGB_8888); local [all...] |
| ComposeShaderTest.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 54 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); local 55 Canvas canvas = new Canvas(bitmap); 65 int pixel = bitmap.getPixel(x, y); 81 Bitmap redBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); 83 Bitmap cyanBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888) 93 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 122 Bitmap bitmap = Bitmap.createBitmap(10, 10, Config.ARGB_8888); local [all...] |
| CornerPathEffectTest.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.Config; 63 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 64 Canvas canvas = new Canvas(bitmap); 89 int pixel = bitmap.getPixel(x, y);
|
| DashPathEffectTest.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 52 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 53 bitmap.eraseColor(BACKGROUND); 65 Canvas canvas = new Canvas(bitmap); 74 assertEquals(FOREGROUND, bitmap.getPixel(x, y)); 76 assertEquals(BACKGROUND, bitmap.getPixel(x, y)); 79 assertEquals(BACKGROUND, bitmap.getPixel(x, y)) [all...] |
| DiscretePathEffectTest.java | 22 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 63 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 64 bitmap.eraseColor(Color.TRANSPARENT); 66 Canvas canvas = new Canvas(bitmap); 88 int pixel = bitmap.getPixel(x, y);
|
| EmbossMaskFilterTest.java | 22 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 61 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 62 bitmap.eraseColor(Color.BLACK); 64 Canvas c = new Canvas(bitmap); 72 assertTrue(brightness(bitmap, top) > brightness(bitmap, bottom)); 73 assertTrue(brightness(bitmap, left) > brightness(bitmap, right)) [all...] |
| PictureTest.java | 23 import android.graphics.Bitmap; 79 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local 80 Canvas drawDest = new Canvas(bitmap); 96 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888) local 128 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local [all...] |
| VulkanPreTransformTest.java | 22 import android.graphics.Bitmap; 99 private static Bitmap takeScreenshot() { 104 Bitmap dest = 105 Bitmap.createBitmap(srcRect.width(), srcRect.height(), Bitmap.Config.ARGB_8888); 124 Bitmap bitmap = takeScreenshot(); local 126 int width = bitmap.getWidth(); 127 int height = bitmap.getHeight(); 130 diff += pixelDiff(bitmap.getPixel(0, 0), 0, 255, 0) [all...] |
| /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
| ShadowBitmapTest.java | 7 import android.graphics.Bitmap; 31 Bitmap originalBitmap = create("Original bitmap"); 32 Bitmap scaledBitmap = Bitmap.createScaledBitmap(originalBitmap, 100, 200, false); 34 .isEqualTo("Original bitmap scaled to 100 x 200"); 42 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888) local 52 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); local 61 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); local 73 Bitmap bitmap = Bitmap.createBitmap(colors, 3, 2, Bitmap.Config.ARGB_8888); local 118 final Bitmap bitmap = Bitmap.createBitmap(metrics, 100, 100, Bitmap.Config.ARGB_8888); local 125 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); local 171 Bitmap bitmap = create("Bitmap One"); local 178 Bitmap bitmap = Shadow.newInstanceOf(Bitmap.class); local 212 final Bitmap bitmap = Bitmap.createBitmap(new DisplayMetrics(), 100, 100, Bitmap.Config.ARGB_8888); local 219 Bitmap bitmap = Bitmap.createBitmap(new int[] { 1 }, 1, 1, Bitmap.Config.ARGB_8888); local 228 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 259 Bitmap bitmap = Bitmap.createBitmap(new int[] { 1 }, 1, 1, Bitmap.Config.ARGB_8888); local 301 Bitmap bitmap; local 335 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local 504 Bitmap bitmap = Shadow.newInstanceOf(Bitmap.class); local [all...] |
| /packages/apps/Gallery/src/com/android/camera/ |
| ImageViewTouchBase.java | 20 import android.graphics.Bitmap; 57 // The current bitmap being displayed. 64 // ImageViewTouchBase will pass a Bitmap to the Recycler if it has finished 65 // its use of that Bitmap. 67 public void recycle(Bitmap b); 120 public void setImageBitmap(Bitmap bitmap) { 121 setImageBitmap(bitmap, 0); 124 private void setImageBitmap(Bitmap bitmap, int rotation) [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
| NinePatchTexture.java | 20 import android.graphics.Bitmap; 47 protected Bitmap onGetBitmap() { 51 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 52 Bitmap bitmap = BitmapFactory.decodeResource( local 54 mBitmap = bitmap; 55 setSize(bitmap.getWidth(), bitmap.getHeight()); 56 byte[] chunkData = bitmap.getNinePatchChunk(); 59 : NinePatchChunk.deserialize(bitmap.getNinePatchChunk()) [all...] |
| /art/runtime/gc/space/ |
| malloc_space.cc | 57 StringPrintf("allocspace %s live-bitmap %d", name.c_str(), static_cast<int>(bitmap_index)), 59 CHECK(live_bitmap_.get() != nullptr) << "could not create allocspace live bitmap #" 62 StringPrintf("allocspace %s mark-bitmap %d", name.c_str(), static_cast<int>(bitmap_index)), 64 CHECK(mark_bitmap_.get() != nullptr) << "could not create allocspace mark bitmap #" 244 accounting::ContinuousSpaceBitmap* bitmap = space->GetLiveBitmap(); local 246 bitmap->Clear(ptrs[i]); 262 // If the bitmaps are clamped, then the temp bitmap is actually the mark bitmap.
|
| /bionic/libc/kernel/uapi/linux/ |
| virtio_input.h | 51 __u8 bitmap[128]; member in union:virtio_input_config::__anon1266
|
| /cts/common/device-side/util/src/com/android/compatibility/common/util/ |
| BitmapUtils.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.CompressFormat; 40 public static boolean compareBitmaps(Bitmap bmp1, Bitmap bmp2) { 63 public static Bitmap generateRandomBitmap(int width, int height) { 64 final Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 74 public static Bitmap generateWhiteBitmap(int width, int height) { 75 final Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) [all...] |
| /cts/tests/tests/effect/src/android/effect/cts/ |
| EffectTest.java | 19 import android.graphics.Bitmap; 101 Bitmap bitmap = createTestBitmap(); local 102 int inputTexture = mEnv.bitmapToTexture(bitmap); 105 effect.apply(inputTexture, bitmap.getWidth(), bitmap.getHeight(), outputTexture); 118 private Bitmap createTestBitmap() { 119 Bitmap testBitmap = Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888) [all...] |
| /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
| ArcShapeTest.java | 23 import android.graphics.Bitmap; 24 import android.graphics.Bitmap.Config; 72 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local 73 Canvas canvas = new Canvas(bitmap); 80 // check the color at the center of bitmap 81 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); 91 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
|
| OvalShapeTest.java | 24 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.Config; 57 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local 58 Canvas canvas = new Canvas(bitmap); 65 // check the color at the center of bitmap 66 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); 75 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
|