Home
last modified time | relevance | path

Searched refs:BitmapFactory (Results 1 – 25 of 135) sorted by relevance

123456

/frameworks/base/docs/html/training/displaying-bitmaps/
Dload-bitmap.jd44 <p>The {@link android.graphics.BitmapFactory} class provides several decoding methods ({@link
45 android.graphics.BitmapFactory#decodeByteArray(byte[],int,int,android.graphics.BitmapFactory.Option…
47 android.graphics.BitmapFactory#decodeFile(java.lang.String,android.graphics.BitmapFactory.Options)
49 android.graphics.BitmapFactory#decodeResource(android.content.res.Resources,int,android.graphics.Bi…
54 options via the {@link android.graphics.BitmapFactory.Options} class. Setting the {@link
55 android.graphics.BitmapFactory.Options#inJustDecodeBounds} property to {@code true} while decoding
57 android.graphics.BitmapFactory.Options#outWidth}, {@link
58 android.graphics.BitmapFactory.Options#outHeight} and {@link
59 android.graphics.BitmapFactory.Options#outMimeType}. This technique allows you to read the
64 BitmapFactory.Options options = new BitmapFactory.Options();
[all …]
Dmanage-memory.jd144 {@link android.graphics.BitmapFactory.Options#inBitmap BitmapFactory.Options.inBitmap}
146 {@link android.graphics.BitmapFactory.Options Options} object
150 {@link android.graphics.BitmapFactory.Options#inBitmap} can be used. In particular, before Android
152 {@link android.graphics.BitmapFactory.Options#inBitmap} documentation.
161 {@link android.graphics.BitmapFactory.Options#inBitmap}:
204 final BitmapFactory.Options options = new BitmapFactory.Options();
206 BitmapFactory.decodeFile(filename, options);
214 return BitmapFactory.decodeFile(filename, options);
219 {@link android.graphics.BitmapFactory.Options#inBitmap}. Note that this
220 method only sets a value for {@link android.graphics.BitmapFactory.Options#inBitmap}
[all …]
/frameworks/base/media/java/android/media/
DThumbnailUtils.java21 import android.graphics.BitmapFactory;
105 BitmapFactory.Options options = new BitmapFactory.Options(); in createImageThumbnail()
108 BitmapFactory.decodeFileDescriptor(fd, null, options); in createImageThumbnail()
119 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options); in createImageThumbnail()
250 private static int computeSampleSize(BitmapFactory.Options options, in computeSampleSize()
268 private static int computeInitialSampleSize(BitmapFactory.Options options, in computeInitialSampleSize()
304 BitmapFactory.Options options) { in makeBitmap()
309 if (options == null) options = new BitmapFactory.Options(); in makeBitmap()
314 BitmapFactory.decodeFileDescriptor(fd, null, options); in makeBitmap()
325 b = BitmapFactory.decodeFileDescriptor(fd, null, options); in makeBitmap()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DBitmapsAlphaActivity.java22 import android.graphics.BitmapFactory;
52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
54 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
56 BitmapFactory.Options opts = new BitmapFactory.Options(); in BitmapsView()
58 mBitmap3 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset3, opts); in BitmapsView()
DBitmapsActivity.java22 import android.graphics.BitmapFactory;
63 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
64 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
69 BitmapFactory.Options opts = new BitmapFactory.Options(); in BitmapsView()
71 … Bitmap bitmap = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1, opts); in BitmapsView()
DMipMapActivity.java22 import android.graphics.BitmapFactory;
52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.very_large_photo); in BitmapsView()
53 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.very_large_photo); in BitmapsView()
DBitmapsRectActivity.java22 import android.graphics.BitmapFactory;
50 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
51 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
DColorFiltersActivity.java22 import android.graphics.BitmapFactory;
52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
53 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
DAlpha8BitmapActivity.java22 import android.graphics.BitmapFactory;
49 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.spot_mask); in BitmapsView()
55 texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
DBitmapsSkewActivity.java22 import android.graphics.BitmapFactory;
44 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java24 import android.graphics.BitmapFactory;
49 Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options); in decodeRegion()
89 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { in decodeRegion()
102 Bitmap b = BitmapFactory.decodeFile(pathName); in newInstance()
109 Bitmap b = BitmapFactory.decodeStream(is); in newInstance()
121 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { in decodeRegion()
185 BitmapFactory.Options opts = new BitmapFactory.Options(); in loadInBackground()
221 public abstract Bitmap loadPreviewBitmap(BitmapFactory.Options options); in loadPreviewBitmap()
240 public Bitmap loadPreviewBitmap(BitmapFactory.Options options) { in loadPreviewBitmap()
241 return BitmapFactory.decodeFile(mPath, options); in loadPreviewBitmap()
[all …]
/frameworks/rs/java/tests/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
DHelloComputeNDK.java21 import android.graphics.BitmapFactory;
58 final BitmapFactory.Options options = new BitmapFactory.Options(); in loadBitmap()
60 return BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DIfElseFilterTest.java22 import android.graphics.BitmapFactory;
59 Bitmap videoBitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); in testIfElseFilterTrue()
61 Bitmap imageBitmap = BitmapFactory.decodeStream(assetMgr.open("XZZ019.jpg")); in testIfElseFilterTrue()
90 Bitmap videoBitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); in testIfElseFilterFalse()
92 Bitmap imageBitmap = BitmapFactory.decodeStream(assetMgr.open("XZZ019.jpg")); in testIfElseFilterFalse()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java22 import android.graphics.BitmapFactory;
107 final BitmapFactory.Options opts = new BitmapFactory.Options(); in createLocalBitmap()
143 final BitmapFactory.Options opts) throws FileNotFoundException { in decodeStream()
155 final Bitmap originalBitmap = BitmapFactory.decodeStream(is, outPadding, opts); in decodeStream()
198 final BitmapFactory.Options opts = new BitmapFactory.Options(); in getImageBounds()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DGraphicsPerformanceTests.java23 import android.graphics.BitmapFactory;
145 BitmapFactory.decodeResource(mResources, R.drawable.test16x12); in testDecodeBitmap()
146 BitmapFactory.decodeResource(mResources, R.drawable.test32x24); in testDecodeBitmap()
147 BitmapFactory.decodeResource(mResources, R.drawable.test64x48); in testDecodeBitmap()
148 BitmapFactory.decodeResource(mResources, R.drawable.test128x96); in testDecodeBitmap()
149 BitmapFactory.decodeResource(mResources, R.drawable.test256x192); in testDecodeBitmap()
150 BitmapFactory.decodeResource(mResources, R.drawable.test320x240); in testDecodeBitmap()
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DImageRequest.java28 import android.graphics.BitmapFactory;
172 BitmapFactory.Options decodeOptions = new BitmapFactory.Options(); in doParse()
176 bitmap = BitmapFactory.decodeByteArray(data, 0, data.length, decodeOptions); in doParse()
180 BitmapFactory.decodeByteArray(data, 0, data.length, decodeOptions); in doParse()
197 BitmapFactory.decodeByteArray(data, 0, data.length, decodeOptions); in doParse()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java39 import android.graphics.BitmapFactory;
817 BitmapFactory.Options opts = new BitmapFactory.Options(); in onRun()
836 BitmapFactory.Options opts = new BitmapFactory.Options(); in onRun()
856 BitmapFactory.Options opts = new BitmapFactory.Options(); in onRun()
858 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun()
876 BitmapFactory.Options opts = new BitmapFactory.Options(); in onRun()
878 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun()
897 BitmapFactory.Options opts = new BitmapFactory.Options(); in onRun()
899 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun()
917 BitmapFactory.Options opts = new BitmapFactory.Options(); in onRun()
[all …]
/frameworks/base/core/java/android/app/
DWallpaperManager.java29 import android.graphics.BitmapFactory;
306 BitmapFactory.Options options = new BitmapFactory.Options(); in getCurrentWallpaperLocked()
307 return BitmapFactory.decodeFileDescriptor( in getCurrentWallpaperLocked()
329 BitmapFactory.Options options = new BitmapFactory.Options(); in getDefaultWallpaperLocked()
330 return BitmapFactory.decodeStream(is, null, options); in getDefaultWallpaperLocked()
431 Bitmap fullSize = BitmapFactory.decodeStream(is, null, null); in getBuiltInDrawable()
437 BitmapFactory.Options options = new BitmapFactory.Options(); in getBuiltInDrawable()
439 BitmapFactory.decodeStream(is, null, options); in getBuiltInDrawable()
488 BitmapFactory.Options options = new BitmapFactory.Options(); in getBuiltInDrawable()
501 BitmapFactory.Options options = new BitmapFactory.Options(); in getBuiltInDrawable()
[all …]
/frameworks/base/core/java/android/app/backup/
DWallpaperBackupHelper.java21 import android.graphics.BitmapFactory;
140 BitmapFactory.Options options = new BitmapFactory.Options(); in restoreEntity()
142 BitmapFactory.decodeFile(STAGE_FILE, options); in restoreEntity()
/frameworks/support/v4/java/android/support/v4/graphics/drawable/
DRoundedBitmapDrawableFactory.java21 import android.graphics.BitmapFactory;
78 final RoundedBitmapDrawable drawable = create(res, BitmapFactory.decodeFile(filepath)); in create()
91 final RoundedBitmapDrawable drawable = create(res, BitmapFactory.decodeStream(is)); in create()
/frameworks/support/v4/kitkat/android/support/v4/print/
DPrintHelperKitkat.java22 import android.graphics.BitmapFactory;
56 BitmapFactory.Options mDecodeOptions = null;
504 BitmapFactory.Options opt = new BitmapFactory.Options(); in loadConstrainedBitmap()
529 BitmapFactory.Options decodeOptions = null; in loadConstrainedBitmap()
531 mDecodeOptions = new BitmapFactory.Options(); in loadConstrainedBitmap()
549 private Bitmap loadBitmap(Uri uri, BitmapFactory.Options o) throws FileNotFoundException { in loadBitmap()
556 return BitmapFactory.decodeStream(is, null, o); in loadBitmap()
/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/
DMaxColorsTest.java20 import android.graphics.BitmapFactory;
34 mSource = BitmapFactory.decodeResource(getInstrumentation().getContext().getResources(), in setUp()
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
DBallsRS.java23 import android.graphics.BitmapFactory;
76 BitmapFactory.Options options = new BitmapFactory.Options(); in loadTexture()
78 Bitmap bp = BitmapFactory.decodeResource(mRes, id, options); in loadTexture()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java20 import android.graphics.BitmapFactory;
56 private final BitmapFactory.Options mOpts = new BitmapFactory.Options();
213 BitmapFactory.decodeFileDescriptor(fd.getFileDescriptor(), null, mOpts); in decode()
215 BitmapFactory.decodeStream(in, null, mOpts); in decode()
491 result = BitmapFactory.decodeFileDescriptor(fd.getFileDescriptor(), null, mOpts); in decode()
493 result = BitmapFactory.decodeStream(in, null, mOpts); in decode()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DFillTest.java23 import android.graphics.BitmapFactory;
39 private final BitmapFactory.Options mOptionsARGB = new BitmapFactory.Options();
132 Bitmap b = BitmapFactory.decodeResource(mRes, id, mOptionsARGB); in loadTextureARGB()

123456