HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 126 - 150 of 1029) sorted by null

1 2 3 4 56 7 8 91011>>

  /frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/graphics/
RoundedBitmapDrawableActivity.java 20 import android.graphics.Bitmap;
45 // Create a bitmap and set it circular.
46 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), IMAGE_RES); local
47 mRoundedBitmapDrawable = RoundedBitmapDrawableFactory.create(getResources(), bitmap);
  /packages/apps/Camera2/src/com/android/camera/
Thumbnail.java 19 import android.graphics.Bitmap;
25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) {
29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) {
33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd,
35 Bitmap bitmap = null; local
43 bitmap = retriever.getFrameAtTime(-1);
55 if (bitmap == null) return null;
57 // Scale down the bitmap if it is bigger than we need.
58 int width = bitmap.getWidth()
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/util/
DrawableConverter.java 20 import android.graphics.Bitmap;
35 /** Converts the provided drawable to a bitmap using the drawable's intrinsic width and height. */
37 public static Bitmap drawableToBitmap(@Nullable Drawable drawable) {
42 * Converts the provided drawable to a bitmap with the specified width and height.
48 public static Bitmap drawableToBitmap(@Nullable Drawable drawable, int width, int height) {
53 Bitmap bitmap; local
55 bitmap = ((BitmapDrawable) drawable).getBitmap();
58 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888)
86 Bitmap bitmap = drawableToBitmap(photo); local
    [all...]
  /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;
  /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/FrameSequenceSamples/src/com/android/framesequence/samples/
FrameSequenceTest.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;
  /frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DividerItemDecorationTest.java 23 import android.graphics.Bitmap;
71 Bitmap bitmap = drawDecoration(decoration, true, true); local
73 // Draw the expected result on a bitmap
74 Bitmap expectedBitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444);
82 assertBitmapEquals(expectedBitmap, bitmap);
84 bitmap.recycle();
85 bitmap = drawDecoration(decoration, false, true)
115 Bitmap bitmap = drawDecoration(decoration, true, true); local
149 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...]
  /packages/experimental/KBars/app/src/main/java/js/kbars/
CameraBackgroundMenuItem.java 5 import android.graphics.Bitmap;
6 import android.graphics.Bitmap.CompressFormat;
37 Bitmap bitmap = (Bitmap) data.getParcelableExtra("data"); local
38 if (bitmap != null) {
39 setTargetBackground(bitmap);
40 saveBitmap(bitmap);
53 private void saveBitmap(Bitmap bitmap) {
75 Bitmap bitmap = loadBitmapFromCache(); local
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
LightingColorFilterTest.java 19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.Config;
44 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local
45 Canvas canvas = new Canvas(bitmap);
52 verifyColor(Color.MAGENTA, bitmap.getPixel(0, 0));
57 verifyColor(Color.BLUE, bitmap.getPixel(0, 0));
62 verifyColor(Color.CYAN, bitmap.getPixel(0, 0));
65 bitmap.eraseColor(Color.TRANSPARENT)
    [all...]
NinePatchTest.java 26 import android.graphics.Bitmap;
53 private Bitmap mBitmap;
106 Bitmap bitmap = Bitmap.createBitmap(COLOR, 10, 10, Bitmap.Config.ARGB_4444); local
107 assertFalse(NinePatch.isNinePatchChunk(bitmap.getNinePatchChunk()));
113 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale);
115 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight() local
174 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/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/ImageMagick/coders/
clipboard.c 151 BITMAP
152 bitmap;
169 GetObject(bitmapH,sizeof(BITMAP),(LPSTR) &bitmap);
172 image->columns=bitmap.bmWidth;
173 image->rows=bitmap.bmHeight;
179 Initialize the bitmap header info.
149 bitmap; local

Completed in 743 milliseconds

1 2 3 4 56 7 8 91011>>