HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 301 - 325 of 864) sorted by null

<<11121314151617181920>>

  /art/tools/ahat/src/
InstanceUtils.java 117 * Read the bitmap data for the given android.graphics.Bitmap object.
118 * Returns null if the object isn't for android.graphics.Bitmap or the
119 * bitmap data couldn't be read.
122 if (!isInstanceOfClass(inst, "android.graphics.Bitmap")) {
152 BufferedImage bitmap = new BufferedImage( local
154 bitmap.setRGB(0, 0, width, height, abgr, 0, width);
155 return bitmap;
232 // Return the bitmap instance associated with this object, or null if there
233 // is none. This works for android.graphics.Bitmap instances and thei
    [all...]
ObjectHandler.java 195 // Draw the bitmap corresponding to this instance if there is one.
197 Instance bitmap = InstanceUtils.getAssociatedBitmapInstance(inst); local
198 if (bitmap != null) {
199 doc.section("Bitmap Image");
201 DocString.formattedUri("bitmap?id=%d", bitmap.getId()), "bitmap image"));
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
PathShapeTest.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
58 Bitmap bitmap = Bitmap.createBitmap(SHAPE_SIZE, SHAPE_SIZE, Config.ARGB_8888); local
59 Canvas canvas = new Canvas(bitmap);
67 assertEquals(TEST_COLOR_1, bitmap.getPixel(50, 50));
78 if (bitmap.getPixel(25, i) == TEST_COLOR_2) {
81 if (bitmap.getPixel(i, 25) == TEST_COLOR_2) {
84 if (bitmap.getPixel(i, i) == TEST_COLOR_2)
    [all...]
RectShapeTest.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
43 private void assertDrawSuccessfully(Bitmap bitmap, int width, int height, int color) {
46 assertEquals(color, bitmap.getPixel(i, j));
54 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
55 Canvas canvas = new Canvas(bitmap);
62 assertDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_1)
    [all...]
RoundRectShapeTest.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
68 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
69 Canvas canvas = new Canvas(bitmap);
76 assertEquals(0, bitmap.getPixel(0, 0));
77 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0));
81 assertEquals(0, bitmap.getPixel(0, 0));
82 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0))
    [all...]
ShapeTest.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
101 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
102 Canvas canvas = new Canvas(bitmap);
109 assertEquals(0, bitmap.getPixel(0, 0));
113 assertEquals(0, bitmap.getPixel(0, 0));
  /cts/tests/tests/text/src/android/text/cts/
EmojiTest.java 21 import android.graphics.Bitmap;
57 private String describeBitmap(final Bitmap bmp) {
62 if (bmp.getConfig() == Bitmap.Config.ALPHA_8) {
64 } else if (bmp.getConfig() == Bitmap.Config.RGB_565) {
66 } else if (bmp.getConfig() == Bitmap.Config.ARGB_4444) {
68 } else if (bmp.getConfig() == Bitmap.Config.ARGB_8888) {
84 Bitmap mBitmapA, mBitmapB; // Emoji displayed Bitmaps to compare
188 Bitmap capture(char c[]) {
197 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()) local
221 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local
245 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local
256 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/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
AlbumArtCache.java 19 import android.graphics.Bitmap;
48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
63 protected int sizeOf(String key, Bitmap[] value) {
70 public Bitmap getBigImage(String artUrl) {
71 Bitmap[] result = mCache.get(artUrl);
75 public Bitmap getIconImage(String artUrl) {
76 Bitmap[] result = mCache.get(artUrl);
83 // requests and bitmap rescales. For production-level apps, we recommend you use
85 Bitmap[] bitmap = mCache.get(artUrl) local
98 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, local
    [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/build/prebuilts/gradle/XYZTouristAttractions/Shared/src/main/java/com/example/android/xyztouristattractions/common/
Utils.java 23 import android.graphics.Bitmap;
139 * Convert an asset into a bitmap object synchronously. Only call this
143 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) {
155 // decode the stream into a bitmap
160 * Create a wearable asset from a bitmap.
162 public static Asset createAssetFromBitmap(Bitmap bitmap) {
163 if (bitmap != null) {
165 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream)
    [all...]
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
AlbumArtCache.java 19 import android.graphics.Bitmap;
48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
63 protected int sizeOf(String key, Bitmap[] value) {
70 public Bitmap getBigImage(String artUrl) {
71 Bitmap[] result = mCache.get(artUrl);
75 public Bitmap getIconImage(String artUrl) {
76 Bitmap[] result = mCache.get(artUrl);
83 // requests and bitmap rescales. For production-level apps, we recommend you use
85 Bitmap[] bitmap = mCache.get(artUrl) local
98 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, local
    [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...]
  /developers/samples/android/wearable/wear/XYZTouristAttractions/Shared/src/main/java/com/example/android/xyztouristattractions/common/
Utils.java 23 import android.graphics.Bitmap;
139 * Convert an asset into a bitmap object synchronously. Only call this
143 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) {
155 // decode the stream into a bitmap
160 * Create a wearable asset from a bitmap.
162 public static Asset createAssetFromBitmap(Bitmap bitmap) {
163 if (bitmap != null) {
165 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream)
    [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/Support4Demos/src/com/example/android/supportv4/media/
AlbumArtCache.java 19 import android.graphics.Bitmap;
48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
63 protected int sizeOf(String key, Bitmap[] value) {
70 public Bitmap getBigImage(String artUrl) {
71 Bitmap[] result = mCache.get(artUrl);
75 public Bitmap getIconImage(String artUrl) {
76 Bitmap[] result = mCache.get(artUrl);
83 // requests and bitmap rescales. For production-level apps, we recommend you use
85 Bitmap[] bitmap = mCache.get(artUrl) local
98 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, local
    [all...]
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
AlbumArtCache.java 19 import android.graphics.Bitmap;
48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
63 protected int sizeOf(String key, Bitmap[] value) {
70 public Bitmap getBigImage(String artUrl) {
71 Bitmap[] result = mCache.get(artUrl);
75 public Bitmap getIconImage(String artUrl) {
76 Bitmap[] result = mCache.get(artUrl);
83 // requests and bitmap rescales. For production-level apps, we recommend you use
85 Bitmap[] bitmap = mCache.get(artUrl) local
98 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, local
    [all...]
  /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/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/
Utils.java 23 import android.graphics.Bitmap;
139 * Convert an asset into a bitmap object synchronously. Only call this
143 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) {
155 // decode the stream into a bitmap
160 * Create a wearable asset from a bitmap.
162 public static Asset createAssetFromBitmap(Bitmap bitmap) {
163 if (bitmap != null) {
165 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream)
    [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...]

Completed in 1584 milliseconds

<<11121314151617181920>>