Searched refs:bitmap (Results 1 - 25 of 284) sorted by relevance

1234567891011>>

/frameworks/support/v4/jellybean-mr2/android/support/v4/graphics/
H A DBitmapCompatJellybeanMR2.java21 public static boolean hasMipMap(Bitmap bitmap) { argument
22 return bitmap.hasMipMap();
25 public static void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { argument
26 bitmap.setHasMipMap(hasMipMap);
/frameworks/support/v4/java/android/support/v4/graphics/
H A DBitmapCompat.java29 public boolean hasMipMap(Bitmap bitmap); argument
30 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap); argument
31 public int getAllocationByteCount(Bitmap bitmap); argument
36 public boolean hasMipMap(Bitmap bitmap) { argument
41 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { argument
45 public int getAllocationByteCount(Bitmap bitmap) { argument
46 return bitmap.getRowBytes() * bitmap.getHeight();
52 public int getAllocationByteCount(Bitmap bitmap) { argument
53 return BitmapCompatHoneycombMr1.getAllocationByteCount(bitmap);
59 hasMipMap(Bitmap bitmap) argument
64 setHasMipMap(Bitmap bitmap, boolean hasMipMap) argument
71 getAllocationByteCount(Bitmap bitmap) argument
93 hasMipMap(Bitmap bitmap) argument
97 setHasMipMap(Bitmap bitmap, boolean hasMipMap) argument
108 getAllocationByteCount(Bitmap bitmap) argument
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLUtils.java36 * return the internal format as defined by OpenGL ES of the supplied bitmap.
37 * @param bitmap
38 * @return the internal format of the bitmap.
40 public static int getInternalFormat(Bitmap bitmap) { argument
41 if (bitmap == null) {
44 if (bitmap.isRecycled()) {
45 throw new IllegalArgumentException("bitmap is recycled");
47 int result = native_getInternalFormat(bitmap);
55 * Return the type as defined by OpenGL ES of the supplied bitmap, if there
56 * is one. If the bitmap i
62 getType(Bitmap bitmap) argument
98 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int border) argument
124 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
146 texImage2D(int target, int level, Bitmap bitmap, int border) argument
181 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap) argument
206 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
264 native_getInternalFormat(Bitmap bitmap) argument
265 native_getType(Bitmap bitmap) argument
266 native_texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
268 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) 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/support/v4/honeycomb_mr1/android/support/v4/graphics/
H A DBitmapCompatHoneycombMr1.java25 static int getAllocationByteCount(Bitmap bitmap) { argument
26 return bitmap.getByteCount();
/frameworks/support/v4/kitkat/android/support/v4/graphics/
H A DBitmapCompatKitKat.java25 static int getAllocationByteCount(Bitmap bitmap) { argument
26 return bitmap.getAllocationByteCount();
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DPoolable.java17 package com.android.bitmap;
H A DBitmapCache.java17 package com.android.bitmap;
H A DDecodeAggregator.java17 package com.android.bitmap;
/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 Assert.assertTrue(bitmap != null && !bitmap.isRecycled());
38 mContentBitmap = bitmap;
42 protected void onFreeBitmap(Bitmap bitmap) { argument
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java43 * bitmap.
51 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED.
116 Bitmap bitmap, float scale, boolean recycle) {
117 int width = Math.round(bitmap.getWidth() * scale);
118 int height = Math.round(bitmap.getHeight() * scale);
119 if (width == bitmap.getWidth()
120 && height == bitmap.getHeight()) return bitmap;
121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap));
125 canvas.drawBitmap(bitmap,
115 resizeBitmapByScale( Bitmap bitmap, float scale, boolean recycle) argument
130 getConfig(Bitmap bitmap) argument
138 resizeDownBySideLength( Bitmap bitmap, int maxLength, boolean recycle) argument
148 resizeAndCropCenter(Bitmap bitmap, int size, boolean recycle) argument
169 recycleSilently(Bitmap bitmap) argument
237 compressToBytes(Bitmap bitmap) argument
241 compressToBytes(Bitmap bitmap, int quality) argument
[all...]
/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, TileMode tileX, TileMode tileY) { argument
44 mBitmap = bitmap;
47 init(nativeCreate(bitmap, tile
60 nativeCreate(Bitmap bitmap, int shaderTileModeX, int shaderTileModeY) argument
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DParallaxable.java17 package com.android.bitmap.drawable;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilterTest.java62 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("XZZ019.jpg"));
63 image.setBitmap(bitmap);
79 int[] pixels = new int[bitmap.getByteCount()];
80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(),
81 bitmap.getHeight());
87 int top = (faceRect.top+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE;
88 int bottom = (faceRect.bottom+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE;
89 int left = (faceRect.left+WIDTH_OFFSET)*bitmap
[all...]
/frameworks/base/libs/hwui/
H A DTextureCache.h75 * acquired for the bitmap, false otherwise. If a Texture was acquired it is
78 bool prefetchAndMarkInUse(void* ownerToken, const SkBitmap* bitmap);
81 * Returns the texture associated with the specified bitmap from either within the cache, or
84 Texture* get(const SkBitmap* bitmap) { argument
85 return get(bitmap, AtlasUsageType::Use);
89 * Returns the texture associated with the specified bitmap. If the texture cannot be found in
92 Texture* getAndBypassAtlas(const SkBitmap* bitmap) { argument
93 return get(bitmap, AtlasUsageType::Bypass);
134 bool canMakeTextureFromBitmap(const SkBitmap* bitmap);
136 Texture* get(const SkBitmap* bitmap, AtlasUsageTyp
[all...]
H A DTextureCache.cpp100 bool TextureCache::canMakeTextureFromBitmap(const SkBitmap* bitmap) { argument
101 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) {
103 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize);
111 Texture* TextureCache::getCachedTexture(const SkBitmap* bitmap, AtlasUsageType atlasUsageType) { argument
113 AssetAtlas::Entry* entry = mAssetAtlas->getEntry(bitmap->pixelRef());
119 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID());
122 if (!canMakeTextureFromBitmap(bitmap)) {
126 const uint32_t size = bitmap
162 prefetchAndMarkInUse(void* ownerToken, const SkBitmap* bitmap) argument
170 get(const SkBitmap* bitmap, AtlasUsageType atlasUsageType) argument
[all...]
H A DTexture.cpp144 // With OpenGL ES 2.0 we need to copy the bitmap in a temporary buffer
168 static void uploadSkBitmapToTexture(const SkBitmap& bitmap, argument
170 uploadToTexture(resize, format, type, bitmap.rowBytesAsPixels(), bitmap.bytesPerPixel(),
171 bitmap.width(), bitmap.height(), bitmap.getPixels());
197 LOG_ALWAYS_FATAL("Unsupported bitmap colorType: %d", colorType);
202 void Texture::upload(const SkBitmap& bitmap) { argument
203 SkAutoLockPixels alp(bitmap);
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
H A DPhotoBitmapLoader.java32 * Loader for the bitmap of a photo.
58 if (result.bitmap != null) {
59 result.bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM);
77 Bitmap bitmap = result != null ? result.bitmap : null;
81 if (bitmap != null) {
82 onReleaseResources(bitmap);
87 mBitmap = bitmap;
98 if (oldBitmap != null && oldBitmap != bitmap && !oldBitmap.isRecycled()) {
113 result.bitmap
168 onReleaseResources(Bitmap bitmap) argument
[all...]
H A DPhotoBitmapLoaderInterface.java19 public Bitmap bitmap; field in class:PhotoBitmapLoaderInterface.BitmapResult
25 * the underlying bitmap is null).
36 // Don't create a new drawable if there's no bitmap. PhotoViewFragment regards
39 if (bitmap == null) {
43 return new BitmapDrawable(resources, bitmap);
/frameworks/base/core/java/android/view/
H A DAppTransitionAnimationSpec.java18 public final Bitmap bitmap; field in class:AppTransitionAnimationSpec
21 public AppTransitionAnimationSpec(int taskId, Bitmap bitmap, Rect rect) { argument
23 this.bitmap = bitmap;
29 bitmap = in.readParcelable(null);
41 dest.writeParcelable(bitmap, 0 /* flags */);
59 return "{taskId: " + taskId + ", bitmap: " + bitmap + ", rect: " + rect + "}";
/frameworks/base/libs/hwui/tests/unit/
H A DSkiaBehaviorTests.cpp37 SkBitmap bitmap; local
39 ASSERT_TRUE(s->isABitmap(&bitmap, nullptr, xy))
40 << "1x1 bitmap shader must query as bitmap shader";
43 EXPECT_EQ(origBitmap.pixelRef(), bitmap.pixelRef());
47 SkBitmap bitmap = TestUtils::createSkBitmap(100, 100); local
48 uint32_t genId = bitmap.getGenerationID();
49 bitmap.notifyPixelsChanged();
50 EXPECT_NE(genId, bitmap.getGenerationID());
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/
H A DDividerItemDecorationTest.java62 Bitmap bitmap = drawDecoration(decoration, true, true);
64 // Draw the expected result on a bitmap
73 assertBitmapEquals(expectedBitmap, bitmap);
75 bitmap.recycle();
76 bitmap = drawDecoration(decoration, false, true);
78 assertBitmapEquals(expectedBitmap, bitmap);
80 bitmap.recycle();
81 bitmap = drawDecoration(decoration, true, false);
86 assertBitmapEquals(expectedBitmap, bitmap);
88 bitmap
[all...]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapFactoryTest.java41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd);
42 assertNotNull("BitmapFactory returned null", bitmap);
43 assertEquals("Bitmap width", 1, bitmap.getWidth());
44 assertEquals("Bitmap height", 1, bitmap.getHeight());
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DGlifPatternDrawableTest.java33 final Bitmap bitmap = Bitmap.createBitmap(1366, 768, Bitmap.Config.ARGB_8888);
34 final Canvas canvas = new Canvas(bitmap);
40 assertEquals("Top left pixel should be #ed0000", 0xffed0000, bitmap.getPixel(0, 0));
41 assertEquals("Center pixel should be #d30000", 0xffd30000, bitmap.getPixel(683, 384));
43 bitmap.getPixel(1365, 767));
51 final Bitmap bitmap = Bitmap.createBitmap(1366, 768, Bitmap.Config.ARGB_8888);
52 final Canvas canvas = new Canvas(bitmap);
64 assertEquals("Top left pixel should be #ed0000", 0xffed0000, bitmap.getPixel(0, 0));
65 assertEquals("Center pixel should be #d30000", 0xffd30000, bitmap.getPixel(683, 384));
67 bitmap
[all...]
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
H A DRGBZ.java27 private Bitmap bitmap; field in class:RGBZ
46 this.bitmap = setAlphaChannel(preview, this.depthBitmap);
61 return bitmap;
87 return bitmap.getWidth();
94 return bitmap.getHeight();
116 public Bitmap setAlphaChannel(Bitmap bitmap, Bitmap depthBitmap) { argument
117 if (bitmap == null) {
118 return bitmap;
120 Bitmap result = bitmap.copy(Bitmap.Config.ARGB_8888, true);
121 // set the alpha channel of depthBitmap to alpha of bitmap
[all...]

Completed in 2413 milliseconds

1234567891011>>