summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/util
diff options
context:
space:
mode:
authorweijiew <weijiew@codeaurora.org>2017-05-08 18:29:39 +0800
committerweijiew <weijiew@codeaurora.org>2017-05-11 10:09:05 +0800
commitbcab81b25ca79aff2a1bdc5997543779f144a153 (patch)
tree6c2f3ce7b6530b1de9543619be37d59ad280c535 /src/com/android/camera/util
parentf64339bcc82eb45157fee3b640da793e316d0484 (diff)
downloadandroid_packages_apps_Snap-bcab81b25ca79aff2a1bdc5997543779f144a153.tar.gz
android_packages_apps_Snap-bcab81b25ca79aff2a1bdc5997543779f144a153.tar.bz2
android_packages_apps_Snap-bcab81b25ca79aff2a1bdc5997543779f144a153.zip
SnapdragonCamera: Rename property name
As app can't read property "persist.sys.camera.xxxx" with permission denied on Android O, so rename "persist.sys.camera.xxx" to "persist.vendor.camera.xxx" Change-Id: Ib2a3d193ca56b51ba1a4f3cea9cf933f8780e78c CRs-Fixed: 2027214
Diffstat (limited to 'src/com/android/camera/util')
-rw-r--r--src/com/android/camera/util/PersistUtil.java27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/com/android/camera/util/PersistUtil.java b/src/com/android/camera/util/PersistUtil.java
index 199f31dd6..89c58131a 100644
--- a/src/com/android/camera/util/PersistUtil.java
+++ b/src/com/android/camera/util/PersistUtil.java
@@ -33,31 +33,32 @@ import android.os.SystemProperties;
public class PersistUtil {
private static final int PERSIST_MEMORY_LIMIT =
- SystemProperties.getInt("persist.sys.camera.perf.memlimit", 60);
+ SystemProperties.getInt("persist.vendor.camera.perf.memlimit", 60);
private static final boolean PERSIST_SKIP_MEMORY_CHECK =
- SystemProperties.getBoolean("persist.sys.camera.perf.skip_memck", false);
+ SystemProperties.getBoolean("persist.vendor.camera.perf.skip_memck", false);
private static final int PERSIST_LONGSHOT_SHOT_LIMIT =
- SystemProperties.getInt("persist.sys.camera.longshot.shotnum", 50);
+ SystemProperties.getInt("persist.vendor.camera.longshot.shotnum", 50);
private static final int PERSIST_CAMERA_PREVIEW_SIZE =
- SystemProperties.getInt("persist.sys.camera.preview.size", 0);
+ SystemProperties.getInt("persist.vendor.camera.preview.size", 0);
private static final boolean PERSIST_CAMERA_CAMERA2 =
- SystemProperties.getBoolean("persist.sys.camera.camera2", false);
+ SystemProperties.getBoolean("persist.vendor.camera.camera2", false);
private static final boolean PERSIST_CAMERA_ZSL =
- SystemProperties.getBoolean("persist.sys.camera.zsl.disabled", false);
+ SystemProperties.getBoolean("persist.vendor.camera.zsl.disabled", false);
private static final int PERSIST_CAMERA2_DEBUG =
- SystemProperties.getInt("persist.sys.camera2.debug", 0);
+ SystemProperties.getInt("persist.vendor.camera2.debug", 0);
private static final int PERSIST_CAMERA_CANCEL_TOUCHFOCUS_DELAY =
- SystemProperties.getInt("persist.sys.camera.focus_delay", 5000);
+ SystemProperties.getInt("persist.vendor.camera.focus_delay", 5000);
private static final int PERSIST_CAMERA_DEBUG =
- SystemProperties.getInt("persist.sys.camera.debug", 0);
+ SystemProperties.getInt("persist.vendor.camera.debug", 0);
private static final String PERSIST_CAMERA_STILLMORE_BRCOLR =
- SystemProperties.get("persist.sys.camera.stm_brcolor", "0.5");
+ SystemProperties.get("persist.vendor.camera.stm_brcolor", "0.5");
private static final String PERSIST_CAMERA_STILLMORE_BRINTENSITY =
- SystemProperties.get("persist.sys.camera.stm_brintensity", "0.6");
+ SystemProperties.get("persist.vendor.camera.stm_brintensity", "0.6");
private static final String PERSIST_CAMERA_STILLMORE_SMOOTHINGINTENSITY =
- SystemProperties.get("persist.sys.camera.stm_smooth", "0");
+ SystemProperties.get("persist.vendor.camera.stm_smooth", "0");
private static final int PERSIST_CAMERA_STILLMORE_NUM_REQUIRED_IMAGE =
- SystemProperties.getInt("persist.sys.camera.stm_img_nums", 5);
+ SystemProperties.getInt("persist.vendor.camera.stm_img_nums", 5);
+
public static final int CAMERA2_DEBUG_DUMP_IMAGE = 1;
public static final int CAMERA2_DEBUG_DUMP_LOG = 2;