/frameworks/support/v4/jellybean-mr2/android/support/v4/graphics/ |
H A D | BitmapCompatJellybeanMR2.java | 21 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 D | BitmapCompat.java | 29 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 D | GLUtils.java | 36 * 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 270 native_getInternalFormat(Bitmap bitmap) argument 271 native_getType(Bitmap bitmap) argument 272 native_texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument 274 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 D | BitmapSerializeUtils.java | 24 * 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 D | BitmapCompatHoneycombMr1.java | 25 static int getAllocationByteCount(Bitmap bitmap) { argument 26 return bitmap.getByteCount();
|
/frameworks/support/v4/kitkat/android/support/v4/graphics/ |
H A D | BitmapCompatKitKat.java | 25 static int getAllocationByteCount(Bitmap bitmap) { argument 26 return bitmap.getAllocationByteCount();
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | Poolable.java | 17 package com.android.bitmap;
|
H A D | BitmapCache.java | 17 package com.android.bitmap;
|
H A D | DecodeAggregator.java | 17 package com.android.bitmap;
|
H A D | UnrefedBitmapCache.java | 17 package com.android.bitmap; 22 import com.android.bitmap.ReusableBitmap.NullReusableBitmap; 23 import com.android.bitmap.util.Trace; 84 ReusableBitmap bitmap; 86 while ((bitmap = super.poll()) == null && mBlocking) { 104 return bitmap;
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | BitmapTexture.java | 31 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
|
H A D | UploadedTexture.java | 124 Bitmap bitmap = sBorderLines.get(key); 125 if (bitmap == null) { 126 bitmap = vertical 129 sBorderLines.put(key.clone(), bitmap); 131 return bitmap; 166 protected abstract void onFreeBitmap(Bitmap bitmap); argument 193 Bitmap bitmap = getBitmap(); 194 int format = GLUtils.getInternalFormat(bitmap); 195 int type = GLUtils.getType(bitmap); 196 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, forma [all...] |
/frameworks/base/libs/hwui/ |
H A D | TextureCache.cpp | 134 bool TextureCache::canMakeTextureFromBitmap(const SkBitmap* bitmap) { argument 135 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) { 137 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize); 145 Texture* TextureCache::getCachedTexture(const SkBitmap* bitmap, AtlasUsageType atlasUsageType) { argument 147 AssetAtlas::Entry* entry = mAssetAtlas->getEntry(bitmap); 153 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID()); 156 if (!canMakeTextureFromBitmap(bitmap)) { 160 const uint32_t size = bitmap 194 prefetchAndMarkInUse(void* ownerToken, const SkBitmap* bitmap) argument 202 get(const SkBitmap* bitmap, AtlasUsageType atlasUsageType) argument 255 generateTexture(const SkBitmap* bitmap, Texture* texture, bool regenerate) argument 326 uploadLoFiTexture(bool resize, const SkBitmap* bitmap, uint32_t width, uint32_t height) argument [all...] |
H A D | TextureCache.h | 73 * acquired for the bitmap, false otherwise. If a Texture was acquired it is 76 bool prefetchAndMarkInUse(void* ownerToken, const SkBitmap* bitmap); 79 * Returns the texture associated with the specified bitmap from either within the cache, or 82 Texture* get(const SkBitmap* bitmap) { argument 83 return get(bitmap, AtlasUsageType::Use); 87 * Returns the texture associated with the specified bitmap. If the texture cannot be found in 90 Texture* getAndBypassAtlas(const SkBitmap* bitmap) { argument 91 return get(bitmap, AtlasUsageType::Bypass); 141 bool canMakeTextureFromBitmap(const SkBitmap* bitmap); 143 Texture* get(const SkBitmap* bitmap, AtlasUsageTyp [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 43 * 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 D | BitmapShader.java | 22 * 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 D | Parallaxable.java | 17 package com.android.bitmap.drawable;
|
H A D | CircularBitmapDrawable.java | 17 package com.android.bitmap.drawable; 32 import com.android.bitmap.BitmapCache; 105 Bitmap bitmap = placeholder.getBitmap(); 107 mRect.set(0, 0, bitmap.getWidth(), bitmap.getHeight()); 108 onDrawCircularBitmap(bitmap, canvas, mRect, bounds, alpha); 119 * Call this method with a given bitmap to draw it onto the given canvas, masked by a circular 122 protected void onDrawCircularBitmap(final Bitmap bitmap, final Canvas canvas, argument 124 onDrawCircularBitmap(bitmap, canvas, src, dst, 1f); 128 * Call this method with a given bitmap t 131 onDrawCircularBitmap(final Bitmap bitmap, final Canvas canvas, final Rect src, final Rect dst, final float alpha) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilterTest.java | 62 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/opt/photoviewer/src/com/android/ex/photo/loaders/ |
H A D | PhotoBitmapLoader.java | 32 * 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 D | PhotoBitmapLoaderInterface.java | 19 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/graphics/tests/graphicstests/src/android/graphics/ |
H A D | BitmapFactoryTest.java | 41 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | FrameImage2D.java | 51 * Assigns the pixel data of the specified bitmap. 53 * The RGBA pixel data will be extracted from the bitmap and assigned to the frame data. Note, 58 * @param bitmap The bitmap pixels to assign. 60 public void setBitmap(Bitmap bitmap) { argument 61 bitmap = convertToFrameType(bitmap, mBackingStore.getFrameType()); 62 validateBitmapSize(bitmap, mBackingStore.getDimensions()); 64 backing.setData(bitmap); 116 private static Bitmap convertToFrameType(Bitmap bitmap, FrameTyp argument 136 validateBitmapSize(Bitmap bitmap, int[] dimensions) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.cpp | 63 // to prevent things like a non-opaque RGB565 bitmap 191 "Deleting a bitmap wrapper while there are outstanding strong " 256 ALOGW("Called reconfigure on a bitmap that is in use! This may" 371 "Error, cannot access an invalid/free'd bitmap here!"); 486 static FromColorProc ChooseFromColorProc(const SkBitmap& bitmap) { argument 487 switch (bitmap.colorType()) { 489 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D32 : FromColor_D32_Raw; 491 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D4444 : 728 SkBitmap bitmap; local 729 bitmap 756 Bitmap* bitmap = allocator.getStorageObjAndReset(); local 770 Bitmap* bitmap = allocator.getStorageObjAndReset(); local 1071 SkBitmap bitmap; local 1176 SkBitmap bitmap; local 1197 SkBitmap bitmap; local 1225 SkBitmap bitmap; local 1245 SkBitmap bitmap; local 1253 SkBitmap bitmap; local 1268 SkBitmap bitmap; local [all...] |
H A D | NinePatchImpl.cpp | 36 static bool getColor(const SkBitmap& bitmap, int x, int y, SkColor* c) { argument 37 switch (bitmap.colorType()) { 39 *c = SkUnPreMultiply::PMColorToColor(*bitmap.getAddr32(x, y)); 42 *c = SkPixel16ToPixel32(*bitmap.getAddr16(x, y)); 46 SkPixel4444ToPixel32(*bitmap.getAddr16(x, y))); 49 SkColorTable* ctable = bitmap.getColorTable(); 51 (*ctable)[*bitmap.getAddr8(x, y)]); 67 const SkBitmap& bitmap, const SkPaint& paint, 76 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) { 87 canvas->drawBitmapRect(bitmap, 66 drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, const SkBitmap& bitmap, const SkPaint& paint, SkColor initColor, uint32_t colorHint, bool hasXfer) argument 100 NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument [all...] |