/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 | 817 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true); 819 bm.mDensity = display.densityDpi; 821 bm.setHasAlpha(hasAlpha); 823 nativeErase(bm.mNativeBitmap, 0xff000000); 828 return bm; 890 Bitmap bm = nativeCreate(colors, offset, stride, width, height, 893 bm.mDensity = display.densityDpi; 895 return bm; 1477 Bitmap bm = nativeCreateFromParcel(p); 1478 if (bm [all...] |
/frameworks/base/media/tests/omxjpegdecoder/ |
H A D | omx_jpeg_decoder.cpp | 100 SkBitmap* bm, Mode mode) { 108 bm, getPrefColorType(k32Bit_SrcDepth, false), 117 if (!this->allocPixelRef(bm, NULL)) { 123 return decodeSource(decoder, source, bm); 143 const sp<MediaSource>& source, SkBitmap* bm) { 162 // Copy pixels from buffer to bm. 163 // May need to check buffer->rawBytes() == bm->rawBytes(). 164 CHECK_EQ(buffer->size(), bm->getSize()); 165 memcpy(bm->getPixels(), buffer->data(), buffer->size()); 172 void OmxJpegImageDecoder::configBitmapSize(SkBitmap* bm, SkColorTyp argument 99 onDecode(SkStream* stream, SkBitmap* bm, Mode mode) argument 142 decodeSource(sp<MediaSource> decoder, const sp<MediaSource>& source, SkBitmap* bm) argument [all...] |
H A D | omx_jpeg_decoder.h | 45 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode); 51 SkBitmap* bm); 52 void configBitmapSize(SkBitmap* bm, SkColorType, int width, int height);
|
H A D | jpeg_decoder_bench.cpp | 35 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode);
|
/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 | 543 * @param bm The bitmap to set. 545 public final void setImageBitmap(Context context, Bitmap bm) { argument 546 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 | 167 public void setImageBitmap(Bitmap bm) { argument 168 if (bm != null) { 169 mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, 172 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...] |
/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 | 973 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); 974 if (bm != null) { 975 byte[] np = bm.getNinePatchChunk(); 982 bm.getOpticalInsets(opticalInsets); 983 return drawableFromBitmap(res, bm, np, pad, opticalInsets, srcName); 1110 Bitmap bm = BitmapFactory.decodeFile(pathName); 1111 if (bm != null) { 1112 return drawableFromBitmap(null, bm, null, null, null, pathName); 1240 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, argument 1244 return new NinePatchDrawable(res, bm, n [all...] |
/frameworks/base/core/java/android/text/ |
H A D | TextLine.java | 218 Bitmap bm = null; 225 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept); 233 if (j == runLimit || codept == '\t' || bm != null) { 239 } else if (bm != null) { 241 float bitmapHeight = bm.getHeight(); 243 float width = bm.getWidth() * scale; 250 c.drawBitmap(bm, null, emojiRect, mPaint); 313 Bitmap bm = null; 320 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept); 328 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 | 144 IBackupManager bm = IBackupManager.Stub.asInterface( 146 if (bm != null) { 147 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 | 99 private void addThumbnail(LinearLayout container, Bitmap bm, argument 103 if (bm != null) { 104 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 | 857 Bitmap bm = BitmapFactory.decodeFile(imagePath); 858 String ret = insertImage(cr, bm, name, description); 859 bm.recycle();
|
/frameworks/base/core/java/android/text/format/ |
H A D | Time.java | 1215 long bm = bObject.toMillis(false /* use isDst */); 1216 long diff = am - bm;
|