summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-03-09 09:25:45 -0700
committerEric Laurent <elaurent@google.com>2015-03-09 13:06:05 -0700
commit00a009204e51997249d60eab4f147eff566e2b1f (patch)
tree36d6ede9e88a9fb7c0fab5ca755c59c778e7a011 /api
parent93891686eb28f8c0da6545d277965e4db50d5065 (diff)
downloadframeworks_base-00a009204e51997249d60eab4f147eff566e2b1f.zip
frameworks_base-00a009204e51997249d60eab4f147eff566e2b1f.tar.gz
frameworks_base-00a009204e51997249d60eab4f147eff566e2b1f.tar.bz2
enable FM tuner and hotword capture for system apps.
AudioRecord constructor with AudioAttributes and session ID as well as HOTWORD and RADIO_TUNER audio sources are now system APIs. Renamed MediaRecorder.AudioSource.FM_TUNER to MediaRecorder.AudioSource.RADIO_TUNER. Change-Id: I231c20c21e3e8cffe1837482976ebe284c9af541
Diffstat (limited to 'api')
-rw-r--r--api/system-current.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/system-current.txt b/api/system-current.txt
index 2b8ce98..c21d44f 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -15139,6 +15139,7 @@ package android.media {
public final class AudioAttributes implements android.os.Parcelable {
method public int describeContents();
+ method public int getAllFlags();
method public int getCapturePreset();
method public int getContentType();
method public int getFlags();
@@ -15180,6 +15181,7 @@ package android.media {
method public android.media.AudioAttributes.Builder setCapturePreset(int);
method public android.media.AudioAttributes.Builder setContentType(int);
method public android.media.AudioAttributes.Builder setFlags(int);
+ method public android.media.AudioAttributes.Builder setInternalCapturePreset(int);
method public android.media.AudioAttributes.Builder setLegacyStreamType(int);
method public android.media.AudioAttributes.Builder setUsage(int);
}
@@ -15412,6 +15414,7 @@ package android.media {
public class AudioRecord {
ctor public AudioRecord(int, int, int, int, int) throws java.lang.IllegalArgumentException;
+ ctor public AudioRecord(android.media.AudioAttributes, android.media.AudioFormat, int, int) throws java.lang.IllegalArgumentException;
method public int getAudioFormat();
method public int getAudioSessionId();
method public int getAudioSource();
@@ -16550,7 +16553,9 @@ package android.media {
public final class MediaRecorder.AudioSource {
field public static final int CAMCORDER = 5; // 0x5
field public static final int DEFAULT = 0; // 0x0
+ field public static final int HOTWORD = 1999; // 0x7cf
field public static final int MIC = 1; // 0x1
+ field public static final int RADIO_TUNER = 1998; // 0x7ce
field public static final int REMOTE_SUBMIX = 8; // 0x8
field public static final int VOICE_CALL = 4; // 0x4
field public static final int VOICE_COMMUNICATION = 7; // 0x7