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

1 2 3 45 6 7 8 91011>>

  /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...]
ExposureFilterTest.java 20 import android.graphics.Bitmap;
52 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); local
53 image.setBitmap(bitmap);
  /frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
FrameSequenceTest.java 19 import android.graphics.Bitmap;
36 HashSet<Bitmap> mBitmaps = new HashSet<Bitmap>();
38 public Bitmap acquireBitmap(int minWidth, int minHeight) {
39 Bitmap bitmap = local
40 Bitmap.createBitmap(minWidth + 1, minHeight + 4, Bitmap.Config.ARGB_8888);
41 mBitmaps.add(bitmap);
42 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;
  /frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/
DividerItemDecorationTest.java 19 import android.graphics.Bitmap;
62 Bitmap bitmap = drawDecoration(decoration, true, true); local
64 // Draw the expected result on a bitmap
65 Bitmap expectedBitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444);
73 assertBitmapEquals(expectedBitmap, bitmap);
75 bitmap.recycle();
76 bitmap = drawDecoration(decoration, false, true)
106 Bitmap bitmap = drawDecoration(decoration, true, true); local
140 Bitmap bitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
DecodeUtils.java 20 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
60 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) {
77 public static Bitmap decode(JobContext jc, byte[] bytes, Options options) {
81 public static Bitmap decode(JobContext jc, byte[] bytes, int offset,
99 public static Bitmap decodeThumbnail(
114 public static Bitmap decodeThumbnail(
148 Bitmap result = BitmapFactory.decodeFileDescriptor(fd, null, options);
162 * Decodes the bitmap from the given byte array if the image size is larger than the given
168 public static Bitmap decodeIfBigEnough(JobContext jc, byte[] data
257 Bitmap bitmap = decode(jc, data, offset, length, options); local
284 Bitmap bitmap = DecodeUtils.decode(jc, fileDescriptor, options); local
    [all...]
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
BitmapPoolTest.java 20 import android.graphics.Bitmap;
48 private Set<Bitmap> fillPoolAndGetPoolContents(final BitmapPool pool, final int width,
50 final Set<Bitmap> returnedBitmaps = new HashSet<Bitmap>();
52 final Bitmap temp = pool.createOrReuseBitmap(width, height);
56 for (final Bitmap b : returnedBitmaps) {
65 final Bitmap bitmap = pool.createOrReuseBitmap(IMAGE_DIM, IMAGE_DIM); local
66 assertFalse(bitmap.isRecycled());
68 pool.reclaimBitmap(bitmap);
    [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...]
  /cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
MediaStoreSaver.java 21 import android.graphics.Bitmap;
35 public static final String savePNG(Bitmap bitmap,
53 bitmap.compress(Bitmap.CompressFormat.PNG, 0, fOut);
  /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/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/
CharacterCardView.java 18 import android.graphics.Bitmap;
59 Bitmap bitmap = BitmapFactory local
61 RoundedBitmapDrawable drawable = RoundedBitmapDrawableFactory.create(getContext().getResources(), bitmap);
63 drawable.setCornerRadius(Math.max(bitmap.getWidth(), bitmap.getHeight()) / 2.0f);
  /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/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
ImageVideoBitmapDecoder.java 1 package com.bumptech.glide.load.resource.bitmap;
3 import android.graphics.Bitmap;
20 public class ImageVideoBitmapDecoder implements ResourceDecoder<ImageVideoWrapper, Bitmap> {
22 private final ResourceDecoder<InputStream, Bitmap> streamDecoder;
23 private final ResourceDecoder<ParcelFileDescriptor, Bitmap> fileDescriptorDecoder;
25 public ImageVideoBitmapDecoder(ResourceDecoder<InputStream, Bitmap> streamDecoder,
26 ResourceDecoder<ParcelFileDescriptor, Bitmap> fileDescriptorDecoder) {
34 public Resource<Bitmap> decode(ImageVideoWrapper source, int width, int height) throws IOException {
35 Resource<Bitmap> result = null;
58 return "ImageVideoBitmapDecoder.com.bumptech.glide.load.resource.bitmap";
    [all...]
  /external/skia/samplecode/
SampleAARects.cpp 16 SkBitmap bitmap; local
17 bitmap.allocN32Pixels(n, n);
18 bitmap.eraseColor(SK_ColorGREEN);
20 SkCanvas canvas(bitmap);
34 return bitmap;
  /external/valgrind/drd/
pub_drd_bitmap.h 26 * A bitmap is a data structure that contains information about which
53 struct bitmap;
68 /* Complete bitmap. */
69 struct bitmap struct
80 struct bitmap* DRD_(bm_new)(void);
81 void DRD_(bm_delete)(struct bitmap* const bm);
82 void DRD_(bm_init)(struct bitmap* const bm);
83 void DRD_(bm_cleanup)(struct bitmap* const bm);
84 void DRD_(bm_access_range)(struct bitmap* const bm,
87 void DRD_(bm_access_range_load)(struct bitmap* const bm
    [all...]
  /frameworks/base/core/java/android/text/style/
ImageSpan.java 21 import android.graphics.Bitmap;
38 * @deprecated Use {@link #ImageSpan(Context, Bitmap)} instead.
41 public ImageSpan(Bitmap b) {
46 * @deprecated Use {@link #ImageSpan(Context, Bitmap, int) instead.
49 public ImageSpan(Bitmap b, int verticalAlignment) {
53 public ImageSpan(Context context, Bitmap b) {
61 public ImageSpan(Context context, Bitmap b, int verticalAlignment) {
135 Bitmap bitmap = null; local
139 bitmap = BitmapFactory.decodeStream(is)
    [all...]
  /frameworks/base/core/jni/android/graphics/
NinePatch.cpp 96 SkBitmap bitmap; local
97 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
102 NinePatch::Draw(NULL, bounds, bitmap, *chunk, NULL, &region);
116 { "nativeGetTransparentRegion", "(Landroid/graphics/Bitmap;JLandroid/graphics/Rect;)J",
  /frameworks/base/libs/hwui/tests/common/scenes/
ListViewAnimation.cpp 84 SkBitmap bitmap = TestUtils::createSkBitmap(size, size); local
85 SkCanvas canvas(bitmap);
101 return bitmap;
107 SkBitmap bitmap = TestUtils::createSkBitmap(size, size);
108 SkCanvas canvas(bitmap);
117 return bitmap;
  /frameworks/base/libs/hwui/tests/unit/
RecordingCanvasTests.cpp 243 SkBitmap bitmap;
244 bitmap.setInfo(SkImageInfo::MakeUnknown(25, 25));
260 canvas.drawBitmap(bitmap, 0, 0, nullptr);
665 SkBitmap bitmap = TestUtils::createSkBitmap(100, 100); local
666 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 100, [&bitmap](RecordingCanvas& canvas) {
667 canvas.drawBitmap(bitmap, 0, 0, nullptr);
674 SkBitmap bitmap = TestUtils::createSkBitmap(100, 100); local
675 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 100, [&bitmap](RecordingCanvas& canvas) {
677 SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bitmap,
688 SkBitmap bitmap = TestUtils::createSkBitmap(100, 100) local
    [all...]

Completed in 733 milliseconds

1 2 3 45 6 7 8 91011>>