Home
last modified time | relevance | path

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

123456

/frameworks/base/tests/graphics/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()
DBitmapsSkewActivity.java22 import android.graphics.BitmapFactory;
44 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 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()
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/
DBitmapUtils.kt21 import android.graphics.BitmapFactory
35 val options = BitmapFactory.Options() in loadBitmap()
37 return BitmapFactory.decodeResource(context.resources, bitmapResourceId, options) in loadBitmap()
43 val options = BitmapFactory.Options() in getBitmapSize()
45 val bitmap = BitmapFactory.decodeResource(context.resources, bitmapResourceId, options) in getBitmapSize()
/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()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DOpenGLUtils.java20 import android.graphics.BitmapFactory;
70 final BitmapFactory.Options options = new BitmapFactory.Options(); in createTexture()
86 BitmapFactory.decodeResource( in createTexture()
/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/packages/SystemUI/tests/src/com/android/systemui/graphics/
DImageLoaderTest.kt5 import android.graphics.BitmapFactory
46 BitmapFactory.decodeResource( in setUp()
110 BitmapFactory.decodeResource( in validBitmapResource_loadDrawable_returnsBitmapDrawable()
129 BitmapFactory.decodeResource( in validBitmapResource_loadBitmap_returnsBitmapDrawable()
142 BitmapFactory.decodeResource( in validBitmapUri_returnsBitmapDrawable()
156 val bitmap = BitmapFactory.decodeFile(imgFile.absolutePath) in validBitmapFile_returnsBitmapDrawable()
164 val bitmap = BitmapFactory.decodeFile(imgFile.absolutePath) in validInputStream_returnsBitmapDrawable()
174 BitmapFactory.decodeResource( in validBitmapIcon_returnsBitmapDrawable()
186 BitmapFactory.decodeResource( in validBitmapIcon_loadSize_returnsNull()
197 BitmapFactory.decodeResource( in validUriIcon_returnsBitmapDrawable()
[all …]
/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/graphics/java/android/graphics/
DBitmapRegionDecoder.java238 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { in decodeRegion()
239 BitmapFactory.Options.validate(options); in decodeRegion()
247 BitmapFactory.Options.nativeInBitmap(options), in decodeRegion()
248 BitmapFactory.Options.nativeColorSpace(options)); in decodeRegion()
318 BitmapFactory.Options options, long inBitmapHandle, in nativeDecodeRegion()
/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/libs/systemui/weathereffects/src/com/google/android/wallpaper/weathereffects/data/repository/
DWallpaperFileUtils.kt21 import android.graphics.BitmapFactory
84 val bitmap = BitmapFactory.decodeFile(absolutePath) in importBitmapFromAbsolutePath()
113 val bitmap = BitmapFactory.decodeStream(inputStream) in importBitmapFromLocalStorage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/scroll/
DImageLoader.java22 import android.graphics.BitmapFactory;
73 result.mBitmap = BitmapFactory.decodeStream(in); in load()
94 result.mBitmap = BitmapFactory.decodeStream(in); in load()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DLocalImageResolverTest.java22 import android.graphics.BitmapFactory;
95 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeBitmapIcon_defaultSize_resizeToDefaultSize()
111 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeAdaptiveBitmapIcon_defaultSize_resizeToDefaultSize()
176 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeBitmapIcon_passedNegativeWidth_dontResize()
189 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeBitmapIcon_passedNegativeHeight_dontResize()
213 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeBitmapIcon_passedSize_resizeToDefinedSize()
225 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeAdaptiveBitmapIcon_passedSize_resizeToDefinedSize()
249 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.test32x24)); in resolveImage_smallBitmapIcon_defaultSize_untouched()
264 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.test32x24)); in resolveImage_smallAdaptiveBitmapIcon_defaultSize_untouched()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/utils/
DGraphicsUtils.kt22 import android.graphics.BitmapFactory in <lambda>()
57 BitmapFactory.decodeStream( in <lambda>()
60 BitmapFactory.Options().apply { inPreferredConfig = Bitmap.Config.HARDWARE } in <lambda>()
/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/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/
DSysUiResources.java34 import android.graphics.BitmapFactory;
35 import android.graphics.BitmapFactory.Options;
84 bitmap = BitmapFactory.decodeStream(stream, null, options); in loadIcon()

123456