/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/graphics/java/android/graphics/ |
D | BitmapFactory.java | 372 Bitmap bm = null; in decodeFile() local 376 bm = decodeStream(stream, null, opts); in decodeFile() 391 return bm; in decodeFile() 445 Bitmap bm = null; in decodeResource() local 452 bm = decodeResourceStream(res, value, is, null, opts); in decodeResource() 466 if (bm == null && opts != null && opts.inBitmap != null) { in decodeResource() 470 return bm; in decodeResource() 503 Bitmap bm; in decodeByteArray() local 507 bm = nativeDecodeByteArray(data, offset, length, opts); in decodeByteArray() 509 if (bm == null && opts != null && opts.inBitmap != null) { in decodeByteArray() [all …]
|
D | Bitmap.java | 810 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true); in createBitmap() local 812 bm.mDensity = display.densityDpi; in createBitmap() 814 bm.setHasAlpha(hasAlpha); in createBitmap() 816 nativeErase(bm.mNativeBitmap, 0xff000000); in createBitmap() 821 return bm; in createBitmap() 883 Bitmap bm = nativeCreate(colors, offset, stride, width, height, in createBitmap() local 886 bm.mDensity = display.densityDpi; in createBitmap() 888 return bm; in createBitmap() 1459 Bitmap bm = nativeCreateFromParcel(p); 1460 if (bm == null) { [all …]
|
/frameworks/base/media/tests/omxjpegdecoder/ |
D | omx_jpeg_decoder.cpp | 101 SkBitmap* bm, Mode mode) { in onDecode() argument 108 configBitmapSize(bm, getPrefConfig(k32Bit_SrcDepth, false), width, height); in onDecode() 116 if (!this->allocPixelRef(bm, NULL)) { in onDecode() 122 return decodeSource(decoder, source, bm); in onDecode() 142 const sp<MediaSource>& source, SkBitmap* bm) { in decodeSource() argument 167 CHECK_EQ(buffer->size(), bm->getSize()); in decodeSource() 168 memcpy(bm->getPixels(), buffer->data(), buffer->size()); in decodeSource() 176 SkBitmap* bm) { in installPixelRef() argument 179 SkAutoLockPixels alp(*bm); in installPixelRef() 181 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/tools/layoutlib/bridge/src/android/graphics/ |
D | BitmapFactory_Delegate.java | 52 Bitmap bm = null; in nativeDecodeStream() local 73 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), bitmapCreateFlags, in nativeDecodeStream() 78 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); in nativeDecodeStream() 88 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density); in nativeDecodeStream() 94 return bm; in nativeDecodeStream()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | Drawable.java | 840 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); in createFromResourceStream() local 841 if (bm != null) { in createFromResourceStream() 842 byte[] np = bm.getNinePatchChunk(); in createFromResourceStream() 847 int[] layoutBounds = bm.getLayoutBounds(); in createFromResourceStream() 853 return drawableFromBitmap(res, bm, np, pad, layoutBoundsRect, srcName); in createFromResourceStream() 952 Bitmap bm = BitmapFactory.decodeFile(pathName); in createFromPath() local 953 if (bm != null) { in createFromPath() 954 return drawableFromBitmap(null, bm, null, null, null, pathName); in createFromPath() 1044 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, in drawableFromBitmap() argument 1048 return new NinePatchDrawable(res, bm, np, pad, layoutBounds, srcName); in drawableFromBitmap() [all …]
|
D | BitmapDrawable.java | 623 Bitmap bm = mBitmap; in getOpacity() local 624 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/app/ |
D | WallpaperManager.java | 380 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); in getDrawable() local 381 if (bm != null) { in getDrawable() 382 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in getDrawable() 571 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); in peekDrawable() local 572 if (bm != null) { in peekDrawable() 573 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in peekDrawable() 594 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); in getFastDrawable() local 595 if (bm != null) { in getFastDrawable() 596 return new FastBitmapDrawable(bm); in getFastDrawable() 609 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); in peekFastDrawable() local [all …]
|
D | ActivityManagerNative.java | 512 ActivityManager.TaskThumbnails bm = getTaskThumbnails(id); in onTransact() local 514 if (bm != null) { in onTransact() 516 bm.writeToParcel(reply, 0); in onTransact() 526 Bitmap bm = getTaskTopThumbnail(id); in onTransact() local 528 if (bm != null) { in onTransact() 530 bm.writeToParcel(reply, 0); in onTransact() 2577 ActivityManager.TaskThumbnails bm = null; in getTaskThumbnails() local 2579 bm = ActivityManager.TaskThumbnails.CREATOR.createFromParcel(reply); in getTaskThumbnails() 2583 return bm; in getTaskThumbnails() 2592 Bitmap bm = null; in getTaskTopThumbnail() local [all …]
|
/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 | 819 Bitmap bm = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888); in onRun() local 838 Bitmap bm = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888); in onRun() local 839 bm.recycle(); in onRun() 858 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local 878 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local 880 bm.recycle(); in onRun() 899 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local 919 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local 921 bm.recycle(); in onRun() 940 Bitmap bm = BitmapFactory.decodeResource(mContext.getResources(), in onRun() local [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 144 IBackupManager bm = IBackupManager.Stub.asInterface( in setAutoRestore() local 146 if (bm != null) { in setAutoRestore() 147 bm.setAutoRestore(enabled); in setAutoRestore()
|
/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/packages/SystemUI/src/com/android/systemui/recent/ |
D | RecentsPanelView.java | 661 Bitmap bm = null; in handleOnClick() local 664 bm = ((BitmapDrawable) holder.thumbnailViewDrawable).getBitmap(); in handleOnClick() 665 if (bm.getWidth() == holder.thumbnailViewImage.getWidth() && in handleOnClick() 666 bm.getHeight() == holder.thumbnailViewImage.getHeight()) { in handleOnClick() 672 bm = holder.thumbnailViewImage.getDrawingCache(); in handleOnClick() 674 Bundle opts = (bm == null) ? in handleOnClick() 677 holder.thumbnailViewImage, bm, 0, 0, null).toBundle(); in handleOnClick()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 73 private void addThumbnail(LinearLayout container, Bitmap bm, in addThumbnail() argument 77 if (bm != null) { in addThumbnail() 78 iv.setImageBitmap(bm); in addThumbnail()
|
/frameworks/base/core/jni/android/graphics/ |
D | BitmapRegionDecoder.cpp | 99 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, width, height); in createBitmapRegionDecoder() local 100 return GraphicsJNI::createBitmapRegionDecoder(env, bm); in createBitmapRegionDecoder()
|
/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 | 824 Bitmap bm = BitmapFactory.decodeFile(imagePath); in insertImage() local 825 String ret = insertImage(cr, bm, name, description); in insertImage() 826 bm.recycle(); in insertImage()
|
/frameworks/base/docs/html/training/cloudsync/ |
D | backupapi.jd | 175 BackupManager bm = new BackupManager(this); 176 bm.dataChanged();
|
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 436 public void setImageBitmap(Bitmap bm) { in setImageBitmap() argument 439 setImageDrawable(new BitmapDrawable(mContext.getResources(), bm)); in setImageBitmap()
|
/frameworks/base/services/java/com/android/server/ |
D | WallpaperManagerService.java | 137 BackupManager bm = new BackupManager(mContext); in onEvent() local 138 bm.dataChanged(); in onEvent()
|