Home
last modified time | relevance | path

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

12345

/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java87 if (mBitmapDisplayed.getBitmap() != null) { in onLayout()
131 Bitmap old = mBitmapDisplayed.getBitmap(); in setImageBitmap()
166 if (bitmap.getBitmap() != null) { in setImageRotateBitmapResetBase()
168 setImageBitmap(bitmap.getBitmap(), bitmap.getRotation()); in setImageRotateBitmapResetBase()
187 if (mBitmapDisplayed.getBitmap() == null) { in center()
194 mBitmapDisplayed.getBitmap().getWidth(), in center()
195 mBitmapDisplayed.getBitmap().getHeight()); in center()
297 if (mBitmapDisplayed.getBitmap() == null) { in maxZoom()
367 if (mBitmapDisplayed.getBitmap() == null) { in zoomIn()
379 if (mBitmapDisplayed.getBitmap() == null) { in zoomOut()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DImageResolver.java47 Bitmap getBitmap(@NonNull Uri uri, int width, int height); in getBitmap() method
52 Bitmap getBitmap(@NonNull Uri uri, int width, int height, float offLanesAlpha); in getBitmap() method
71 public CompletableFuture<Bitmap> getBitmap(@NonNull ImageReference img, int width, int height) { in getBitmap() method in ImageResolver
72 return getBitmap(img, width, height, 1f); in getBitmap()
86 public CompletableFuture<Bitmap> getBitmap(@NonNull ImageReference img, int width, int height, in getBitmap() method in ImageResolver
104 bitmap = mFetcher.getBitmap(uri, adjusted.x, adjusted.y, offLanesAlpha); in getBitmap()
155 img -> getBitmap(img, width, height, offLanesAlpha))); in getBitmaps()
/packages/apps/Gallery/tests/src/com/android/camera/
DBitmapManagerUnitTests.java46 public Bitmap getBitmap() { in getBitmap() method in BitmapManagerUnitTests.DecodeThread
93 assertNotNull(t.getBitmap()); in testDefaultAllowDecoding()
105 assertNull(t.getBitmap()); in testCancelDecoding()
118 assertNotNull(t.getBitmap()); in testAllowDecoding()
136 assertNotNull(t1.getBitmap()); in testThreadDecoding()
138 assertNull(t2.getBitmap()); in testThreadDecoding()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DImageRequestTest.java69 assertNotNull(imageResource.getBitmap()); in testLoadImageUnspecifiedSize()
72 final int bitmapWidth = imageResource.getBitmap().getWidth(); in testLoadImageUnspecifiedSize()
73 final int bitmapHeight = imageResource.getBitmap().getHeight(); in testLoadImageUnspecifiedSize()
99 assertNotNull(imageResource.getBitmap()); in testLoadImageWithDownsampling()
102 final int bitmapWidth = imageResource.getBitmap().getWidth(); in testLoadImageWithDownsampling()
103 final int bitmapHeight = imageResource.getBitmap().getHeight(); in testLoadImageWithDownsampling()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DImageResolver.java56 public CompletableFuture<Bitmap> getBitmap(@NonNull ImageReference img, int width, int height) { in getBitmap() method in ImageResolver
57 return getBitmap(img, width, height, 1f); in getBitmap()
71 public CompletableFuture<Bitmap> getBitmap(@NonNull ImageReference img, int width, int height, in getBitmap() method in ImageResolver
89 bitmap = mFetcher.getBitmap(uri, adjusted.x, adjusted.y, offLanesAlpha); in getBitmap()
140 img -> getBitmap(img, width, height, offLanesAlpha))); in getBitmaps()
/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/
DPrivateSpaceHeaderViewTest.java133 Bitmap unlockButton = getBitmap(mContext.getDrawable(R.drawable.ic_lock)); in privateProfileDisabled_psHeaderContainsLockedView()
148 assertTrue(getBitmap(lockIcon.getDrawable()).sameAs(unlockButton)); in privateProfileDisabled_psHeaderContainsLockedView()
166 Bitmap lockImage = getBitmap(mContext.getDrawable(R.drawable.ic_lock)); in privateProfileEnabled_psHeaderContainsUnlockedView()
167 Bitmap settingsImage = getBitmap(mContext.getDrawable(R.drawable.ic_ps_settings)); in privateProfileEnabled_psHeaderContainsUnlockedView()
187 assertTrue(getBitmap(settingsButton.getDrawable()).sameAs(settingsImage)); in privateProfileEnabled_psHeaderContainsUnlockedView()
191 assertTrue(getBitmap(lockIcon.getDrawable()).sameAs(lockImage)); in privateProfileEnabled_psHeaderContainsUnlockedView()
209 Bitmap lockImage = getBitmap(mContext.getDrawable(R.drawable.ic_lock)); in privateProfileEnabledAndNoSettingsIntent_psHeaderContainsUnlockedView()
231 assertTrue(getBitmap(lockIcon.getDrawable()).sameAs(lockImage)); in privateProfileEnabledAndNoSettingsIntent_psHeaderContainsUnlockedView()
248 Bitmap transitionImage = getBitmap(mContext.getDrawable(R.drawable.bg_ps_transition_image)); in privateProfileTransitioning_psHeaderContainsTransitionView()
265 assertTrue(getBitmap(imageView.getDrawable()).sameAs(transitionImage)); in privateProfileTransitioning_psHeaderContainsTransitionView()
[all …]
/packages/apps/Gallery2/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()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DDecodedImageResource.java54 public Bitmap getBitmap() { in getBitmap() method in DecodedImageResource
160 if (getBitmap().hasAlpha()) { in getMediaEncodingRequest()
192 Bitmap bitmap = getBitmap(); in loadMediaBlocking()
225 if (scaledBitmap != null && scaledBitmap != getBitmap()) { in loadMediaBlocking()
DAvatarRequest.java81 bitmap = imageResource.getBitmap(); in loadMediaInternal()
125 sDefaultPersonBitmap = defaultPerson.getBitmap(); in renderDefaultAvatar()
130 sDefaultPersonBitmapLarge = largeDefaultPerson.getBitmap(); in renderDefaultAvatar()
137 defaultPerson = wearDefaultPerson.getBitmap(); in renderDefaultAvatar()
DCompositeImageRequest.java73 final Bitmap resourceBitmap = resource.getBitmap(); in loadMediaInternal()
82 ImageUtils.drawBitmapWithCircleOnCanvas(resource.getBitmap(), smallCircleCanvas, in loadMediaInternal()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
DPreviewActivityTest.java205 Bitmap srcBitmap = ((TestAsset) mTestStaticWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Success_HomeScreen()
232 Bitmap srcBitmap = ((TestAsset) mTestStaticWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Success_LockScreen()
261 Bitmap srcBitmap = ((TestAsset) mTestStaticWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Success_BothHomeAndLockScreen()
299 Bitmap srcBitmap = ((TestAsset) mTestStaticWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Fails_HomeScreen_ShowsErrorDialog()
339 Bitmap srcBitmap = ((TestAsset) mTestStaticWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Fails_LockScreen_ShowsErrorDialog()
378 Bitmap srcBitmap = ((TestAsset) mTestStaticWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Fails_BothHomeAndLock_ShowsErrorDialog()
470 Point wallpaperSize = new Point(asset.getBitmap().getWidth(), in testSetsDefaultWallpaperZoomAndScroll()
471 asset.getBitmap().getHeight()); in testSetsDefaultWallpaperZoomAndScroll()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBuiltInWallpaperAsset.java88 Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); in decodeBitmapRegion()
121 Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); in decodeBitmap()
148 Bitmap builtInBitmap = ((BitmapDrawable) builtInDrawable).getBitmap(); in calculateRawDimensions()
DLiveWallpaperThumbAsset.java114 Bitmap.createScaledBitmap(drawableThumb.getBitmap(), width, height, true)); in decodeBitmap()
144 bitmap = ((BitmapDrawable) thumb).getBitmap(); in decodeBitmap()
168 result = ((BitmapDrawable) thumb).getBitmap(); in decodeRawDimensions()
172 result = ((BitmapDrawable) layer).getBitmap(); in decodeRawDimensions()
237 Bitmap bitmap = bitmapDrawable.getBitmap(); in getLowResBitmap()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dtrie_map.cpp161 iterationState->emplace_back(popCount(entry.getBitmap()), entry.getTableIndex()); in iterateNext()
254 if (!exists(bitmapEntry.getBitmap(), label)) { in getTerminalEntryIndex()
257 const int entryIndex = bitmapEntry.getTableIndex() + popCount(bitmapEntry.getBitmap(), label); in getTerminalEntryIndex()
314 const uint32_t bitmap = bitmapEntry.getBitmap(); in putInternal()
428 const int tableSize = popCount(bitmapEntry.getBitmap()); in removeInner()
/packages/apps/Contacts/src/com/android/contacts/widget/
DQuickContactImageView.java42 if (mBitmapDrawable == null || mBitmapDrawable.getBitmap() == null in setTint()
43 || mBitmapDrawable.getBitmap().hasAlpha()) { in setTint()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/helpers/
DImage.java59 Bitmap bmp_art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ART); in Image()
60 Bitmap bmp_album_art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); in Image()
61 Bitmap bmp_icon = metadata.getBitmap(MediaMetadata.METADATA_KEY_DISPLAY_ICON); in Image()
/packages/apps/Car/Cluster/DirectRenderingCluster/tests/robotests/src/android/car/cluster/
DImageResolverTest.java39 public Bitmap getBitmap(Uri uri, int width, int height) { in setup()
44 public Bitmap getBitmap(Uri uri, int width, int height, float offLanesAlpha) { in setup()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DContactsAsyncHelperTest.java146 Bitmap capturedPhoto = ((BitmapDrawable) photoCaptor.getValue()).getBitmap(); in testImageScaling()
168 Bitmap capturedPhoto = ((BitmapDrawable) photoCaptor.getValue()).getBitmap(); in testNoScaling()
182 return ((BitmapDrawable) d).getBitmap(); in getExpectedPhoto()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DBitmapCache.java125 Bitmap bitmap = buffer.getBitmap(); in cache()
175 public synchronized Bitmap getBitmap(int w, int h, int type) { in getBitmap() method in BitmapCache
207 Bitmap bitmap = getBitmap(source.getWidth(), source.getHeight(), type); in getBitmapCopy()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java232 bitmap = ((BitmapDrawable) badged).getBitmap(); in createBadgedIconBitmap()
250 mUserBadgeBitmap = ((BitmapDrawable) badgedDrawable).getBitmap(); in getUserBadgeBitmap()
373 Bitmap b = bitmapDrawable.getBitmap(); in createIconBitmap()
458 return getBitmap().getWidth(); in getIntrinsicHeight()
463 return getBitmap().getWidth(); in getIntrinsicWidth()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DPrimaryImage.java336 return consumer.getBitmap(); in getFilteredImage()
688 if (request.getBitmap() == null) { in available()
695 mGeometryOnlyBitmap = request.getBitmap(); in available()
700 mFiltersOnlyBitmap = request.getBitmap(); in available()
707 mPartialBitmap = request.getBitmap(); in available()
714 mHighresBitmap = request.getBitmap(); in available()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DXfrmNetlinkNewSaMessage.java137 public byte[] getBitmap() { in getBitmap() method in XfrmNetlinkNewSaMessage
138 return mXfrmReplayStateEsn.getBitmap(); in getBitmap()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DVoiceRecordingView.java70 float micIconWidth = mMicIconDrawable.getBitmap().getWidth(); in onSizeChanged()
71 float micIconHeight = mMicIconDrawable.getBitmap().getHeight(); in onSizeChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DFilterEnvironment.java69 public Bitmap getBitmap(int w, int h, int type) { in getBitmap() method in FilterEnvironment
70 return mBitmapCache.getBitmap(w, h, type); in getBitmap()
/packages/services/Car/tests/carservice_unit_test/src/android/car/cluster/renderer/
DInstrumentClusterRenderingServiceTest.java471 () -> mService.getBitmap(Uri.parse("content://temp.com/tempFile"), 100, -1) in getBitmap_invalidHeight()
480 () -> mService.getBitmap(Uri.parse("content://temp.com/tempFile"), 100, 100, 1.1f) in getBitmap_invalidOffLanesAlpha()
489 mService.getBitmap(Uri.parse("content://temp.com/tempFile"), 100, 100); in getBitmap_contextOwnerMissing()
511 mService.getBitmap(Uri.parse("content://temp.com/tempFile"), 100, 100); in getBitmap_unknownAuthority()
537 mService.getBitmap(Uri.parse("content://temp.com/tempFile"), 100, 100); in getBitmap_success()

12345