/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 | 44 * return the internal format as defined by OpenGL ES of the supplied bitmap. 45 * @param bitmap 46 * @return the internal format of the bitmap. 48 public static int getInternalFormat(Bitmap bitmap) { argument 49 if (bitmap == null) { 52 if (bitmap.isRecycled()) { 53 throw new IllegalArgumentException("bitmap is recycled"); 55 int result = native_getInternalFormat(bitmap); 63 * Return the type as defined by OpenGL ES of the supplied bitmap, if there 64 * is one. If the bitmap i 70 getType(Bitmap bitmap) argument 106 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int border) argument 132 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument 154 texImage2D(int target, int level, Bitmap bitmap, int border) argument 189 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap) argument 214 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument 280 native_getInternalFormat(Bitmap bitmap) argument 281 native_getType(Bitmap bitmap) argument 282 native_texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument 284 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;
|
/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/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 44 * bitmap. 52 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED. 117 Bitmap bitmap, float scale, boolean recycle) { 118 int width = Math.round(bitmap.getWidth() * scale); 119 int height = Math.round(bitmap.getHeight() * scale); 120 if (width == bitmap.getWidth() 121 && height == bitmap.getHeight()) return bitmap; 122 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap)); 126 canvas.drawBitmap(bitmap, 116 resizeBitmapByScale( Bitmap bitmap, float scale, boolean recycle) argument 131 getConfig(Bitmap bitmap) argument 139 resizeDownBySideLength( Bitmap bitmap, int maxLength, boolean recycle) argument 149 resizeAndCropCenter(Bitmap bitmap, int size, boolean recycle) argument 170 recycleSilently(Bitmap bitmap) argument 238 compressToBytes(Bitmap bitmap) argument 242 compressToBytes(Bitmap bitmap, int quality) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | TextureCache.cpp | 139 bool TextureCache::canMakeTextureFromBitmap(const SkBitmap* bitmap) { argument 140 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) { 142 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize); 150 Texture* TextureCache::getCachedTexture(const SkBitmap* bitmap) { argument 152 AssetAtlas::Entry* entry = mAssetAtlas->getEntry(bitmap); 158 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID()); 161 if (!canMakeTextureFromBitmap(bitmap)) { 165 const uint32_t size = bitmap 199 prefetchAndMarkInUse(const SkBitmap* bitmap) argument 207 get(const SkBitmap* bitmap) argument 225 getTransient(const SkBitmap* bitmap) argument 235 releaseTexture(const SkBitmap* bitmap) argument 272 generateTexture(const SkBitmap* bitmap, Texture* texture, bool regenerate) argument 347 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(const SkBitmap* bitmap); 79 * Returns the texture associated with the specified bitmap. If the texture 82 Texture* get(const SkBitmap* bitmap); 84 * Returns the texture associated with the specified bitmap. The generated 87 Texture* getTransient(const SkBitmap* bitmap); 90 * Removes the texture associated with the specified bitmap. This is meant 93 void releaseTexture(const SkBitmap* bitmap); 132 bool canMakeTextureFromBitmap(const SkBitmap* bitmap); 134 Texture* getCachedTexture(const SkBitmap* bitmap); [all...] |
H A D | AssetAtlas.cpp | 83 AssetAtlas::Entry* AssetAtlas::getEntry(const SkBitmap* bitmap) const { 84 ssize_t index = mEntries.indexOfKey(bitmap); 88 Texture* AssetAtlas::getEntryTexture(const SkBitmap* bitmap) const { 89 ssize_t index = mEntries.indexOfKey(bitmap); 122 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(map[i++]); local 133 if (!bitmap) continue; 136 x / width, (x + bitmap->width()) / width, 137 y / height, (y + bitmap->height()) / height); 140 texture->blend = !bitmap->isOpaque(); 141 texture->width = bitmap [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; 102 Bitmap bitmap = placeholder.getBitmap(); 104 sRect.set(0, 0, bitmap.getWidth(), bitmap.getHeight()); 105 onDrawCircularBitmap(bitmap, canvas, sRect, getBounds(), alpha); 109 * Call this method with a given bitmap to draw it onto the given canvas, masked by a circular 112 protected void onDrawCircularBitmap(final Bitmap bitmap, final Canvas canvas, argument 114 onDrawCircularBitmap(bitmap, canvas, src, dst, 1f); 118 * Call this method with a given bitmap t 121 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/java/android/graphics/ |
H A D | BitmapShader.java | 20 * Shader used to draw a bitmap as a texture. The bitmap can be repeated or 35 * Call this to create a new shader that will draw with a bitmap. 37 * @param bitmap The bitmap to use inside the shader 38 * @param tileX The tiling mode for x to draw the bitmap in. 39 * @param tileY The tiling mode for y to draw the bitmap in. 41 public BitmapShader(Bitmap bitmap, TileMode tileX, TileMode tileY) { argument 42 mBitmap = bitmap; 45 final long b = bitmap [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.cpp | 102 static FromColorProc ChooseFromColorProc(const SkBitmap& bitmap) { argument 103 switch (bitmap.colorType()) { 105 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D32 : FromColor_D32_Raw; 107 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D4444 : 334 SkBitmap bitmap; local 335 bitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType)); 337 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL); 344 0, 0, width, height, bitmap); 347 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, 366 SkBitmap* bitmap local 377 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 392 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 445 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 486 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 491 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 496 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 501 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 506 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 514 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 520 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 530 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 541 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 547 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 578 SkBitmap* bitmap = new SkBitmap; local 625 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 708 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 728 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 755 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 774 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 781 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 795 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local 869 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local [all...] |
/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/java/com/android/internal/util/ |
H A D | ImageUtils.java | 38 // Size of the smaller bitmap we're actually going to scan. 48 * Checks whether a bitmap is grayscale. Grayscale here means "very close to a perfect 51 * Instead of scanning every pixel in the bitmap, we first resize the bitmap to no more than 55 public boolean isGrayscale(Bitmap bitmap) { argument 56 int height = bitmap.getHeight(); 57 int width = bitmap.getWidth(); 75 mTempCompactBitmapCanvas.drawBitmap(bitmap, mTempMatrix, mTempCompactBitmapPaint); 76 bitmap = mTempCompactBitmap; 82 bitmap [all...] |