| /packages/apps/Nfc/src/com/android/nfc/beam/ |
| FireflyRenderer.java | 21 import android.graphics.Bitmap; 259 Bitmap bitmap = BitmapFactory.decodeStream(in); local 265 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); 267 bitmap.recycle();
|
| /art/runtime/gc/accounting/ |
| mod_union_table.cc | 317 ContinuousSpaceBitmap* bitmap = space_->GetLiveBitmap(); local 321 bitmap->VisitMarkedRange(start, start + CardTable::kCardSize, scan_visitor);
|
| /cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
| SplitAppTest.java | 30 import android.graphics.Bitmap; 361 final Bitmap bitmap = Bitmap.createBitmap(d.getIntrinsicWidth(), d.getIntrinsicHeight(), local 362 Bitmap.Config.ARGB_8888); 363 final Canvas canvas = new Canvas(bitmap); 366 return bitmap.getPixel(0, 0);
|
| /cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
| AnimatedVectorDrawableTest.java | 20 import android.graphics.Bitmap; 46 private Bitmap mBitmap; 55 mBitmap = Bitmap.createBitmap(IMAGE_WIDTH, IMAGE_HEIGHT, Bitmap.Config.ARGB_8888); 63 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int resId) throws IOException { 83 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
|
| /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
| ShapeTest.java | 20 import android.graphics.Bitmap; 24 import android.graphics.Bitmap.Config; 97 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local 98 Canvas canvas = new Canvas(bitmap); 105 assertEquals(0, bitmap.getPixel(0, 0)); 109 assertEquals(0, bitmap.getPixel(0, 0));
|
| /cts/tests/tests/text/src/android/text/cts/ |
| EmojiTest.java | 21 import android.graphics.Bitmap; 63 Bitmap mBitmapA, mBitmapB; // Emoji displayed Bitmaps to compare 160 Bitmap capture(char c[]) { 169 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local 171 return bitmap; 182 Bitmap capture(char c[]) { 192 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()) local 215 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local 226 Bitmap bitmap; field in class:EmojiTest.CaptureWebView [all...] |
| /cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
| BitmapDumper.java | 18 import android.graphics.Bitmap; 70 * drawing. The third file saved is a bitmap that is returned from the given visualizer's 74 public static void dumpBitmaps(Bitmap idealBitmap, Bitmap testedBitmap, String testName, 76 Bitmap visualizerBitmap; 85 visualizerBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 87 Bitmap croppedBitmap = Bitmap.createBitmap(testedBitmap, 0, 0, width, height); 94 public static void dumpBitmap(Bitmap bitmap, String testName, String className) [all...] |
| /developers/build/prebuilts/gradle/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/ |
| MediaEffectsFragment.java | 19 import android.graphics.Bitmap; 134 // Load input bitmap 135 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.puppy); local 136 mImageWidth = bitmap.getWidth(); 137 mImageHeight = bitmap.getHeight(); 142 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 279 // if no effect is chosen, just render the original bitmap
|
| /developers/build/prebuilts/gradle/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/ |
| PdfRendererBasicFragment.java | 22 import android.graphics.Bitmap; 37 * pages. We use a {@link android.graphics.pdf.PdfRenderer} to render PDF pages as {@link android.graphics.Bitmap}s. 62 * {@link android.widget.ImageView} that shows a PDF page as a {@link android.graphics.Bitmap} 172 // Important: the destination bitmap must be ARGB (not RGB). 173 Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), local 174 Bitmap.Config.ARGB_8888); 175 // Here, we render the page onto the Bitmap. 179 mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY) [all...] |
| /developers/samples/android/media/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/ |
| MediaEffectsFragment.java | 19 import android.graphics.Bitmap; 134 // Load input bitmap 135 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.puppy); local 136 mImageWidth = bitmap.getWidth(); 137 mImageHeight = bitmap.getHeight(); 142 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 279 // if no effect is chosen, just render the original bitmap
|
| /developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/ |
| PdfRendererBasicFragment.java | 22 import android.graphics.Bitmap; 37 * pages. We use a {@link android.graphics.pdf.PdfRenderer} to render PDF pages as {@link android.graphics.Bitmap}s. 62 * {@link android.widget.ImageView} that shows a PDF page as a {@link android.graphics.Bitmap} 172 // Important: the destination bitmap must be ARGB (not RGB). 173 Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), local 174 Bitmap.Config.ARGB_8888); 175 // Here, we render the page onto the Bitmap. 179 mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY) [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...] |
| /development/samples/HelloEffects/src/com/example/android/mediafx/ |
| HelloEffects.java | 20 import android.graphics.Bitmap; 74 // Load input bitmap 75 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), local 77 mImageWidth = bitmap.getWidth(); 78 mImageHeight = bitmap.getHeight(); 83 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 246 // if no effect is chosen, just render the original bitmap
|
| /development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/ |
| MediaEffectsFragment.java | 19 import android.graphics.Bitmap; 134 // Load input bitmap 135 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.puppy); local 136 mImageWidth = bitmap.getWidth(); 137 mImageHeight = bitmap.getHeight(); 142 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 279 // if no effect is chosen, just render the original bitmap
|
| /development/samples/browseable/PdfRendererBasic/src/com.example.android.pdfrendererbasic/ |
| PdfRendererBasicFragment.java | 22 import android.graphics.Bitmap; 37 * pages. We use a {@link android.graphics.pdf.PdfRenderer} to render PDF pages as {@link android.graphics.Bitmap}s. 62 * {@link android.widget.ImageView} that shows a PDF page as a {@link android.graphics.Bitmap} 172 // Important: the destination bitmap must be ARGB (not RGB). 173 Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), local 174 Bitmap.Config.ARGB_8888); 175 // Here, we render the page onto the Bitmap. 179 mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY) [all...] |
| /development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
| PictureDetailsActivity.java | 22 import android.graphics.Bitmap; 80 Bitmap bitmap = BitmapUtils.getBitmap(getResources(), local 89 mBitmapDrawable = new BitmapDrawable(getResources(), bitmap);
|
| /development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
| CustomArrayAdapter.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.Config; 104 Bitmap bitmap = BitmapFactory.decodeResource(mContext.getResources(), local 108 imgView.setImageBitmap(CustomArrayAdapter.getCroppedBitmap(bitmap)); 114 * Returns a circular cropped version of the bitmap passed in. 116 public static Bitmap getCroppedBitmap(Bitmap bitmap) { 117 Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight() [all...] |
| InsertionListView.java | 28 import android.graphics.Bitmap; 103 * Stores the starting bounds and the corresponding bitmap drawables of every 160 Bitmap bitmap = CustomArrayAdapter.getCroppedBitmap(BitmapFactory 163 copyImgView.setImageBitmap(bitmap); 318 /** Returns a bitmap drawable showing a screenshot of the view passed in. */ 320 Bitmap bitmap = Bitmap.createBitmap(v.getWidth(), v.getHeight(), Bitmap.Config.ARGB_8888) local [all...] |
| /external/chromium_org/cc/debug/ |
| rasterize_and_record_benchmark_impl.cc | 53 SkBitmap bitmap; variable 54 bitmap.allocPixels(SkImageInfo::MakeN32Premul(content_rect_.width(), 56 SkCanvas canvas(bitmap);
|
| /external/chromium_org/cc/test/ |
| layer_tree_json_parser.cc | 71 SkBitmap bitmap; local 72 bitmap.allocN32Pixels(image_width, image_height); 73 bitmap.setImmutable(); 74 nine_patch_layer->SetBitmap(bitmap);
|
| /external/chromium_org/cc/trees/ |
| layer_tree_host_unittest_copyrequest.cc | 85 // The child was copied to a bitmap and passed back twice. 88 // The root was copied to a bitmap and passed back also. 98 scoped_ptr<SkBitmap> bitmap = result->TakeBitmap().Pass(); local 100 gfx::Size(bitmap->width(), bitmap->height()).ToString()); 188 // Should callback with a NULL bitmap. 214 // We should get another callback with a NULL bitmap. [all...] |
| /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
| BookmarkUtils.java | 12 import android.graphics.Bitmap; 60 Bitmap favicon, int rValue, int gValue, int bValue) { 81 Bitmap favicon, int rValue, int gValue, int bValue) { 116 * @param favicon Bookmark favicon bitmap. 120 * @return Bitmap Either the touch-icon or the newly created favicon. 122 private static Bitmap createIcon(Context context, Bitmap favicon, int rValue, 124 Bitmap bitmap = null; local 129 bitmap = Bitmap.createBitmap(iconSize, iconSize, Bitmap.Config.ARGB_8888) [all...] |
| /external/chromium_org/chrome/browser/chromeos/login/users/wallpaper/ |
| wallpaper_manager_policy_browsertest.cc | 80 // Compute the average ARGB color of |bitmap|. 81 SkColor ComputeAverageColor(const SkBitmap& bitmap) { 82 if (bitmap.empty() || bitmap.width() < 1 || bitmap.height() < 1) { 83 ADD_FAILURE() << "Empty or invalid bitmap."; 86 if (bitmap.isNull()) { 87 ADD_FAILURE() << "Bitmap has no pixelref."; 90 if (bitmap.colorType() == kUnknown_SkColorType) { 91 ADD_FAILURE() << "Bitmap has not been configured." 125 const SkBitmap& bitmap = representation.sk_bitmap(); local [all...] |
| /external/chromium_org/chrome/browser/extensions/ |
| extension_action.cc | 174 SkBitmap bitmap; local 175 if (!IPC::ReadParam(&pickle, &iter, &bitmap)) 177 CHECK(!bitmap.isNull()); 179 icon->AddRepresentation(gfx::ImageSkiaRep(bitmap, scale));
|
| extension_action_storage_manager.cc | 64 bool StringToSkBitmap(const std::string& str, SkBitmap* bitmap) { 73 bitmap); 79 SkBitmap bitmap = image.GetRepresentation(scale).sk_bitmap(); local 80 SkAutoLockPixels lock_image(bitmap); 82 bool success = gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &data); 99 SkBitmap bitmap; local 144 StringToSkBitmap(str_value, &bitmap)) { 145 CHECK(!bitmap.isNull()); 147 icon.AddRepresentation(gfx::ImageSkiaRep(bitmap, scale));
|