Home
last modified time | relevance | path

Searched refs:getBitmap (Results 1 – 25 of 94) sorted by relevance

1234

/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DLocalImageResolverTest.java101 assertThat(bd.getBitmap().getWidth()).isLessThan( in resolveImage_largeBitmapIcon_defaultSize_resizeToDefaultSize()
103 assertThat(bd.getBitmap().getHeight()).isLessThan( in resolveImage_largeBitmapIcon_defaultSize_resizeToDefaultSize()
117 assertThat(bd.getBitmap().getWidth()).isLessThan( in resolveImage_largeAdaptiveBitmapIcon_defaultSize_resizeToDefaultSize()
119 assertThat(bd.getBitmap().getHeight()).isLessThan( in resolveImage_largeAdaptiveBitmapIcon_defaultSize_resizeToDefaultSize()
132 assertThat(bd.getBitmap().getWidth()).isLessThan( in resolveImage_largeResourceIcon_defaultSize_resizeToDefaultSize()
134 assertThat(bd.getBitmap().getHeight()).isLessThan( in resolveImage_largeResourceIcon_defaultSize_resizeToDefaultSize()
145 assertThat(bd.getBitmap().getWidth()).isLessThan(101); in resolveImage_largeResourceIcon_passedSize_resizeToDefinedSize()
146 assertThat(bd.getBitmap().getHeight()).isLessThan(51); in resolveImage_largeResourceIcon_passedSize_resizeToDefinedSize()
206 assertThat(bd.getBitmap().getWidth()).isEqualTo(32); in resolveImage_smallBitmapIcon_passedSmallerSize_dontResize()
207 assertThat(bd.getBitmap().getHeight()).isEqualTo(24); in resolveImage_smallBitmapIcon_passedSmallerSize_dontResize()
[all …]
H A DCachingIconViewTest.java241 assertThat(bitmapDrawable.getBitmap().getWidth()).isLessThan(maxSize + 1); in assertDrawableResized()
242 assertThat(bitmapDrawable.getBitmap().getHeight()).isLessThan(maxSize + 1); in assertDrawableResized()
256 assertThat(bitmapDrawable.getBitmap().getWidth()).isGreaterThan(maxSize); in assertDrawableNotResized()
257 assertThat(bitmapDrawable.getBitmap().getHeight()).isGreaterThan(maxSize); in assertDrawableNotResized()
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DIcon.java167 public Bitmap getBitmap() { in getBitmap() method in Icon
396 Bitmap scaledBmp = fixMaxBitmapSize(((BitmapDrawable) drawable).getBitmap()); in fixMaxBitmapSize()
542 getBitmap().isMutable() && in convertToAshmem()
543 getBitmap().getAllocationByteCount() >= MIN_ASHMEM_ICON_SIZE) { in convertToAshmem()
544 setBitmap(getBitmap().asShared()); in convertToAshmem()
564 getBitmap().compress(Bitmap.CompressFormat.PNG, 100, dataStream); in writeToStream()
640 return getBitmap() == otherIcon.getBitmap(); in sameAs()
883 .append(getBitmap().getWidth()) in toString()
885 .append(getBitmap().getHeight()); in toString()
976 getBitmap().writeToParcel(dest, flags); in writeToParcel()
[all …]
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DUploadedTexture.java134 private Bitmap getBitmap() { in getBitmap() method in UploadedTexture
154 if (mWidth == UNSPECIFIED) getBitmap(); in getWidth()
160 if (mWidth == UNSPECIFIED) getBitmap(); in getHeight()
193 Bitmap bitmap = getBitmap(); in updateContent()
212 Bitmap bitmap = getBitmap(); in uploadToCanvas()
H A DBitmapTexture.java51 public Bitmap getBitmap() { in getBitmap() method in BitmapTexture
/aosp14/frameworks/base/services/core/java/com/android/server/textclassifier/
H A DIconsContentProvider.java60 getBitmap(drawable).compress(Bitmap.CompressFormat.PNG, 100, out);
84 private static Bitmap getBitmap(Drawable drawable) { in getBitmap() method in IconsContentProvider
107 getBitmap(one).compress(Bitmap.CompressFormat.PNG, 100, stream1); in sameIcon()
109 getBitmap(two).compress(Bitmap.CompressFormat.PNG, 100, stream2); in sameIcon()
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
H A DIconTest.java52 .getBitmap(); in testWithBitmap()
123 assertThat(ic.getBitmap().getWidth()).isLessThan(41); in testScaleDownIfNecessary()
124 assertThat(ic.getBitmap().getHeight()).isLessThan(21); in testScaleDownIfNecessary()
164 .getBitmap(); in testWithBitmapResource()
242 .getBitmap(); in testWithFile()
266 .getBitmap(); in testAsync()
309 .getBitmap(); in testParcel()
427 assertThat(drawable.getBitmap().getByteCount()).isAtMost(RecordingCanvas.MAX_BITMAP_SIZE); in testScaleDownMaxSizeWithResource()
433 .getBitmap(); in testScaleDownMaxSizeWithFile()
442 assertThat(drawable.getBitmap().getByteCount()).isAtMost(RecordingCanvas.MAX_BITMAP_SIZE); in testScaleDownMaxSizeWithFile()
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DTextureView.java617 public @Nullable Bitmap getBitmap() { in getBitmap() method in TextureView
618 return getBitmap(getWidth(), getHeight()); in getBitmap()
644 public @Nullable Bitmap getBitmap(int width, int height) { in getBitmap() method in TextureView
646 return getBitmap(Bitmap.createBitmap(getResources().getDisplayMetrics(), in getBitmap()
675 public @NonNull Bitmap getBitmap(@NonNull Bitmap bitmap) { in getBitmap() method in TextureView
/aosp14/frameworks/base/core/tests/screenshothelpertests/src/com/android/internal/util/
H A DScreenshotRequestTest.java64 assertNull("Bitmap was expected to be null", out.getBitmap()); in testSimpleScreenshot()
92 assertTrue("Bitmaps should be equal", out.getBitmap().sameAs(bitmap)); in testProvidedScreenshot()
129 assertTrue("Bitmaps should be equal", out.getBitmap().sameAs(bitmap)); in testFullScreenshot_withBitmap()
/aosp14/frameworks/base/core/java/android/text/style/
H A DIconMarginSpan.java115 return "IconMarginSpan{bitmap=" + getBitmap() + ", padding=" + getPadding() + '}'; in toString()
122 @NonNull public Bitmap getBitmap() { in getBitmap() method in IconMarginSpan
/aosp14/frameworks/base/media/java/android/media/
H A DMediaMetadata.java438 getBitmap(METADATA_KEY_ART); in MediaMetadata()
439 getBitmap(METADATA_KEY_ALBUM_ART); in MediaMetadata()
440 getBitmap(METADATA_KEY_DISPLAY_ICON); in MediaMetadata()
518 public Bitmap getBitmap(@BitmapKey String key) { in getBitmap() method in MediaMetadata
614 Bitmap next = getBitmap(PREFERRED_BITMAP_ORDER[i]); in getDescription()
/aosp14/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/
H A DNotificationTests.java70 private static Bitmap getBitmap(Context context, int resId) { in getBitmap() method in NotificationTests
154 .setLargeIcon(getBitmap(context, R.drawable.bucket)) in makeBigTextNotification()
277 .setLargeIcon(getBitmap(mContext, R.drawable.matias_hed)) in testCreate()
342 .setLargeIcon(getBitmap(mContext, R.drawable.romainguy_hed)) in testCreate()
346 .bigPicture(d.getBitmap())) in testCreate()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DBluetoothUtils.java175 resources, ((BitmapDrawable) pair.first).getBitmap()), pair.second); in getBtRainbowDrawableWithDescription()
233 final Bitmap bitmap = MediaStore.Images.Media.getBitmap( in getBtDrawableWithDescription()
338 bitmap = ((BitmapDrawable) drawable).getBitmap(); in createIconWithDrawable()
359 bitmap = ((BitmapDrawable) drawable).getBitmap(); in buildAdvancedDrawable()
/aosp14/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DImageEncoder.java55 Bitmap bitmap = input.getBitmap(); in process()
/aosp14/frameworks/base/core/java/android/service/wallpaper/
H A DEngineWindowPage.java50 public Bitmap getBitmap() { in getBitmap() method in EngineWindowPage
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/
H A DBitmapUtils.java35 final Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); in renderDrawableToByteArray()
/aosp14/frameworks/base/core/java/android/app/
H A DDisabledWallpaperManager.java125 public Bitmap getBitmap() { in getBitmap() method in DisabledWallpaperManager
130 public Bitmap getBitmap(boolean hardware) { in getBitmap() method in DisabledWallpaperManager
/aosp14/frameworks/base/core/java/android/app/wallpapereffectsgeneration/
H A DCinematicEffectRequest.java72 public Bitmap getBitmap() { in getBitmap() method in CinematicEffectRequest
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DAssetsAtlasActivity.java46 mBitmap = ((BitmapDrawable) d).getBitmap(); in BitmapsView()
H A DGetBitmapActivity.java54 Bitmap b = mTextureView.getBitmap(); in onCreate()
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DVertexFrame.java109 public Bitmap getBitmap() { in getBitmap() method in VertexFrame
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DAppIconCacheManager.java44 return ((BitmapDrawable) drawable).getBitmap().getByteCount() / 1024; in AppIconCacheManager()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DSimpleIconFactory.java230 result = ((BitmapDrawable) badged).getBitmap(); in createUserBadgedIconBitmap()
387 Bitmap b = bitmapDrawable.getBitmap(); in createIconBitmap()
758 return getBitmap().getWidth(); in getIntrinsicHeight()
763 return getBitmap().getWidth(); in getIntrinsicWidth()
/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPageContentRepository.java402 Bitmap bitmap = page.content.getBitmap(); in hasSameSize()
431 return content.getBitmap().getByteCount(); in getSizeInBytes()
435 content.getBitmap().eraseColor(Color.WHITE); in erase()
896 Bitmap bitmap = mRenderedPage.content.getBitmap(); in doInBackground()
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
H A DRadioMetadataTest.java181 .that(metadata.getBitmap(key)).isEqualTo(mBitmapValue); in getBitmap_withKeyInMetadata()
190 .that(metadata.getBitmap(key)).isNull(); in getBitmap_withKeyNotInMetadata()

1234