/frameworks/base/libs/hwui/jni/ |
D | GIFMovie.cpp | 136 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src, in copyInterlaceGroup() argument 144 uint32_t* dst = bm->getAddr32(imageDesc.Left, imageDesc.Top + row); in copyInterlaceGroup() 153 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument 156 int width = bm->width(); in blitInterlace() 157 int height = bm->height(); in blitInterlace() 172 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace() 175 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace() 178 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace() 180 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace() 184 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument [all …]
|
D | ImageDecoder.cpp | 336 SkBitmap bm; in ImageDecoder_nDecodeBitmap() local 337 if (!bm.setInfo(bitmapInfo)) { in ImageDecoder_nDecodeBitmap() 344 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in ImageDecoder_nDecodeBitmap() 346 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in ImageDecoder_nDecodeBitmap() 357 SkCodec::Result result = decoder->decode(bm.getPixels(), bm.rowBytes()); in ImageDecoder_nDecodeBitmap() 432 std::unique_ptr<Canvas> canvas(Canvas::create_canvas(bm)); in ImageDecoder_nDecodeBitmap() 439 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap() 456 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap() 457 if (!bm.setAlphaType(newAlphaType)) { in ImageDecoder_nDecodeBitmap() 479 sk_sp<Bitmap> hwBitmap = Bitmap::allocateHardwareBitmap(bm); in ImageDecoder_nDecodeBitmap()
|
D | android_graphics_HardwareRenderer.cpp | 497 SkBitmap bm; in imageForCache() local 498 if (!bm.tryAllocPixels(img->imageInfo())) { in imageForCache() 502 if (RenderProxy::copyImageInto(sk_ref_sp(img), &bm)) { in imageForCache() 506 bm.setImmutable(); in imageForCache() 508 return SkImages::PinnableRasterFromBitmap(bm); in imageForCache() 510 return SkMakeImageFromRasterBitmap(bm, kNever_SkCopyPixelsMode); in imageForCache()
|
D | BitmapRegionDecoder.cpp | 95 SkBitmap bm; in decodeGainmapRegion() local 116 if (!mGainmapBRD->decodeRegion(&bm, &allocator, desiredSubset, sampleSize, decodeColorType, in decodeGainmapRegion()
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 528 Bitmap bm = null; in decodeFile() local 532 bm = decodeFileDescriptor(fd, null, opts); in decodeFile() 547 return bm; in decodeFile() 613 Bitmap bm = null; in decodeResource() local 620 bm = decodeResourceStream(res, value, is, null, opts); in decodeResource() 634 if (bm == null && opts != null && opts.inBitmap != null) { in decodeResource() 638 return bm; in decodeResource() 677 Bitmap bm; in decodeByteArray() local 681 bm = nativeDecodeByteArray(data, offset, length, opts, in decodeByteArray() 685 if (bm == null && opts != null && opts.inBitmap != null) { in decodeByteArray() [all …]
|
D | Bitmap.java | 1229 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true, in createBitmap() local 1233 bm.mDensity = display.densityDpi; in createBitmap() 1235 bm.setHasAlpha(hasAlpha); in createBitmap() 1237 nativeErase(bm.mNativePtr, 0xff000000); in createBitmap() 1242 return bm; in createBitmap() 1311 Bitmap bm = nativeCreate(colors, offset, stride, width, height, in createBitmap() local 1314 bm.mDensity = display.densityDpi; in createBitmap() 1316 return bm; in createBitmap() 2341 Bitmap bm = nativeCreateFromParcel(p); 2342 if (bm == null) { [all …]
|
D | ImageDecoder.java | 1784 Bitmap bm = decoder.decodeBitmapInternal(); in decodeDrawableImpl() local 1785 bm.setDensity(srcDensity); in decodeDrawableImpl() 1788 byte[] np = bm.getNinePatchChunk(); in decodeDrawableImpl() 1791 bm.getOpticalInsets(opticalInsets); in decodeDrawableImpl() 1797 return new NinePatchDrawable(res, bm, np, padding, in decodeDrawableImpl() 1801 return new BitmapDrawable(res, bm); in decodeDrawableImpl() 1863 Bitmap bm = decoder.decodeBitmapInternal(); in decodeBitmapImpl() local 1864 bm.setDensity(srcDensity); in decodeBitmapImpl() 1868 byte[] np = bm.getNinePatchChunk(); in decodeBitmapImpl() 1873 return bm; in decodeBitmapImpl()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | ImageDecoder_Delegate.java | 49 Bitmap bm = ImageDecoder.decodeBitmapImpl_Original(src, listener); in decodeBitmapImpl() local 50 if (stream instanceof NinePatchInputStream && bm.getNinePatchChunk() == null) { in decodeBitmapImpl() 62 bm = Bitmap.createBitmap(imageData, width, height, Config.ARGB_8888); in decodeBitmapImpl() 64 bm.setDensity(src.getDensity()); in decodeBitmapImpl() 65 bm.setNinePatchChunk(ninePatch.getChunk().getSerializedChunk()); in decodeBitmapImpl() 67 return bm; in decodeBitmapImpl()
|
/frameworks/base/libs/hwui/hwui/ |
D | ImageDecoder.cpp | 550 SkBitmap bm; in extractGainmap() local 551 if (!bm.setInfo(bitmapInfo)) { in extractGainmap() 558 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in extractGainmap() 560 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in extractGainmap() 568 SkCodec::Result result = decoder.decode(bm.getPixels(), bm.rowBytes()); in extractGainmap() 569 bm.setImmutable(); in extractGainmap()
|
/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/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/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/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 147 final Bitmap bm = Bitmap.createBitmap(4321, 78, Bitmap.Config.ARGB_8888); in testScaleDownIfNecessary() local 148 final Icon ic = Icon.createWithBitmap(bm); in testScaleDownIfNecessary() 151 assertThat(bm.getWidth()).isEqualTo(4321); in testScaleDownIfNecessary() 152 assertThat(bm.getHeight()).isEqualTo(78); in testScaleDownIfNecessary() 474 final Bitmap bm = Bitmap.createBitmap(bmpWidth, bmpHeight, Bitmap.Config.ARGB_8888); in testScaleDownMaxSizeWithBitmap() local 475 final Icon ic = Icon.createWithBitmap(bm); in testScaleDownMaxSizeWithBitmap() 491 final Bitmap bm = Bitmap.createBitmap(bmpWidth, bmpHeight, Bitmap.Config.ARGB_8888); in testScaleDownMaxSizeWithAdaptiveBitmap() local 492 final Icon ic = Icon.createWithAdaptiveBitmap(bm); in testScaleDownMaxSizeWithAdaptiveBitmap()
|
/frameworks/base/keystore/java/android/security/keystore2/ |
D | KeyStore2ParameterUtils.java | 258 final BiometricManager bm = android.app.AppGlobals.getInitialApplication() in addSids() local 264 final long[] biometricSids = bm.getAuthenticatorIds(); in addSids()
|
/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/services/contextualsearch/java/com/android/server/contextualsearch/ |
D | ContextualSearchManagerService.java | 346 final Bitmap bm = shb != null ? shb.asBitmap() : null; in getContextualSearchIntent() local 348 if (bm != null) { in getContextualSearchIntent() 353 launchIntent.putExtra(ContextualSearchManager.EXTRA_SCREENSHOT, bm.asShared()); in getContextualSearchIntent()
|
/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/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 433 IBackupManager bm = IBackupManager.Stub.asInterface( in setAutoRestore() local 435 if (bm != null) { in setAutoRestore() 436 bm.setAutoRestore(enabled); in setAutoRestore()
|
/frameworks/base/core/tests/bugreports/src/com/android/os/bugreports/tests/ |
D | BugreportManagerTest.java | 497 BugreportManager bm = in getBugreportManager() local 499 if (bm == null) { in getBugreportManager() 502 return bm; in getBugreportManager()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | DeviceStateMonitor.java | 718 final BatteryManager bm = (BatteryManager) mPhone.getContext().getSystemService( in isDeviceCharging() local 720 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/services/companion/java/com/android/server/companion/devicepresence/ |
D | DevicePresenceProcessor.java | 163 BluetoothManager bm = (BluetoothManager) context.getSystemService(BLUETOOTH_SERVICE); in init() local 164 if (bm == null) { in init() 168 final BluetoothAdapter btAdapter = bm.getAdapter(); in init()
|
/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/core/java/android/app/ |
D | WallpaperManager.java | 1046 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, returnDefault, which, cmProxy); in getDrawable() local 1047 if (bm != null) { in getDrawable() 1048 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in getDrawable() 1375 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, returnDefault, which, cmProxy); in getFastDrawable() local 1376 if (bm != null) { in getFastDrawable() 1377 return new FastBitmapDrawable(bm); in getFastDrawable()
|