Searched refs:bm (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java398 Bitmap bm = null;
402 bm = decodeStream(stream, null, opts);
405 If the exception happened on open, bm will be null.
417 return bm;
471 Bitmap bm = null;
478 bm = decodeResourceStream(res, value, is, null, opts);
481 If the exception happened on open, bm will be null.
482 If it happened on close, bm is still valid.
492 if (bm == null && opts != null && opts.inBitmap != null) {
496 return bm;
[all...]
H A DBitmap.java879 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true);
881 bm.mDensity = display.densityDpi;
883 bm.setHasAlpha(hasAlpha);
885 nativeErase(bm.mNativePtr, 0xff000000);
890 return bm;
952 Bitmap bm = nativeCreate(colors, offset, stride, width, height,
955 bm.mDensity = display.densityDpi;
957 return bm;
1564 Bitmap bm = nativeCreateFromParcel(p);
1565 if (bm
[all...]
/frameworks/base/native/graphics/jni/
H A Dbitmap.cpp30 SkBitmap bm; local
31 GraphicsJNI::getSkBitmap(env, jbitmap, &bm);
34 info->width = bm.width();
35 info->height = bm.height();
36 info->stride = bm.rowBytes();
39 switch (bm.colorType()) {
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java53 Bitmap bm = null;
75 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), bitmapCreateFlags,
80 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk));
92 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density);
98 return bm;
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapTest.java86 Bitmap bm = Bitmap.createBitmap(colors, 10, 10,
90 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10);
92 int p = bm.getPixel(i % 10, i / 10);
97 int p = bm.getPixel(i % 10, i / 10);
112 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565);
115 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10);
117 int p = bm.getPixel(i % 10, i / 10);
/frameworks/opt/bitmap/src/com/android/bitmap/view/
H A DBitmapDrawableImageView.java127 public void setImageBitmap(final Bitmap bm) { argument
128 super.setImageBitmap(bm);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawable.java1152 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts);
1153 if (bm != null) {
1154 byte[] np = bm.getNinePatchChunk();
1161 bm.getOpticalInsets(opticalInsets);
1162 return drawableFromBitmap(res, bm, np, pad, opticalInsets, srcName);
1237 Bitmap bm = BitmapFactory.decodeFile(pathName);
1238 if (bm != null) {
1239 return drawableFromBitmap(null, bm, null, null, null, pathName);
1392 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, argument
1396 return new NinePatchDrawable(res, bm, n
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewThumbnail.java165 void setThumbnail(Bitmap bm, ActivityManager.TaskThumbnailInfo thumbnailInfo) { argument
166 if (bm != null) {
167 mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);
169 mThumbnailRect.set(0, 0, bm.getWidth(), bm.getHeight());
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDetailsOverviewRow.java219 * @param bm The bitmap to set.
221 public final void setImageBitmap(Context context, Bitmap bm) { argument
222 mImageDrawable = new BitmapDrawable(context.getResources(), bm);
H A DPlaybackControlsRow.java670 * @param bm The bitmap to set.
672 public final void setImageBitmap(Context context, Bitmap bm) { argument
673 mImageDrawable = new BitmapDrawable(context.getResources(), bm);
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java419 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM);
420 if (bm != null) {
421 Drawable dr = new BitmapDrawable(mContext.getResources(), bm);
650 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false, FLAG_SYSTEM);
651 if (bm != null) {
652 Drawable dr = new BitmapDrawable(mContext.getResources(), bm);
673 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM);
674 if (bm != null) {
675 return new FastBitmapDrawable(bm);
688 Bitmap bm
[all...]
H A DActivityManager.java1744 Bitmap bm = Bitmap.createBitmap(size.x, size.y, thumbnail.getConfig());
1760 Canvas canvas = new Canvas(bm);
1764 thumbnail = bm;
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable.java367 Bitmap bm = mBitmap;
368 return (bm == null
369 || bm.hasAlpha()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
H A DTestService.java819 Bitmap bm = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888);
838 Bitmap bm = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888);
839 bm.recycle();
858 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(),
878 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(),
880 bm.recycle();
899 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(),
919 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(),
921 bm.recycle();
940 Bitmap bm
[all...]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java264 IBackupManager bm = IBackupManager.Stub.asInterface(
266 if (bm != null) {
267 bm.setAutoRestore(enabled);
/frameworks/base/core/java/android/provider/
H A DContacts.java640 Bitmap bm = stream != null ? BitmapFactory.decodeStream(stream, null, options) : null;
641 if (bm == null) {
642 bm = loadPlaceholderPhoto(placeholderImageResource, context, options);
644 return bm;
H A DMediaStore.java893 Bitmap bm = BitmapFactory.decodeFile(imagePath);
894 String ret = insertImage(cr, bm, name, description);
895 bm.recycle();
/frameworks/base/core/java/android/text/format/
H A DTime.java1246 long bm = bObject.toMillis(false /* use isDst */);
1247 long diff = am - bm;
/frameworks/base/core/java/android/widget/
H A DImageView.java623 * @param bm The bitmap to set
626 public void setImageBitmap(Bitmap bm) { argument
631 mRecycleableBitmapDrawable = new BitmapDrawable(mContext.getResources(), bm);
633 mRecycleableBitmapDrawable.setBitmap(bm);
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DActivityTestMain.java120 private void addThumbnail(LinearLayout container, Bitmap bm, argument
124 if (bm != null) {
125 iv.setImageBitmap(bm);
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowManagerService.java6159 Bitmap bm = screenshotApplicationsInner(null, Display.DEFAULT_DISPLAY, -1, -1,
6162 receiver.send(bm);
6216 Bitmap bm = null;
6418 bm = SurfaceControl.screenshot(crop, width, height, minLayer, maxLayer,
6420 if (bm == null) {
6429 int[] buffer = new int[bm.getWidth() * bm.getHeight()];
6430 bm.getPixels(buffer, 0, bm.getWidth(), 0, 0, bm
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityManagerService.java6348 IBackupManager bm = IBackupManager.Stub.asInterface(
6350 bm.agentDisconnected(app.info.packageName);
16761 IBackupManager bm = IBackupManager.Stub.asInterface(
16763 bm.agentDisconnected(app.info.packageName);
17206 IBackupManager bm = IBackupManager.Stub.asInterface(
17208 bm.agentConnected(agentPackageName, agent);
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageManagerService.java12354 IBackupManager bm = IBackupManager.Stub.asInterface(
12356 if (bm != null) {
12362 if (bm.isBackupServiceActive(UserHandle.USER_SYSTEM)) {
12363 bm.restoreAtInstall(res.pkg.applicationInfo.packageName, token);

Completed in 3480 milliseconds