Home
last modified time | relevance | path

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

123

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowWallpaperManagerTest.java161 assertThat(shadowOf(manager).getBitmap(WallpaperManager.FLAG_SYSTEM)).isEqualTo(TEST_IMAGE_1); in setBitmap_flagSystem_shouldCacheInMemory()
162 assertThat(shadowOf(manager).getBitmap(WallpaperManager.FLAG_LOCK)).isNull(); in setBitmap_flagSystem_shouldCacheInMemory()
200 assertThat(shadowOf(manager).getBitmap(WallpaperManager.FLAG_SYSTEM)).isEqualTo(TEST_IMAGE_3); in setBitmap_multipleCallsWithFlagSystem_shouldCacheLastBitmapInMemory()
201 assertThat(shadowOf(manager).getBitmap(WallpaperManager.FLAG_LOCK)).isNull(); in setBitmap_multipleCallsWithFlagSystem_shouldCacheLastBitmapInMemory()
215 assertThat(shadowOf(manager).getBitmap(WallpaperManager.FLAG_LOCK)).isEqualTo(TEST_IMAGE_2); in setBitmap_flagLock_shouldCacheInMemory()
216 assertThat(shadowOf(manager).getBitmap(WallpaperManager.FLAG_SYSTEM)).isNull(); in setBitmap_flagLock_shouldCacheInMemory()
253 assertThat(shadowOf(manager).getBitmap(WallpaperManager.FLAG_LOCK)).isEqualTo(TEST_IMAGE_3); in setBitmap_multipleCallsWithFlagLock_shouldCacheLastBitmapInMemory()
254 assertThat(shadowOf(manager).getBitmap(WallpaperManager.FLAG_SYSTEM)).isNull(); in setBitmap_multipleCallsWithFlagLock_shouldCacheLastBitmapInMemory()
265 assertThat(shadowOf(manager).getBitmap(UNSUPPORTED_FLAG)).isNull(); in setBitmap_unsupportedFlag_shouldNotCacheInMemory()
375 assertThat(getBytesFromBitmap(shadowOf(manager).getBitmap(WallpaperManager.FLAG_SYSTEM))) in setStream_flagSystem_shouldCacheInMemory()
[all …]
DShadowBitmapDrawableTest.java30 assertThat(drawable.getBitmap()).isEqualTo(bitmap); in constructors_shouldSetBitmap()
33 assertThat(drawable.getBitmap()).isEqualTo(bitmap); in constructors_shouldSetBitmap()
39 assertThat(shadowOf(drawable.getBitmap()).getDescription()) in getBitmap_shouldReturnBitmapUsedToDraw()
/external/volley/core/src/test/java/com/android/volley/toolbox/
DImageLoaderTest.java54 when(mImageCache.getBitmap(anyString())).thenReturn(null); in isCachedChecksCache()
62 when(mImageCache.getBitmap(anyString())).thenReturn(bitmap); in getWithCacheHit()
64 Assert.assertSame(bitmap, ic.getBitmap()); in getWithCacheHit()
70 when(mImageCache.getBitmap(anyString())).thenReturn(null); in getWithCacheMiss()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBitmapDrawable.java33 Bitmap bitmap = realBitmapDrawable.getBitmap(); in draw()
44 Bitmap bitmap = realBitmapDrawable.getBitmap(); in setCreatedFromResId()
63 ShadowBitmap shadowBitmap = Shadow.extract(realBitmapDrawable.getBitmap()); in getCreatedFromResId()
DShadowIcon.java50 public Bitmap getBitmap() { in getBitmap() method in ShadowIcon
51 return reflector(IconReflector.class, realIcon).getBitmap(); in getBitmap()
115 Bitmap getBitmap(); in getBitmap() method
DShadowNativeBitmapDrawable.java23 return ((ShadowNativeBitmap) Shadow.extract(bitmapDrawable.getBitmap())).getCreatedFromResId(); in getCreatedFromResId()
29 Bitmap bitmap = bitmapDrawable.getBitmap(); in setCreatedFromResId()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBitmapDrawable.java36 canvas.drawBitmap(realBitmapDrawable.getBitmap(), 0, 0, paint); in draw()
41 Bitmap bitmap = realBitmapDrawable.getBitmap(); in mutate()
65 ShadowBitmap shadowBitmap = Shadow.extract(realBitmapDrawable.getBitmap()); in getCreatedFromResId()
DShadowIcon.java35 public Bitmap getBitmap() { in getBitmap() method in ShadowIcon
36 return directlyOn(realIcon, Icon.class).getBitmap(); in getBitmap()
DShadowMediaStore.java21 protected static Bitmap getBitmap(ContentResolver cr, Uri url) { in getBitmap() method in ShadowMediaStore.ShadowImages.ShadowMedia
/external/volley/core/src/main/java/com/android/volley/toolbox/
DImageLoader.java75 Bitmap getBitmap(String url); in getBitmap() method
112 if (response.getBitmap() != null) { in getImageListener()
113 view.setImageBitmap(response.getBitmap()); in getImageListener()
173 return mCache.getBitmap(cacheKey) != null;
227 Bitmap cachedBitmap = mCache.getBitmap(cacheKey);
407 public Bitmap getBitmap() {
DNetworkImageView.java280 if (response.getBitmap() != null) { in loadImageIfNecessary()
281 setImageBitmap(response.getBitmap()); in loadImageIfNecessary()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DGlideBitmapDrawableResource.java20 return Util.getBitmapByteSize(drawable.getBitmap()); in getSize()
25 bitmapPool.put(drawable.getBitmap()); in recycle()
DBitmapDrawableResource.java28 return Util.getBitmapByteSize(drawable.getBitmap()); in getSize()
33 bitmapPool.put(drawable.getBitmap()); in recycle()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/layer/
DImageLayer.java38 Bitmap bitmap = getBitmap(); in drawLayer()
71 private Bitmap getBitmap() { in getBitmap() method in ImageLayer
85 return asset.getBitmap(); in getBitmap()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/manager/
DImageAssetManager.java56 Bitmap ret = asset.getBitmap(); in updateBitmap()
60 Bitmap prevBitmap = imageAssets.get(id).getBitmap(); in updateBitmap()
75 Bitmap bitmap = asset.getBitmap(); in bitmapForId()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapDrawableTest.java35 assertThat(drawable.getBitmap()).isEqualTo(bitmap); in constructors_shouldSetBitmap()
38 assertThat(drawable.getBitmap()).isEqualTo(bitmap); in constructors_shouldSetBitmap()
44 …assertThat(shadowOf(drawable.getBitmap()).getDescription()).isEqualTo("Bitmap for resource:org.rob… in getBitmap_shouldReturnBitmapUsedToDraw()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/
DTensorImage.java214 public Bitmap getBitmap() { in getBitmap() method in TensorImage
219 return container.getBitmap(); in getBitmap()
DImageContainer.java45 Bitmap getBitmap(); in getBitmap() method
DBitmapContainer.java53 public Bitmap getBitmap() { in getBitmap() method in BitmapContainer
/external/skia/gm/
Dgiantbitmap.cpp34 const SkBitmap& getBitmap() { in getBitmap() function in GiantBitmapGM
115 paint.setShader(getBitmap().makeShader( in onDraw()
/external/sonivox/jet_tools/JetCreator/
Dimg_Paste.py30 def getBitmap(): function
39 icon.CopyFromBitmap(getBitmap())
Dimg_Copy.py40 def getBitmap(): function
49 icon.CopyFromBitmap(getBitmap())
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/
DMediaStoreTest.java24 MediaStore.Images.Media.getBitmap( in getBitmap_legacyAPI_alwaysReturnsABitmap()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/
DTerminalView.java140 if (bridge.getBitmap() != null) { in onDraw()
145 canvas.drawBitmap(bridge.getBitmap(), 0, 0, paint); in onDraw()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieImageAsset.java57 @Nullable public Bitmap getBitmap() { in getBitmap() method in LottieImageAsset

123