Searched defs:bm (Results 1 - 9 of 9) sorted by relevance

/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->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/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java50 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) { argument
51 if (bm == null || opts == null) {
52 return bm;
57 return bm;
60 bm.setDensity(density);
63 return bm;
66 byte[] np = bm.getNinePatchChunk();
72 final Bitmap oldBitmap = bm;
73 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm
[all...]
/frameworks/base/core/jni/
H A DTime.cpp59 int64_t bm = b.toMillis(false /* use isDst */); local
60 int64_t diff = am-bm;
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DActivityTestMain.java73 private void addThumbnail(LinearLayout container, Bitmap bm, argument
77 if (bm != null) {
78 iv.setImageBitmap(bm);
/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp100 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, width, height); local
101 return GraphicsJNI::createBitmapRegionDecoder(env, bm);
/frameworks/base/media/tests/omxjpegdecoder/
H A Domx_jpeg_decoder.cpp100 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 DWallpaperManager.java297 Bitmap bm = BitmapFactory.decodeFileDescriptor(
299 return generateBitmap(context, bm, width, height);
326 Bitmap bm = BitmapFactory.decodeStream(is, null, options);
327 return generateBitmap(context, bm, width, height);
384 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true);
385 if (bm != null) {
386 Drawable dr = new BitmapDrawable(mContext.getResources(), bm);
575 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false);
576 if (bm != null) {
577 Drawable dr = new BitmapDrawable(mContext.getResources(), bm);
1033 generateBitmap(Context context, Bitmap bm, int width, int height) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawable.java840 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts);
841 if (bm != null) {
842 byte[] np = bm.getNinePatchChunk();
847 int[] layoutBounds = bm.getLayoutBounds();
853 return drawableFromBitmap(res, bm, np, pad, layoutBoundsRect, srcName);
952 Bitmap bm = BitmapFactory.decodeFile(pathName);
953 if (bm != null) {
954 return drawableFromBitmap(null, bm, null, null, null, pathName);
1044 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, argument
1048 return new NinePatchDrawable(res, bm, n
[all...]
/frameworks/base/core/java/android/widget/
H A DImageView.java433 * @param bm The bitmap to set
436 public void setImageBitmap(Bitmap bm) { argument
439 setImageDrawable(new BitmapDrawable(mContext.getResources(), bm));

Completed in 206 milliseconds