| /external/skqp/tools/ |
| dump_record.cpp | 28 SkBitmap bitmap; local 29 bitmap.allocN32Pixels(w, h); 30 SkCanvas canvas(bitmap);
|
| imgslice.cpp | 77 SkBitmap bitmap; local 78 if (!image->asLegacyBitmap(&bitmap, SkImage::kRW_LegacyBitmapMode)) { 80 SkDebugf("Couldn't create bitmap for: %s.\n", FLAGS_image[0]); 90 top = bottom = SkTPin(FLAGS_row, 0, bitmap.height()-1); 91 FLAGS_min = left = SkTPin(FLAGS_min, 0, bitmap.width()-1); 92 FLAGS_max = right = SkTPin(FLAGS_max, left, bitmap.width()-1); 95 left = right = SkTPin(FLAGS_column, 0, bitmap.width()-1); 96 FLAGS_min = top = SkTPin(FLAGS_min, 0, bitmap.height()-1); 97 FLAGS_max = bottom = SkTPin(FLAGS_max, top, bitmap.height()-1); 118 SkColor c = bitmap.getColor(x, y) [all...] |
| /external/swiftshader/src/Main/ |
| FrameBufferGDI.hpp | 52 HBITMAP bitmap; member in class:sw::FrameBufferGDI
|
| /external/webrtc/webrtc/modules/desktop_capture/ |
| desktop_frame_win.cc | 21 HBITMAP bitmap) 23 bitmap_(bitmap), 37 // Describe a device independent bitmap (DIB) that is the size of the desktop. 50 HBITMAP bitmap = CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, &data, local 52 if (!bitmap) { 60 shared_memory, bitmap);
|
| /frameworks/opt/bitmap/src/com/android/bitmap/ |
| NamedThreadFactory.java | 17 package com.android.bitmap;
|
| Poolable.java | 17 package com.android.bitmap;
|
| PooledCache.java | 17 package com.android.bitmap;
|
| /packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
| BitmapWithMetadata.java | 20 import android.graphics.Bitmap; 24 * Encapsulates a Bitmap and some additional metadata. 28 public Bitmap bitmap; field in class:BitmapWithMetadata 31 public BitmapWithMetadata(Bitmap bitmap, int rotationDegrees) { 32 this.bitmap = bitmap;
|
| /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
| AccountAvatarDrawable.java | 16 package com.android.mail.bitmap; 19 import android.graphics.Bitmap; 23 import com.android.bitmap.BitmapCache; 30 private static Bitmap DEFAULT_AVATAR = null;
|
| /packages/apps/Tag/src/com/android/apps/tag/record/ |
| ImageRecord.java | 23 import android.graphics.Bitmap; 40 private final Bitmap mBitmap; 42 private ImageRecord(Bitmap bitmap) { 43 mBitmap = Preconditions.checkNotNull(bitmap); 62 Bitmap bitmap = BitmapFactory.decodeByteArray(content, 0, content.length); local 63 if (bitmap == null) { 66 return new ImageRecord(bitmap); 78 public static NdefRecord newImageRecord(Bitmap bitmap) [all...] |
| /cts/tests/tests/systemui/src/android/systemui/cts/ |
| LightBarTestBase.java | 28 import android.graphics.Bitmap; 43 protected Bitmap takeStatusBarScreenshot(LightBarBaseActivity activity) { 44 Bitmap fullBitmap = getInstrumentation().getUiAutomation().takeScreenshot(); 45 return Bitmap.createBitmap(fullBitmap, 0, 0, activity.getWidth(), activity.getTop()); 48 protected Bitmap takeNavigationBarScreenshot(LightBarBaseActivity activity) { 49 Bitmap fullBitmap = getInstrumentation().getUiAutomation().takeScreenshot(); 50 return Bitmap.createBitmap(fullBitmap, 0, activity.getBottom(), activity.getWidth(), 54 protected void dumpBitmap(Bitmap bitmap) { 55 Log.e(TAG, "Dumping failed bitmap to " + DUMP_PATH) 119 final Bitmap bitmap = takeNavigationBarScreenshot(activity); local [all...] |
| /cts/tests/tests/view/src/android/view/cts/ |
| TextureViewSnapshotTestActivity.java | 23 import android.graphics.Bitmap; 84 Bitmap bitmap = mTexView.getBitmap(); local 85 Assert.assertNotNull(bitmap); 86 Assert.assertEquals(mTexView.getWidth(), bitmap.getWidth()); 87 Assert.assertEquals(mTexView.getHeight(), bitmap.getHeight()); 88 Assert.assertEquals(Color.RED, bitmap.getPixel(0, 0));
|
| /packages/apps/Camera2/tests/src/com/android/camera/functional/ |
| ImageCaptureIntentTest.java | 24 import android.graphics.Bitmap; 61 Bitmap bitmap = (Bitmap) resultData.getParcelableExtra("data"); local 62 assertNotNull(bitmap); 63 assertTrue(bitmap.getWidth() > 0); 64 assertTrue(bitmap.getHeight() > 0); 96 Bitmap b = BitmapFactory.decodeByteArray(jpegData, 0, jpegData.length);
|
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
| ByodIconSamplerActivity.java | 22 import android.graphics.Bitmap; 64 Bitmap bitmap = convertToBitmap(drawable); local 69 bitmap.compress(Bitmap.CompressFormat.PNG, 100, file); 98 private static Bitmap convertToBitmap(Drawable icon) { 102 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), local 103 Bitmap.Config.ARGB_8888) [all...] |
| /cts/hostsidetests/theme/app/src/android/theme/app/ |
| GenerateBitmapTask.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.CompressFormat; 31 * A task which gets the UI element to render to a bitmap and then saves that 40 private Bitmap mBitmap; 57 mBitmap = Bitmap.createBitmap(mView.getWidth(), mView.getHeight(), 58 Bitmap.Config.ARGB_8888); 66 final Bitmap bitmap = mBitmap; local 67 if (bitmap == null) { 82 success = bitmap.compress(CompressFormat.PNG, 100, stream) [all...] |
| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| SumPathEffectTest.java | 22 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 47 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); local 48 bitmap.eraseColor(Color.BLACK); 49 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 70 canvas = new Canvas(bitmap); 75 assertEquals(expected.getPixel(i, j), bitmap.getPixel(i, j)) [all...] |
| Canvas_VertexModeTest.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 54 Bitmap bitmap = Bitmap.createBitmap(10, 27, Config.RGB_565); local 55 Canvas c = new Canvas(bitmap);
|
| RadialGradientTest.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 48 Bitmap bitmap = Bitmap.createBitmap(3, 1, Config.ARGB_8888); local 49 bitmap.eraseColor(Color.BLACK); 50 Canvas canvas = new Canvas(bitmap); 56 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1); 57 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(1, 0), 1); 58 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(2, 0), 1) [all...] |
| /cts/tests/tests/security/src/android/security/cts/ |
| Movie33897722.java | 19 import android.graphics.Bitmap; 70 Bitmap bitmap = Bitmap.createBitmap(drawWidth, drawHeight, Bitmap.Config.ARGB_8888); local 71 Canvas canvas = new Canvas(bitmap); 81 assertEquals(bitmap.getPixel(x, y), Color.TRANSPARENT);
|
| /frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/ |
| PhotoBitmapLoader.java | 22 import android.graphics.Bitmap; 32 * Loader for the bitmap of a photo. 37 private Bitmap mBitmap; 58 if (result.bitmap != null) { 59 result.bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM); 62 // We got image bytes, but unable to decode to a Bitmap 77 Bitmap bitmap = result != null ? result.bitmap : null; local 81 if (bitmap != null) [all...] |
| /frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/content/ |
| FileProviderExample.java | 21 import android.graphics.Bitmap; 67 final Bitmap bitmap = Bitmap.createBitmap( local 68 view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); 69 final Canvas canvas = new Canvas(bitmap); 75 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
| /packages/apps/Settings/tests/unit/src/com/android/settings/ |
| RegulatoryInfoDisplayActivityTest.java | 24 import android.graphics.Bitmap; 143 final Bitmap bitmap = Bitmap.createBitmap(400 /* width */, 400 /* height */, local 144 Bitmap.Config.ARGB_8888); 146 bitmap.compress(Bitmap.CompressFormat.PNG, 100 /* quality */, out);
|
| /art/runtime/gc/accounting/ |
| heap_bitmap-inl.h | 30 for (const auto& bitmap : continuous_space_bitmaps_) { 31 bitmap->VisitMarkedRange(bitmap->HeapBegin(), bitmap->HeapLimit(), visitor); 33 for (const auto& bitmap : large_object_bitmaps_) { 34 bitmap->VisitMarkedRange(bitmap->HeapBegin(), bitmap->HeapLimit(), visitor); 39 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local 40 if (LIKELY(bitmap != nullptr)) 53 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local 68 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local 85 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local [all...] |
| /cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
| BitmapVerifier.java | 18 import android.graphics.Bitmap; 22 * Checks to see if a Bitmap follows the algorithm provided by the verifier 28 protected Bitmap mDifferenceBitmap; 30 public boolean verify(Bitmap bitmap) { 31 int width = bitmap.getWidth(); 32 int height = bitmap.getHeight(); 34 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); 39 * This will test if the bitmap is good or not. 41 public abstract boolean verify(int[] bitmap, int offset, int stride, int width, int height) [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/app/ |
| PrintBitmap.java | 19 import android.graphics.Bitmap; 32 * This class demonstrates how to implement bitmap printing. 76 // Get the bitmap for the ImageView's drawable. 77 Bitmap bitmap = ((BitmapDrawable) mImageView.getDrawable()).getBitmap(); local 79 // Print the bitmap. 80 printHelper.printBitmap("Print Bitmap", bitmap);
|