/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 297 Bitmap bm = null; in decodeFile() local 301 bm = decodeStream(stream, null, opts); in decodeFile() 315 return bm; in decodeFile() 369 Bitmap bm = null; in decodeResource() local 376 bm = decodeResourceStream(res, value, is, null, opts); in decodeResource() 390 if (bm == null && opts != null && opts.inBitmap != null) { in decodeResource() 394 return bm; in decodeResource() 426 Bitmap bm = nativeDecodeByteArray(data, offset, length, opts); in decodeByteArray() local 428 if (bm == null && opts != null && opts.inBitmap != null) { in decodeByteArray() 431 return bm; in decodeByteArray() [all …]
|
D | Bitmap.java | 640 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true); in createBitmap() local 642 nativeErase(bm.mNativeBitmap, 0xff000000); in createBitmap() 643 nativeSetHasAlpha(bm.mNativeBitmap, hasAlpha); in createBitmap() 650 return bm; in createBitmap() 1095 Bitmap bm = nativeCreateFromParcel(p); 1096 if (bm == null) { 1099 return bm; 1164 Bitmap bm = nativeExtractAlpha(mNativeBitmap, nativePaint, offsetXY); in extractAlpha() local 1165 if (bm == null) { in extractAlpha() 1168 bm.mDensity = mDensity; in extractAlpha() [all …]
|
/frameworks/base/native/graphics/jni/ |
D | bitmap.cpp | 26 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); in AndroidBitmap_getInfo() local 27 if (NULL == bm) { in AndroidBitmap_getInfo() 32 info->width = bm->width(); in AndroidBitmap_getInfo() 33 info->height = bm->height(); in AndroidBitmap_getInfo() 34 info->stride = bm->rowBytes(); in AndroidBitmap_getInfo() 37 switch (bm->config()) { in AndroidBitmap_getInfo() 63 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); in AndroidBitmap_lockPixels() local 64 if (NULL == bm) { in AndroidBitmap_lockPixels() 68 bm->lockPixels(); in AndroidBitmap_lockPixels() 69 void* addr = bm->getPixels(); in AndroidBitmap_lockPixels() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | BitmapFactory_Delegate.java | 47 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) { in finishDecode() argument 48 if (bm == null || opts == null) { in finishDecode() 49 return bm; in finishDecode() 54 return bm; in finishDecode() 57 bm.setDensity(density); in finishDecode() 60 return bm; in finishDecode() 63 byte[] np = bm.getNinePatchChunk(); in finishDecode() 69 final Bitmap oldBitmap = bm; in finishDecode() 70 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f), in finishDecode() 71 (int) (bm.getHeight() * scale + 0.5f), true); in finishDecode() [all …]
|
/frameworks/base/media/tests/omxjpegdecoder/ |
D | omx_jpeg_decoder.cpp | 100 SkBitmap* bm, Mode mode) { in onDecode() argument 107 configBitmapSize(bm, getPrefConfig(k32Bit_SrcDepth, false), width, height); in onDecode() 115 if (!this->allocPixelRef(bm, NULL)) { in onDecode() 121 return decodeSource(decoder, source, bm); in onDecode() 141 const sp<MediaSource>& source, SkBitmap* bm) { in decodeSource() argument 166 CHECK_EQ(buffer->size(), bm->getSize()); in decodeSource() 167 memcpy(bm->getPixels(), buffer->data(), buffer->size()); in decodeSource() 175 SkBitmap* bm) { in installPixelRef() argument 178 SkAutoLockPixels alp(*bm); in installPixelRef() 180 bm->setPixelRef(pr)->unref(); in installPixelRef() [all …]
|
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,
|
D | jpeg_decoder_bench.cpp | 35 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode);
|
/frameworks/base/core/java/android/app/ |
D | WallpaperManager.java | 277 Bitmap bm = BitmapFactory.decodeFileDescriptor( in getCurrentWallpaperLocked() local 279 return generateBitmap(bm, width, height); in getCurrentWallpaperLocked() 306 Bitmap bm = BitmapFactory.decodeStream(is, null, options); in getDefaultWallpaperLocked() local 307 return generateBitmap(bm, width, height); in getDefaultWallpaperLocked() 364 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); in getDrawable() local 365 if (bm != null) { in getDrawable() 366 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in getDrawable() 383 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); in peekDrawable() local 384 if (bm != null) { in peekDrawable() 385 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in peekDrawable() [all …]
|
D | ActivityManagerNative.java | 467 ActivityManager.TaskThumbnails bm = getTaskThumbnails(id); in onTransact() local 469 if (bm != null) { in onTransact() 471 bm.writeToParcel(reply, 0); in onTransact() 2187 ActivityManager.TaskThumbnails bm = null; in getTaskThumbnails() local 2189 bm = ActivityManager.TaskThumbnails.CREATOR.createFromParcel(reply); in getTaskThumbnails() 2193 return bm; in getTaskThumbnails()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | Drawable.java | 781 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); in createFromResourceStream() local 782 if (bm != null) { in createFromResourceStream() 783 byte[] np = bm.getNinePatchChunk(); in createFromResourceStream() 788 int[] layoutBounds = bm.getLayoutBounds(); in createFromResourceStream() 794 return drawableFromBitmap(res, bm, np, pad, layoutBoundsRect, srcName); in createFromResourceStream() 894 Bitmap bm = BitmapFactory.decodeFile(pathName); in createFromPath() local 895 if (bm != null) { in createFromPath() 896 return drawableFromBitmap(null, bm, null, null, null, pathName); in createFromPath() 976 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, in drawableFromBitmap() argument 980 return new NinePatchDrawable(res, bm, np, pad, layoutBounds, srcName); in drawableFromBitmap() [all …]
|
D | BitmapDrawable.java | 496 Bitmap bm = mBitmap; in getOpacity() local 497 return (bm == null || bm.hasAlpha() || mBitmapState.mPaint.getAlpha() < 255) ? in getOpacity()
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | BitmapTest.java | 86 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, in testGetPixelsWithAlpha() local 90 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); in testGetPixelsWithAlpha() 92 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha() 97 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha() 112 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565); in testGetPixelsWithoutAlpha() local 115 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); in testGetPixelsWithoutAlpha() 117 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithoutAlpha()
|
/frameworks/base/core/java/android/text/ |
D | TextLine.java | 218 Bitmap bm = null; in draw() local 225 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept); in draw() 233 if (j == runLimit || codept == '\t' || bm != null) { in draw() 239 } else if (bm != null) { in draw() 241 float bitmapHeight = bm.getHeight(); in draw() 243 float width = bm.getWidth() * scale; in draw() 250 c.drawBitmap(bm, null, emojiRect, mPaint); in draw() 313 Bitmap bm = null; in measure() local 320 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept); in measure() 328 if (j == runLimit || codept == '\t' || bm != null) { in measure() [all …]
|
D | StaticLayout.java | 317 Bitmap bm = EMOJI_FACTORY.getBitmapFromAndroidPua(emoji); in generate() local 319 if (bm != null) { in generate() 328 float wid = bm.getWidth() * -whichPaint.ascent() / bm.getHeight(); in generate()
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
D | TestService.java | 803 Bitmap bm = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888); in onRun() local 822 Bitmap bm = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888); in onRun() local 823 bm.recycle(); in onRun() 842 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local 862 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local 864 bm.recycle(); in onRun() 883 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local 903 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local 905 bm.recycle(); in onRun() 924 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 80 IBackupManager bm = IBackupManager.Stub.asInterface( in setAutoRestore() local 82 if (bm != null) { in setAutoRestore() 83 bm.setAutoRestore(enabled); in setAutoRestore()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 52 private void addThumbnail(LinearLayout container, Bitmap bm, in addThumbnail() argument 56 if (bm != null) { in addThumbnail() 57 iv.setImageBitmap(bm); in addThumbnail()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
D | RecentsPanelView.java | 716 Bitmap bm = holder.thumbnailViewImageBitmap; in handleOnClick() local 718 if (bm.getWidth() == holder.thumbnailViewImage.getWidth() && in handleOnClick() 719 bm.getHeight() == holder.thumbnailViewImage.getHeight()) { in handleOnClick() 723 bm = holder.thumbnailViewImage.getDrawingCache(); in handleOnClick() 754 placeholderThumbnail.setImageBitmap(bm); in handleOnClick() 756 Bitmap b2 = bm.copy(bm.getConfig(), true); in handleOnClick() 769 holder.thumbnailViewImage, bm, 0, 0, in handleOnClick()
|
/frameworks/base/core/jni/ |
D | Time.cpp | 59 int64_t bm = b.toMillis(false /* use isDst */); in compare() local 60 int64_t diff = am-bm; in compare()
|
/frameworks/base/core/jni/android/graphics/ |
D | BitmapRegionDecoder.cpp | 93 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, stream, width, height); in doBuildTileIndex() local 95 return GraphicsJNI::createBitmapRegionDecoder(env, bm); in doBuildTileIndex()
|
/frameworks/base/core/java/android/provider/ |
D | Contacts.java | 641 Bitmap bm = stream != null ? BitmapFactory.decodeStream(stream, null, options) : null; in loadContactPhoto() local 642 if (bm == null) { in loadContactPhoto() 643 bm = loadPlaceholderPhoto(placeholderImageResource, context, options); in loadContactPhoto() 645 return bm; in loadContactPhoto()
|
D | MediaStore.java | 744 Bitmap bm = BitmapFactory.decodeFile(imagePath); in insertImage() local 745 String ret = insertImage(cr, bm, name, description); in insertImage() 746 bm.recycle(); in insertImage()
|
/frameworks/base/docs/html/training/cloudsync/ |
D | backupapi.jd | 174 BackupManager bm = new BackupManager(this); 175 bm.dataChanged();
|
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 413 public void setImageBitmap(Bitmap bm) { in setImageBitmap() argument 416 setImageDrawable(new BitmapDrawable(mContext.getResources(), bm)); in setImageBitmap()
|
/frameworks/base/services/java/com/android/server/ |
D | WallpaperManagerService.java | 125 BackupManager bm = new BackupManager(mContext); in onEvent() local 126 bm.dataChanged(); in onEvent()
|