Home
last modified time | relevance | path

Searched refs:isMutable (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java93 public static Bitmap createBitmap(File input, boolean isMutable, Density density) in createBitmap() argument
98 return createBitmap(delegate, isMutable, density.getDpiValue()); in createBitmap()
111 public static Bitmap createBitmap(InputStream input, boolean isMutable, Density density) in createBitmap() argument
116 return createBitmap(delegate, isMutable, density.getDpiValue()); in createBitmap()
129 public static Bitmap createBitmap(BufferedImage image, boolean isMutable, in createBitmap() argument
134 return createBitmap(delegate, isMutable, density.getDpiValue()); in createBitmap()
218 /*package*/ static Bitmap nativeCopy(int srcBitmap, int nativeConfig, boolean isMutable) { in nativeCopy() argument
242 return createBitmap(delegate, isMutable, Bitmap.getDefaultDensity()); in nativeCopy()
417 /*package*/ static boolean nativeWriteToParcel(int nativeBitmap, boolean isMutable, in nativeWriteToParcel() argument
522 private static Bitmap createBitmap(Bitmap_Delegate delegate, boolean isMutable, int density) { in createBitmap() argument
[all …]
/frameworks/base/graphics/java/android/graphics/
DBitmap.java98 /*package*/ Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk, in Bitmap() argument
100 this(nativeBitmap, buffer, isMutable, ninePatchChunk, null, density); in Bitmap()
111 /*package*/ Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk, in Bitmap() argument
122 mIsMutable = isMutable; in Bitmap()
427 public Bitmap copy(Config config, boolean isMutable) { in copy() argument
429 Bitmap b = nativeCopy(mNativeBitmap, config.nativeInt, isMutable); in copy()
540 if (!source.isMutable() && x == 0 && y == 0 && width == source.getWidth() && in createBitmap()
779 public final boolean isMutable() { in isMutable() method in Bitmap
920 if (!isMutable()) { in eraseColor()
1044 if (!isMutable()) { in setPixel()
[all …]
DCanvas.java126 if (!bitmap.isMutable()) { in Canvas()
186 if (!bitmap.isMutable()) { in setBitmap()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapTest.java31 assertTrue("mutability", bm1.isMutable()); in testBasic()
32 assertTrue("mutability", bm2.isMutable()); in testBasic()
33 assertTrue("mutability", bm3.isMutable()); in testBasic()
66 assertTrue("mutability", bm1.isMutable()); in testMutability()
67 assertFalse("mutability", bm2.isMutable()); in testMutability()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DBitmapsActivity.java66 Log.d("Bitmap", "mBitmap1.isMutable() = " + mBitmap1.isMutable()); in BitmapsView()
67 Log.d("Bitmap", "mBitmap2.isMutable() = " + mBitmap2.isMutable()); in BitmapsView()
72 Log.d("Bitmap", "bitmap.isMutable() = " + bitmap.isMutable()); in BitmapsView()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp216 SkBitmap::Config config, jboolean isMutable) { in Bitmap_creator() argument
239 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, isMutable, NULL, NULL); in Bitmap_creator()
243 SkBitmap::Config dstConfig, jboolean isMutable) { in Bitmap_copy() argument
251 …hicsJNI::createBitmap(env, new SkBitmap(result), allocator.getStorageObj(), isMutable, NULL, NULL); in Bitmap_copy()
356 const bool isMutable = p->readInt32() != 0; in Bitmap_createFromParcel() local
410 return GraphicsJNI::createBitmap(env, bitmap, buffer, isMutable, NULL, NULL, density); in Bitmap_createFromParcel()
415 jboolean isMutable, jint density, in Bitmap_writeToParcel() argument
424 p->writeInt32(isMutable); in Bitmap_writeToParcel()
DGraphicsJNI.h56 bool isMutable, jbyteArray ninepatch, jintArray layoutbounds,
59 static jobject createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable,
DBitmapFactory.cpp168 bool isMutable = false; in doDecode() local
189 isMutable = env->GetBooleanField(options, gOptions_mutableFieldID); in doDecode()
365 if (!isMutable) { in doDecode()
379 isMutable, ninePatchChunk, layoutBounds, -1); in doDecode()
DGraphics.cpp348 bool isMutable, jbyteArray ninepatch, jintArray layoutbounds, in createBitmap() argument
355 buffer, isMutable, ninepatch, layoutbounds, density); in createBitmap()
360 jobject GraphicsJNI::createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable, in createBitmap() argument
363 return createBitmap(env, bitmap, NULL, isMutable, ninepatch, NULL, density); in createBitmap()
/frameworks/base/api/
D14.txt7808 method public final boolean isMutable();
D15.txt7840 method public final boolean isMutable();
Dcurrent.txt8112 method public final boolean isMutable();
D16.txt8112 method public final boolean isMutable();