Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/android/hardware/radio/
H A DRadioMetadata.java385 Bitmap bmp = null; in getBitmap() local
392 return bmp; in getBitmap()
523 Bitmap bmp = (Bitmap) value; in Builder() local
524 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) { in Builder()
634 float widthScale = maxSizeF / bmp.getWidth(); in scaleBitmap()
635 float heightScale = maxSizeF / bmp.getHeight(); in scaleBitmap()
637 int height = (int) (bmp.getHeight() * scale); in scaleBitmap()
638 int width = (int) (bmp.getWidth() * scale); in scaleBitmap()
673 Bitmap bmp = null; in putBitmapFromNative() local
676 if (bmp != null) { in putBitmapFromNative()
[all …]
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
H A 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()
/aosp14/frameworks/base/media/java/android/media/
H A 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()
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()
983 int height = (int) (bmp.getHeight() * scale); in scaleBitmap()
984 int width = (int) (bmp.getWidth() * scale); in scaleBitmap()
[all …]
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
H A DPackageUtil.java133 Bitmap bmp = in.readParcelable(getClass().getClassLoader(), Bitmap.class); in AppSnippet() local
134 icon = new BitmapDrawable(Resources.getSystem(), bmp); in AppSnippet()
150 Bitmap bmp = getBitmapFromDrawable(icon); in writeToParcel() local
151 dest.writeParcelable(bmp, 0); in writeToParcel()
156 final Bitmap bmp = Bitmap.createBitmap(drawable.getIntrinsicWidth(), in getBitmapFromDrawable() local
160 final Canvas canvas = new Canvas(bmp); in getBitmapFromDrawable()
165 return bmp; in getBitmapFromDrawable()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A 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()
/aosp14/frameworks/base/mime/java-res/
H A Dandroid.mime.types91 ?image/bmp bmp
152 image/x-ms-bmp bmp
/aosp14/frameworks/base/services/core/java/com/android/server/graphics/fonts/
H A DOtfFontFileParser.java109 Bitmap bmp = Bitmap.createBitmap( in tryToCreateTypeface() local
111 Canvas canvas = new Canvas(bmp); in tryToCreateTypeface()
/aosp14/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java456 native long rsnAllocationCreateFromBitmap(long con, long type, int mip, Bitmap bmp, in rsnAllocationCreateFromBitmap() argument
460 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage); in nAllocationCreateFromBitmap()
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
475 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage); in nAllocationCubeCreateFromBitmap()
478 native void rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp); in rsnAllocationCopyToBitmap() argument
479 synchronized void nAllocationCopyToBitmap(long alloc, Bitmap bmp) { in nAllocationCopyToBitmap() argument
481 rsnAllocationCopyToBitmap(mContext, alloc, bmp); in nAllocationCopyToBitmap()
534 native void rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp); in rsnAllocationCopyFromBitmap() argument
535 synchronized void nAllocationCopyFromBitmap(long alloc, Bitmap bmp) { in nAllocationCopyFromBitmap() argument
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A 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()
/aosp14/frameworks/base/core/java/android/content/pm/
H A DLauncherApps.java1497 final Bitmap bmp = BitmapFactory.decodeFileDescriptor(pfd.getFileDescriptor()); in loadDrawableFromFileDescriptor() local
1498 if (bmp != null) { in loadDrawableFromFileDescriptor()
1499 BitmapDrawable dr = new BitmapDrawable(mContext.getResources(), bmp); in loadDrawableFromFileDescriptor()
1525 final Bitmap bmp = BitmapFactory.decodeFileDescriptor(pfd.getFileDescriptor()); in getShortcutIcon() local
1526 if (bmp != null) { in getShortcutIcon()
1528 return Icon.createWithAdaptiveBitmap(bmp); in getShortcutIcon()
1530 return Icon.createWithBitmap(bmp); in getShortcutIcon()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
H A DMediaOutputBroadcastDialog.java392 final Bitmap bmp = QrCodeGenerator.encodeQrCode(broadcastMetadata, qrcodeSize); in setQrCodeView() local
393 mBroadcastQrCodeView.setImageBitmap(bmp); in setQrCodeView()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationMediaManager.java601 @Nullable Bitmap bmp) { in finishUpdateMediaMetaData() argument
603 if (bmp != null) { in finishUpdateMediaMetaData()
604 artworkDrawable = new BitmapDrawable(mBackdropBack.getResources(), bmp); in finishUpdateMediaMetaData()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest1.java852 Bitmap bmp; in testIcons() local
919 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
921 assertBitmapSize(32, 32, bmp); in testIcons()
923 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
925 assertBitmapSize(64, 64, bmp); in testIcons()
927 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
929 assertBitmapSize(128, 128, bmp); in testIcons()
936 bmp = pfdToBitmap(mLauncherApps.getShortcutIconFd( in testIcons()
938 assertBitmapSize(128, 128, bmp); in testIcons()
950 bmp = pfdToBitmap( in testIcons()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A 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()
443 msg.obj = new LoadUriTask(imageResourceId, uri, extraImages, bmp); in loadUriIntoView()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/
H A DMediaControlPanelTest.kt2507 val bmp = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888) regex
2508 val canvas = Canvas(bmp)
2510 return Icon.createWithBitmap(bmp)