Searched defs:bitmap (Results 1 - 25 of 194) sorted by relevance

12345678

/frameworks/base/libs/hwui/tests/unit/
H A DBitmapTests.cpp37 sk_sp<Bitmap> bitmap = Bitmap::allocateHeapBitmap(bm, ctable); local
40 bitmap.reset();
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DDecodeAggregator.java17 package com.android.bitmap;
H A DBitmapCache.java17 package com.android.bitmap;
H A DNamedThreadFactory.java17 package com.android.bitmap;
H A DPoolable.java17 package com.android.bitmap;
H A DPooledCache.java17 package com.android.bitmap;
H A DRequestKey.java17 package com.android.bitmap;
H A DReusableBitmap.java17 package com.android.bitmap;
22 * A simple bitmap wrapper. Currently supports reference counting and logical width/height
23 * (which may differ from a bitmap's reported width/height due to bitmap reuse).
35 public ReusableBitmap(final Bitmap bitmap) { argument
36 this(bitmap, true /* reusable */);
39 public ReusableBitmap(final Bitmap bitmap, final boolean reusable) { argument
40 bmp = bitmap;
/frameworks/base/core/jni/android/graphics/
H A DBitmap.h20 #include <android/bitmap.h>
30 namespace bitmap { namespace in namespace:android
38 jobject createBitmap(JNIEnv* env, Bitmap* bitmap,
45 Bitmap& toBitmap(JNIEnv* env, jobject bitmap);
49 void imageInfo(JNIEnv* env, jobject bitmap, AndroidBitmapInfo* info);
50 // Returns a pointer to the pixels or nullptr if the bitmap is not valid
51 void* lockPixels(JNIEnv* env, jobject bitmap);
52 // Returns true if unlocked, false if the bitmap is no longer valid (destroyed)
53 bool unlockPixels(JNIEnv* env, jobject bitmap);
55 /** Reinitialize a bitmap
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DParallaxable.java17 package com.android.bitmap.drawable;
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
H A DBitmapUtils.java30 public static void saveBitmapIntoPNG(Context context, Bitmap bitmap, int resId) { argument
46 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
/frameworks/base/libs/hwui/tests/common/scenes/
H A DBitmapShaders.cpp26 "bitmapShader", "Draws bitmap shaders with repeat and mirror modes."));
48 SkBitmap bitmap; variable
50 hwuiBitmap->getSkBitmapForShaders(&bitmap);
51 sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(bitmap, kNever_SkCopyPixelsMode);
H A DHwBitmapInCompositeShader.cpp28 "Draws composite shader with hardware bitmap",
77 sk_sp<SkShader> createBitmapShader(Bitmap& bitmap) { argument
79 bitmap.getSkBitmapForShaders(&skBitmap);
H A DRecentsAnimation.cpp48 SkBitmap bitmap; variable
49 sk_sp<Bitmap> thumb(TestUtils::createBitmap(thumbnailSize, thumbnailSize, &bitmap));
51 bitmap.eraseColor(COLORS[i]);
55 mThumbnail = bitmap;
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DTrace.java17 package com.android.bitmap.util;
H A DRectUtils.java17 package com.android.bitmap.util;
/frameworks/base/graphics/java/android/graphics/
H A DBitmapShader.java22 * Shader used to draw a bitmap as a texture. The bitmap can be repeated or
37 * Call this to create a new shader that will draw with a bitmap.
39 * @param bitmap The bitmap to use inside the shader
40 * @param tileX The tiling mode for x to draw the bitmap in.
41 * @param tileY The tiling mode for y to draw the bitmap in.
43 public BitmapShader(@NonNull Bitmap bitmap, @NonNull TileMode tileX, @NonNull TileMode tileY) { argument
44 this(bitmap, tileX.nativeInt, tileY.nativeInt);
47 private BitmapShader(Bitmap bitmap, in argument
74 nativeCreate(long nativeMatrix, Bitmap bitmap, int shaderTileModeX, int shaderTileModeY) argument
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DBitmapSerializeUtils.java24 * use case of having the same bitmap on both ends and just
38 * Reads a bitmap pixels from a file descriptor.
40 * @param bitmap A bitmap whose pixels to populate.
43 public static void readBitmapPixels(Bitmap bitmap, ParcelFileDescriptor source) { argument
44 nativeReadBitmapPixels(bitmap, source.getFd());
48 * Writes a bitmap pixels to a file descriptor.
50 * @param bitmap The bitmap.
53 public static void writeBitmapPixels(Bitmap bitmap, ParcelFileDescripto argument
57 nativeReadBitmapPixels(Bitmap bitmap, int fd) argument
59 nativeWriteBitmapPixels(Bitmap bitmap, int fd) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DBitmapTexture.java31 public BitmapTexture(Bitmap bitmap) { argument
32 this(bitmap, false);
35 public BitmapTexture(Bitmap bitmap, boolean hasBorder) { argument
37 Utils.assertTrue(bitmap != null && !bitmap.isRecycled());
38 mContentBitmap = bitmap;
42 protected void onFreeBitmap(Bitmap bitmap) { argument
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DNinePatch_Delegate.java174 /*package*/ static long nativeGetTransparentRegion(Bitmap bitmap, long chunk, Rect location) { argument
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
H A DMediaStoreSaver.java35 public static final String savePNG(Bitmap bitmap, argument
53 bitmap.compress(Bitmap.CompressFormat.PNG, 0, fOut);
/frameworks/support/compat/java/android/support/v4/graphics/
H A DBitmapCompat.java28 public boolean hasMipMap(Bitmap bitmap) { argument
32 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { argument
35 public int getAllocationByteCount(Bitmap bitmap) { argument
36 return bitmap.getByteCount();
43 public boolean hasMipMap(Bitmap bitmap){ argument
44 return bitmap.hasMipMap();
48 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { argument
49 bitmap.setHasMipMap(hasMipMap);
56 public int getAllocationByteCount(Bitmap bitmap) { argument
57 return bitmap
75 hasMipMap(Bitmap bitmap) argument
79 setHasMipMap(Bitmap bitmap, boolean hasMipMap) argument
90 getAllocationByteCount(Bitmap bitmap) argument
[all...]
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
H A DDrawableUtils.java33 public static void saveVectorDrawableIntoPNG(Resources resource, Bitmap bitmap, int resId, argument
62 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPlaybackSeekDataProvider.java33 * Client of thumbnail bitmap being loaded. PlaybackSeekDataProvider must invoke this method
36 * @param bitmap Result of bitmap.
39 public void onThumbnailLoaded(Bitmap bitmap, int index) { argument
54 * Called to get thumbnail bitmap. This method is called on UI thread. When provider finds
55 * cache bitmap, it may invoke {@link ResultCallback#onThumbnailLoaded(Bitmap, int)}
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/graphics/
H A DFitWidthBitmapDrawableTest.java46 private Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); field in class:FitWidthBitmapDrawableTest
53 drawable.setBitmap(bitmap);
67 verify(canvas).drawBitmap(eq(bitmap), eq(bitmapBounds), eq(expectedDest), any(Paint.class));
75 drawable.setBitmap(bitmap);

Completed in 461 milliseconds

12345678