diff options
author | William Clark <wclark@codeaurora.org> | 2015-08-21 17:44:46 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:29:04 -0600 |
commit | 7b0301f8a0f3889063308abfd9c32b0797cd5fda (patch) | |
tree | 0df48bdd0bd54eac3665eb70cd2075c92d93d420 /media | |
parent | 3dc1850640a2af2fb342740853be1f84e76672c7 (diff) | |
download | frameworks_base-7b0301f8a0f3889063308abfd9c32b0797cd5fda.zip frameworks_base-7b0301f8a0f3889063308abfd9c32b0797cd5fda.tar.gz frameworks_base-7b0301f8a0f3889063308abfd9c32b0797cd5fda.tar.bz2 |
SEEMP: Add more framework instrumentation
Instrument framework files to log events of interest.
Conflicts:
core/java/android/accounts/AccountManager.java
Change-Id: Ia45651e6352586f910039b51cac2356f65f80010
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/AudioRecord.java | 3 | ||||
-rw-r--r-- | media/jni/android_media_MediaRecorder.cpp | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/media/java/android/media/AudioRecord.java b/media/java/android/media/AudioRecord.java index 346a48a..27cc220 100644 --- a/media/java/android/media/AudioRecord.java +++ b/media/java/android/media/AudioRecord.java @@ -890,6 +890,7 @@ public class AudioRecord */ public void startRecording() throws IllegalStateException { + android.util.SeempLog.record(88); if (mState != STATE_INITIALIZED) { throw new IllegalStateException("startRecording() called on an " + "uninitialized AudioRecord."); @@ -913,6 +914,7 @@ public class AudioRecord */ public void startRecording(MediaSyncEvent syncEvent) throws IllegalStateException { + android.util.SeempLog.record(88); if (mState != STATE_INITIALIZED) { throw new IllegalStateException("startRecording() called on an " + "uninitialized AudioRecord."); @@ -933,6 +935,7 @@ public class AudioRecord */ public void stop() throws IllegalStateException { + android.util.SeempLog.record(90); if (mState != STATE_INITIALIZED) { throw new IllegalStateException("stop() called on an uninitialized AudioRecord."); } diff --git a/media/jni/android_media_MediaRecorder.cpp b/media/jni/android_media_MediaRecorder.cpp index 3a17f0e..2c75f63 100644 --- a/media/jni/android_media_MediaRecorder.cpp +++ b/media/jni/android_media_MediaRecorder.cpp @@ -41,6 +41,7 @@ #include <system/audio.h> #include <android_runtime/android_view_Surface.h> #include <media/AVMediaExtensions.h> +#include "SeempLog.h" // ---------------------------------------------------------------------------- using namespace android; @@ -388,6 +389,7 @@ static void android_media_MediaRecorder_start(JNIEnv *env, jobject thiz) { ALOGV("start"); + SEEMPLOG_RECORD(86, ""); sp<MediaRecorder> mr = getMediaRecorder(env, thiz); process_media_recorder_call(env, mr->start(), "java/lang/RuntimeException", "start failed."); } |