diff options
| author | 2019-04-01 16:29:30 -0700 | |
|---|---|---|
| committer | 2019-04-01 16:29:30 -0700 | |
| commit | 39a6d731bb0d9ad1052c91780da85d561ae83fa9 (patch) | |
| tree | 41b05ef05f0006f7bbe37bb8ba6a63ef4d8e6920 | |
| parent | efeaad32256b562c10db11460264c603bda9198b (diff) | |
| parent | 463454432bb55b24c655e16e84c0143bf41ea485 (diff) | |
Merge "BluetoothHealth: hide auto-created default constructors"
am: 463454432b
Change-Id: I51d7f625dd2bcb81fec4bcf25822d1533cbc5cee
| -rwxr-xr-x | api/current.txt | 2 | ||||
| -rw-r--r-- | core/java/android/bluetooth/BluetoothHealth.java | 5 | ||||
| -rw-r--r-- | core/java/android/bluetooth/BluetoothHealthAppConfiguration.java | 7 |
3 files changed, 12 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt index 122dd035bc6b..6560459e5f4c 100755 --- a/api/current.txt +++ b/api/current.txt @@ -8351,7 +8351,6 @@ package android.bluetooth { } @Deprecated public final class BluetoothHealth implements android.bluetooth.BluetoothProfile { - ctor @Deprecated public BluetoothHealth(); method @Deprecated public boolean connectChannelToSource(android.bluetooth.BluetoothDevice, android.bluetooth.BluetoothHealthAppConfiguration); method @Deprecated public boolean disconnectChannel(android.bluetooth.BluetoothDevice, android.bluetooth.BluetoothHealthAppConfiguration, int); method @Deprecated public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); @@ -8375,7 +8374,6 @@ package android.bluetooth { } @Deprecated public final class BluetoothHealthAppConfiguration implements android.os.Parcelable { - ctor @Deprecated public BluetoothHealthAppConfiguration(); method @Deprecated public int describeContents(); method @Deprecated public int getDataType(); method @Deprecated public String getName(); diff --git a/core/java/android/bluetooth/BluetoothHealth.java b/core/java/android/bluetooth/BluetoothHealth.java index e2e56fd02ab7..5fd60e001693 100644 --- a/core/java/android/bluetooth/BluetoothHealth.java +++ b/core/java/android/bluetooth/BluetoothHealth.java @@ -99,6 +99,11 @@ public final class BluetoothHealth implements BluetoothProfile { @Deprecated public static final int CHANNEL_TYPE_STREAMING = 11; + /** + * Hide auto-created default constructor + * @hide + */ + BluetoothHealth() {} /** * Register an application configuration that acts as a Health SINK. diff --git a/core/java/android/bluetooth/BluetoothHealthAppConfiguration.java b/core/java/android/bluetooth/BluetoothHealthAppConfiguration.java index 9788bbf74e3e..e960ed64dcb9 100644 --- a/core/java/android/bluetooth/BluetoothHealthAppConfiguration.java +++ b/core/java/android/bluetooth/BluetoothHealthAppConfiguration.java @@ -33,6 +33,13 @@ import android.os.Parcelable; */ @Deprecated public final class BluetoothHealthAppConfiguration implements Parcelable { + + /** + * Hide auto-created default constructor + * @hide + */ + BluetoothHealthAppConfiguration() {} + @Override public int describeContents() { return 0; |