/frameworks/base/native/graphics/jni/ |
H A D | bitmap.cpp | 26 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 D | BitmapFactory.java | 387 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 D | Bitmap.java | 812 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 D | BitmapFactory_Delegate.java | 53 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 D | DetailsOverviewRow.java | 68 * @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 D | PlaybackControlsRow.java | 636 * @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 D | BitmapTest.java | 86 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 D | BitmapDrawableImageView.java | 111 public void setImageBitmap(final Bitmap bm) { argument 112 super.setImageBitmap(bm);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewThumbnail.java | 125 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 D | WallpaperManager.java | 371 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 D | ActivityManager.java | 1176 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 D | RoundedBitmapDrawable.java | 302 Bitmap bm = mBitmap; 303 return (bm == null 304 || bm.hasAlpha()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | Drawable.java | 988 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 D | TextLine.java | 221 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 D | StaticLayout.java | 321 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 D | SettingsHelper.java | 159 IBackupManager bm = IBackupManager.Stub.asInterface( 161 if (bm != null) { 162 bm.setAutoRestore(enabled);
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
H A D | TestService.java | 819 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 D | RecentsPanelView.java | 661 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 D | BitmapRegionDecoder.cpp | 99 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 D | ActivityTestMain.java | 101 private void addThumbnail(LinearLayout container, Bitmap bm, argument 105 if (bm != null) { 106 iv.setImageBitmap(bm);
|
/frameworks/base/core/java/android/provider/ |
H A D | Contacts.java | 640 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 D | MediaStore.java | 856 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 D | Time.java | 1218 long bm = bObject.toMillis(false /* use isDst */); 1219 long diff = am - bm;
|
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 542 * @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 D | WindowManagerService.java | 6088 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...] |