/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->config()) { 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/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ActivityTestMain.java | 49 private void addThumbnail(LinearLayout container, Bitmap bm, argument 53 if (bm != null) { 54 iv.setImageBitmap(bm);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 47 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) { argument 48 if (bm == null || opts == null) { 49 return bm; 54 return bm; 57 bm.setDensity(density); 60 return bm; 63 byte[] np = bm.getNinePatchChunk(); 69 final Bitmap oldBitmap = bm; 70 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm [all...] |
/frameworks/base/core/jni/ |
H A D | Time.cpp | 59 int64_t bm = b.toMillis(false /* use isDst */); local 60 int64_t diff = am-bm;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapRegionDecoder.cpp | 92 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, stream, width, height); local 94 return GraphicsJNI::createBitmapRegionDecoder(env, bm);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 295 Bitmap bm = null; 299 bm = decodeStream(stream, null, opts); 302 If the exception happened on open, bm will be null. 313 return bm; 367 Bitmap bm = null; 374 bm = decodeResourceStream(res, value, is, null, opts); 377 If the exception happened on open, bm will be null. 378 If it happened on close, bm is still valid. 388 if (bm == null && opts != null && opts.inBitmap != null) { 392 return bm; 502 finishDecode(Bitmap bm, Rect outPadding, Options opts) argument [all...] |
/frameworks/base/media/tests/omxjpegdecoder/ |
H A D | omx_jpeg_decoder.cpp | 100 SkBitmap* bm, Mode mode) { 107 configBitmapSize(bm, getPrefConfig(k32Bit_SrcDepth, false), width, height); 115 if (!this->allocPixelRef(bm, NULL)) { 121 return decodeSource(decoder, source, bm); 141 const sp<MediaSource>& source, SkBitmap* bm) { 162 installPixelRef(buffer, decoder, bm);*/ 164 // Copy pixels from buffer to bm. 165 // May need to check buffer->rawBytes() == bm->rawBytes(). 166 CHECK_EQ(buffer->size(), bm->getSize()); 167 memcpy(bm 99 onDecode(SkStream* stream, SkBitmap* bm, Mode mode) argument 140 decodeSource(sp<MediaSource> decoder, const sp<MediaSource>& source, SkBitmap* bm) argument 174 installPixelRef(MediaBuffer *buffer, sp<MediaSource> decoder, SkBitmap* bm) argument 185 configBitmapSize(SkBitmap* bm, SkBitmap::Config pref, int width, int height) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 263 Bitmap bm = BitmapFactory.decodeFileDescriptor( 265 return generateBitmap(bm, width, height); 292 Bitmap bm = BitmapFactory.decodeStream(is, null, options); 293 return generateBitmap(bm, width, height); 350 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); 351 if (bm != null) { 352 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); 369 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); 370 if (bm != null) { 371 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); 715 generateBitmap(Bitmap bm, int width, int height) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | Drawable.java | 773 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); 774 if (bm != null) { 775 byte[] np = bm.getNinePatchChunk(); 780 return drawableFromBitmap(res, bm, np, pad, srcName); 880 Bitmap bm = BitmapFactory.decodeFile(pathName); 881 if (bm != null) { 882 return drawableFromBitmap(null, bm, null, null, pathName); 962 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, argument 966 return new NinePatchDrawable(res, bm, np, pad, srcName); 969 return new BitmapDrawable(res, bm); [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 371 * @param bm The bitmap to set 374 public void setImageBitmap(Bitmap bm) { argument 377 setImageDrawable(new BitmapDrawable(mContext.getResources(), bm));
|