diff options
author | Keun-young Park <keunyoung@google.com> | 2016-10-07 15:48:11 -0700 |
---|---|---|
committer | Keun-young Park <keunyoung@google.com> | 2016-10-07 16:07:56 -0700 |
commit | 150d8de43e71a624106e90bcc04067414c42ef18 (patch) | |
tree | 904b2090cfa8dca892b058ca8c4327055b45670f /car-lib/api/current.txt | |
parent | af2cc99a2e8eea38a75b20b952ea5c0e7ebb4b1b (diff) | |
download | Car-150d8de43e71a624106e90bcc04067414c42ef18.tar.gz |
CarNotConnectedException cleanup
- any action which can fail without car connection all throws
CarNotConnectedException including methods which do not
throw now.
- drop exceptions from all tearing down methods like stop / release
unregister / abandon.
bug: 31930987
Change-Id: Ib63866488575def288e7af1c8350d92423262862
Diffstat (limited to 'car-lib/api/current.txt')
-rw-r--r-- | car-lib/api/current.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/car-lib/api/current.txt b/car-lib/api/current.txt index cab55dfb4c..556aaae3c2 100644 --- a/car-lib/api/current.txt +++ b/car-lib/api/current.txt @@ -23,12 +23,12 @@ package android.car { } public final class CarAppFocusManager { - method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int) throws android.car.CarNotConnectedException; - method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback) throws android.car.CarNotConnectedException; + method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int); + method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback); method public void addFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int) throws android.car.CarNotConnectedException; method public boolean isOwningFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int) throws android.car.CarNotConnectedException; - method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int) throws android.car.CarNotConnectedException; - method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener) throws android.car.CarNotConnectedException; + method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int); + method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener); method public int requestAppFocus(int, android.car.CarAppFocusManager.OnAppFocusOwnershipCallback) throws android.car.CarNotConnectedException, java.lang.SecurityException; field public static final int APP_FOCUS_REQUEST_FAILED = 0; // 0x0 field public static final int APP_FOCUS_REQUEST_SUCCEEDED = 1; // 0x1 @@ -225,8 +225,8 @@ package android.car.hardware { method public boolean isSensorSupported(int) throws android.car.CarNotConnectedException; method public static boolean isSensorSupported(int[], int); method public boolean registerListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; - method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener) throws android.car.CarNotConnectedException; - method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int) throws android.car.CarNotConnectedException; + method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener); + method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int); field public static final int SENSOR_RATE_FAST = 1; // 0x1 field public static final int SENSOR_RATE_FASTEST = 0; // 0x0 field public static final int SENSOR_RATE_NORMAL = 3; // 0x3 @@ -252,12 +252,12 @@ package android.car.hardware { package android.car.media { public final class CarAudioManager { - method public int abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes); - method public android.media.AudioAttributes getAudioAttributesForCarUsage(int); + method public void abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes); + method public android.media.AudioAttributes getAudioAttributesForCarUsage(int) throws android.car.CarNotConnectedException; method public int getStreamMaxVolume(int) throws android.car.CarNotConnectedException; method public int getStreamMinVolume(int) throws android.car.CarNotConnectedException; method public int getStreamVolume(int) throws android.car.CarNotConnectedException; - method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes, int, int) throws java.lang.IllegalArgumentException; + method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; method public void setStreamVolume(int, int, int) throws android.car.CarNotConnectedException; field public static final int CAR_AUDIO_USAGE_ALARM = 6; // 0x6 field public static final int CAR_AUDIO_USAGE_DEFAULT = 0; // 0x0 |