Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/content/om/
DOverlayInfo.java201 public final boolean isMutable; field in OverlayInfo
214 source.isMutable); in OverlayInfo()
221 int priority, boolean isMutable) { in OverlayInfo() argument
230 this.isMutable = isMutable; in OverlayInfo()
244 isMutable = source.readBoolean(); in OverlayInfo()
339 dest.writeBoolean(isMutable); in writeToParcel()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplRebootTests.java91 assertFalse(o1.isMutable); in testImmutableEnabledChange()
98 assertFalse(o2.isMutable); in testImmutableEnabledChange()
105 assertFalse(o3.isMutable); in testImmutableEnabledChange()
119 assertTrue(o1.isMutable); in testMutableEnabledChangeHasNoEffect()
126 assertTrue(o2.isMutable); in testMutableEnabledChangeHasNoEffect()
133 assertTrue(o3.isMutable); in testMutableEnabledChangeHasNoEffect()
148 assertEquals(mutable, o.isMutable); in testMutableEnabledToImmutableEnabled()
DOverlayManagerServiceImplTestsBase.java65 when(mOverlayConfig.isMutable(any())).thenReturn(true); in setUp()
128 when(mOverlayConfig.isMutable(packageName)).thenReturn(mutable); in configureSystemOverlay()
/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/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/libs/hwui/jni/
DBitmap.cpp194 bool isMutable = bitmapCreateFlags & kBitmapCreateFlag_Mutable; in createBitmap() local
201 if (!isMutable) { in createBitmap()
276 static int getPremulBitmapCreateFlags(bool isMutable) { in getPremulBitmapCreateFlags() argument
278 if (isMutable) flags |= android::bitmap::kBitmapCreateFlag_Mutable; in getPremulBitmapCreateFlags()
284 jint configHandle, jboolean isMutable, in Bitmap_creator() argument
322 return createBitmap(env, nativeBitmap.release(), getPremulBitmapCreateFlags(isMutable)); in Bitmap_creator()
364 jint dstConfigHandle, jboolean isMutable) { in Bitmap_copy() argument
372 return createBitmap(env, bitmap.release(), getPremulBitmapCreateFlags(isMutable)); in Bitmap_copy()
383 return createBitmap(env, bitmap, getPremulBitmapCreateFlags(isMutable)); in Bitmap_copy()
604 const bool isMutable = p->readInt32() != 0; in Bitmap_createFromParcel() local
[all …]
DBitmapFactory.cpp181 bool isMutable = false; in doDecode() local
210 isMutable = env->GetBooleanField(options, gOptions_mutableFieldID); in doDecode()
224 if (isMutable && isHardware) { in doDecode()
475 if (!isMutable && javaBitmap == NULL) { in doDecode()
489 if (isMutable) bitmapCreateFlags |= android::bitmap::kBitmapCreateFlag_Mutable; in doDecode()
/frameworks/base/core/java/com/android/internal/content/om/
DOverlayConfigParser.java366 boolean isMutable = DEFAULT_MUTABILITY; in parseOverlay()
369 isMutable = !"false".equals(mutable); in parseOverlay()
370 if (!isMutable && parsingContext.mFoundMutableOverlay) { in parseOverlay()
378 if (isMutable) { in parseOverlay()
387 isMutable, parsingContext.mPartition.policy, info); in parseOverlay()
DOverlayConfig.java264 public boolean isMutable(String packageName) { in isMutable() method in OverlayConfig
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerSettings.java71 @NonNull final String baseCodePath, boolean isMutable, boolean isEnabled, int priority, in init() argument
75 baseCodePath, OverlayInfo.STATE_UNKNOWN, isEnabled, isMutable, priority, in init()
168 .filter((i) -> i.isMutable() || !"android".equals(i.getTargetPackageName())) in getOverlaysForTarget()
177 .filter((i) -> i.isMutable() || !"android".equals(i.getTargetPackageName())) in getOverlaysForUser()
333 pw.println("mIsMutable.............: " + item.isMutable()); in dumpSettingsItem()
519 final boolean isMutable, final int priority, @Nullable String category) { in SettingsItem() argument
529 mIsMutable = isMutable; in SettingsItem()
614 private boolean isMutable() { in isMutable() method in OverlayManagerSettings.SettingsItem
DOverlayManagerServiceImpl.java99 boolean isMutable = isPackageConfiguredMutable(theTruth.packageName); in mustReinitializeOverlay()
100 if (isMutable != oldSettings.isMutable) { in mustReinitializeOverlay()
105 if (!isMutable && isPackageConfiguredEnabled(theTruth.packageName) in mustReinitializeOverlay()
510 if (!oi.isMutable) { in setEnabled()
559 if (!disabledInfo.isMutable) { in setEnabledExclusive()
588 return mOverlayConfig.isMutable(packageName); in isPackageConfiguredMutable()
/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/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()
1449 public final boolean isMutable() { in isMutable() method in Bitmap
1463 if (isMutable()) { in setImmutable()
1854 if (!isMutable()) { in eraseColor()
1871 if (!isMutable()) { in eraseColor()
2052 if (!isMutable()) { in setPixel()
[all …]
DCanvas.java116 if (!bitmap.isMutable()) { in Canvas()
191 if (!bitmap.isMutable()) { in setBitmap()
/frameworks/base/graphics/java/android/view/
DPixelCopy.java292 if (!bitmap.isMutable()) { in validateBitmapDest()
/frameworks/native/libs/binder/
DParcel.cpp2118 bool isMutable = (blobType == BLOB_ASHMEM_MUTABLE); in readBlob() local
2131 void* ptr = ::mmap(nullptr, len, isMutable ? PROT_READ | PROT_WRITE : PROT_READ, in readBlob()
2135 outBlob->init(fd, ptr, len, isMutable); in readBlob()
2741 void Parcel::Blob::init(int fd, void* data, size_t size, bool isMutable) { in init() argument
2745 mMutable = isMutable; in init()
/frameworks/native/libs/binder/include/binder/
DParcel.h546 inline bool isMutable() const { return mMutable; } in isMutable() function
549 void init(int fd, void* data, size_t size, bool isMutable);
611 inline void* mutableData() { return isMutable() ? mData : nullptr; } in mutableData()
/frameworks/native/include/binder/
DParcel.h546 inline bool isMutable() const { return mMutable; } in isMutable() function
549 void init(int fd, void* data, size_t size, bool isMutable);
611 inline void* mutableData() { return isMutable() ? mData : nullptr; } in mutableData()
/frameworks/base/core/tests/coretests/src/com/android/internal/content/
DOverlayConfigTest.java575 assertTrue(overlayConfig.isMutable("one")); in testNonSystemOverlayCannotBeStatic()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java468 getBitmap().isMutable() && in convertToAshmem()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java2967 && ((BitmapDrawable) drawable).getBitmap().isMutable(); in getBadgedDrawable()
DNotification.java6776 mPicture.isMutable() &&
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt10461 method public final boolean isMutable();
/frameworks/base/config/
Dboot-image-profile.txt7299 HSPLandroid/graphics/Bitmap;->isMutable()Z

12