Home
last modified time | relevance | path

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

/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/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageUtil.java154 Bitmap bmp = BitmapFactory.decodeByteArray(b, 0, b.length); in AppSnippet() local
155 icon = new BitmapDrawable(Resources.getSystem(), bmp); in AppSnippet()
173 Bitmap bmp = getBitmapFromDrawable(icon); in writeToParcel() local
174 dest.writeBlob(getBytesFromBitmap(bmp)); in writeToParcel()
175 bmp.recycle(); in writeToParcel()
182 final Bitmap bmp = Bitmap.createBitmap(drawable.getIntrinsicWidth(), in getBitmapFromDrawable() local
185 final Canvas canvas = new Canvas(bmp); in getBitmapFromDrawable()
191 if ((bmp.getWidth() > iconSize * 2) || (bmp.getHeight() > iconSize * 2)) { in getBitmapFromDrawable()
192 Bitmap scaledBitmap = Bitmap.createScaledBitmap(bmp, iconSize, iconSize, true); in getBitmapFromDrawable()
193 if (scaledBitmap != bmp) { in getBitmapFromDrawable()
[all …]
/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/core/java/android/hardware/radio/
DRadioMetadata.java483 Bitmap bmp = null; in getBitmap() local
485 bmp = mBundle.getParcelable(key, android.graphics.Bitmap.class); in getBitmap()
490 return bmp; in getBitmap()
657 Bitmap bmp = (Bitmap) value; in Builder() local
658 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) { in Builder()
659 putBitmap(key, scaleBitmap(bmp, maxBitmapSize)); in Builder()
801 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { in scaleBitmap() argument
803 float widthScale = maxSizeF / bmp.getWidth(); in scaleBitmap()
804 float heightScale = maxSizeF / bmp.getHeight(); in scaleBitmap()
806 int height = (int) (bmp.getHeight() * scale); in scaleBitmap()
[all …]
/frameworks/base/media/java/android/media/
DMediaMetadata.java519 Bitmap bmp = null; in getBitmap() local
521 bmp = mBundle.getParcelable(key, android.graphics.Bitmap.class); in getBitmap()
526 return bmp; in getBitmap()
967 Bitmap bmp = (Bitmap) value; in build() local
968 if (bmp.getHeight() > mBitmapDimensionLimit in build()
969 || bmp.getWidth() > mBitmapDimensionLimit) { in build()
970 putBitmap(key, scaleBitmap(bmp, mBitmapDimensionLimit)); in build()
978 private Bitmap scaleBitmap(Bitmap bmp, int maxDimension) { in scaleBitmap() argument
980 float widthScale = maxDimensionF / bmp.getWidth(); in scaleBitmap()
981 float heightScale = maxDimensionF / bmp.getHeight(); 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/base/services/core/java/com/android/server/am/
DUserSwitchingDialog.java150 final Bitmap bmp = ObjectUtils.getOrElse(BitmapFactory.decodeFile(mNewUser.iconPath), in getUserIconRounded() local
152 final int w = bmp.getWidth(); in getUserIconRounded()
153 final int h = bmp.getHeight(); in getUserIconRounded()
154 final Bitmap bmpRounded = Bitmap.createBitmap(w, h, bmp.getConfig()); in getUserIconRounded()
156 paint.setShader(new BitmapShader(bmp, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP)); in getUserIconRounded()
/frameworks/rs/support/java/src/androidx/renderscript/
DRenderScript.java397 native long rsnAllocationCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); in rsnAllocationCreateFromBitmap() argument
398 synchronized long nAllocationCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { in nAllocationCreateFromBitmap() argument
400 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage); in nAllocationCreateFromBitmap()
403 …native long rsnAllocationCreateBitmapBackedAllocation(long con, long type, int mip, Bitmap bmp, i… in rsnAllocationCreateBitmapBackedAllocation() argument
404 …synchronized long nAllocationCreateBitmapBackedAllocation(long type, int mip, Bitmap bmp, int usag… in nAllocationCreateBitmapBackedAllocation() argument
406 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage); in nAllocationCreateBitmapBackedAllocation()
410 …native long rsnAllocationCubeCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage… in rsnAllocationCubeCreateFromBitmap() argument
411 synchronized long nAllocationCubeCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { in nAllocationCubeCreateFromBitmap() argument
413 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage); in nAllocationCubeCreateFromBitmap()
415 native long rsnAllocationCreateBitmapRef(long con, long type, Bitmap bmp); in rsnAllocationCreateBitmapRef() argument
[all …]
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DOtfFontFileParser.java109 Bitmap bmp = Bitmap.createBitmap( in tryToCreateTypeface() local
111 Canvas canvas = new Canvas(bmp); in tryToCreateTypeface()
/frameworks/libs/systemui/toruslib/torus-wallpaper-settings/src/main/java/com/google/android/torus/settings/inlinecontrol/
DColorChipsRowBuilder.kt163 val bmp = Bitmap.createBitmap(iconWidth, iconHeight, Bitmap.Config.ARGB_8888) in makeColorOption() constant
164 val canvas = Canvas(bmp) in makeColorOption()
196 return IconCompat.createWithBitmap(bmp) in makeColorOption()
/frameworks/base/mime/java-res/
Dandroid.mime.types95 ?image/bmp bmp
157 image/x-ms-bmp bmp
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRowDragController.java181 final Bitmap bmp = Bitmap.createBitmap(drawable.getIntrinsicWidth(), in getBitmapFromDrawable() local
183 final Canvas canvas = new Canvas(bmp); in getBitmapFromDrawable()
186 return bmp; in getBitmapFromDrawable()
/frameworks/base/rs/java/android/renderscript/
DRenderScript.java456 native long rsnAllocationCreateFromBitmap(long con, long type, int mip, Bitmap bmp, in rsnAllocationCreateFromBitmap() argument
458 synchronized long nAllocationCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { in nAllocationCreateFromBitmap() argument
460 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage); in nAllocationCreateFromBitmap()
463 native long rsnAllocationCreateBitmapBackedAllocation(long con, long type, int mip, Bitmap bmp, in rsnAllocationCreateBitmapBackedAllocation() argument
465 synchronized long nAllocationCreateBitmapBackedAllocation(long type, int mip, Bitmap bmp, in nAllocationCreateBitmapBackedAllocation() argument
468 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage); in nAllocationCreateBitmapBackedAllocation()
471 native long rsnAllocationCubeCreateFromBitmap(long con, long type, int mip, Bitmap bmp, in rsnAllocationCubeCreateFromBitmap() argument
473 synchronized long nAllocationCubeCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { in nAllocationCubeCreateFromBitmap() argument
475 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage); in nAllocationCubeCreateFromBitmap()
478 native void rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp); in rsnAllocationCopyToBitmap() argument
[all …]
/frameworks/base/core/java/android/content/pm/
DLauncherApps.java1762 final Bitmap bmp = BitmapFactory.decodeFileDescriptor(pfd.getFileDescriptor()); in loadDrawableFromFileDescriptor() local
1763 if (bmp != null) { in loadDrawableFromFileDescriptor()
1764 BitmapDrawable dr = new BitmapDrawable(mContext.getResources(), bmp); in loadDrawableFromFileDescriptor()
1790 final Bitmap bmp = BitmapFactory.decodeFileDescriptor(pfd.getFileDescriptor()); in getShortcutIcon() local
1791 if (bmp != null) { in getShortcutIcon()
1793 return Icon.createWithAdaptiveBitmap(bmp); in getShortcutIcon()
1795 return Icon.createWithBitmap(bmp); in getShortcutIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputBroadcastDialog.java396 final Bitmap bmp = QrCodeGenerator.encodeQrCode(broadcastMetadata, qrcodeSize); in setQrCodeView() local
397 mBroadcastQrCodeView.setImageBitmap(bmp); in setQrCodeView()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java717 public static void setCachedBitmap(String value, Bitmap bmp, Object projectKey) { in setCachedBitmap() argument
722 map.put(value, new SoftReference<>(bmp)); in setCachedBitmap()
724 sFrameworkBitmapCache.put(value, new SoftReference<>(bmp)); in setCachedBitmap()
/frameworks/native/cmds/installd/
Dinstalld.rc43 mkdir /config/sdcardfs/extensions/1057/bmp
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java903 Bitmap bmp; in testIcons() local
970 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
972 assertBitmapSize(32, 32, bmp); in testIcons()
974 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
976 assertBitmapSize(64, 64, bmp); in testIcons()
978 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
980 assertBitmapSize(128, 128, bmp); in testIcons()
987 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
989 assertBitmapSize(128, 128, bmp); in testIcons()
1001 bmp = pfdToBitmap( in testIcons()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java358 LoadUriTask(int imageResourceId, Uri uri, int extraCount, Bitmap bmp) { in LoadUriTask() argument
362 this.mBmp = bmp; in LoadUriTask()
440 final Bitmap bmp = loadThumbnail(uri, new Size(size, size)); in loadUriIntoView() local
443 msg.obj = new LoadUriTask(imageResourceId, uri, extraImages, bmp); in loadUriIntoView()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/controller/
DMediaControlPanelTest.kt2564 val bmp = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888) in <lambda>() constant
2565 val canvas = Canvas(bmp) in <lambda>()
2567 return Icon.createWithBitmap(bmp) in <lambda>()