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

1 2 3 4 5 67 8 91011>>

  /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
ResourceTexture.java 20 import android.graphics.Bitmap;
25 // ResourceTexture is a texture whose Bitmap is decoded from a resource.
40 protected Bitmap onGetBitmap() {
42 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
48 protected void onFreeBitmap(Bitmap bitmap) {
50 bitmap.recycle();
  /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
ColorPicker.java 17 package com.android.mail.bitmap;
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
BitmapFilterTests.java 18 import android.graphics.Bitmap;
33 // Creates Paint object that will have bitmap filtering
35 // First uses a Paint object with bitmap filtering, then uses canvas.setDrawFilter to remove
36 // the bitmap filtering
59 private static Bitmap createGridBitmap(int width, int height) {
60 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
64 bitmap.setPixel(i, j, isWhite ? Color.WHITE : Color.BLACK)
    [all...]
  /external/zxing/qr_scanner/src/com/google/zxing/client/android/
PlanarYUVLuminanceSource.java 21 import android.graphics.Bitmap;
109 public Bitmap renderCroppedGreyscaleBitmap() {
125 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
126 bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
127 return bitmap;
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
MediaMetadataRetrieverTest.java 21 import android.graphics.Bitmap;
89 Bitmap bitmap = retriever.getFrameAtTime(-1); local
90 assertTrue(bitmap != null);
93 bitmap.compress(Bitmap.CompressFormat.JPEG, 75, stream);
96 Log.e(TAG, "Fails to convert the bitmap to a JPEG file for " + MediaNames.THUMBNAIL_METADATA_TEST_FILES[i]);
147 Bitmap bitmap = retriever.getFrameAtTime(-1); local
148 assertTrue(bitmap != null)
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
FaceSquareFilterTest.java 21 import android.graphics.Bitmap;
62 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("XZZ019.jpg")); local
63 image.setBitmap(bitmap);
79 int[] pixels = new int[bitmap.getByteCount()];
80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(),
81 bitmap.getHeight());
87 int top = (faceRect.top+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE
    [all...]
  /frameworks/ex/framesequence/samples/RastermillSamples/src/com/android/rastermill/samples/
AnimatedGifTest.java 19 import android.graphics.Bitmap;
35 HashSet<Bitmap> mBitmaps = new HashSet<Bitmap>();
37 public Bitmap acquireBitmap(int minWidth, int minHeight) {
38 Bitmap bitmap = local
39 Bitmap.createBitmap(minWidth + 1, minHeight + 4, Bitmap.Config.ARGB_8888);
40 mBitmaps.add(bitmap);
41 return bitmap;
    [all...]
  /frameworks/opt/bitmap/src/com/android/bitmap/
UnrefedBitmapCache.java 17 package com.android.bitmap;
22 import com.android.bitmap.ReusableBitmap.NullReusableBitmap;
23 import com.android.bitmap.util.Trace;
84 ReusableBitmap bitmap; local
86 while ((bitmap = super.poll()) == null && mBlocking) {
104 return bitmap;
  /packages/apps/Browser/tests/src/com/android/browser/tests/
BP2ProviderTests.java 24 import android.graphics.Bitmap;
25 import android.graphics.Bitmap.Config;
50 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local
52 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
DecodeUtils.java 20 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
61 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) {
78 public static Bitmap decode(JobContext jc, byte[] bytes, Options options) {
82 public static Bitmap decode(JobContext jc, byte[] bytes, int offset,
100 public static Bitmap decodeThumbnail(
115 public static Bitmap decodeThumbnail(
149 Bitmap result = BitmapFactory.decodeFileDescriptor(fd, null, options);
163 * Decodes the bitmap from the given byte array if the image size is larger than the given
169 public static Bitmap decodeIfBigEnough(JobContext jc, byte[] data
258 Bitmap bitmap = decode(jc, data, offset, length, options); local
285 Bitmap bitmap = DecodeUtils.decode(jc, fileDescriptor, options); local
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
LightingColorFilterTest.java 20 import android.graphics.Bitmap;
25 import android.graphics.Bitmap.Config;
34 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local
35 Canvas canvas = new Canvas(bitmap);
42 assertColor(Color.MAGENTA, bitmap.getPixel(0, 0));
47 assertColor(Color.BLUE, bitmap.getPixel(0, 0));
52 assertColor(Color.CYAN, bitmap.getPixel(0, 0));
55 bitmap.eraseColor(Color.TRANSPARENT)
    [all...]
NinePatchTest.java 23 import android.graphics.Bitmap;
38 private Bitmap mBitmap;
71 Bitmap bitmap = Bitmap.createBitmap(COLOR, 10, 10, Bitmap.Config.ARGB_4444); local
72 assertFalse(NinePatch.isNinePatchChunk(bitmap.getNinePatchChunk()));
78 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale);
80 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight() local
138 Bitmap bitmap = local
    [all...]
  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
RecyclingBitmapDrawable.java 20 import android.graphics.Bitmap;
29 * {@link android.graphics.Bitmap#recycle() recycle()} will be called on this drawable's bitmap.
40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) {
41 super(res, bitmap);
105 Bitmap bitmap = getBitmap(); local
106 return bitmap != null && !bitmap.isRecycled()
    [all...]
  /developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
AssetUtils.java 20 import android.graphics.Bitmap;
58 public static Bitmap loadBitmapAsset(Context context, String asset) {
60 Bitmap bitmap = null; local
64 bitmap = BitmapFactory.decodeStream(is);
77 return bitmap;
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
RecyclingBitmapDrawable.java 20 import android.graphics.Bitmap;
29 * {@link android.graphics.Bitmap#recycle() recycle()} will be called on this drawable's bitmap.
40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) {
41 super(res, bitmap);
105 Bitmap bitmap = getBitmap(); local
106 return bitmap != null && !bitmap.isRecycled()
    [all...]
  /developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
AssetUtils.java 20 import android.graphics.Bitmap;
58 public static Bitmap loadBitmapAsset(Context context, String asset) {
60 Bitmap bitmap = null; local
64 bitmap = BitmapFactory.decodeStream(is);
77 return bitmap;
  /development/samples/XmlAdapters/src/com/example/android/xmladapters/
ContactPhotoBinder.java 23 import android.graphics.Bitmap;
78 // decoding the bitmap could be done in a worker thread too.
79 Bitmap bitmap = BitmapFactory.decodeStream(stream); local
80 d = new BitmapDrawable(mResources, bitmap);
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
RecyclingBitmapDrawable.java 20 import android.graphics.Bitmap;
29 * {@link android.graphics.Bitmap#recycle() recycle()} will be called on this drawable's bitmap.
40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) {
41 super(res, bitmap);
105 Bitmap bitmap = getBitmap(); local
106 return bitmap != null && !bitmap.isRecycled()
    [all...]
  /development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
AssetUtils.java 20 import android.graphics.Bitmap;
58 public static Bitmap loadBitmapAsset(Context context, String asset) {
60 Bitmap bitmap = null; local
64 bitmap = BitmapFactory.decodeStream(is);
77 return bitmap;
  /external/chromium_org/android_webview/java/src/org/chromium/android_webview/
JavaBrowserViewRendererHelper.java 7 import android.graphics.Bitmap;
21 * Provides a Bitmap object with a given width and height used for auxiliary rasterization.
22 * |canvas| is optional and if supplied indicates the Canvas that this Bitmap will be
26 private static Bitmap createBitmap(int width, int height, Canvas canvas) {
33 Bitmap bitmap = null; local
35 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
37 android.util.Log.w(LOGTAG, "Error allocating bitmap");
    [all...]
  /external/chromium_org/cc/blink/
web_external_texture_layer_impl.cc 70 WebExternalBitmapImpl* bitmap = NULL; local
73 bitmap = AllocateBitmap();
74 if (!client_->prepareMailbox(&client_mailbox, bitmap)) {
75 if (bitmap)
76 free_bitmaps_.push_back(bitmap);
81 if (bitmap) {
82 *mailbox = cc::TextureMailbox(bitmap->shared_memory(), bitmap->size());
94 bitmap));
113 WebExternalBitmapImpl* bitmap,
    [all...]
  /external/chromium_org/chrome/browser/bitmap_fetcher/
bitmap_fetcher_service.h 63 // Create a bitmap fetcher for the given |url| and start it. Virtual method
84 virtual void OnFetchComplete(const GURL url, const SkBitmap* bitmap) OVERRIDE;
97 scoped_ptr<const SkBitmap> bitmap; member in struct:BitmapFetcherService::CacheEntry
  /external/chromium_org/chrome/browser/chromeos/login/users/wallpaper/
wallpaper_manager_unittest.cc 57 SkBitmap bitmap; local
58 bitmap.allocN32Pixels(1, 1);
59 bitmap.eraseColor(color);
60 return gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
  /external/chromium_org/chrome/browser/notifications/
notification_conversion_helper.cc 124 const unsigned char* bitmap = local
129 gfx::ConvertSkiaToRGBA(bitmap, pixel_count, rgba_bitmap_data.get());
169 SkBitmap bitmap;
171 if (!bitmap.tryAllocN32Pixels(width, height))
174 // Ensure that our bitmap and our data now refer to the same number of pixels.
175 if (rgba_data_length != bitmap.getSafeSize())
178 uint32_t* pixels = bitmap.getAddr32(0, 0);
193 gfx::ImageSkia skia(gfx::ImageSkiaRep(bitmap, 1.0f));
  /external/chromium_org/chrome/browser/ui/views/status_icons/
status_tray_state_changer_interactive_uitest_win.cc 25 SkBitmap bitmap; variable
27 // Put a real bitmap into "bitmap". 2x2 bitmap of green 32 bit pixels.
28 bitmap.allocN32Pixels(16, 16);
29 bitmap.eraseColor(SK_ColorGREEN);
32 gfx::ImageSkia::CreateFrom1xBitmap(bitmap),

Completed in 2166 milliseconds

1 2 3 4 5 67 8 91011>>