summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjinwu <jinwu@codeaurora.org>2018-08-22 15:43:22 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-09-10 01:39:07 -0700
commit55a707849b3f86da4f94e250c51bafbbc7944ac7 (patch)
treeaea8b78cae42a6c736ce381084208dc9561a6cd1
parentab80290f403947f03f891ac5353390ed80565de6 (diff)
downloadandroid_packages_apps_Snap-55a707849b3f86da4f94e250c51bafbbc7944ac7.zip
android_packages_apps_Snap-55a707849b3f86da4f94e250c51bafbbc7944ac7.tar.gz
android_packages_apps_Snap-55a707849b3f86da4f94e250c51bafbbc7944ac7.tar.bz2
Add video start/stop logs for KPI
Change-Id: I3854b199e77fe0a636465b6fce91895a49ac1c03
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 7b5403f..b8aa359 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -4305,6 +4305,7 @@ public class CaptureModule implements CameraModule, PhotoController,
requestAudioFocus();
try {
mMediaRecorder.start(); // Recording is now started
+ Log.d(TAG, "StartRecordingVideo done.");
} catch (RuntimeException e) {
Toast.makeText(mActivity,"Could not start media recorder.\n " +
"Can't start video recording.", Toast.LENGTH_LONG).show();
@@ -4603,6 +4604,7 @@ public class CaptureModule implements CameraModule, PhotoController,
setEndOfStream(true, false);
if (!ApiHelper.HAS_RESUME_SUPPORTED){
mMediaRecorder.start();
+ Log.d(TAG, "StartRecordingVideo done.");
} else {
try {
Method resumeRec = Class.forName("android.media.MediaRecorder").getMethod("resume");