/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/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/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 280 Bitmap bm = null; 284 bm = decodeStream(stream, null, opts); 287 If the exception happened on open, bm will be null. 298 return bm; 352 Bitmap bm = null; 359 bm = decodeResourceStream(res, value, is, null, opts); 362 If the exception happened on open, bm will be null. 363 If it happened on close, bm is still valid. 373 return bm; 457 Bitmap bm; 476 finishDecode(Bitmap bm, Rect outPadding, Options opts) argument [all...] |
H A D | Bitmap.java | 477 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true); 478 bm.eraseColor(0); // start with black/transparent pixels 479 return bm; 906 Bitmap bm = nativeCreateFromParcel(p); 907 if (bm == null) { 910 return bm; 975 Bitmap bm = nativeExtractAlpha(mNativeBitmap, nativePaint, offsetXY); 976 if (bm == null) { 979 bm.mDensity = mDensity; 980 return bm; [all...] |
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 238 Bitmap bm = BitmapFactory.decodeFileDescriptor( 244 if (bm != null) { 245 bm.setDensity(DisplayMetrics.DENSITY_DEVICE); 247 return bm; 255 Bitmap bm = BitmapFactory.decodeFileDescriptor( 262 return generateBitmap(context, bm, width, height); 280 Bitmap bm = BitmapFactory.decodeStream(is, null, null); 285 if (bm != null) { 286 bm.setDensity(DisplayMetrics.DENSITY_DEVICE); 288 return bm; 688 generateBitmap(Context context, Bitmap bm, int width, int height) argument [all...] |
/frameworks/base/media/tests/omxjpegdecoder/ |
H A D | omx_jpeg_decoder.h | 45 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode); 51 SkBitmap* bm); 53 SkBitmap* bm); 54 void configBitmapSize(SkBitmap* bm, SkBitmap::Config pref, int width,
|
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...] |
H A D | jpeg_decoder_bench.cpp | 35 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | Drawable.java | 697 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); 698 if (bm != null) { 699 byte[] np = bm.getNinePatchChunk(); 704 return drawableFromBitmap(res, bm, np, pad, srcName); 800 Bitmap bm = BitmapFactory.decodeFile(pathName); 801 if (bm != null) { 802 return drawableFromBitmap(null, bm, null, null, pathName); 851 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, argument 855 return new NinePatchDrawable(res, bm, np, pad, srcName); 858 return new BitmapDrawable(res, bm); [all...] |
H A D | BitmapDrawable.java | 423 Bitmap bm = mBitmap; 424 return (bm == null || bm.hasAlpha() || mBitmapState.mPaint.getAlpha() < 255) ?
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | BitmapTest.java | 84 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, 88 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); 90 int p = bm.getPixel(i % 10, i / 10); 95 int p = bm.getPixel(i % 10, i / 10); 110 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565); 113 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); 115 int p = bm.getPixel(i % 10, i / 10);
|
/frameworks/base/core/jni/ |
H A D | android_view_ViewRoot.cpp | 42 const SkBitmap& bm = canvas->getDevice()->accessBitmap(false); local 43 int height = bm.height();
|
H A D | Time.cpp | 59 int64_t bm = b.toMillis(false /* use isDst */); local 60 int64_t diff = am-bm;
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsHelper.java | 83 IBackupManager bm = IBackupManager.Stub.asInterface( 85 if (bm != null) { 86 bm.setAutoRestore(enabled);
|
/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 1421 Bitmap bm = EMOJI_FACTORY. 1424 if (bm != null) { 1440 float bitmapHeight = bm.getHeight(); 1443 float width = bm.getWidth() * scale; 1448 canvas.drawBitmap(bm, null, mEmojiRect, paint); 1498 Bitmap bm = null; 1508 bm = EMOJI_FACTORY.getBitmapFromAndroidPua(codept); 1512 if (j == there || codept == '\t' || bm != null) { 1567 if (bm != null) { 1572 float wid = (float) bm [all...] |
H A D | StaticLayout.java | 367 Bitmap bm = EMOJI_FACTORY. 370 if (bm != null) { 379 float wid = (float) bm.getWidth() * 381 bm.getHeight();
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapRegionDecoder.cpp | 97 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, width, height); local 99 return GraphicsJNI::createBitmapRegionDecoder(env, bm);
|
/frameworks/base/core/java/android/provider/ |
H A D | Contacts.java | 641 Bitmap bm = stream != null ? BitmapFactory.decodeStream(stream, null, options) : null; 642 if (bm == null) { 643 bm = loadPlaceholderPhoto(placeholderImageResource, context, options); 645 return bm;
|
H A D | MediaStore.java | 549 Bitmap bm = BitmapFactory.decodeFile(imagePath); 550 String ret = insertImage(cr, bm, name, description); 551 bm.recycle();
|
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 330 * @param bm The bitmap to set 333 public void setImageBitmap(Bitmap bm) { argument 336 setImageDrawable(new BitmapDrawable(mContext.getResources(), bm));
|
/frameworks/base/services/java/com/android/server/ |
H A D | WallpaperManagerService.java | 116 BackupManager bm = new BackupManager(mContext); 117 bm.dataChanged();
|
H A D | PackageManagerService.java | 4645 IBackupManager bm = IBackupManager.Stub.asInterface( 4647 if (bm != null) { 4651 bm.restoreAtInstall(res.pkg.applicationInfo.packageName, token);
|
/frameworks/base/core/java/android/webkit/ |
H A D | WebView.java | 3479 Bitmap bm = BitmapFactory.decodeResource( 3482 mOverScrollBackground.setShader(new BitmapShader(bm, 4943 Bitmap bm = Bitmap.createBitmap(w, h, offscreenBitmapConfig()); 4944 Canvas canvas = new Canvas(bm); 4952 mProxy.onBitmapChange(bm); 4964 public void onBitmapChange(Bitmap bm) {} argument
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | ActivityManagerService.java | 3410 IBackupManager bm = IBackupManager.Stub.asInterface( 3412 bm.agentDisconnected(app.info.packageName); 8357 IBackupManager bm = IBackupManager.Stub.asInterface( 8359 bm.agentDisconnected(app.info.packageName); 9892 IBackupManager bm = IBackupManager.Stub.asInterface( 9894 bm.agentConnected(agentPackageName, agent);
|