Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
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()
157 assertThat(bd.getBitmap().getWidth()).isGreaterThan(101); in resolveImage_largeResourceIcon_negativeWidth_dontResize()
158 assertThat(bd.getBitmap().getHeight()).isGreaterThan(51); in resolveImage_largeResourceIcon_negativeWidth_dontResize()
[all …]
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()
/frameworks/base/services/core/java/com/android/server/textclassifier/
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()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
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()
DBitmapTexture.java51 public Bitmap getBitmap() { in getBitmap() method in BitmapTexture
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java184 public Bitmap getBitmap() { in getBitmap() method in Icon
437 Bitmap scaledBmp = fixMaxBitmapSize(((BitmapDrawable) drawable).getBitmap()); in fixMaxBitmapSize()
449 return new BitmapDrawable(context.getResources(), fixMaxBitmapSize(getBitmap())); in loadDrawableInner()
452 new BitmapDrawable(context.getResources(), fixMaxBitmapSize(getBitmap()))); in loadDrawableInner()
636 getBitmap().isMutable() && in convertToAshmem()
637 getBitmap().getAllocationByteCount() >= MIN_ASHMEM_ICON_SIZE) { in convertToAshmem()
638 setBitmap(getBitmap().asShared()); in convertToAshmem()
658 getBitmap().compress(Bitmap.CompressFormat.PNG, 100, dataStream); in writeToStream()
734 return getBitmap() == otherIcon.getBitmap(); in sameAs()
999 .append(getBitmap().getWidth()) in toString()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java83 .getBitmap(); in testWithBitmap()
154 assertThat(ic.getBitmap().getWidth()).isLessThan(41); in testScaleDownIfNecessary()
155 assertThat(ic.getBitmap().getHeight()).isLessThan(21); in testScaleDownIfNecessary()
195 .getBitmap(); in testWithBitmapResource()
273 .getBitmap(); in testWithFile()
345 .getBitmap(); in testAsync()
388 .getBitmap(); in testParcel()
506 assertThat(drawable.getBitmap().getByteCount()).isAtMost(RecordingCanvas.MAX_BITMAP_SIZE); in testScaleDownMaxSizeWithResource()
512 .getBitmap(); in testScaleDownMaxSizeWithFile()
521 assertThat(drawable.getBitmap().getByteCount()).isAtMost(RecordingCanvas.MAX_BITMAP_SIZE); in testScaleDownMaxSizeWithFile()
[all …]
/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java115 return "IconMarginSpan{bitmap=" + getBitmap() + ", padding=" + getPadding() + '}'; in toString()
122 @NonNull public Bitmap getBitmap() { in getBitmap() method in IconMarginSpan
/frameworks/base/core/tests/screenshothelpertests/src/com/android/internal/util/
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()
/frameworks/base/core/java/android/view/
DTextureView.java641 public @Nullable Bitmap getBitmap() { in getBitmap() method in TextureView
642 return getBitmap(getWidth(), getHeight()); in getBitmap()
668 public @Nullable Bitmap getBitmap(int width, int height) { in getBitmap() method in TextureView
670 return getBitmap(Bitmap.createBitmap(getResources().getDisplayMetrics(), in getBitmap()
699 public @NonNull Bitmap getBitmap(@NonNull Bitmap bitmap) { in getBitmap() method in TextureView
/frameworks/base/tests/Input/src/com/android/test/input/
DPointerIconLoadingTest.kt99 pointerIcon.getBitmap().assertAgainstGolden( in testPointerFillStyle()
120 pointerIcon.getBitmap().assertAgainstGolden( in testPointerScale()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DIconMixinTest.java122 assertEquals(expected.getBitmap(), actual.getBitmap()); in testSetIconFromXml()
/frameworks/base/media/java/android/media/
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()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DCircularBitmapDrawable.java95 onDrawCircularBitmap(getBitmap().bmp, canvas, src, dst, 1f); in onDrawBitmap()
105 Bitmap bitmap = placeholder.getBitmap(); in onDrawPlaceholderOrProgress()
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
DRadioMetadataTest.java252 .that(metadata.getBitmap(key)).isEqualTo(mBitmapValue); in getBitmap_withKeyInMetadata()
261 .that(metadata.getBitmap(key)).isNull(); in getBitmap_withKeyNotInMetadata()
271 .that(metadata.getBitmap(illegalKey)).isNull(); in getBitmap_withIllegalKey()
532 .that(metadata.getBitmap(RadioMetadata.METADATA_KEY_ICON)).isEqualTo(mBitmapValue); in build_withRadioMetadataMeetingSizeRequirement()
553 .that(metadata.getBitmap(RadioMetadata.METADATA_KEY_ICON)) in build_withRadioMetadataAboveSizeRequirement()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DImageEncoder.java55 Bitmap bitmap = input.getBitmap(); in process()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotController.java361 && screenshot.getBitmap() == null) { in handleScreenshot()
367 if (screenshot.getBitmap() == null) { in handleScreenshot()
377 mScreenBitmap = screenshot.getBitmap(); in handleScreenshot()
439 && aspectRatiosMatch(screenshot.getBitmap(), screenshot.getInsets(), in handleScreenshot()
445 screenshot.setScreenBounds(new Rect(0, 0, screenshot.getBitmap().getWidth(), in handleScreenshot()
446 screenshot.getBitmap().getHeight())); in handleScreenshot()
850 requestId, screenshot.getBitmap(), screenshot.getUserOrDefault(), in saveScreenshotInBackground()
/frameworks/base/core/java/android/service/wallpaper/
DEngineWindowPage.java50 public Bitmap getBitmap() { in getBitmap() method in EngineWindowPage
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/
DBitmapUtils.java35 final Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); in renderDrawableToByteArray()
/frameworks/base/core/java/android/app/wallpapereffectsgeneration/
DCinematicEffectRequest.java72 public Bitmap getBitmap() { in getBitmap() method in CinematicEffectRequest
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DAssetsAtlasActivity.java46 mBitmap = ((BitmapDrawable) d).getBitmap(); in BitmapsView()
/frameworks/base/core/java/android/app/
DDisabledWallpaperManager.java125 public Bitmap getBitmap() { in getBitmap() method in DisabledWallpaperManager
130 public Bitmap getBitmap(boolean hardware) { in getBitmap() method in DisabledWallpaperManager
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DRenderScriptTask.java125 rgbdImage = options.rgbz.getBitmap(); in prepareRefocusFilter()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DVertexFrame.java109 public Bitmap getBitmap() { in getBitmap() method in VertexFrame
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DSingleLineViewInflaterTest.kt80 firstSenderIcon = Icon.createWithBitmap(getBitmap(context, R.drawable.ic_person)) in <lambda>()
84 getBitmap(context, com.android.internal.R.drawable.ic_account_circle) in <lambda>()
390 private fun getBitmap(context: Context, resId: Int): Bitmap { in <lambda>() method

12345