summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jack He <siyuanh@google.com> 2019-04-01 17:18:16 -0700
committer android-build-merger <android-build-merger@google.com> 2019-04-01 17:18:16 -0700
commitf08eadc878df0fe59d90269a7a7bd342beccee33 (patch)
treed4d9b7df0afff8d99366a395fba71abd57bed1be
parente58f122e196f658e8fb34b575ef5a239100300b8 (diff)
parent39a6d731bb0d9ad1052c91780da85d561ae83fa9 (diff)
Merge "BluetoothHealth: hide auto-created default constructors" am: 463454432b
am: 39a6d731bb Change-Id: If1410685d139f44a87648bfdb87094cd30ec8462
-rwxr-xr-xapi/current.txt2
-rw-r--r--core/java/android/bluetooth/BluetoothHealth.java5
-rw-r--r--core/java/android/bluetooth/BluetoothHealthAppConfiguration.java7
3 files changed, 12 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt
index 87292dd239c8..8bb607d4306d 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;