Home
last modified time | relevance | path

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

12

/frameworks/base/core/jni/android/graphics/
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.cpp277 SkBitmap bm; in ImageDecoder_nDecodeBitmap() local
282 if (!bm.setInfo(bitmapInfo)) { in ImageDecoder_nDecodeBitmap()
292 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in ImageDecoder_nDecodeBitmap()
294 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in ImageDecoder_nDecodeBitmap()
306 auto result = codec->getAndroidPixels(decodeInfo, bm.getPixels(), bm.rowBytes(), &options); in ImageDecoder_nDecodeBitmap()
413 canvas.drawBitmap(bm, 0.0f, 0.0f, &paint); in ImageDecoder_nDecodeBitmap()
415 bm.swap(scaledBm); in ImageDecoder_nDecodeBitmap()
420 std::unique_ptr<Canvas> canvas(Canvas::create_canvas(bm)); in ImageDecoder_nDecodeBitmap()
427 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap()
444 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap()
[all …]
/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()
2072 Bitmap bm = nativeCreateFromParcel(p);
2073 if (bm == null) {
[all …]
DImageDecoder.java1780 Bitmap bm = decoder.decodeBitmapInternal(); in decodeDrawableImpl() local
1781 bm.setDensity(srcDensity); in decodeDrawableImpl()
1784 byte[] np = bm.getNinePatchChunk(); in decodeDrawableImpl()
1787 bm.getOpticalInsets(opticalInsets); in decodeDrawableImpl()
1793 return new NinePatchDrawable(res, bm, np, padding, in decodeDrawableImpl()
1797 return new BitmapDrawable(res, bm); in decodeDrawableImpl()
1854 Bitmap bm = decoder.decodeBitmapInternal(); in decodeBitmapImpl() local
1855 bm.setDensity(srcDensity); in decodeBitmapImpl()
1859 byte[] np = bm.getNinePatchChunk(); in decodeBitmapImpl()
1865 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/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskViewThumbnail.java183 Bitmap bm = thumbnailData.thumbnail; in setThumbnail() local
184 bm.prepareToDraw(); in setThumbnail()
186 mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in setThumbnail()
189 bm.getWidth() - thumbnailData.insets.left - thumbnailData.insets.right, in setThumbnail()
190 bm.getHeight() - thumbnailData.insets.top - thumbnailData.insets.bottom); in setThumbnail()
/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/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/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/core/java/android/app/
DWallpaperManager.java546 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM); in getDrawable() local
547 if (bm != null) { in getDrawable()
548 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in getDrawable()
777 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false, FLAG_SYSTEM); in peekDrawable() local
778 if (bm != null) { in peekDrawable()
779 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in peekDrawable()
801 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM); in getFastDrawable() local
802 if (bm != null) { in getFastDrawable()
803 return new FastBitmapDrawable(bm); in getFastDrawable()
817 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false, FLAG_SYSTEM); in peekFastDrawable() local
[all …]
DActivityManager.java1745 Bitmap bm = Bitmap.createBitmap(size.x, size.y, thumbnail.getConfig()); in addAppTask() local
1761 Canvas canvas = new Canvas(bm); in addAppTask()
1765 thumbnail = bm; in addAppTask()
/frameworks/base/core/java/com/android/internal/widget/
DCachingIconView.java111 public void setImageBitmap(Bitmap bm) { in setImageBitmap() argument
113 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.java285 IBackupManager bm = IBackupManager.Stub.asInterface( in setAutoRestore() local
287 if (bm != null) { in setAutoRestore()
288 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.cpp889 void RecordingCanvas::onDrawBitmap(const SkBitmap& bm, SkScalar x, SkScalar y, in onDrawBitmap() argument
891 fDL->drawImage(SkImage::MakeFromBitmap(bm), x, y, paint, BitmapPalette::Unknown); in onDrawBitmap()
893 void RecordingCanvas::onDrawBitmapNine(const SkBitmap& bm, const SkIRect& center, const SkRect& dst, in onDrawBitmapNine() argument
895 fDL->drawImageNine(SkImage::MakeFromBitmap(bm), center, dst, paint); in onDrawBitmapNine()
897 void RecordingCanvas::onDrawBitmapRect(const SkBitmap& bm, const SkRect* src, const SkRect& dst, in onDrawBitmapRect() argument
899 fDL->drawImageRect(SkImage::MakeFromBitmap(bm), src, dst, paint, constraint, in onDrawBitmapRect()
902 void RecordingCanvas::onDrawBitmapLattice(const SkBitmap& bm, const SkCanvas::Lattice& lattice, in onDrawBitmapLattice() argument
904 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.java632 final BatteryManager bm = (BatteryManager) mPhone.getContext().getSystemService( in isDeviceCharging() local
634 return bm.isCharging(); in isDeviceCharging()
/frameworks/base/core/java/android/text/format/
DTime.java1245 long bm = bObject.toMillis(false /* use isDst */); in compare() local
1246 long diff = am - bm; in compare()
/frameworks/base/core/java/android/widget/
DImageView.java750 public void setImageBitmap(Bitmap bm) {
755 mRecycleableBitmapDrawable = new BitmapDrawable(mContext.getResources(), bm);
757 mRecycleableBitmapDrawable.setBitmap(bm);
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java424 BiometricManager bm = mContext.getSystemService(BiometricManager.class); in hasEnrolledBiometrics() local
425 return bm.canAuthenticate() == BiometricManager.BIOMETRIC_SUCCESS; in hasEnrolledBiometrics()
2550 BiometricManager bm = mContext.getSystemService(BiometricManager.class); in spBasedDoVerifyCredential() local
2553 bm.resetLockout(authResult.gkResponse.getPayload()); in spBasedDoVerifyCredential()

12