/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | GraphicsPerformanceTests.java | 22 import android.graphics.Bitmap; 80 protected Bitmap mDestBitmap; 92 mDestBitmap = Bitmap.createBitmap(SCREEN_WIDTH, SCREEN_HEIGHT, in setUp() 93 Bitmap.Config.RGB_565); in setUp() 164 private Bitmap mBitmap; 179 public abstract Bitmap createBitmap(); in createBitmap() 204 public Bitmap createBitmap() { in createBitmap() 205 return Bitmap.createBitmap(7, 7, Bitmap.Config.RGB_565); in createBitmap() 222 public Bitmap createBitmap() { in createBitmap() 223 return Bitmap.createBitmap(15, 15, Bitmap.Config.RGB_565); in createBitmap() [all …]
|
D | BitmapTest.java | 27 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testBasic() 28 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testBasic() 29 Bitmap bm3 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_4444); in testBasic() 55 assertTrue("getConfig", bm1.getConfig() == Bitmap.Config.ARGB_8888); in testBasic() 56 assertTrue("getConfig", bm2.getConfig() == Bitmap.Config.RGB_565); in testBasic() 57 assertTrue("getConfig", bm3.getConfig() == Bitmap.Config.ARGB_4444); in testBasic() 62 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testMutability() 63 Bitmap bm2 = Bitmap.createBitmap(new int[100 * 200], 100, 200, in testMutability() 64 Bitmap.Config.ARGB_8888); in testMutability() 86 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, in testGetPixelsWithAlpha() [all …]
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/ |
D | IconTest.java | 19 import android.graphics.Bitmap; 45 final Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testWithBitmap() 46 final Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testWithBitmap() 47 final Bitmap bm3 = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testWithBitmap() 63 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithBitmap() 64 draw1.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap() 65 final Bitmap test2 = Bitmap.createBitmap(draw2.getIntrinsicWidth(), in testWithBitmap() 66 draw2.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap() 67 final Bitmap test3 = Bitmap.createBitmap(draw3.getIntrinsicWidth(), in testWithBitmap() 68 draw3.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap() [all …]
|
/frameworks/support/v4/java/android/support/v4/graphics/ |
D | BitmapCompat.java | 18 import android.graphics.Bitmap; 29 public boolean hasMipMap(Bitmap bitmap); in hasMipMap() 30 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap); in setHasMipMap() 31 public int getAllocationByteCount(Bitmap bitmap); in getAllocationByteCount() 36 public boolean hasMipMap(Bitmap bitmap) { in hasMipMap() 41 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { in setHasMipMap() 45 public int getAllocationByteCount(Bitmap bitmap) { in getAllocationByteCount() 52 public int getAllocationByteCount(Bitmap bitmap) { in getAllocationByteCount() 59 public boolean hasMipMap(Bitmap bitmap){ in hasMipMap() 64 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { in setHasMipMap() [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.CompressFormat; 115 public static Bitmap resizeBitmapByScale( in resizeBitmapByScale() 116 Bitmap bitmap, float scale, boolean recycle) { in resizeBitmapByScale() 121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap)); in resizeBitmapByScale() 130 private static Bitmap.Config getConfig(Bitmap bitmap) { in getConfig() 131 Bitmap.Config config = bitmap.getConfig(); in getConfig() 133 config = Bitmap.Config.ARGB_8888; in getConfig() 138 public static Bitmap resizeDownBySideLength( in resizeDownBySideLength() 139 Bitmap bitmap, int maxLength, boolean recycle) { in resizeDownBySideLength() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 100 public Bitmap inBitmap; 139 public Bitmap.Config inPreferredConfig = Bitmap.Config.ARGB_8888; 397 public static Bitmap decodeFile(String pathName, Options opts) { in decodeFile() 398 Bitmap bm = null; in decodeFile() 427 public static Bitmap decodeFile(String pathName) { in decodeFile() 435 public static Bitmap decodeResourceStream(Resources res, TypedValue value, in decodeResourceStream() 470 public static Bitmap decodeResource(Resources res, int id, Options opts) { in decodeResource() 471 Bitmap bm = null; in decodeResource() 507 public static Bitmap decodeResource(Resources res, int id) { in decodeResource() 524 public static Bitmap decodeByteArray(byte[] data, int offset, int length, Options opts) { in decodeByteArray() [all …]
|
D | Bitmap.java | 36 public final class Bitmap implements Parcelable { class 111 Bitmap(long nativeBitmap, byte[] buffer, int width, int height, int density, in Bitmap() method in Bitmap 136 Bitmap.class.getClassLoader(), nativeGetNativeFinalizer(), nativeSize); in Bitmap() 590 public Bitmap copy(Config config, boolean isMutable) { in copy() 592 Bitmap b = nativeCopy(mNativePtr, config.nativeInt, isMutable); in copy() 606 public Bitmap createAshmemBitmap() { in createAshmemBitmap() 608 Bitmap b = nativeCopyAshmem(mNativePtr); in createAshmemBitmap() 622 public Bitmap createAshmemBitmap(Config config) { in createAshmemBitmap() 624 Bitmap b = nativeCopyAshmemConfig(mNativePtr, config.nativeInt); in createAshmemBitmap() 645 public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight, in createScaledBitmap() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FrameImage2D.java | 19 import android.graphics.Bitmap; 60 public void setBitmap(Bitmap bitmap) { in setBitmap() 73 public Bitmap toBitmap() { in toBitmap() 74 Bitmap result = (Bitmap)mBackingStore.lockData(MODE_READ, BackingStore.ACCESS_BITMAP); in toBitmap() 116 private static Bitmap convertToFrameType(Bitmap bitmap, FrameType type) { in convertToFrameType() 117 Bitmap.Config config = bitmap.getConfig(); in convertToFrameType() 118 Bitmap result = bitmap; in convertToFrameType() 121 if (config != Bitmap.Config.ARGB_8888) { in convertToFrameType() 122 result = bitmap.copy(Bitmap.Config.ARGB_8888, false); in convertToFrameType() 136 private void validateBitmapSize(Bitmap bitmap, int[] dimensions) { in validateBitmapSize() [all …]
|
/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/ |
D | BucketTests.java | 25 import android.graphics.Bitmap; 42 final Bitmap sample = loadSampleBitmap(); in testSourceBitmapNotRecycled() 71 final Bitmap sample = loadSampleBitmap(); in testRegionWhole() 81 final Bitmap sample = loadSampleBitmap(); in testRegionUpperLeft() 91 final Bitmap sample = loadSampleBitmap(); in testRegionBottomRight() 102 final Bitmap bitmap = Bitmap.createBitmap(1000, 1, Bitmap.Config.ARGB_8888); in testOnePixelTallBitmap() 111 final Bitmap bitmap = Bitmap.createBitmap(1, 1000, Bitmap.Config.ARGB_8888); in testOnePixelWideBitmap() 120 final Bitmap bitmap = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888); in testBlueBitmapReturnsBlueSwatch() 135 final Bitmap bitmap = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888); in testBlueBitmapWithRegionReturnsBlueSwatch()
|
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/ |
D | RGBZ.java | 5 import android.graphics.Bitmap; 27 private Bitmap bitmap; 28 private Bitmap preview; 29 private Bitmap depthBitmap; 60 public Bitmap getBitmap() { in getBitmap() 116 public Bitmap setAlphaChannel(Bitmap bitmap, Bitmap depthBitmap) { in setAlphaChannel() 120 Bitmap result = bitmap.copy(Bitmap.Config.ARGB_8888, true); in setAlphaChannel() 126 private Bitmap setAlphaChannelFromBitmap(Bitmap depth, Bitmap orig, Bitmap dest) { in setAlphaChannelFromBitmap()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 22 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 49 Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options); in decodeRegion() 89 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { in decodeRegion() 95 Bitmap mBuffer; 98 private DumbBitmapRegionDecoder(Bitmap b) { in DumbBitmapRegionDecoder() 102 Bitmap b = BitmapFactory.decodeFile(pathName); in newInstance() 109 Bitmap b = BitmapFactory.decodeStream(is); in newInstance() 121 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { in decodeRegion() 128 Bitmap newBitmap = Bitmap.createBitmap( in decodeRegion() [all …]
|
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | Healing.java | 19 import android.graphics.Bitmap; 40 Bitmap mUndoBitmap; 49 private static Bitmap buildMask(Rect rec, float[] xy) { in buildMask() 50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8); in buildMask() 76 public void heal(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output) { in heal() 83 Bitmap maskBitmap = buildMask(mRoiBounds, mPointsXY); in heal() 90 Bitmap destBitmap = createMutableBitmap(image, mRoiBounds.left, mRoiBounds.top, in heal() 95 Bitmap src = createMutableBitmap(image, mCutOffsetX, mCutOffsetY, in heal() 133 mUndoBitmap = Bitmap.createBitmap(mRoiBounds.width(), mRoiBounds.height(), in heal() 134 Bitmap.Config.ARGB_8888); in heal() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLUtils.java | 19 import android.graphics.Bitmap; 40 public static int getInternalFormat(Bitmap bitmap) { in getInternalFormat() 62 public static int getType(Bitmap bitmap) { in getType() 99 Bitmap bitmap, int border) { in texImage2D() 125 Bitmap bitmap, int type, int border) { in texImage2D() 146 public static void texImage2D(int target, int level, Bitmap bitmap, in texImage2D() 182 Bitmap bitmap) { in texSubImage2D() 207 Bitmap bitmap, int format, int type) { in texSubImage2D() 264 native private static int native_getInternalFormat(Bitmap bitmap); in native_getInternalFormat() 265 native private static int native_getType(Bitmap bitmap); in native_getType() [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
D | UploadedTexture.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 47 private static HashMap<BorderKey, Bitmap> sBorderLines = 48 new HashMap<BorderKey, Bitmap>(); 62 protected Bitmap mBitmap; 118 private static Bitmap getBorderLine( in getBorderLine() 124 Bitmap bitmap = sBorderLines.get(key); in getBorderLine() 127 ? Bitmap.createBitmap(1, length, config) in getBorderLine() 128 : Bitmap.createBitmap(length, 1, config); in getBorderLine() 134 private Bitmap getBitmap() { in getBitmap() [all …]
|
D | BitmapTexture.java | 19 import android.graphics.Bitmap; 29 protected Bitmap mContentBitmap; 31 public BitmapTexture(Bitmap bitmap) { in BitmapTexture() 35 public BitmapTexture(Bitmap bitmap, boolean hasBorder) { in BitmapTexture() 42 protected void onFreeBitmap(Bitmap bitmap) { in onFreeBitmap() 47 protected Bitmap onGetBitmap() { in onGetBitmap() 51 public Bitmap getBitmap() { in getBitmap()
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | CompareActivity.java | 25 import android.graphics.Bitmap; 39 protected Bitmap mSoftwareBitmap; 40 protected Bitmap mHardwareBitmap; 67 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in onCreateCommon() 68 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in onCreateCommon() 83 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in loadBitmaps() 84 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in loadBitmaps() 101 .getDeclaredMethod("copyInto", Bitmap.class); in loadBitmaps()
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 20 import android.graphics.Bitmap; 84 public static Bitmap createImageThumbnail(String filePath, int kind) { in createImageThumbnail() 93 Bitmap bitmap = null; in createImageThumbnail() 119 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in createImageThumbnail() 153 public static Bitmap createVideoThumbnail(String filePath, int kind) { in createVideoThumbnail() 154 Bitmap bitmap = null; in createVideoThumbnail() 182 bitmap = Bitmap.createScaledBitmap(bitmap, w, h, true); in createVideoThumbnail() 200 public static Bitmap extractThumbnail( in extractThumbnail() 201 Bitmap source, int width, int height) { in extractThumbnail() 213 public static Bitmap extractThumbnail( in extractThumbnail() [all …]
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | SharedElementCallback.java | 20 import android.graphics.Bitmap; 174 Bitmap bitmap = createDrawableBitmap(d); in onCaptureSharedElementSnapshot() 192 Bitmap bitmap = null; in onCaptureSharedElementSnapshot() 203 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in onCaptureSharedElementSnapshot() 214 private static Bitmap createDrawableBitmap(Drawable drawable) { in createDrawableBitmap() 227 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createDrawableBitmap() 261 Bitmap bitmap = (Bitmap) bundle.getParcelable(BUNDLE_SNAPSHOT_BITMAP); in onCreateSnapshotView() 276 } else if (snapshot instanceof Bitmap) { in onCreateSnapshotView() 277 Bitmap bitmap = (Bitmap) snapshot; in onCreateSnapshotView()
|
/frameworks/rs/java/tests/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/ |
D | HelloComputeNDK.java | 22 import android.graphics.Bitmap; 26 private Bitmap mBitmapIn; 27 private Bitmap mBitmapOut; 33 native void nativeMono(String cacheDir, int X, int Y, Bitmap in, Bitmap out); in nativeMono() 41 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), mBitmapIn.getHeight(), in onCreate() 56 private Bitmap loadBitmap(int resource) { in loadBitmap() 58 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadBitmap()
|
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/ |
D | DividerItemDecorationTest.java | 19 import android.graphics.Bitmap; 62 Bitmap bitmap = drawDecoration(decoration, true, true); in testShouldDrawDividerBelowWithEitherCondition() 65 Bitmap expectedBitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444); in testShouldDrawDividerBelowWithEitherCondition() 106 Bitmap bitmap = drawDecoration(decoration, true, true); in testShouldDrawDividerBelowWithBothCondition() 110 Bitmap expectedBitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444); in testShouldDrawDividerBelowWithBothCondition() 137 private Bitmap drawDecoration(DividerItemDecoration decoration, final boolean allowDividerAbove, in drawDecoration() 140 Bitmap bitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444); in drawDecoration() 172 private void assertBitmapEquals(Bitmap expected, Bitmap actual) { in assertBitmapEquals()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 23 import android.graphics.Bitmap; 87 Bitmap scaled = createIconBitmap(src); in createIconDrawable() 105 public Bitmap createIconBitmap(Drawable icon) { in createIconBitmap() 116 Bitmap bitmap = bitmapDrawable.getBitmap(); in createIconBitmap() 117 if (bitmap.getDensity() == Bitmap.DENSITY_NONE) { in createIconBitmap() 145 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, in createIconBitmap() 146 Bitmap.Config.ARGB_8888); in createIconBitmap() 170 private Bitmap createSelectedBitmap(Bitmap src, boolean pressed) { in createSelectedBitmap() 171 final Bitmap result = Bitmap.createBitmap(mIconTextureWidth, mIconTextureHeight, in createSelectedBitmap() 172 Bitmap.Config.ARGB_8888); in createSelectedBitmap() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | Frame.java | 22 import android.graphics.Bitmap; 88 } else if (object instanceof Bitmap) { in setObjectValue() 89 setBitmap((Bitmap)object); in setObjectValue() 117 public abstract void setBitmap(Bitmap bitmap); in setBitmap() 119 public abstract Bitmap getBitmap(); in getBitmap() 180 protected static Bitmap convertBitmapToRGBA(Bitmap bitmap) { in convertBitmapToRGBA() 181 if (bitmap.getConfig() == Bitmap.Config.ARGB_8888) { in convertBitmapToRGBA() 184 Bitmap result = bitmap.copy(Bitmap.Config.ARGB_8888, false); in convertBitmapToRGBA()
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
D | ImageRequest.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 35 public class ImageRequest extends Request<Bitmap> { 45 private final Response.Listener<Bitmap> mListener; 72 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, in ImageRequest() 89 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, in ImageRequest() 155 protected Response<Bitmap> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse() 170 private Response<Bitmap> doParse(NetworkResponse response) { in doParse() 173 Bitmap bitmap = null; in doParse() 196 Bitmap tempBitmap = in doParse() [all …]
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
D | FrameSequenceDrawable.java | 19 import android.graphics.Bitmap; 73 public abstract Bitmap acquireBitmap(int minWidth, int minHeight); in acquireBitmap() 81 public abstract void releaseBitmap(Bitmap bitmap); in releaseBitmap() 86 public Bitmap acquireBitmap(int minWidth, int minHeight) { 87 return Bitmap.createBitmap(minWidth, minHeight, Bitmap.Config.ARGB_8888); 91 public void releaseBitmap(Bitmap bitmap) {} 141 private Bitmap mFrontBitmap; 142 private Bitmap mBackBitmap; 165 Bitmap bitmap; 184 Bitmap bitmapToRelease = null; [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | Bitmap.cpp | 37 WrappedPixelRef(Bitmap* wrapper, void* storage, in WrappedPixelRef() 118 Bitmap& mBitmap; 129 Bitmap::Bitmap(JNIEnv* env, jbyteArray storageObj, void* address, in Bitmap() function in android::Bitmap 141 Bitmap::Bitmap(void* address, void* context, FreeFunc freeFunc, in Bitmap() function in android::Bitmap 153 Bitmap::Bitmap(void* address, int fd, in Bitmap() function in android::Bitmap 164 Bitmap::~Bitmap() { in ~Bitmap() 168 void Bitmap::freePixels() { in freePixels() 176 void Bitmap::doFreePixels() { in doFreePixels() 204 bool Bitmap::hasHardwareMipMap() { in hasHardwareMipMap() 208 void Bitmap::setHasHardwareMipMap(bool hasMipMap) { in setHasHardwareMipMap() [all …]
|