/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/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 298 Bitmap bm = null; 302 bm = decodeStream(stream, null, opts); 305 If the exception happened on open, bm will be null. 317 return bm; 371 Bitmap bm = null; 378 bm = decodeResourceStream(res, value, is, null, opts); 381 If the exception happened on open, bm will be null. 382 If it happened on close, bm is still valid. 392 if (bm == null && opts != null && opts.inBitmap != null) { 396 return bm; 545 finishDecode(Bitmap bm, Rect outPadding, Options opts) argument [all...] |
H A D | Bitmap.java | 689 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true); 691 bm.mDensity = display.densityDpi; 694 nativeErase(bm.mNativeBitmap, 0xff000000); 695 nativeSetHasAlpha(bm.mNativeBitmap, hasAlpha); 700 //nativeErase(bm.mNativeBitmap, 0); 702 return bm; 764 Bitmap bm = nativeCreate(colors, offset, stride, width, height, 767 bm.mDensity = display.densityDpi; 769 return bm; 1271 Bitmap bm [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/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/core/java/android/app/ |
H A D | WallpaperManager.java | 279 Bitmap bm = BitmapFactory.decodeFileDescriptor( 281 return generateBitmap(context, bm, width, height); 308 Bitmap bm = BitmapFactory.decodeStream(is, null, options); 309 return generateBitmap(context, bm, width, height); 366 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); 367 if (bm != null) { 368 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); 385 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); 386 if (bm != null) { 387 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); 792 generateBitmap(Context context, Bitmap bm, int width, int height) argument [all...] |
H A D | ActivityManagerNative.java | 505 ActivityManager.TaskThumbnails bm = getTaskThumbnails(id); 507 if (bm != null) { 509 bm.writeToParcel(reply, 0); 519 Bitmap bm = getTaskTopThumbnail(id); 521 if (bm != null) { 523 bm.writeToParcel(reply, 0); 2347 ActivityManager.TaskThumbnails bm = null; 2349 bm = ActivityManager.TaskThumbnails.CREATOR.createFromParcel(reply); 2353 return bm; 2362 Bitmap bm [all...] |
/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/base/graphics/java/android/graphics/drawable/ |
H A D | Drawable.java | 785 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); 786 if (bm != null) { 787 byte[] np = bm.getNinePatchChunk(); 792 int[] layoutBounds = bm.getLayoutBounds(); 798 return drawableFromBitmap(res, bm, np, pad, layoutBoundsRect, srcName); 898 Bitmap bm = BitmapFactory.decodeFile(pathName); 899 if (bm != null) { 900 return drawableFromBitmap(null, bm, null, null, null, pathName); 980 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, argument 984 return new NinePatchDrawable(res, bm, n [all...] |
H A D | BitmapDrawable.java | 496 Bitmap bm = mBitmap; 497 return (bm == null || bm.hasAlpha() || mBitmapState.mPaint.getAlpha() < 255) ?
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsHelper.java | 90 IBackupManager bm = IBackupManager.Stub.asInterface( 92 if (bm != null) { 93 bm.setAutoRestore(enabled);
|
/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 | 317 Bitmap bm = EMOJI_FACTORY.getBitmapFromAndroidPua(emoji); 319 if (bm != null) { 328 float wid = bm.getWidth() * -whichPaint.ascent() / bm.getHeight();
|
/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/tests/FrameworkPerf/src/com/android/frameworkperf/ |
H A D | TestService.java | 803 Bitmap bm = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888); 822 Bitmap bm = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888); 823 bm.recycle(); 842 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), 862 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), 864 bm.recycle(); 883 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), 903 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), 905 bm.recycle(); 924 Bitmap bm [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapRegionDecoder.cpp | 93 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, stream, width, height); local 95 return GraphicsJNI::createBitmapRegionDecoder(env, bm);
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ActivityTestMain.java | 73 private void addThumbnail(LinearLayout container, Bitmap bm, argument 77 if (bm != null) { 78 iv.setImageBitmap(bm);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | RecentsPanelView.java | 645 Bitmap bm = holder.thumbnailViewImageBitmap; 647 if (bm.getWidth() == holder.thumbnailViewImage.getWidth() && 648 bm.getHeight() == holder.thumbnailViewImage.getHeight()) { 652 bm = holder.thumbnailViewImage.getDrawingCache(); 655 Bundle opts = (bm == null) ? 658 holder.thumbnailViewImage, bm, 0, 0, null).toBundle();
|
/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 | 813 Bitmap bm = BitmapFactory.decodeFile(imagePath); 814 String ret = insertImage(cr, bm, name, description); 815 bm.recycle();
|
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 415 * @param bm The bitmap to set 418 public void setImageBitmap(Bitmap bm) { argument 421 setImageDrawable(new BitmapDrawable(mContext.getResources(), bm));
|
/frameworks/base/services/java/com/android/server/ |
H A D | WallpaperManagerService.java | 136 BackupManager bm = new BackupManager(mContext); 137 bm.dataChanged();
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | ActivityManagerService.java | 4074 IBackupManager bm = IBackupManager.Stub.asInterface( 4076 bm.agentDisconnected(app.info.packageName); 10788 IBackupManager bm = IBackupManager.Stub.asInterface( 10790 bm.agentDisconnected(app.info.packageName); 11209 IBackupManager bm = IBackupManager.Stub.asInterface( 11211 bm.agentConnected(agentPackageName, agent);
|