Home
last modified time | relevance | path

Searched refs:bmp (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/android/hardware/radio/
DRadioMetadata.java344 Bitmap bmp = null; in getBitmap() local
346 bmp = mBundle.getParcelable(key); in getBitmap()
351 return bmp; in getBitmap()
482 Bitmap bmp = (Bitmap) value; in Builder() local
483 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) { in Builder()
484 putBitmap(key, scaleBitmap(bmp, maxBitmapSize)); in Builder()
591 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { in scaleBitmap() argument
593 float widthScale = maxSizeF / bmp.getWidth(); in scaleBitmap()
594 float heightScale = maxSizeF / bmp.getHeight(); in scaleBitmap()
596 int height = (int) (bmp.getHeight() * scale); in scaleBitmap()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/
DReusableBitmap.java27 public final Bitmap bmp; field in ReusableBitmap
40 bmp = bitmap; in ReusableBitmap()
74 return bmp.getByteCount(); in getByteCount()
104 sb.append(bmp); in toString()
109 if (bmp != null) { in toString()
111 sb.append(bmp.getByteCount() >> 10); in toString()
DDecodeTask.java284 mOpts.inBitmap = mInBitmap.bmp; in decode()
523 result.bmp.recycle(); in onCancelled()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DVectorDrawablePerfTest.java65 Bitmap bmp = Bitmap.createBitmap(w, h, conf); in testBitmapDrawPerf() local
66 Canvas canvas = new Canvas(bmp); in testBitmapDrawPerf()
78 int backgroundColor = bmp.getPixel(w / 4, h / 2); in testBitmapDrawPerf()
79 int objColor = bmp.getPixel(w / 8, h / 2 + 1); in testBitmapDrawPerf()
80 int emptyColor = bmp.getPixel(w * 3 / 4, h * 3 / 4); in testBitmapDrawPerf()
86 BitmapUtils.saveBitmapIntoPNG(activity, bmp, resId); in testBitmapDrawPerf()
/frameworks/base/media/java/android/media/
DMediaMetadata.java504 Bitmap bmp = null; in getBitmap() local
506 bmp = mBundle.getParcelable(key); in getBitmap()
511 return bmp; in getBitmap()
754 Bitmap bmp = (Bitmap) value; in Builder() local
755 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) { in Builder()
756 putBitmap(key, scaleBitmap(bmp, maxBitmapSize)); in Builder()
931 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { in scaleBitmap() argument
933 float widthScale = maxSizeF / bmp.getWidth(); in scaleBitmap()
934 float heightScale = maxSizeF / bmp.getHeight(); in scaleBitmap()
936 int height = (int) (bmp.getHeight() * scale); in scaleBitmap()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DBasicBitmapDrawable.java263 protected void setBitmap(ReusableBitmap bmp) { in setBitmap() argument
267 mBitmap = bmp; in setBitmap()
410 return mBitmap != null && mBitmap.bmp != null; in hasBitmap()
419 canvas.drawBitmap(mBitmap.bmp, src, dst, mPaint); in onDrawBitmap()
440 return (hasBitmap() && (mBitmap.bmp.hasAlpha() || mPaint.getAlpha() < 255)) ? in getOpacity()
DExtendedBitmapDrawable.java202 protected void setBitmap(ReusableBitmap bmp) { in setBitmap() argument
203 if (bmp != null) { in setBitmap()
209 super.setBitmap(bmp); in setBitmap()
DCircularBitmapDrawable.java95 onDrawCircularBitmap(getBitmap().bmp, canvas, src, dst, 1f); in onDrawBitmap()
/frameworks/rs/tests/java_api/GenImages/src/com/android/rs/genimage/
DGenImage.java256 Bitmap bmp = Bitmap.createBitmap(512, 512, Bitmap.Config.ARGB_8888); in draw() local
257 bmp.setPixels(ib.array(), 0, 512, 0, 0, 512, 512); in draw()
263 bmp.compress(Bitmap.CompressFormat.PNG, 95, out); in draw()
268 bmp.recycle(); in draw()
/frameworks/rs/support/java/src/androidx/renderscript/
DRenderScript.java392 native long rsnAllocationCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); in rsnAllocationCreateFromBitmap() argument
393 synchronized long nAllocationCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { in nAllocationCreateFromBitmap() argument
395 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage); in nAllocationCreateFromBitmap()
398 …native long rsnAllocationCreateBitmapBackedAllocation(long con, long type, int mip, Bitmap bmp, i… in rsnAllocationCreateBitmapBackedAllocation() argument
399 …synchronized long nAllocationCreateBitmapBackedAllocation(long type, int mip, Bitmap bmp, int usag… in nAllocationCreateBitmapBackedAllocation() argument
401 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage); in nAllocationCreateBitmapBackedAllocation()
405 …native long rsnAllocationCubeCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage… in rsnAllocationCubeCreateFromBitmap() argument
406 synchronized long nAllocationCubeCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { in nAllocationCubeCreateFromBitmap() argument
408 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage); in nAllocationCubeCreateFromBitmap()
410 native long rsnAllocationCreateBitmapRef(long con, long type, Bitmap bmp); in rsnAllocationCreateBitmapRef() argument
[all …]
/frameworks/base/rs/java/android/renderscript/
DRenderScript.java452 synchronized long nAllocationCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { in nAllocationCreateFromBitmap() argument
454 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp.getNativeInstance(), usage); in nAllocationCreateFromBitmap()
459 synchronized long nAllocationCreateBitmapBackedAllocation(long type, int mip, Bitmap bmp, in nAllocationCreateBitmapBackedAllocation() argument
462 … return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp.getNativeInstance(), in nAllocationCreateBitmapBackedAllocation()
468 synchronized long nAllocationCubeCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { in nAllocationCubeCreateFromBitmap() argument
470 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp.getNativeInstance(), in nAllocationCubeCreateFromBitmap()
474 synchronized long nAllocationCreateBitmapRef(long type, Bitmap bmp) { in nAllocationCreateBitmapRef() argument
476 return rsnAllocationCreateBitmapRef(mContext, type, bmp.getNativeInstance()); in nAllocationCreateBitmapRef()
485 synchronized void nAllocationCopyToBitmap(long alloc, Bitmap bmp) { in nAllocationCopyToBitmap() argument
487 rsnAllocationCopyToBitmap(mContext, alloc, bmp.getNativeInstance()); in nAllocationCopyToBitmap()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java629 public static void setCachedBitmap(String value, Bitmap bmp, Object projectKey) { in setCachedBitmap() argument
634 map.put(value, new SoftReference<>(bmp)); in setCachedBitmap()
636 sFrameworkBitmapCache.put(value, new SoftReference<>(bmp)); in setCachedBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationMediaManager.java486 @Nullable Bitmap bmp) { in finishUpdateMediaMetaData() argument
488 if (bmp != null) { in finishUpdateMediaMetaData()
489 artworkDrawable = new BitmapDrawable(mBackdropBack.getResources(), bmp); in finishUpdateMediaMetaData()
/frameworks/native/cmds/installd/
Dinstalld.rc41 mkdir /config/sdcardfs/extensions/1057/bmp
/frameworks/base/core/java/android/content/pm/
DLauncherApps.java1012 final Bitmap bmp = BitmapFactory.decodeFileDescriptor(pfd.getFileDescriptor()); in getShortcutIconDrawable() local
1013 if (bmp != null) { in getShortcutIconDrawable()
1014 BitmapDrawable dr = new BitmapDrawable(mContext.getResources(), bmp); in getShortcutIconDrawable()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java666 Bitmap bmp; in testIcons() local
721 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
723 assertBitmapSize(32, 32, bmp); in testIcons()
725 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
727 assertBitmapSize(64, 64, bmp); in testIcons()
729 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
731 assertBitmapSize(128, 128, bmp); in testIcons()
738 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
740 assertBitmapSize(128, 128, bmp); in testIcons()
752 bmp = pfdToBitmap( in testIcons()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java274 LoadUriTask(int imageResourceId, Uri uri, int extraCount, Bitmap bmp) { in LoadUriTask() argument
278 this.mBmp = bmp; in LoadUriTask()
335 final Bitmap bmp = loadThumbnail(uri, new Size(200, 200)); in loadUriIntoView() local
338 msg.obj = new LoadUriTask(imageResourceId, uri, extraImages, bmp); in loadUriIntoView()