Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java398 Bitmap bm = null; in decodeFile() local
402 bm = decodeStream(stream, null, opts); in decodeFile()
417 return bm; in decodeFile()
471 Bitmap bm = null; in decodeResource() local
478 bm = decodeResourceStream(res, value, is, null, opts); in decodeResource()
492 if (bm == null && opts != null && opts.inBitmap != null) { in decodeResource()
496 return bm; in decodeResource()
529 Bitmap bm; in decodeByteArray() local
533 bm = nativeDecodeByteArray(data, offset, length, opts); in decodeByteArray()
535 if (bm == null && opts != null && opts.inBitmap != null) { in decodeByteArray()
[all …]
DBitmap.java879 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true); in createBitmap() local
881 bm.mDensity = display.densityDpi; in createBitmap()
883 bm.setHasAlpha(hasAlpha); in createBitmap()
885 nativeErase(bm.mNativePtr, 0xff000000); in createBitmap()
890 return bm; in createBitmap()
952 Bitmap bm = nativeCreate(colors, offset, stride, width, height, in createBitmap() local
955 bm.mDensity = display.densityDpi; in createBitmap()
957 return bm; in createBitmap()
1564 Bitmap bm = nativeCreateFromParcel(p);
1565 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
75 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), bitmapCreateFlags, in nativeDecodeStream()
80 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); in nativeDecodeStream()
92 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density); in nativeDecodeStream()
98 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.java1155 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); in createFromResourceStream() local
1156 if (bm != null) { in createFromResourceStream()
1157 byte[] np = bm.getNinePatchChunk(); in createFromResourceStream()
1164 bm.getOpticalInsets(opticalInsets); in createFromResourceStream()
1165 return drawableFromBitmap(res, bm, np, pad, opticalInsets, srcName); in createFromResourceStream()
1240 Bitmap bm = BitmapFactory.decodeFile(pathName); in createFromPath() local
1241 if (bm != null) { in createFromPath()
1242 return drawableFromBitmap(null, bm, null, null, null, pathName); in createFromPath()
1395 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, in drawableFromBitmap() argument
1399 return new NinePatchDrawable(res, bm, np, pad, layoutBounds, srcName); in drawableFromBitmap()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskViewThumbnail.java176 void setThumbnail(Bitmap bm, ActivityManager.TaskThumbnailInfo thumbnailInfo) { in setThumbnail() argument
177 if (bm != null) { in setThumbnail()
178 bm.prepareToDraw(); in setThumbnail()
179 mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in setThumbnail()
181 mThumbnailRect.set(0, 0, bm.getWidth(), bm.getHeight()); in setThumbnail()
/frameworks/base/core/java/android/app/
DWallpaperManager.java431 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM); in getDrawable() local
432 if (bm != null) { in getDrawable()
433 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in getDrawable()
662 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false, FLAG_SYSTEM); in peekDrawable() local
663 if (bm != null) { in peekDrawable()
664 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in peekDrawable()
685 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM); in getFastDrawable() local
686 if (bm != null) { in getFastDrawable()
687 return new FastBitmapDrawable(bm); in getFastDrawable()
700 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false, FLAG_SYSTEM); in peekFastDrawable() local
[all …]
DActivityManager.java1790 Bitmap bm = Bitmap.createBitmap(size.x, size.y, thumbnail.getConfig()); in addAppTask() local
1806 Canvas canvas = new Canvas(bm); in addAppTask()
1810 thumbnail = bm; in addAppTask()
/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/support/core-utils/gingerbread/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/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/base/core/java/com/android/internal/widget/
DCachingIconView.java107 public void setImageBitmap(Bitmap bm) { in setImageBitmap() argument
109 super.setImageBitmap(bm); in setImageBitmap()
/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.java672 public final void setImageBitmap(Context context, Bitmap bm) {
673 mImageDrawable = new BitmapDrawable(context.getResources(), bm);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java263 IBackupManager bm = IBackupManager.Stub.asInterface( in setAutoRestore() local
265 if (bm != null) { in setAutoRestore()
266 bm.setAutoRestore(enabled); in setAutoRestore()
/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.java893 Bitmap bm = BitmapFactory.decodeFile(imagePath); in insertImage() local
894 String ret = insertImage(cr, bm, name, description); in insertImage()
895 bm.recycle(); in insertImage()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java120 private void addThumbnail(LinearLayout container, Bitmap bm, in addThumbnail() argument
124 if (bm != null) { in addThumbnail()
125 iv.setImageBitmap(bm); in addThumbnail()
/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/core/java/android/widget/
DImageView.java650 public void setImageBitmap(Bitmap bm) {
655 mRecycleableBitmapDrawable = new BitmapDrawable(mContext.getResources(), bm);
657 mRecycleableBitmapDrawable.setBitmap(bm);
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java6356 Bitmap bm = screenshotApplicationsInner(null, Display.DEFAULT_DISPLAY, -1, -1, in requestAssistScreenshot()
6359 receiver.send(bm); in requestAssistScreenshot()
6426 Bitmap bm = null; in screenshotApplicationsInner() local
6639 bm = SurfaceControl.screenshot(crop, width, height, minLayer, maxLayer, in screenshotApplicationsInner()
6641 if (bm == null) { in screenshotApplicationsInner()
6650 int[] buffer = new int[bm.getWidth() * bm.getHeight()]; in screenshotApplicationsInner()
6651 bm.getPixels(buffer, 0, bm.getWidth(), 0, 0, bm.getWidth(), bm.getHeight()); in screenshotApplicationsInner()
6671 Bitmap ret = bm.createAshmemBitmap(config); in screenshotApplicationsInner()
6672 bm.recycle(); in screenshotApplicationsInner()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java6435 IBackupManager bm = IBackupManager.Stub.asInterface( in processStartTimedOutLocked() local
6437 bm.agentDisconnected(app.info.packageName); in processStartTimedOutLocked()
17047 IBackupManager bm = IBackupManager.Stub.asInterface( in cleanUpApplicationRecordLocked() local
17049 bm.agentDisconnected(app.info.packageName); in cleanUpApplicationRecordLocked()
17494 IBackupManager bm = IBackupManager.Stub.asInterface( in backupAgentCreated() local
17496 bm.agentConnected(agentPackageName, agent); in backupAgentCreated()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java12480 IBackupManager bm = IBackupManager.Stub.asInterface( in processPendingInstall()
12482 if (bm != null) { in processPendingInstall()
12488 if (bm.isBackupServiceActive(UserHandle.USER_SYSTEM)) { in processPendingInstall()
12489 bm.restoreAtInstall(res.pkg.applicationInfo.packageName, token); in processPendingInstall()
/frameworks/data-binding/compiler/src/main/resources/
DNOTICE.txt541 The content of package org.apache.commons.codec.language.bm has been translated