diff options
author | likaid <likaid@codeaurora.org> | 2015-06-26 16:52:12 +0800 |
---|---|---|
committer | likaid <likaid@codeaurora.org> | 2015-07-14 17:08:14 +0800 |
commit | afcd40070220e273fd7113c5ad18dd4951c4fd4d (patch) | |
tree | c6ca373991e5b18600d293eea6d5acdbd01eab87 /src/com | |
parent | be3465750ac0ceeae737d6764dcc73a700328a6d (diff) | |
download | android_packages_apps_Snap-afcd40070220e273fd7113c5ad18dd4951c4fd4d.tar.gz android_packages_apps_Snap-afcd40070220e273fd7113c5ad18dd4951c4fd4d.tar.bz2 android_packages_apps_Snap-afcd40070220e273fd7113c5ad18dd4951c4fd4d.zip |
SnapdragonCamera: Enlarge the saving queue size to 60M
The picture would not be saved if the saving queue is full. Currently,
the queue is very easy to reach 50M during continuous shot with the
13M pixel pictures, that caused many pictures lost during continuous
shot.
Change the saving queue max size to 60M will avoid this issue,
mean while change the LOW_STORAGE_THRESHOLD_BYTES as the same value.
CRs-Fixed: 851554
Change-Id: Ib93f05404371872f2b82d489378c01a6122ccb6b
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/camera/MediaSaveService.java | 2 | ||||
-rw-r--r-- | src/com/android/camera/Storage.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/MediaSaveService.java b/src/com/android/camera/MediaSaveService.java index c19dcd498..889f41dd8 100644 --- a/src/com/android/camera/MediaSaveService.java +++ b/src/com/android/camera/MediaSaveService.java @@ -40,7 +40,7 @@ public class MediaSaveService extends Service { public static final String VIDEO_BASE_URI = "content://media/external/video/media"; // The memory limit for unsaved image is 50MB. - private static final int SAVE_TASK_MEMORY_LIMIT = 50 * 1024 * 1024; + private static final int SAVE_TASK_MEMORY_LIMIT = 60 * 1024 * 1024; private static final String TAG = "CAM_" + MediaSaveService.class.getSimpleName(); private final IBinder mBinder = new LocalBinder(); diff --git a/src/com/android/camera/Storage.java b/src/com/android/camera/Storage.java index 372571a80..6239494dc 100644 --- a/src/com/android/camera/Storage.java +++ b/src/com/android/camera/Storage.java @@ -53,7 +53,7 @@ public class Storage { public static final long UNAVAILABLE = -1L; public static final long PREPARING = -2L; public static final long UNKNOWN_SIZE = -3L; - public static final long LOW_STORAGE_THRESHOLD_BYTES = 50000000; + public static final long LOW_STORAGE_THRESHOLD_BYTES = 60 * 1024 * 1024; private static boolean sSaveSDCard = false; |