summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorWei Jia <wjia@google.com>2015-05-08 23:23:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-08 23:23:47 +0000
commitea4eb326cfc4a8221be5fdab9639d468c632aee2 (patch)
tree16f12b6b243d167a84210a9839fcc7b7cd0bf049 /api
parent4f434a04708e7a254afe2e0d362f715229dc15d1 (diff)
parent2d61e2b97c92ac2de80ebb3782b728ae5cdf5306 (diff)
downloadframeworks_base-ea4eb326cfc4a8221be5fdab9639d468c632aee2.zip
frameworks_base-ea4eb326cfc4a8221be5fdab9639d468c632aee2.tar.gz
frameworks_base-ea4eb326cfc4a8221be5fdab9639d468c632aee2.tar.bz2
Merge "MediaSync: address API review." into mnc-dev
Diffstat (limited to 'api')
-rw-r--r--api/current.txt48
-rw-r--r--api/system-current.txt48
2 files changed, 48 insertions, 48 deletions
diff --git a/api/current.txt b/api/current.txt
index e17d6b6..ef2c4da 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -15068,8 +15068,8 @@ package android.media {
method public int getNotificationMarkerPosition();
method public int getPlayState();
method public int getPlaybackHeadPosition();
+ method public android.media.PlaybackParams getPlaybackParams();
method public int getPlaybackRate();
- method public android.media.PlaybackSettings getPlaybackSettings();
method public int getPositionNotificationPeriod();
method public android.media.AudioDeviceInfo getPreferredOutputDevice();
method public android.media.AudioDeviceInfo getRoutedDevice();
@@ -15086,10 +15086,10 @@ package android.media {
method public int setLoopPoints(int, int, int);
method public int setNotificationMarkerPosition(int);
method public int setPlaybackHeadPosition(int);
+ method public void setPlaybackParams(android.media.PlaybackParams);
method public void setPlaybackPositionUpdateListener(android.media.AudioTrack.OnPlaybackPositionUpdateListener);
method public void setPlaybackPositionUpdateListener(android.media.AudioTrack.OnPlaybackPositionUpdateListener, android.os.Handler);
method public int setPlaybackRate(int);
- method public void setPlaybackSettings(android.media.PlaybackSettings);
method public int setPositionNotificationPeriod(int);
method public boolean setPreferredOutputDevice(android.media.AudioDeviceInfo);
method protected deprecated void setState(int);
@@ -16089,9 +16089,9 @@ package android.media {
method public int getAudioSessionId();
method public int getCurrentPosition();
method public int getDuration();
- method public android.media.PlaybackSettings getPlaybackSettings();
+ method public android.media.PlaybackParams getPlaybackParams();
method public int getSelectedTrack(int) throws java.lang.IllegalStateException;
- method public android.media.SyncSettings getSyncSettings();
+ method public android.media.SyncParams getSyncParams();
method public android.media.MediaTimestamp getTimestamp();
method public android.media.MediaPlayer.TrackInfo[] getTrackInfo() throws java.lang.IllegalStateException;
method public int getVideoHeight();
@@ -16127,11 +16127,11 @@ package android.media {
method public void setOnTimedMetaDataListener(android.media.MediaPlayer.OnTimedMetaDataListener);
method public void setOnTimedTextListener(android.media.MediaPlayer.OnTimedTextListener);
method public void setOnVideoSizeChangedListener(android.media.MediaPlayer.OnVideoSizeChangedListener);
+ method public void setPlaybackParams(android.media.PlaybackParams);
method public void setPlaybackRate(float, int);
- method public void setPlaybackSettings(android.media.PlaybackSettings);
method public void setScreenOnWhilePlaying(boolean);
method public void setSurface(android.view.Surface);
- method public void setSyncSettings(android.media.SyncSettings);
+ method public void setSyncParams(android.media.SyncParams);
method public void setVideoScalingMode(int);
method public void setVolume(float, float);
method public void setWakeMode(android.content.Context, int);
@@ -16450,18 +16450,18 @@ package android.media {
ctor public MediaSync();
method public final android.view.Surface createInputSurface();
method public void flush();
- method public android.media.PlaybackSettings getPlaybackSettings();
- method public android.media.SyncSettings getSyncSettings();
+ method public android.media.PlaybackParams getPlaybackParams();
+ method public android.media.SyncParams getSyncParams();
method public android.media.MediaTimestamp getTimestamp();
- method public void queueAudio(java.nio.ByteBuffer, int, int, long);
+ method public void queueAudio(java.nio.ByteBuffer, int, long);
method public final void release();
method public void setAudioTrack(android.media.AudioTrack);
method public void setCallback(android.media.MediaSync.Callback, android.os.Handler);
method public void setOnErrorListener(android.media.MediaSync.OnErrorListener, android.os.Handler);
+ method public void setPlaybackParams(android.media.PlaybackParams);
method public void setPlaybackRate(float, int);
- method public void setPlaybackSettings(android.media.PlaybackSettings);
method public void setSurface(android.view.Surface);
- method public void setSyncSettings(android.media.SyncSettings);
+ method public void setSyncParams(android.media.SyncParams);
field public static final int MEDIASYNC_ERROR_AUDIOTRACK_FAIL = 1; // 0x1
field public static final int MEDIASYNC_ERROR_SURFACE_FAIL = 2; // 0x2
field public static final int PLAYBACK_RATE_AUDIO_MODE_DEFAULT = 0; // 0x0
@@ -16509,15 +16509,15 @@ package android.media {
method public abstract void onAudioTrackRouting(android.media.AudioTrack);
}
- public final class PlaybackSettings {
- ctor public PlaybackSettings();
- method public android.media.PlaybackSettings allowDefaults();
+ public final class PlaybackParams {
+ ctor public PlaybackParams();
+ method public android.media.PlaybackParams allowDefaults();
method public int getAudioFallbackMode();
method public float getPitch();
method public float getSpeed();
- method public android.media.PlaybackSettings setAudioFallbackMode(int);
- method public android.media.PlaybackSettings setPitch(float);
- method public android.media.PlaybackSettings setSpeed(float);
+ method public android.media.PlaybackParams setAudioFallbackMode(int);
+ method public android.media.PlaybackParams setPitch(float);
+ method public android.media.PlaybackParams setSpeed(float);
field public static final int AUDIO_FALLBACK_MODE_DEFAULT = 0; // 0x0
field public static final int AUDIO_FALLBACK_MODE_FAIL = 2; // 0x2
field public static final int AUDIO_FALLBACK_MODE_MUTE = 1; // 0x1
@@ -16708,17 +16708,17 @@ package android.media {
method public abstract void onLoadComplete(android.media.SoundPool, int, int);
}
- public final class SyncSettings {
- ctor public SyncSettings();
- method public android.media.SyncSettings allowDefaults();
+ public final class SyncParams {
+ ctor public SyncParams();
+ method public android.media.SyncParams allowDefaults();
method public int getAudioAdjustMode();
method public float getFrameRate();
method public int getSyncSource();
method public float getTolerance();
- method public android.media.SyncSettings setAudioAdjustMode(int);
- method public android.media.SyncSettings setFrameRate(float);
- method public android.media.SyncSettings setSyncSource(int);
- method public android.media.SyncSettings setTolerance(float);
+ method public android.media.SyncParams setAudioAdjustMode(int);
+ method public android.media.SyncParams setFrameRate(float);
+ method public android.media.SyncParams setSyncSource(int);
+ method public android.media.SyncParams setTolerance(float);
field public static final int AUDIO_ADJUST_MODE_DEFAULT = 0; // 0x0
field public static final int AUDIO_ADJUST_MODE_RESAMPLE = 2; // 0x2
field public static final int AUDIO_ADJUST_MODE_STRETCH = 1; // 0x1
diff --git a/api/system-current.txt b/api/system-current.txt
index f35caab..4508b20 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -16290,8 +16290,8 @@ package android.media {
method public int getNotificationMarkerPosition();
method public int getPlayState();
method public int getPlaybackHeadPosition();
+ method public android.media.PlaybackParams getPlaybackParams();
method public int getPlaybackRate();
- method public android.media.PlaybackSettings getPlaybackSettings();
method public int getPositionNotificationPeriod();
method public android.media.AudioDeviceInfo getPreferredOutputDevice();
method public android.media.AudioDeviceInfo getRoutedDevice();
@@ -16308,10 +16308,10 @@ package android.media {
method public int setLoopPoints(int, int, int);
method public int setNotificationMarkerPosition(int);
method public int setPlaybackHeadPosition(int);
+ method public void setPlaybackParams(android.media.PlaybackParams);
method public void setPlaybackPositionUpdateListener(android.media.AudioTrack.OnPlaybackPositionUpdateListener);
method public void setPlaybackPositionUpdateListener(android.media.AudioTrack.OnPlaybackPositionUpdateListener, android.os.Handler);
method public int setPlaybackRate(int);
- method public void setPlaybackSettings(android.media.PlaybackSettings);
method public int setPositionNotificationPeriod(int);
method public boolean setPreferredOutputDevice(android.media.AudioDeviceInfo);
method protected deprecated void setState(int);
@@ -17312,9 +17312,9 @@ package android.media {
method public int getAudioSessionId();
method public int getCurrentPosition();
method public int getDuration();
- method public android.media.PlaybackSettings getPlaybackSettings();
+ method public android.media.PlaybackParams getPlaybackParams();
method public int getSelectedTrack(int) throws java.lang.IllegalStateException;
- method public android.media.SyncSettings getSyncSettings();
+ method public android.media.SyncParams getSyncParams();
method public android.media.MediaTimestamp getTimestamp();
method public android.media.MediaPlayer.TrackInfo[] getTrackInfo() throws java.lang.IllegalStateException;
method public int getVideoHeight();
@@ -17350,11 +17350,11 @@ package android.media {
method public void setOnTimedMetaDataListener(android.media.MediaPlayer.OnTimedMetaDataListener);
method public void setOnTimedTextListener(android.media.MediaPlayer.OnTimedTextListener);
method public void setOnVideoSizeChangedListener(android.media.MediaPlayer.OnVideoSizeChangedListener);
+ method public void setPlaybackParams(android.media.PlaybackParams);
method public void setPlaybackRate(float, int);
- method public void setPlaybackSettings(android.media.PlaybackSettings);
method public void setScreenOnWhilePlaying(boolean);
method public void setSurface(android.view.Surface);
- method public void setSyncSettings(android.media.SyncSettings);
+ method public void setSyncParams(android.media.SyncParams);
method public void setVideoScalingMode(int);
method public void setVolume(float, float);
method public void setWakeMode(android.content.Context, int);
@@ -17675,18 +17675,18 @@ package android.media {
ctor public MediaSync();
method public final android.view.Surface createInputSurface();
method public void flush();
- method public android.media.PlaybackSettings getPlaybackSettings();
- method public android.media.SyncSettings getSyncSettings();
+ method public android.media.PlaybackParams getPlaybackParams();
+ method public android.media.SyncParams getSyncParams();
method public android.media.MediaTimestamp getTimestamp();
- method public void queueAudio(java.nio.ByteBuffer, int, int, long);
+ method public void queueAudio(java.nio.ByteBuffer, int, long);
method public final void release();
method public void setAudioTrack(android.media.AudioTrack);
method public void setCallback(android.media.MediaSync.Callback, android.os.Handler);
method public void setOnErrorListener(android.media.MediaSync.OnErrorListener, android.os.Handler);
+ method public void setPlaybackParams(android.media.PlaybackParams);
method public void setPlaybackRate(float, int);
- method public void setPlaybackSettings(android.media.PlaybackSettings);
method public void setSurface(android.view.Surface);
- method public void setSyncSettings(android.media.SyncSettings);
+ method public void setSyncParams(android.media.SyncParams);
field public static final int MEDIASYNC_ERROR_AUDIOTRACK_FAIL = 1; // 0x1
field public static final int MEDIASYNC_ERROR_SURFACE_FAIL = 2; // 0x2
field public static final int PLAYBACK_RATE_AUDIO_MODE_DEFAULT = 0; // 0x0
@@ -17734,15 +17734,15 @@ package android.media {
method public abstract void onAudioTrackRouting(android.media.AudioTrack);
}
- public final class PlaybackSettings {
- ctor public PlaybackSettings();
- method public android.media.PlaybackSettings allowDefaults();
+ public final class PlaybackParams {
+ ctor public PlaybackParams();
+ method public android.media.PlaybackParams allowDefaults();
method public int getAudioFallbackMode();
method public float getPitch();
method public float getSpeed();
- method public android.media.PlaybackSettings setAudioFallbackMode(int);
- method public android.media.PlaybackSettings setPitch(float);
- method public android.media.PlaybackSettings setSpeed(float);
+ method public android.media.PlaybackParams setAudioFallbackMode(int);
+ method public android.media.PlaybackParams setPitch(float);
+ method public android.media.PlaybackParams setSpeed(float);
field public static final int AUDIO_FALLBACK_MODE_DEFAULT = 0; // 0x0
field public static final int AUDIO_FALLBACK_MODE_FAIL = 2; // 0x2
field public static final int AUDIO_FALLBACK_MODE_MUTE = 1; // 0x1
@@ -17933,17 +17933,17 @@ package android.media {
method public abstract void onLoadComplete(android.media.SoundPool, int, int);
}
- public final class SyncSettings {
- ctor public SyncSettings();
- method public android.media.SyncSettings allowDefaults();
+ public final class SyncParams {
+ ctor public SyncParams();
+ method public android.media.SyncParams allowDefaults();
method public int getAudioAdjustMode();
method public float getFrameRate();
method public int getSyncSource();
method public float getTolerance();
- method public android.media.SyncSettings setAudioAdjustMode(int);
- method public android.media.SyncSettings setFrameRate(float);
- method public android.media.SyncSettings setSyncSource(int);
- method public android.media.SyncSettings setTolerance(float);
+ method public android.media.SyncParams setAudioAdjustMode(int);
+ method public android.media.SyncParams setFrameRate(float);
+ method public android.media.SyncParams setSyncSource(int);
+ method public android.media.SyncParams setTolerance(float);
field public static final int AUDIO_ADJUST_MODE_DEFAULT = 0; // 0x0
field public static final int AUDIO_ADJUST_MODE_RESAMPLE = 2; // 0x2
field public static final int AUDIO_ADJUST_MODE_STRETCH = 1; // 0x1