Home
last modified time | relevance | path

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

123456

/frameworks/support/textclassifier/src/androidTest/java/androidx/textclassifier/
DTextClassificationTest.java98 final Bitmap resPrimaryIcon = ((BitmapDrawable) result.getIcon()).getBitmap(); in testParcel()
99 assertEquals(primaryIcon.getBitmap().getPixel(0, 0), resPrimaryIcon.getPixel(0, 0)); in testParcel()
106 final Bitmap resSecondaryIcon0 = ((BitmapDrawable) result.getSecondaryIcon(0)).getBitmap(); in testParcel()
107 assertEquals(secondaryIcon0.getBitmap().getPixel(0, 0), resSecondaryIcon0.getPixel(0, 0)); in testParcel()
114 final Bitmap resSecondaryIcon1 = ((BitmapDrawable) result.getSecondaryIcon(1)).getBitmap(); in testParcel()
115 assertEquals(secondaryIcon1.getBitmap().getPixel(0, 0), resSecondaryIcon1.getPixel(0, 0)); in testParcel()
127 final Bitmap resSecondaryIcon3 = ((BitmapDrawable) result.getSecondaryIcon(3)).getBitmap(); in testParcel()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java142 public Bitmap getBitmap() { in getBitmap() method in Icon
328 return new BitmapDrawable(context.getResources(), getBitmap()); in loadDrawableInner()
331 new BitmapDrawable(context.getResources(), getBitmap())); in loadDrawableInner()
436 getBitmap().isMutable() && in convertToAshmem()
437 getBitmap().getAllocationByteCount() >= MIN_ASHMEM_ICON_SIZE) { in convertToAshmem()
438 setBitmap(getBitmap().createAshmemBitmap()); in convertToAshmem()
457 getBitmap().compress(Bitmap.CompressFormat.PNG, 100, dataStream); in writeToStream()
529 return getBitmap() == otherIcon.getBitmap(); in sameAs()
721 .append(getBitmap().getWidth()) in toString()
723 .append(getBitmap().getHeight()); in toString()
[all …]
/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/core/java/android/view/
DTextureView.java537 public Bitmap getBitmap() { in getBitmap() method in TextureView
538 return getBitmap(getWidth(), getHeight()); in getBitmap()
564 public Bitmap getBitmap(int width, int height) { in getBitmap() method in TextureView
566 return getBitmap(Bitmap.createBitmap(getResources().getDisplayMetrics(), in getBitmap()
595 public Bitmap getBitmap(Bitmap bitmap) { in getBitmap() method in TextureView
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
DRoundedBitmapDrawableFactory.java85 if (drawable.getBitmap() == null) { in create()
98 if (drawable.getBitmap() == null) { in create()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java50 .getBitmap(); in testWithBitmap()
121 assertThat(ic.getBitmap().getWidth()).isLessThan(41); in testScaleDownIfNecessary()
122 assertThat(ic.getBitmap().getHeight()).isLessThan(21); in testScaleDownIfNecessary()
162 .getBitmap(); in testWithBitmapResource()
185 .getBitmap(); in testWithFile()
209 .getBitmap(); in testAsync()
252 .getBitmap(); in testParcel()
/frameworks/support/media/api21/android/support/v4/media/
DMediaMetadataCompatApi21.java34 public static Bitmap getBitmap(Object metadataObj, String key) { in getBitmap() method in MediaMetadataCompatApi21
35 return ((MediaMetadata)metadataObj).getBitmap(key); in getBitmap()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java165 assertTrue(q.getLargeIcon().getBitmap().sameAs(n.getLargeIcon().getBitmap())); in largeIconMultipleReferences_keptAfterParcelling()
180 assertTrue(((Icon) q.extras.getParcelable(Notification.EXTRA_LARGE_ICON)).getBitmap() in largeIconReferenceInExtrasOnly_keptAfterParcelling()
181 .sameAs(originalIcon.getBitmap())); in largeIconReferenceInExtrasOnly_keptAfterParcelling()
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/
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()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DIconMixinTest.java127 assertEquals(expected.getBitmap(), actual.getBitmap()); in testSetIconFromXml()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DPlaybackControlsRow.java544 createBitmap(repeatDrawable.getBitmap(), repeatAllColor));
547 createBitmap(repeatOneDrawable.getBitmap(), repeatOneColor));
607 createBitmap(uncoloredDrawable.getBitmap(), highlightColor));
665 createBitmap(uncoloredDrawable.getBitmap(), highlightColor));
726 createBitmap(uncoloredDrawable.getBitmap(), highlightColor));
/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/packages/SystemUI/src/com/android/systemui/pip/tv/
DPipNotification.java216 art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); in updateMediaControllerMetadata()
218 art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ART); in updateMediaControllerMetadata()
/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/recents/views/
DFixedSizeImageView.java68 (((BitmapDrawable) drawable).getBitmap() == null); in setImageDrawable()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAssetsAtlasActivity.java46 mBitmap = ((BitmapDrawable) d).getBitmap(); in BitmapsView()
DGetBitmapActivity.java54 Bitmap b = mTextureView.getBitmap(); in onCreate()
/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
DSimpleFrame.java127 public Bitmap getBitmap() { in getBitmap() method in SimpleFrame
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java253 updateBitmap(mWallpaperManager.getBitmap(true /* hardware */)); in onSurfaceRedrawNeeded()
369 return mWallpaperManager.getBitmap(true /* hardware */); in loadWallpaper()
394 return mWallpaperManager.getBitmap(true /* hardware */); in loadWallpaper()
/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/drawable/
DIconCompatTest.java149 assertEquals(bitmap, ((BitmapDrawable) d).getBitmap()); in testCreateWithBitmap()
174 Bitmap clipped = ((BitmapDrawable) d).getBitmap(); in testCreateWithAdaptiveBitmap()
198 assertTrue(bitmap.sameAs(((BitmapDrawable) d).getBitmap())); in testCreateWithData()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
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()
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java179 public Bitmap getBitmap() { in getBitmap() method in NinePatch

123456