Home
last modified time | relevance | path

Searched refs:bm (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/libs/hwui/jni/
DGIFMovie.cpp132 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src, in copyInterlaceGroup() argument
140 uint32_t* dst = bm->getAddr32(imageDesc.Left, imageDesc.Top + row); in copyInterlaceGroup()
149 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument
152 int width = bm->width(); in blitInterlace()
153 int height = bm->height(); in blitInterlace()
168 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace()
171 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace()
174 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace()
176 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace()
180 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument
[all …]
DImageDecoder.cpp312 SkBitmap bm; in ImageDecoder_nDecodeBitmap() local
313 if (!bm.setInfo(bitmapInfo)) { in ImageDecoder_nDecodeBitmap()
320 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in ImageDecoder_nDecodeBitmap()
322 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in ImageDecoder_nDecodeBitmap()
332 SkCodec::Result result = decoder->decode(bm.getPixels(), bm.rowBytes()); in ImageDecoder_nDecodeBitmap()
396 std::unique_ptr<Canvas> canvas(Canvas::create_canvas(bm)); in ImageDecoder_nDecodeBitmap()
403 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap()
420 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap()
421 if (!bm.setAlphaType(newAlphaType)) { in ImageDecoder_nDecodeBitmap()
443 sk_sp<Bitmap> hwBitmap = Bitmap::allocateHardwareBitmap(bm); in ImageDecoder_nDecodeBitmap()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java512 Bitmap bm = null; in decodeFile() local
516 bm = decodeStream(stream, null, opts); in decodeFile()
531 return bm; in decodeFile()
597 Bitmap bm = null; in decodeResource() local
604 bm = decodeResourceStream(res, value, is, null, opts); in decodeResource()
618 if (bm == null && opts != null && opts.inBitmap != null) { in decodeResource()
622 return bm; in decodeResource()
661 Bitmap bm; in decodeByteArray() local
665 bm = nativeDecodeByteArray(data, offset, length, opts, in decodeByteArray()
669 if (bm == null && opts != null && opts.inBitmap != null) { in decodeByteArray()
[all …]
DBitmap.java1122 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true, in createBitmap() local
1126 bm.mDensity = display.densityDpi; in createBitmap()
1128 bm.setHasAlpha(hasAlpha); in createBitmap()
1130 nativeErase(bm.mNativePtr, 0xff000000); in createBitmap()
1135 return bm; in createBitmap()
1202 Bitmap bm = nativeCreate(colors, offset, stride, width, height, in createBitmap() local
1205 bm.mDensity = display.densityDpi; in createBitmap()
1207 return bm; in createBitmap()
2105 Bitmap bm = nativeCreateFromParcel(p);
2106 if (bm == null) {
[all …]
DImageDecoder.java1795 Bitmap bm = decoder.decodeBitmapInternal(); in decodeDrawableImpl() local
1796 bm.setDensity(srcDensity); in decodeDrawableImpl()
1799 byte[] np = bm.getNinePatchChunk(); in decodeDrawableImpl()
1802 bm.getOpticalInsets(opticalInsets); in decodeDrawableImpl()
1808 return new NinePatchDrawable(res, bm, np, padding, in decodeDrawableImpl()
1812 return new BitmapDrawable(res, bm); in decodeDrawableImpl()
1869 Bitmap bm = decoder.decodeBitmapInternal(); in decodeBitmapImpl() local
1870 bm.setDensity(srcDensity); in decodeBitmapImpl()
1874 byte[] np = bm.getNinePatchChunk(); in decodeBitmapImpl()
1880 return bm; in decodeBitmapImpl()
/frameworks/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java54 Bitmap bm = null; in nativeDecodeStream() local
76 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), bitmapCreateFlags, in nativeDecodeStream()
81 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); in nativeDecodeStream()
93 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density); in nativeDecodeStream()
99 return bm; in nativeDecodeStream()
/frameworks/ml/nn/tools/systrace_parser/parser/test/
Dlarge_test.sh24 ../../parse_systrace.py --per-execution hdrnet.html > hdrnet-bm.tmp
36 diff hdrnet-bm.txt hdrnet-bm.tmp
Dmake_golden.sh8 ../../parse_systrace.py --per-execution hdrnet.html > hdrnet-bm.txt
/frameworks/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java92 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/
DTestService.java819 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/opt/bitmap/src/com/android/bitmap/view/
DBitmapDrawableImageView.java127 public void setImageBitmap(final Bitmap bm) { in setImageBitmap() argument
128 super.setImageBitmap(bm); in setImageBitmap()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java1272 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); in createFromResourceStream() local
1273 if (bm != null) { in createFromResourceStream()
1274 byte[] np = bm.getNinePatchChunk(); in createFromResourceStream()
1281 bm.getOpticalInsets(opticalInsets); in createFromResourceStream()
1282 return drawableFromBitmap(res, bm, np, pad, opticalInsets, srcName); in createFromResourceStream()
1569 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, in drawableFromBitmap() argument
1573 return new NinePatchDrawable(res, bm, np, pad, layoutBounds, srcName); in drawableFromBitmap()
1576 return new BitmapDrawable(res, bm); in drawableFromBitmap()
/frameworks/base/core/java/android/app/
DWallpaperManager.java609 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM, cmProxy); in getDrawable() local
610 if (bm != null) { in getDrawable()
611 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in getDrawable()
841 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false, FLAG_SYSTEM, cmProxy); in peekDrawable() local
842 if (bm != null) { in peekDrawable()
843 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in peekDrawable()
866 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM, cmProxy); in getFastDrawable() local
867 if (bm != null) { in getFastDrawable()
868 return new FastBitmapDrawable(bm); in getFastDrawable()
883 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false, FLAG_SYSTEM, cmProxy); in peekFastDrawable() local
[all …]
/frameworks/base/keystore/java/android/security/keystore/
DKeymasterUtils.java101 final BiometricManager bm = KeyStore.getApplicationContext() in addSids() local
107 final long[] biometricSids = bm.getAuthenticatorIds(); in addSids()
/frameworks/base/core/java/com/android/internal/widget/
DCachingIconView.java116 public void setImageBitmap(Bitmap bm) { in setImageBitmap() argument
118 super.setImageBitmap(bm); in setImageBitmap()
/frameworks/base/core/tests/bugreports/src/android/server/bugreports/
DBugreportManagerTest.java286 BugreportManager bm = in getBugreportManager() local
288 if (bm == null) { in getBugreportManager()
291 return bm; in getBugreportManager()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java321 IBackupManager bm = IBackupManager.Stub.asInterface( in setAutoRestore() local
323 if (bm != null) { in setAutoRestore()
324 bm.setAutoRestore(enabled); in setAutoRestore()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java115 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/libs/hwui/
DRecordingCanvas.cpp932 void RecordingCanvas::onDrawBitmap(const SkBitmap& bm, SkScalar x, SkScalar y, in onDrawBitmap() argument
934 fDL->drawImage(SkImage::MakeFromBitmap(bm), x, y, paint, BitmapPalette::Unknown); in onDrawBitmap()
936 void RecordingCanvas::onDrawBitmapNine(const SkBitmap& bm, const SkIRect& center, const SkRect& dst, in onDrawBitmapNine() argument
938 fDL->drawImageNine(SkImage::MakeFromBitmap(bm), center, dst, paint); in onDrawBitmapNine()
940 void RecordingCanvas::onDrawBitmapRect(const SkBitmap& bm, const SkRect* src, const SkRect& dst, in onDrawBitmapRect() argument
942 fDL->drawImageRect(SkImage::MakeFromBitmap(bm), src, dst, paint, constraint, in onDrawBitmapRect()
945 void RecordingCanvas::onDrawBitmapLattice(const SkBitmap& bm, const SkCanvas::Lattice& lattice, in onDrawBitmapLattice() argument
947 fDL->drawImageLattice(SkImage::MakeFromBitmap(bm), lattice, dst, paint, BitmapPalette::Unknown); in onDrawBitmapLattice()
/frameworks/base/core/java/android/provider/
DContacts.java633 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/
DDeviceStateMonitor.java693 final BatteryManager bm = (BatteryManager) mPhone.getContext().getSystemService( in isDeviceCharging() local
695 boolean retval = bm.isCharging(); in isDeviceCharging()
/frameworks/base/core/java/android/text/format/
DTime.java1256 long bm = bObject.toMillis(false /* use isDst */); in compare() local
1257 long diff = am - bm; in compare()
/frameworks/base/core/java/android/widget/
DImageView.java752 public void setImageBitmap(Bitmap bm) {
757 mRecycleableBitmapDrawable = new BitmapDrawable(mContext.getResources(), bm);
759 mRecycleableBitmapDrawable.setBitmap(bm);
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java505 BiometricManager bm = mContext.getSystemService(BiometricManager.class); in hasEnrolledBiometrics() local
506 return bm.hasEnrolledBiometrics(userId); in hasEnrolledBiometrics()
1415 final BiometricManager bm = mContext.getSystemService(BiometricManager.class); in unlockUser() local
1418 bm.setActiveUser(resetLockouts.get(i).mUserId); in unlockUser()
1419 bm.resetLockout(resetLockouts.get(i).mHAT); in unlockUser()
/frameworks/base/keystore/java/android/security/
DKeyStore.java1349 final BiometricManager bm = mContext.getSystemService(BiometricManager.class); in getInvalidKeyException() local
1350 long[] biometricSids = bm.getAuthenticatorIds(); in getInvalidKeyException()

12