HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 201 - 225 of 1117) sorted by null

1 2 3 4 5 6 7 891011>>

  /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/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
BitmapUtils.java 19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.CompressFormat;
44 * bitmap.
52 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED.
116 public static Bitmap resizeBitmapByScale(
117 Bitmap bitmap, float scale, boolean recycle) {
118 int width = Math.round(bitmap.getWidth() * scale);
119 int height = Math.round(bitmap.getHeight() * scale);
120 if (width == bitmap.getWidth(
185 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local
208 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local
    [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...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapTest.java 23 import android.graphics.Bitmap;
29 import android.graphics.Bitmap.CompressFormat;
30 import android.graphics.Bitmap.Config;
43 private Bitmap mBitmap;
64 //abnormal case: the bitmap has been recycled
101 //abnormal case: the bitmap has been recycled
109 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888);
110 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); local
111 WidgetTestUtils.assertEquals(mBitmap, bitmap);
164 Bitmap bitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(), local
183 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); local
530 Bitmap bitmap = Bitmap.createBitmap(10, 10, fromConfig); local
802 Bitmap bitmap = Bitmap.createBitmap(1, 1, config); local
820 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local
840 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local
866 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local
878 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local
    [all...]
ColorMatrixColorFilterTest.java 19 import android.graphics.Bitmap;
25 import android.graphics.Bitmap.Config;
44 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local
45 Canvas canvas = new Canvas(bitmap);
50 assertColor(Color.CYAN, bitmap.getPixel(0, 0));
53 assertColor(Color.GREEN, bitmap.getPixel(0, 0));
56 assertColor(Color.RED, bitmap.getPixel(0, 0));
60 assertColor(Color.WHITE, bitmap.getPixel(0, 0))
    [all...]
ComposeShaderTest.java 19 import android.graphics.Bitmap;
30 import android.graphics.Bitmap.Config;
48 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); local
49 Canvas canvas = new Canvas(bitmap);
59 int pixel = bitmap.getPixel(x, y);
74 Bitmap greenBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888);
76 Bitmap cyanBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888)
86 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local
    [all...]
  /art/runtime/gc/accounting/
remembered_set.cc 130 ContinuousSpaceBitmap* bitmap = space_->GetLiveBitmap(); local
136 bitmap->VisitMarkedRange(start, start + CardTable::kCardSize, obj_visitor);
  /art/runtime/gc/space/
zygote_space.cc 113 accounting::ContinuousSpaceBitmap* bitmap = zygote_space->GetLiveBitmap(); local
115 bitmap->Clear(ptrs[i]);
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
ArcShapeTest.java 20 import android.graphics.Bitmap;
23 import android.graphics.Bitmap.Config;
49 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
50 Canvas canvas = new Canvas(bitmap);
57 // check the color at the center of bitmap
58 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2));
68 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
OvalShapeTest.java 20 import android.graphics.Bitmap;
23 import android.graphics.Bitmap.Config;
44 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
45 Canvas canvas = new Canvas(bitmap);
52 // check the color at the center of bitmap
53 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2));
62 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
  /cts/tests/tests/graphics/src/android/opengl/cts/
CompressedTextureCtsActivity.java 24 import android.graphics.Bitmap;
25 import android.graphics.Bitmap.Config;
52 optionsRGB.inPreferredConfig = Bitmap.Config.RGB_565;
54 Bitmap bitmap = BitmapFactory.decodeResource(mResources, R.raw.basetex, optionsRGB); local
57 compressed = CompressedTextureLoader.createFromUncompressedETC1(bitmap);
66 mCompressedTextureView = new CompressedTextureSurfaceView(this, bitmap, compressed);
  /cts/tests/tests/permission/src/android/permission/cts/
NoSystemFunctionPermissionTest.java 24 import android.graphics.Bitmap;
86 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.RGB_565); local
89 mContext.setWallpaper(bitmap);
90 fail("Context.setWallpaper(BitMap) did not throw SecurityException as expected.");
  /cts/tests/tests/text/src/android/text/cts/
MyanmarTest.java 21 import android.graphics.Bitmap;
47 Bitmap bitmapA = cviewA.capture(textA);
49 Bitmap bitmapB = cviewB.capture(textB);
54 Bitmap bitmapC = cviewC.capture(textC);
57 Bitmap bitmapD = Bitmap.createBitmap(bitmapC.getWidth(), bitmapC.getHeight(),
70 Bitmap capture(String text) {
80 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()) local
    [all...]
  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
BitmapHelper.java 18 import android.graphics.Bitmap;
28 // Bitmap size for album art in media notifications when there are more than 3 playback actions
32 // Bitmap size for album art in media notifications when there are no more than 3 playback actions
36 public static final Bitmap scaleBitmap(int scaleFactor, InputStream is) {
37 // Get the dimensions of the bitmap
40 // Decode the image file into a Bitmap sized to fill the View
44 Bitmap bitmap = BitmapFactory.decodeStream(is, null, bmOptions); local
45 return bitmap;
49 // Get the dimensions of the bitmap
73 Bitmap bitmap = scaleBitmap(scaleFactor, inputStream); local
    [all...]
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
BitmapHelper.java 18 import android.graphics.Bitmap;
28 // Bitmap size for album art in media notifications when there are more than 3 playback actions
32 // Bitmap size for album art in media notifications when there are no more than 3 playback actions
36 public static final Bitmap scaleBitmap(int scaleFactor, InputStream is) {
37 // Get the dimensions of the bitmap
40 // Decode the image file into a Bitmap sized to fill the View
44 Bitmap bitmap = BitmapFactory.decodeStream(is, null, bmOptions); local
45 return bitmap;
49 // Get the dimensions of the bitmap
73 Bitmap bitmap = scaleBitmap(scaleFactor, inputStream); local
    [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/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
BitmapHelper.java 18 import android.graphics.Bitmap;
28 // Bitmap size for album art in media notifications when there are more than 3 playback actions
32 // Bitmap size for album art in media notifications when there are no more than 3 playback actions
36 public static final Bitmap scaleBitmap(int scaleFactor, InputStream is) {
37 // Get the dimensions of the bitmap
40 // Decode the image file into a Bitmap sized to fill the View
44 Bitmap bitmap = BitmapFactory.decodeStream(is, null, bmOptions); local
45 return bitmap;
49 // Get the dimensions of the bitmap
73 Bitmap bitmap = scaleBitmap(scaleFactor, inputStream); local
    [all...]
  /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...]
  /external/chromium_org/android_webview/native/
java_browser_view_renderer_helper.cc 7 #include <android/bitmap.h>
110 // Render into an auxiliary bitmap if pixel info is not available.
153 LOG(ERROR) << "Error getting java bitmap info.";
159 LOG(ERROR) << "Error locking java bitmap pixels.";
167 SkBitmap bitmap; local
168 bitmap.installPixels(info, pixels, bitmap_info.stride);
170 SkCanvas canvas(bitmap);
175 LOG(ERROR) << "Error unlocking java bitmap pixels.";
  /external/chromium_org/ash/desktop_background/
desktop_background_controller_unittest.cc 97 SkBitmap bitmap; local
98 bitmap.allocN32Pixels(width, height);
99 bitmap.eraseColor(color);
100 gfx::ImageSkia image = gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
  /external/chromium_org/athena/test/
test_app_model_builder.cc 80 SkBitmap bitmap; local
81 bitmap.allocN32Pixels(kIconSize, kIconSize);
82 bitmap.eraseColor(color);
83 return gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
  /external/chromium_org/cc/test/
fake_content_layer_client.h 22 SkBitmap bitmap; member in struct:cc::FakeContentLayerClient::BitmapData
45 void add_draw_bitmap(const SkBitmap& bitmap,
49 data.bitmap = bitmap;
  /external/chromium_org/cc/trees/
layer_tree_host_pixeltest_readback.cc 89 scoped_ptr<SkBitmap> bitmap = local
93 ReadbackResultAsBitmap(CopyOutputResult::CreateBitmapResult(bitmap.Pass()));
    [all...]
  /external/chromium_org/chrome/browser/bitmap_fetcher/
bitmap_fetcher_browsertest.cc 41 const SkBitmap* bitmap) OVERRIDE {
44 if (bitmap) {
46 bitmap->deepCopyTo(&bitmap_);
62 const SkBitmap& bitmap() const { return bitmap_; } function in class:chrome::BitmapFetcherTestDelegate
95 // Put some realistic looking bitmap data into the url_fetcher.
98 // Put a real bitmap into "image". 2x2 bitmap of green 32 bit pixels.
130 // Make sure we get back the bitmap we expect.
131 const SkBitmap& found_image = delegate.bitmap();
139 // Put a real bitmap into "image". 2x2 bitmap of green 16 bit pixels
    [all...]

Completed in 1637 milliseconds

1 2 3 4 5 6 7 891011>>