summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlikaid <likaid@codeaurora.org>2015-06-26 16:52:12 +0800
committerZdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>2016-01-18 00:03:51 -0800
commit860c1f5121371ff9bebe09a4946eb9f74bb8a386 (patch)
tree7f64907175caceaf26ea3ae1d15a0b341137c758
parenta676e15c3728422f31970dce3f60e74bfc9c9e60 (diff)
downloadandroid_packages_apps_Snap-860c1f5121371ff9bebe09a4946eb9f74bb8a386.zip
android_packages_apps_Snap-860c1f5121371ff9bebe09a4946eb9f74bb8a386.tar.gz
android_packages_apps_Snap-860c1f5121371ff9bebe09a4946eb9f74bb8a386.tar.bz2
Snap: 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 Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
-rw-r--r--src/com/android/camera/MediaSaveService.java4
-rw-r--r--src/com/android/camera/Storage.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/camera/MediaSaveService.java b/src/com/android/camera/MediaSaveService.java
index c19dcd4..3e764a2 100644
--- a/src/com/android/camera/MediaSaveService.java
+++ b/src/com/android/camera/MediaSaveService.java
@@ -39,8 +39,8 @@ import java.io.File;
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;
+ // The memory limit for unsaved image is 60MB.
+ 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 372571a..6239494 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;