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

12

/frameworks/base/native/graphics/jni/
H A Dbitmap.cpp26 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); local
27 if (NULL == bm) {
32 info->width = bm->width();
33 info->height = bm->height();
34 info->stride = bm->rowBytes();
37 switch (bm->colorType()) {
63 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); local
64 if (NULL == bm) {
68 bm->lockPixels();
69 void* addr = bm
86 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java387 Bitmap bm = null;
391 bm = decodeStream(stream, null, opts);
394 If the exception happened on open, bm will be null.
406 return bm;
460 Bitmap bm = null;
467 bm = decodeResourceStream(res, value, is, null, opts);
470 If the exception happened on open, bm will be null.
471 If it happened on close, bm is still valid.
481 if (bm == null && opts != null && opts.inBitmap != null) {
485 return bm;
[all...]
H A DBitmap.java812 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true);
814 bm.mDensity = display.densityDpi;
816 bm.setHasAlpha(hasAlpha);
818 nativeErase(bm.mNativeBitmap, 0xff000000);
823 return bm;
885 Bitmap bm = nativeCreate(colors, offset, stride, width, height,
888 bm.mDensity = display.densityDpi;
890 return bm;
1472 Bitmap bm = nativeCreateFromParcel(p);
1473 if (bm
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java53 Bitmap bm = null;
74 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), bitmapCreateFlags,
79 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk));
91 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density);
97 return bm;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDetailsOverviewRow.java68 * @param bm The bitmap to set.
70 public final void setImageBitmap(Context context, Bitmap bm) { argument
71 mImageDrawable = new BitmapDrawable(context.getResources(), bm);
H A DPlaybackControlsRow.java636 * @param bm The bitmap to set.
638 public final void setImageBitmap(Context context, Bitmap bm) { argument
639 mImageDrawable = new BitmapDrawable(context.getResources(), 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.java111 public void setImageBitmap(final Bitmap bm) { argument
112 super.setImageBitmap(bm);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewThumbnail.java125 void setThumbnail(Bitmap bm) { argument
126 if (bm != null) {
127 mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP,
130 mBitmapRect.set(0, 0, bm.getWidth(), bm.getHeight());
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java371 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true);
372 if (bm != null) {
373 Drawable dr = new BitmapDrawable(mContext.getResources(), bm);
559 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false);
560 if (bm != null) {
561 Drawable dr = new BitmapDrawable(mContext.getResources(), bm);
582 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true);
583 if (bm != null) {
584 return new FastBitmapDrawable(bm);
597 Bitmap bm
[all...]
H A DActivityManager.java1176 Bitmap bm = Bitmap.createBitmap(size.x, size.y, thumbnail.getConfig());
1192 Canvas canvas = new Canvas(bm);
1196 thumbnail = bm;
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable.java302 Bitmap bm = mBitmap;
303 return (bm == null
304 || bm.hasAlpha()
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawable.java988 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts);
989 if (bm != null) {
990 byte[] np = bm.getNinePatchChunk();
997 bm.getOpticalInsets(opticalInsets);
998 return drawableFromBitmap(res, bm, np, pad, opticalInsets, srcName);
1143 Bitmap bm = BitmapFactory.decodeFile(pathName);
1144 if (bm != null) {
1145 return drawableFromBitmap(null, bm, null, null, null, pathName);
1279 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, argument
1283 return new NinePatchDrawable(res, bm, n
[all...]
/frameworks/base/core/java/android/text/
H A DTextLine.java221 Bitmap bm = null;
228 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept);
236 if (j == runLimit || codept == '\t' || bm != null) {
242 } else if (bm != null) {
244 float bitmapHeight = bm.getHeight();
246 float width = bm.getWidth() * scale;
253 c.drawBitmap(bm, null, emojiRect, mPaint);
316 Bitmap bm = null;
323 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept);
331 if (j == runLimit || codept == '\t' || bm !
[all...]
H A DStaticLayout.java321 Bitmap bm = EMOJI_FACTORY.getBitmapFromAndroidPua(emoji);
323 if (bm != null) {
332 float wid = bm.getWidth() * -whichPaint.ascent() / bm.getHeight();
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java159 IBackupManager bm = IBackupManager.Stub.asInterface(
161 if (bm != null) {
162 bm.setAutoRestore(enabled);
/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/SystemUI/src/com/android/systemui/recent/
H A DRecentsPanelView.java661 Bitmap bm = null;
664 bm = ((BitmapDrawable) holder.thumbnailViewDrawable).getBitmap();
665 if (bm.getWidth() == holder.thumbnailViewImage.getWidth() &&
666 bm.getHeight() == holder.thumbnailViewImage.getHeight()) {
672 bm = holder.thumbnailViewImage.getDrawingCache();
674 Bundle opts = (bm == null) ?
677 holder.thumbnailViewImage, bm, 0, 0, null).toBundle();
/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp99 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, width, height); local
100 return GraphicsJNI::createBitmapRegionDecoder(env, bm);
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DActivityTestMain.java101 private void addThumbnail(LinearLayout container, Bitmap bm, argument
105 if (bm != null) {
106 iv.setImageBitmap(bm);
/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.java856 Bitmap bm = BitmapFactory.decodeFile(imagePath);
857 String ret = insertImage(cr, bm, name, description);
858 bm.recycle();
/frameworks/base/core/java/android/text/format/
H A DTime.java1218 long bm = bObject.toMillis(false /* use isDst */);
1219 long diff = am - bm;
/frameworks/base/core/java/android/widget/
H A DImageView.java542 * @param bm The bitmap to set
545 public void setImageBitmap(Bitmap bm) { argument
548 setImageDrawable(new BitmapDrawable(mContext.getResources(), bm));
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowManagerService.java6088 Bitmap bm = null;
6270 bm = SurfaceControl.screenshot(crop, width, height, minLayer, maxLayer,
6272 if (bm == null) {
6284 int[] buffer = new int[bm.getWidth() * bm.getHeight()];
6285 bm.getPixels(buffer, 0, bm.getWidth(), 0, 0, bm.getWidth(), bm.getHeight());
6305 Bitmap ret = bm
[all...]

Completed in 944 milliseconds

12