Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/com/android/internal/widget/
DLocalImageResolver.java22 import android.graphics.BitmapFactory;
39 BitmapFactory.Options onlyBoundsOptions = getBoundsOptionsForImage(uri, context); in resolveImage()
53 BitmapFactory.Options bitmapOptions = new BitmapFactory.Options(); in resolveImage()
56 Bitmap bitmap = BitmapFactory.decodeStream(input, null, bitmapOptions); in resolveImage()
61 private static BitmapFactory.Options getBoundsOptionsForImage(Uri uri, Context context) in getBoundsOptionsForImage()
64 BitmapFactory.Options onlyBoundsOptions = new BitmapFactory.Options(); in getBoundsOptionsForImage()
66 BitmapFactory.decodeStream(input, null, onlyBoundsOptions); in getBoundsOptionsForImage()
/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/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DUtils.java21 import android.graphics.BitmapFactory;
97 BitmapFactory.Options options, int reqWidth, int reqHeight) { in calculateInSampleSize()
123 final BitmapFactory.Options options = new BitmapFactory.Options(); in decodeSampledBitmapFromResource()
125 BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
132 return BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
/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/tests/java_api/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
DHelloComputeNDK.java21 import android.graphics.BitmapFactory;
57 final BitmapFactory.Options options = new BitmapFactory.Options(); in loadBitmap()
59 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()
DAvgBrightnessFilterTest.java21 import android.graphics.BitmapFactory;
47 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); in testBrightnessFilter()
/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/java/android/graphics/
DBitmapRegionDecoder.java190 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { in decodeRegion()
191 BitmapFactory.Options.validate(options); in decodeRegion()
199 BitmapFactory.Options.nativeInBitmap(options), in decodeRegion()
200 BitmapFactory.Options.nativeColorSpace(options)); in decodeRegion()
270 BitmapFactory.Options options, long inBitmapHandle, in nativeDecodeRegion()
DLargeBitmap.java52 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { in decodeRegion()
114 BitmapFactory.Options options); in nativeDecodeRegion()
/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/tests/coretests/src/android/graphics/
DGraphicsPerformanceTests.java142 BitmapFactory.decodeResource(mResources, R.drawable.test16x12); in testDecodeBitmap()
143 BitmapFactory.decodeResource(mResources, R.drawable.test32x24); in testDecodeBitmap()
144 BitmapFactory.decodeResource(mResources, R.drawable.test64x48); in testDecodeBitmap()
145 BitmapFactory.decodeResource(mResources, R.drawable.test128x96); in testDecodeBitmap()
146 BitmapFactory.decodeResource(mResources, R.drawable.test256x192); in testDecodeBitmap()
147 BitmapFactory.decodeResource(mResources, R.drawable.test320x240); in testDecodeBitmap()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DRGBZ.java22 import android.graphics.BitmapFactory;
54 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uri)); in RGBZ()
74 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in RGBZ()
96 Bitmap image = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in createFromBitmapDepthmap()
107 Bitmap image = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in createFromPFMDepthmap()
/frameworks/rs/tests/java_api/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/base/services/core/java/com/android/server/wm/
DTaskSnapshotLoader.java26 import android.graphics.BitmapFactory;
27 import android.graphics.BitmapFactory.Options;
79 final Bitmap bitmap = BitmapFactory.decodeFile(bitmapFile.getPath(), options); in loadTask()
/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/rs/tests/java_api/SampleTest/src/com/android/rs/sample/
DSampleRSActivity.java22 import android.graphics.BitmapFactory;
145 final BitmapFactory.Options options = new BitmapFactory.Options(); in loadBitmap()
147 Bitmap b = BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java23 import android.graphics.BitmapFactory;
217 bitmap = BitmapFactory.decodeResource(getResources(), id); in loadAndPrintDpi()
219 BitmapFactory.Options opts = new BitmapFactory.Options(); in loadAndPrintDpi()
221 bitmap = BitmapFactory.decodeResource(getResources(), id, opts); in loadAndPrintDpi()
/frameworks/rs/tests/java_api/GenImages/src/com/android/rs/genimage/
DGenImage.java28 import android.graphics.BitmapFactory;
44 final BitmapFactory.Options options = new BitmapFactory.Options(); in loadBitmap()
46 return BitmapFactory.decodeResource(context.getResources(), resource, options); in loadBitmap()

123456