/frameworks/base/libs/hwui/jni/ |
D | GIFMovie.cpp | 134 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src, in copyInterlaceGroup() argument 142 uint32_t* dst = bm->getAddr32(imageDesc.Left, imageDesc.Top + row); in copyInterlaceGroup() 151 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument 154 int width = bm->width(); in blitInterlace() 155 int height = bm->height(); in blitInterlace() 170 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace() 173 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace() 176 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace() 178 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace() 182 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument [all …]
|
D | ImageDecoder.cpp | 315 SkBitmap bm; in ImageDecoder_nDecodeBitmap() local 316 if (!bm.setInfo(bitmapInfo)) { in ImageDecoder_nDecodeBitmap() 323 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in ImageDecoder_nDecodeBitmap() 325 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in ImageDecoder_nDecodeBitmap() 335 SkCodec::Result result = decoder->decode(bm.getPixels(), bm.rowBytes()); in ImageDecoder_nDecodeBitmap() 399 std::unique_ptr<Canvas> canvas(Canvas::create_canvas(bm)); in ImageDecoder_nDecodeBitmap() 406 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap() 423 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap() 424 if (!bm.setAlphaType(newAlphaType)) { in ImageDecoder_nDecodeBitmap() 446 sk_sp<Bitmap> hwBitmap = Bitmap::allocateHardwareBitmap(bm); in ImageDecoder_nDecodeBitmap()
|
D | android_graphics_HardwareRenderer.cpp | 490 SkBitmap bm; in imageForCache() local 491 if (!bm.tryAllocPixels(img->imageInfo())) { in imageForCache() 495 if (RenderProxy::copyImageInto(sk_ref_sp(img), &bm)) { in imageForCache() 499 bm.setImmutable(); in imageForCache() 500 return SkMakeImageFromRasterBitmap(bm, kNever_SkCopyPixelsMode); in imageForCache()
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 513 Bitmap bm = null; in decodeFile() local 517 bm = decodeStream(stream, null, opts); in decodeFile() 532 return bm; in decodeFile() 598 Bitmap bm = null; in decodeResource() local 605 bm = decodeResourceStream(res, value, is, null, opts); in decodeResource() 619 if (bm == null && opts != null && opts.inBitmap != null) { in decodeResource() 623 return bm; in decodeResource() 662 Bitmap bm; in decodeByteArray() local 666 bm = nativeDecodeByteArray(data, offset, length, opts, in decodeByteArray() 670 if (bm == null && opts != null && opts.inBitmap != null) { in decodeByteArray() [all …]
|
D | Bitmap.java | 1120 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true, in createBitmap() local 1124 bm.mDensity = display.densityDpi; in createBitmap() 1126 bm.setHasAlpha(hasAlpha); in createBitmap() 1128 nativeErase(bm.mNativePtr, 0xff000000); in createBitmap() 1133 return bm; in createBitmap() 1200 Bitmap bm = nativeCreate(colors, offset, stride, width, height, in createBitmap() local 1203 bm.mDensity = display.densityDpi; in createBitmap() 1205 return bm; in createBitmap() 2110 Bitmap bm = nativeCreateFromParcel(p); 2111 if (bm == null) { [all …]
|
D | ImageDecoder.java | 1863 Bitmap bm = decoder.decodeBitmapInternal(); in decodeDrawableImpl() local 1864 bm.setDensity(srcDensity); in decodeDrawableImpl() 1867 byte[] np = bm.getNinePatchChunk(); in decodeDrawableImpl() 1870 bm.getOpticalInsets(opticalInsets); in decodeDrawableImpl() 1876 return new NinePatchDrawable(res, bm, np, padding, in decodeDrawableImpl() 1880 return new BitmapDrawable(res, bm); in decodeDrawableImpl() 1942 Bitmap bm = decoder.decodeBitmapInternal(); in decodeBitmapImpl() local 1943 bm.setDensity(srcDensity); in decodeBitmapImpl() 1947 byte[] np = bm.getNinePatchChunk(); in decodeBitmapImpl() 1952 return bm; in decodeBitmapImpl()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | ImageDecoder_Delegate.java | 42 Bitmap bm = ImageDecoder.decodeBitmapImpl_Original(src, listener); in decodeBitmapImpl() local 43 if (stream instanceof NinePatchInputStream && bm.getNinePatchChunk() == null) { in decodeBitmapImpl() 55 bm = Bitmap.createBitmap(imageData, width, height, Config.ARGB_8888); in decodeBitmapImpl() 57 bm.setDensity(src.getDensity()); in decodeBitmapImpl() 58 bm.setNinePatchChunk(ninePatch.getChunk().getSerializedChunk()); in decodeBitmapImpl() 60 return bm; in decodeBitmapImpl()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | BitmapTest.java | 92 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, in testGetPixelsWithAlpha() local 96 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); in testGetPixelsWithAlpha() 98 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha() 103 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha() 118 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565); in testGetPixelsWithoutAlpha() local 121 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); in testGetPixelsWithoutAlpha() 123 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithoutAlpha()
|
/frameworks/opt/bitmap/src/com/android/bitmap/view/ |
D | BitmapDrawableImageView.java | 127 public void setImageBitmap(final Bitmap bm) { in setImageBitmap() argument 128 super.setImageBitmap(bm); in setImageBitmap()
|
/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/graphics/java/android/graphics/drawable/ |
D | Drawable.java | 1265 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); in createFromResourceStream() local 1266 if (bm != null) { in createFromResourceStream() 1267 byte[] np = bm.getNinePatchChunk(); in createFromResourceStream() 1274 bm.getOpticalInsets(opticalInsets); in createFromResourceStream() 1275 return drawableFromBitmap(res, bm, np, pad, opticalInsets, srcName); in createFromResourceStream() 1560 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, in drawableFromBitmap() argument 1564 return new NinePatchDrawable(res, bm, np, pad, layoutBounds, srcName); in drawableFromBitmap() 1567 return new BitmapDrawable(res, bm); in drawableFromBitmap()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperManager.java | 805 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM, cmProxy); in getDrawable() local 806 if (bm != null) { in getDrawable() 807 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in getDrawable() 1061 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false, FLAG_SYSTEM, cmProxy); in peekDrawable() local 1062 if (bm != null) { in peekDrawable() 1063 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in peekDrawable() 1104 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM, cmProxy); in getFastDrawable() local 1105 if (bm != null) { in getFastDrawable() 1106 return new FastBitmapDrawable(bm); in getFastDrawable() 1144 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false, FLAG_SYSTEM, cmProxy); in peekFastDrawable() local [all …]
|
D | ActivityManager.java | 2447 Bitmap bm = Bitmap.createBitmap(size.x, size.y, thumbnail.getConfig()); in addAppTask() local 2463 Canvas canvas = new Canvas(bm); in addAppTask() 2467 thumbnail = bm; in addAppTask()
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 115 final Bitmap bm = Bitmap.createBitmap(4321, 78, Bitmap.Config.ARGB_8888); in testScaleDownIfNecessary() local 116 final Icon ic = Icon.createWithBitmap(bm); in testScaleDownIfNecessary() 119 assertThat(bm.getWidth()).isEqualTo(4321); in testScaleDownIfNecessary() 120 assertThat(bm.getHeight()).isEqualTo(78); in testScaleDownIfNecessary()
|
/frameworks/base/core/tests/bugreports/src/com/android/os/bugreports/tests/ |
D | BugreportManagerTest.java | 380 BugreportManager bm = in getBugreportManager() local 382 if (bm == null) { in getBugreportManager() 385 return bm; in getBugreportManager()
|
/frameworks/base/keystore/java/android/security/keystore2/ |
D | KeyStore2ParameterUtils.java | 257 final BiometricManager bm = android.app.AppGlobals.getInitialApplication() in addSids() local 263 final long[] biometricSids = bm.getAuthenticatorIds(); in addSids()
|
D | AndroidKeyStoreSpi.java | 879 final BiometricManager bm = android.app.AppGlobals.getInitialApplication() in setWrappedKeyEntry() local 882 long[] biometricSids = bm.getAuthenticatorIds(); in setWrappedKeyEntry()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | CachingIconView.java | 206 public void setImageBitmap(Bitmap bm) { in setImageBitmap() argument 208 super.setImageBitmap(bm); in setImageBitmap()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 381 IBackupManager bm = IBackupManager.Stub.asInterface( in setAutoRestore() local 383 if (bm != null) { in setAutoRestore() 384 bm.setAutoRestore(enabled); in setAutoRestore()
|
/frameworks/base/core/java/android/provider/ |
D | Contacts.java | 633 Bitmap bm = stream != null ? BitmapFactory.decodeStream(stream, null, options) : null; in loadContactPhoto() local 634 if (bm == null) { in loadContactPhoto() 635 bm = loadPlaceholderPhoto(placeholderImageResource, context, options); in loadContactPhoto() 637 return bm; in loadContactPhoto()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | DeviceStateMonitor.java | 701 final BatteryManager bm = (BatteryManager) mPhone.getContext().getSystemService( in isDeviceCharging() local 703 boolean retval = bm.isCharging(); in isDeviceCharging()
|
/frameworks/base/core/java/android/text/format/ |
D | Time.java | 1251 long bm = bObject.toMillis(false /* use isDst */); in compare() local 1252 long diff = am - bm; in compare()
|
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 759 public void setImageBitmap(Bitmap bm) { 764 mRecycleableBitmapDrawable = new BitmapDrawable(mContext.getResources(), bm); 766 mRecycleableBitmapDrawable.setBitmap(bm);
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 523 BiometricManager bm = mContext.getSystemService(BiometricManager.class); in hasEnrolledBiometrics() local 524 return bm.hasEnrolledBiometrics(userId); in hasEnrolledBiometrics()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 4016 final Bitmap bm; in requestAssistScreenshot() local 4024 bm = null; in requestAssistScreenshot() 4026 bm = displayContent.screenshotDisplayLocked(); in requestAssistScreenshot() 4032 receiver.onHandleAssistScreenshot(bm); in requestAssistScreenshot()
|