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.java106 public static Bitmap createBitmap(@Nullable InputStream input, boolean isMutable, in createBitmap() argument
108 return createBitmap(input, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
159 public static Bitmap createBitmap(BufferedImage image, boolean isMutable, Density density) { in createBitmap() argument
160 return createBitmap(image, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
222 int height, int nativeConfig, boolean isMutable, long nativeColorSpace) { in nativeCreate() argument
234 delegate.mIsMutable = isMutable; in nativeCreate()
236 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable), in nativeCreate()
241 /*package*/ static Bitmap nativeCopy(long srcBitmap, int nativeConfig, boolean isMutable) { in nativeCopy() argument
264 delegate.mIsMutable = isMutable; in nativeCopy()
266 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable), in nativeCopy()
[all …]
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp198 bool isMutable = bitmapCreateFlags & kBitmapCreateFlag_Mutable; in createBitmap() local
205 if (!isMutable) { in createBitmap()
328 static int getPremulBitmapCreateFlags(bool isMutable) { in getPremulBitmapCreateFlags() argument
330 if (isMutable) flags |= android::bitmap::kBitmapCreateFlag_Mutable; in getPremulBitmapCreateFlags()
336 jint configHandle, jboolean isMutable, in Bitmap_creator() argument
374 return createBitmap(env, nativeBitmap.release(), getPremulBitmapCreateFlags(isMutable)); in Bitmap_creator()
416 jint dstConfigHandle, jboolean isMutable) { in Bitmap_copy() argument
424 return createBitmap(env, bitmap.release(), getPremulBitmapCreateFlags(isMutable)); in Bitmap_copy()
435 return createBitmap(env, bitmap, getPremulBitmapCreateFlags(isMutable)); in Bitmap_copy()
677 const bool isMutable = p->readInt32() != 0; in Bitmap_createFromParcel() local
[all …]
DBitmapFactory.cpp192 bool isMutable = false; in doDecode() local
221 isMutable = env->GetBooleanField(options, gOptions_mutableFieldID); in doDecode()
235 if (isMutable && isHardware) { in doDecode()
487 if (!isMutable && javaBitmap == NULL) { in doDecode()
501 if (isMutable) bitmapCreateFlags |= android::bitmap::kBitmapCreateFlag_Mutable; in doDecode()
/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/graphics/java/android/graphics/
DBitmap.java294 if (!isMutable()) { in reconfigure()
683 public Bitmap copy(Config config, boolean isMutable) { in copy() argument
685 if (config == Config.HARDWARE && isMutable) { in copy()
689 Bitmap b = nativeCopy(mNativePtr, config.nativeInt, isMutable); in copy()
886 if (!source.isMutable() && x == 0 && y == 0 && width == source.getWidth() && in createBitmap()
1416 public final boolean isMutable() { in isMutable() method in Bitmap
1430 if (isMutable()) { in setImmutable()
1821 if (!isMutable()) { in eraseColor()
1838 if (!isMutable()) { in eraseColor()
2019 if (!isMutable()) { in setPixel()
[all …]
DCanvas.java116 if (!bitmap.isMutable()) { in Canvas()
191 if (!bitmap.isMutable()) { in setBitmap()
/frameworks/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java37 assertTrue("mutability", bm1.isMutable()); in testBasic()
38 assertTrue("mutability", bm2.isMutable()); in testBasic()
39 assertTrue("mutability", bm3.isMutable()); in testBasic()
72 assertTrue("mutability", bm1.isMutable()); in testMutability()
73 assertFalse("mutability", bm2.isMutable()); in testMutability()
251 assertFalse(hardwareBitmap.isMutable()); in testWrapHardwareBufferWithSrgbColorSpace()
266 assertFalse(hardwareBitmap.isMutable()); in testWrapHardwareBufferWithDisplayP3ColorSpace()
/frameworks/base/graphics/java/android/view/
DPixelCopy.java292 if (!bitmap.isMutable()) { in validateBitmapDest()
/frameworks/native/libs/binder/
DParcel.cpp2325 bool isMutable = (blobType == BLOB_ASHMEM_MUTABLE); in readBlob() local
2338 void* ptr = ::mmap(nullptr, len, isMutable ? PROT_READ | PROT_WRITE : PROT_READ, in readBlob()
2342 outBlob->init(fd, ptr, len, isMutable); in readBlob()
2932 void Parcel::Blob::init(int fd, void* data, size_t size, bool isMutable) { in init() argument
2936 mMutable = isMutable; in init()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java446 getBitmap().isMutable() && in convertToAshmem()
/frameworks/native/include/binder/
DParcel.h612 inline bool isMutable() const { return mMutable; } in isMutable() function
615 void init(int fd, void* data, size_t size, bool isMutable);
677 inline void* mutableData() { return isMutable() ? mData : nullptr; } in mutableData()
/frameworks/native/libs/binder/include/binder/
DParcel.h612 inline bool isMutable() const { return mMutable; } in isMutable() function
615 void init(int fd, void* data, size_t size, bool isMutable);
677 inline void* mutableData() { return isMutable() ? mData : nullptr; } in mutableData()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java2783 && ((BitmapDrawable) drawable).getBitmap().isMutable(); in getBadgedDrawable()
DNotification.java6624 mPicture.isMutable() &&
/frameworks/base/config/
Dboot-image-profile.txt5488 HSPLandroid/graphics/Bitmap;->isMutable()Z
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt10461 method public final boolean isMutable();
/frameworks/base/non-updatable-api/
Dcurrent.txt13632 method public boolean isMutable();
/frameworks/base/api/
Dcurrent.txt13632 method public boolean isMutable();