Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java108 public static Bitmap createBitmap(File input, boolean isMutable, Density density) in createBitmap() argument
110 return createBitmap(input, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
156 public static Bitmap createBitmap(InputStream input, boolean isMutable, Density density) in createBitmap() argument
158 return createBitmap(input, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
189 public static Bitmap createBitmap(BufferedImage image, boolean isMutable, Density density) { in createBitmap() argument
190 return createBitmap(image, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
251 int height, int nativeConfig, boolean isMutable, @Nullable float[] xyzD50, in nativeCreate() argument
265 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable), in nativeCreate()
270 /*package*/ static Bitmap nativeCopy(long srcBitmap, int nativeConfig, boolean isMutable) { in nativeCopy() argument
294 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable), in nativeCopy()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java32 assertTrue("mutability", bm1.isMutable()); in testBasic()
33 assertTrue("mutability", bm2.isMutable()); in testBasic()
34 assertTrue("mutability", bm3.isMutable()); in testBasic()
67 assertTrue("mutability", bm1.isMutable()); in testMutability()
68 assertFalse("mutability", bm2.isMutable()); in testMutability()
245 assertFalse(hardwareBitmap.isMutable()); in testCreateHardwareBitmapFromGraphicBuffer()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java116 boolean isMutable, boolean requestPremultiplied, in Bitmap() argument
124 mIsMutable = isMutable; in Bitmap()
263 if (!isMutable()) { in reconfigure()
636 public Bitmap copy(Config config, boolean isMutable) { in copy() argument
638 if (config == Config.HARDWARE && isMutable) { in copy()
642 Bitmap b = nativeCopy(mNativePtr, config.nativeInt, isMutable); in copy()
791 if (!source.isMutable() && x == 0 && y == 0 && width == source.getWidth() && in createBitmap()
1256 public final boolean isMutable() { in isMutable() method in Bitmap
1599 if (!isMutable()) { in eraseColor()
1738 if (!isMutable()) { in setPixel()
[all …]
DCanvas.java113 if (!bitmap.isMutable()) { in Canvas()
186 if (!bitmap.isMutable()) { in setBitmap()
/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.cpp202 bool isMutable = bitmapCreateFlags & kBitmapCreateFlag_Mutable; in createBitmap() local
210 isMutable, isPremultiplied, ninePatchChunk, ninePatchInsets); in createBitmap()
646 static int getPremulBitmapCreateFlags(bool isMutable) { in getPremulBitmapCreateFlags() argument
648 if (isMutable) flags |= android::bitmap::kBitmapCreateFlag_Mutable; in getPremulBitmapCreateFlags()
654 jint configHandle, jboolean isMutable, in Bitmap_creator() argument
694 return createBitmap(env, nativeBitmap.release(), getPremulBitmapCreateFlags(isMutable)); in Bitmap_creator()
791 jint dstConfigHandle, jboolean isMutable) { in Bitmap_copy() argument
799 return createBitmap(env, bitmap.release(), getPremulBitmapCreateFlags(isMutable)); in Bitmap_copy()
810 return createBitmap(env, bitmap, getPremulBitmapCreateFlags(isMutable)); in Bitmap_copy()
1015 const bool isMutable = p->readInt32() != 0; in Bitmap_createFromParcel() local
[all …]
DBitmapFactory.cpp231 bool isMutable = false; in doDecode() local
262 isMutable = env->GetBooleanField(options, gOptions_mutableFieldID); in doDecode()
276 if (isMutable && isHardware) { in doDecode()
528 if (!isMutable && javaBitmap == NULL) { in doDecode()
542 if (isMutable) bitmapCreateFlags |= android::bitmap::kBitmapCreateFlag_Mutable; in doDecode()
/frameworks/base/graphics/java/android/view/
DPixelCopy.java284 if (!bitmap.isMutable()) { in validateBitmapDest()
/frameworks/native/libs/binder/include/binder/
DParcel.h485 inline bool isMutable() const { return mMutable; } in isMutable() function
488 void init(int fd, void* data, size_t size, bool isMutable);
550 inline void* mutableData() { return isMutable() ? mData : NULL; } in mutableData()
/frameworks/native/libs/binder/
DParcel.cpp2277 bool isMutable = (blobType == BLOB_ASHMEM_MUTABLE); in readBlob() local
2281 void* ptr = ::mmap(NULL, len, isMutable ? PROT_READ | PROT_WRITE : PROT_READ, in readBlob()
2285 outBlob->init(fd, ptr, len, isMutable); in readBlob()
2865 void Parcel::Blob::init(int fd, void* data, size_t size, bool isMutable) { in init() argument
2869 mMutable = isMutable; in init()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java400 getBitmap().isMutable() && in convertToAshmem()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java2499 && ((BitmapDrawable) drawable).getBitmap().isMutable(); in getBadgedDrawable()
DNotification.java5604 mPicture.isMutable() &&
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt10461 method public final boolean isMutable();
/frameworks/base/api/
Dcurrent.txt12566 method public final boolean isMutable();
Dtest-current.txt12655 method public final boolean isMutable();
Dsystem-current.txt13298 method public final boolean isMutable();
/frameworks/base/config/
Dboot-image-profile.txt21327 HSPLandroid/graphics/Bitmap;->isMutable()Z