Home
last modified time | relevance | path

Searched refs:bm (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java387 Bitmap bm = null; in decodeFile() local
391 bm = decodeStream(stream, null, opts); in decodeFile()
406 return bm; in decodeFile()
460 Bitmap bm = null; in decodeResource() local
467 bm = decodeResourceStream(res, value, is, null, opts); in decodeResource()
481 if (bm == null && opts != null && opts.inBitmap != null) { in decodeResource()
485 return bm; in decodeResource()
518 Bitmap bm; in decodeByteArray() local
522 bm = nativeDecodeByteArray(data, offset, length, opts); in decodeByteArray()
524 if (bm == null && opts != null && opts.inBitmap != null) { in decodeByteArray()
[all …]
DBitmap.java831 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true); in createBitmap() local
833 bm.mDensity = display.densityDpi; in createBitmap()
835 bm.setHasAlpha(hasAlpha); in createBitmap()
837 nativeErase(bm.mFinalizer.mNativeBitmap, 0xff000000); in createBitmap()
842 return bm; in createBitmap()
904 Bitmap bm = nativeCreate(colors, offset, stride, width, height, in createBitmap() local
907 bm.mDensity = display.densityDpi; in createBitmap()
909 return bm; in createBitmap()
1516 Bitmap bm = nativeCreateFromParcel(p);
1517 if (bm == null) {
[all …]
/frameworks/base/native/graphics/jni/
Dbitmap.cpp30 SkBitmap bm; in AndroidBitmap_getInfo() local
31 GraphicsJNI::getSkBitmap(env, jbitmap, &bm); in AndroidBitmap_getInfo()
34 info->width = bm.width(); in AndroidBitmap_getInfo()
35 info->height = bm.height(); in AndroidBitmap_getInfo()
36 info->stride = bm.rowBytes(); in AndroidBitmap_getInfo()
39 switch (bm.colorType()) { in AndroidBitmap_getInfo()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java53 Bitmap bm = null; in nativeDecodeStream() local
74 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), bitmapCreateFlags, in nativeDecodeStream()
79 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); in nativeDecodeStream()
91 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density); in nativeDecodeStream()
97 return bm; in nativeDecodeStream()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapTest.java86 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, in testGetPixelsWithAlpha() local
90 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); in testGetPixelsWithAlpha()
92 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha()
97 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha()
112 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565); in testGetPixelsWithoutAlpha() local
115 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); in testGetPixelsWithoutAlpha()
117 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithoutAlpha()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java1080 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); in createFromResourceStream() local
1081 if (bm != null) { in createFromResourceStream()
1082 byte[] np = bm.getNinePatchChunk(); in createFromResourceStream()
1089 bm.getOpticalInsets(opticalInsets); in createFromResourceStream()
1090 return drawableFromBitmap(res, bm, np, pad, opticalInsets, srcName); in createFromResourceStream()
1230 Bitmap bm = BitmapFactory.decodeFile(pathName); in createFromPath() local
1231 if (bm != null) { in createFromPath()
1232 return drawableFromBitmap(null, bm, null, null, null, pathName); in createFromPath()
1366 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, in drawableFromBitmap() argument
1370 return new NinePatchDrawable(res, bm, np, pad, layoutBounds, srcName); in drawableFromBitmap()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskViewThumbnail.java125 void setThumbnail(Bitmap bm) { in setThumbnail() argument
126 if (bm != null) { in setThumbnail()
127 mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, in setThumbnail()
130 mBitmapRect.set(0, 0, bm.getWidth(), bm.getHeight()); in setThumbnail()
/frameworks/base/core/java/android/app/
DWallpaperManager.java384 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); in getDrawable() local
385 if (bm != null) { in getDrawable()
386 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in getDrawable()
572 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); in peekDrawable() local
573 if (bm != null) { in peekDrawable()
574 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in peekDrawable()
595 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); in getFastDrawable() local
596 if (bm != null) { in getFastDrawable()
597 return new FastBitmapDrawable(bm); in getFastDrawable()
610 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); in peekFastDrawable() local
[all …]
DActivityManager.java1242 Bitmap bm = Bitmap.createBitmap(size.x, size.y, thumbnail.getConfig()); in addAppTask() local
1258 Canvas canvas = new Canvas(bm); in addAppTask()
1262 thumbnail = bm; in addAppTask()
/frameworks/base/core/java/android/text/
DTextLine.java221 Bitmap bm = null; in draw() local
228 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept); in draw()
236 if (j == runLimit || codept == '\t' || bm != null) { in draw()
242 } else if (bm != null) { in draw()
244 float bitmapHeight = bm.getHeight(); in draw()
246 float width = bm.getWidth() * scale; in draw()
253 c.drawBitmap(bm, null, emojiRect, mPaint); in draw()
316 Bitmap bm = null; in measure() local
323 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept); in measure()
331 if (j == runLimit || codept == '\t' || bm != null) { in measure()
[all …]
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java819 Bitmap bm = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888); in onRun() local
838 Bitmap bm = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888); in onRun() local
839 bm.recycle(); in onRun()
858 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local
878 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local
880 bm.recycle(); in onRun()
899 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local
919 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local
921 bm.recycle(); in onRun()
940 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/view/
DBitmapDrawableImageView.java127 public void setImageBitmap(final Bitmap bm) { in setImageBitmap() argument
128 super.setImageBitmap(bm); in setImageBitmap()
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java367 Bitmap bm = mBitmap; in getOpacity() local
368 return (bm == null in getOpacity()
369 || bm.hasAlpha() in getOpacity()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DDetailsOverviewRow.java221 public final void setImageBitmap(Context context, Bitmap bm) { in setImageBitmap() argument
222 mImageDrawable = new BitmapDrawable(context.getResources(), bm); in setImageBitmap()
DPlaybackControlsRow.java655 public final void setImageBitmap(Context context, Bitmap bm) {
656 mImageDrawable = new BitmapDrawable(context.getResources(), bm);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java251 IBackupManager bm = IBackupManager.Stub.asInterface( in setAutoRestore() local
253 if (bm != null) { in setAutoRestore()
254 bm.setAutoRestore(enabled); in setAutoRestore()
/frameworks/base/core/jni/android/graphics/
DBitmapRegionDecoder.cpp97 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, width, height); in createBitmapRegionDecoder() local
98 return GraphicsJNI::createBitmapRegionDecoder(env, bm); in createBitmapRegionDecoder()
/frameworks/base/core/java/android/provider/
DContacts.java640 Bitmap bm = stream != null ? BitmapFactory.decodeStream(stream, null, options) : null; in loadContactPhoto() local
641 if (bm == null) { in loadContactPhoto()
642 bm = loadPlaceholderPhoto(placeholderImageResource, context, options); in loadContactPhoto()
644 return bm; in loadContactPhoto()
DMediaStore.java887 Bitmap bm = BitmapFactory.decodeFile(imagePath); in insertImage() local
888 String ret = insertImage(cr, bm, name, description); in insertImage()
889 bm.recycle(); in insertImage()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java119 private void addThumbnail(LinearLayout container, Bitmap bm, in addThumbnail() argument
123 if (bm != null) { in addThumbnail()
124 iv.setImageBitmap(bm); in addThumbnail()
/frameworks/base/core/java/android/widget/
DImageView.java595 public void setImageBitmap(Bitmap bm) { in setImageBitmap() argument
601 mContext.getResources(), bm); in setImageBitmap()
603 mRecycleableBitmapDrawable.setBitmap(bm); in setImageBitmap()
/frameworks/base/core/java/android/text/format/
DTime.java1246 long bm = bObject.toMillis(false /* use isDst */); in compare() local
1247 long diff = am - bm; in compare()
/frameworks/base/docs/html/training/cloudsync/
Dbackupapi.jd175 BackupManager bm = new BackupManager(this);
176 bm.dataChanged();
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java143 BackupManager bm = new BackupManager(mContext); in onEvent() local
144 bm.dataChanged(); in onEvent()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java6135 Bitmap bm = screenshotApplicationsInner(null, Display.DEFAULT_DISPLAY, -1, -1, in requestAssistScreenshot()
6138 receiver.send(bm); in requestAssistScreenshot()
6185 Bitmap bm = null; in screenshotApplicationsInner() local
6388 bm = SurfaceControl.screenshot(crop, width, height, minLayer, maxLayer, in screenshotApplicationsInner()
6390 if (bm == null) { in screenshotApplicationsInner()
6402 int[] buffer = new int[bm.getWidth() * bm.getHeight()]; in screenshotApplicationsInner()
6403 bm.getPixels(buffer, 0, bm.getWidth(), 0, 0, bm.getWidth(), bm.getHeight()); in screenshotApplicationsInner()
6422 Bitmap ret = bm.createAshmemBitmap(); in screenshotApplicationsInner()
6423 bm.recycle(); in screenshotApplicationsInner()

12