am 8ff973b4: am 4298999e: am 115bf42b: Unhide Virtualizer.getVirtualizationMode()

* commit '8ff973b4f5a975a50f880e1cb45f4bf564a070b1':
  Unhide Virtualizer.getVirtualizationMode()
This commit is contained in:
Jean-Michel Trivi
2014-07-20 02:26:11 +00:00
committed by Android Git Automerger
2 changed files with 12 additions and 3 deletions

View File

@@ -15932,6 +15932,7 @@ package android.media.audiofx {
method public short getRoundedStrength() throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.lang.UnsupportedOperationException;
method public boolean getSpeakerAngles(int, int, int[]) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.lang.UnsupportedOperationException;
method public boolean getStrengthSupported();
method public int getVirtualizationMode() throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.lang.UnsupportedOperationException;
method public void setParameterListener(android.media.audiofx.Virtualizer.OnParameterChangeListener);
method public void setProperties(android.media.audiofx.Virtualizer.Settings) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.lang.UnsupportedOperationException;
method public void setStrength(short) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.lang.UnsupportedOperationException;

View File

@@ -349,8 +349,6 @@ public class Virtualizer extends AudioEffect {
}
/**
* @hide
* CANDIDATE FOR PUBLIC API
* Return the device type which reflects the virtualization mode being used, if any.
* @return a device type (as defined in {@link AudioDevice}) which reflects the virtualization
* mode being used.
@@ -358,8 +356,18 @@ public class Virtualizer extends AudioEffect {
* {@link AudioDevice#DEVICE_TYPE_UNKNOWN}. Virtualization may not be active either because
* the effect is not enabled or because the current output device is not compatible with
* this virtualization implementation.
* <p>Note that the return value may differ from a device type successfully set with
* {@link #forceVirtualizationMode(int)} as the implementation
* may use a single mode for multiple devices. An example of this is with
* {@link AudioDevice#DEVICE_TYPE_WIRED_HEADSET} that would typically be handled
* like {@link AudioDevice#DEVICE_TYPE_WIRED_HEADPHONES} from a virtualization
* standpoint.
* @throws IllegalStateException
* @throws IllegalArgumentException
* @throws UnsupportedOperationException
*/
public int getVirtualizationMode() {
public int getVirtualizationMode()
throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException {
int[] value = new int[1];
int status = getParameter(PARAM_VIRTUALIZATION_MODE, value);
if (status >= 0) {