Home
last modified time | relevance | path

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

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java109 public static Bitmap createBitmap(File input, boolean isMutable, Density density) in createBitmap() argument
111 return createBitmap(input, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
157 public static Bitmap createBitmap(InputStream input, boolean isMutable, Density density) in createBitmap() argument
159 return createBitmap(input, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
190 public static Bitmap createBitmap(BufferedImage image, boolean isMutable, Density density) { in createBitmap() argument
191 return createBitmap(image, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
252 int height, int nativeConfig, boolean isMutable) { 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/graphics/java/android/graphics/
DBitmap.java112 boolean isMutable, boolean requestPremultiplied, in Bitmap() argument
120 mIsMutable = isMutable; in Bitmap()
256 if (!isMutable()) { in reconfigure()
590 public Bitmap copy(Config config, boolean isMutable) { in copy() argument
592 Bitmap b = nativeCopy(mNativePtr, config.nativeInt, isMutable); in copy()
741 if (!source.isMutable() && x == 0 && y == 0 && width == source.getWidth() && in createBitmap()
1084 public final boolean isMutable() { in isMutable() method in Bitmap
1381 if (!isMutable()) { in eraseColor()
1511 if (!isMutable()) { in setPixel()
1544 if (!isMutable()) { in setPixels()
[all …]
DCanvas.java130 if (!bitmap.isMutable()) { in Canvas()
196 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.cpp700 static int getPremulBitmapCreateFlags(bool isMutable) { in getPremulBitmapCreateFlags() argument
702 if (isMutable) flags |= GraphicsJNI::kBitmapCreateFlag_Mutable; in getPremulBitmapCreateFlags()
708 jint configHandle, jboolean isMutable) { in Bitmap_creator() argument
737 getPremulBitmapCreateFlags(isMutable)); in Bitmap_creator()
741 jint dstConfigHandle, jboolean isMutable) { in Bitmap_copy() argument
753 getPremulBitmapCreateFlags(isMutable)); in Bitmap_copy()
956 const bool isMutable = p->readInt32() != 0; in Bitmap_createFromParcel() local
1009 if (blob.fd() >= 0 && (blob.isMutable() || !isMutable) && (size >= ASHMEM_BITMAP_MIN_SIZE)) { in Bitmap_createFromParcel()
1013 isMutable ? "mutable" : "immutable", in Bitmap_createFromParcel()
1014 blob.isMutable() ? "mutable" : "immutable", in Bitmap_createFromParcel()
[all …]
DBitmapFactory.cpp238 bool isMutable = false; in doDecode() local
263 isMutable = env->GetBooleanField(options, gOptions_mutableFieldID); in doDecode()
521 if (!isMutable && javaBitmap == NULL) { in doDecode()
535 if (isMutable) bitmapCreateFlags |= GraphicsJNI::kBitmapCreateFlag_Mutable; in doDecode()
DGraphics.cpp412 bool isMutable = bitmapCreateFlags & kBitmapCreateFlag_Mutable; in createBitmap() local
420 bitmap->width(), bitmap->height(), density, isMutable, isPremultiplied, in createBitmap()
/frameworks/base/graphics/java/android/view/
DPixelCopy.java147 if (!bitmap.isMutable()) { in validateBitmapDest()
/frameworks/native/include/binder/
DParcel.h441 inline bool isMutable() const { return mMutable; } in isMutable() function
444 void init(int fd, void* data, size_t size, bool isMutable);
490 inline void* mutableData() { return isMutable() ? mData : NULL; } in mutableData()
/frameworks/native/libs/binder/
DParcel.cpp2039 bool isMutable = (blobType == BLOB_ASHMEM_MUTABLE); in readBlob() local
2043 void* ptr = ::mmap(NULL, len, isMutable ? PROT_READ | PROT_WRITE : PROT_READ, in readBlob()
2047 outBlob->init(fd, ptr, len, isMutable); in readBlob()
2610 void Parcel::Blob::init(int fd, void* data, size_t size, bool isMutable) { in init() argument
2614 mMutable = isMutable; in init()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java392 getBitmap().isMutable() && in convertToAshmem()
/frameworks/base/docs/html/training/displaying-bitmaps/
Dmanage-memory.jd255 if (null != item && item.isMutable()) {
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java2311 && ((BitmapDrawable) drawable).getBitmap().isMutable(); in getBadgedDrawable()
DNotification.java4413 mPicture.isMutable() && in purgeResources()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt10461 method public final boolean isMutable();
/frameworks/base/api/
Dcurrent.txt11582 method public final boolean isMutable();
Dsystem-current.txt12030 method public final boolean isMutable();
Dtest-current.txt11600 method public final boolean isMutable();