Loading core/java/android/app/Notification.java +4 −1 Original line number Diff line number Diff line Loading @@ -3966,6 +3966,9 @@ public class Notification implements Parcelable return this; } /** @hide */ public static final int MIN_ASHMEM_BITMAP_SIZE = 128 * (1 << 10); /** * @hide */ Loading @@ -3974,7 +3977,7 @@ public class Notification implements Parcelable super.purgeResources(); if (mPicture != null && mPicture.isMutable() && mPicture.getAllocationByteCount() >= (128 * (1 << 10))) { mPicture.getAllocationByteCount() >= MIN_ASHMEM_BITMAP_SIZE) { mPicture = mPicture.createAshmemBitmap(); } if (mBigLargeIcon != null) { Loading graphics/java/android/graphics/drawable/Icon.java +4 −1 Original line number Diff line number Diff line Loading @@ -377,6 +377,9 @@ public final class Icon implements Parcelable { return loadDrawable(context); } /** @hide */ public static final int MIN_ASHMEM_ICON_SIZE = 128 * (1 << 10); /** * Puts the memory used by this instance into Ashmem memory, if possible. * @hide Loading @@ -384,7 +387,7 @@ public final class Icon implements Parcelable { public void convertToAshmem() { if (mType == TYPE_BITMAP && getBitmap().isMutable() && getBitmap().getAllocationByteCount() >= (128 * (1 << 10))) { getBitmap().getAllocationByteCount() >= MIN_ASHMEM_ICON_SIZE) { setBitmap(getBitmap().createAshmemBitmap()); } } Loading Loading
core/java/android/app/Notification.java +4 −1 Original line number Diff line number Diff line Loading @@ -3966,6 +3966,9 @@ public class Notification implements Parcelable return this; } /** @hide */ public static final int MIN_ASHMEM_BITMAP_SIZE = 128 * (1 << 10); /** * @hide */ Loading @@ -3974,7 +3977,7 @@ public class Notification implements Parcelable super.purgeResources(); if (mPicture != null && mPicture.isMutable() && mPicture.getAllocationByteCount() >= (128 * (1 << 10))) { mPicture.getAllocationByteCount() >= MIN_ASHMEM_BITMAP_SIZE) { mPicture = mPicture.createAshmemBitmap(); } if (mBigLargeIcon != null) { Loading
graphics/java/android/graphics/drawable/Icon.java +4 −1 Original line number Diff line number Diff line Loading @@ -377,6 +377,9 @@ public final class Icon implements Parcelable { return loadDrawable(context); } /** @hide */ public static final int MIN_ASHMEM_ICON_SIZE = 128 * (1 << 10); /** * Puts the memory used by this instance into Ashmem memory, if possible. * @hide Loading @@ -384,7 +387,7 @@ public final class Icon implements Parcelable { public void convertToAshmem() { if (mType == TYPE_BITMAP && getBitmap().isMutable() && getBitmap().getAllocationByteCount() >= (128 * (1 << 10))) { getBitmap().getAllocationByteCount() >= MIN_ASHMEM_ICON_SIZE) { setBitmap(getBitmap().createAshmemBitmap()); } } Loading