diff options
author | Weijie Wang <weijiew@codeaurora.org> | 2017-08-29 17:52:48 +0800 |
---|---|---|
committer | Weijie Wang <weijiew@codeaurora.org> | 2017-08-30 10:45:01 +0800 |
commit | b5533d51a7c97138235d29b35cec876d107aeadd (patch) | |
tree | 3f92fc9d76f37f0efa4ee150322ebfdff50cb2c5 /src/com/android/camera/ui | |
parent | cc7d48d76185ed95ff9b00dcc23373186257b03b (diff) | |
download | android_packages_apps_Snap-b5533d51a7c97138235d29b35cec876d107aeadd.tar.gz android_packages_apps_Snap-b5533d51a7c97138235d29b35cec876d107aeadd.tar.bz2 android_packages_apps_Snap-b5533d51a7c97138235d29b35cec876d107aeadd.zip |
SnapdragonCamera: Sync LA.UM.6.4 to LA.UM.6.3
Sync LA.UM.6.4 to LA.UM.6.3
Change-Id: Ide9a53b3b5ea6d17154003e4059ae3125f9f3346
Diffstat (limited to 'src/com/android/camera/ui')
-rw-r--r--[-rwxr-xr-x] | src/com/android/camera/ui/Camera2FaceView.java | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | src/com/android/camera/ui/FaceView.java | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/camera/ui/Camera2FaceView.java b/src/com/android/camera/ui/Camera2FaceView.java index 3b6d10541..81be61f81 100755..100644 --- a/src/com/android/camera/ui/Camera2FaceView.java +++ b/src/com/android/camera/ui/Camera2FaceView.java @@ -151,7 +151,9 @@ public class Camera2FaceView extends FaceView { faceBound.offset(-mCameraBound.left, -mCameraBound.top); mRect.set(faceBound); translateMatrix.mapRect(mRect); + if (LOGV) CameraUtil.dumpRect(mRect, "Original rect"); mMatrix.mapRect(mRect); + if (LOGV) CameraUtil.dumpRect(mRect, "Transformed rect"); mPaint.setColor(mColor); mRect.offset(dx, dy); diff --git a/src/com/android/camera/ui/FaceView.java b/src/com/android/camera/ui/FaceView.java index b617891e5..04b3664eb 100755..100644 --- a/src/com/android/camera/ui/FaceView.java +++ b/src/com/android/camera/ui/FaceView.java @@ -33,14 +33,17 @@ import android.view.View; import com.android.camera.PhotoUI; import com.android.camera.util.CameraUtil; +import com.android.camera.util.PersistUtil; import org.codeaurora.snapcam.R; import org.codeaurora.snapcam.wrapper.ExtendedFaceWrapper; public class FaceView extends View implements FocusIndicator, Rotatable, PhotoUI.SurfaceTextureSizeChangedListener { - protected static final String TAG = "CAM FaceView"; - protected final boolean LOGV = false; + protected static final String TAG = "CAM_FaceView"; + protected final boolean LOGV = + (PersistUtil.getCamera2Debug() == PersistUtil.CAMERA2_DEBUG_DUMP_LOG) || + (PersistUtil.getCamera2Debug() == PersistUtil.CAMERA2_DEBUG_DUMP_ALL); // The value for android.hardware.Camera.setDisplayOrientation. protected int mDisplayOrientation; // The orientation compensation for the face indicator to make it look |