diff options
| author | Rahul Sabnis <rahulsabnis@google.com> | 2019-12-13 10:28:30 -0800 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-12-13 10:28:30 -0800 |
| commit | 8d808e5c7ae617eeb8c4f25cfdc2ffbacfe86f7d (patch) | |
| tree | a77a91f894350c4a90dcfc2337c80481c99566f4 /framework/java | |
| parent | 10b567fe1292f71703101c134d6f3f4d79bf7150 (diff) | |
| parent | 24dd49bbb2e10a7b7765f3b0c1730bc795f576bc (diff) | |
Merge "Resolve BluetoothHearingAid API usages by Settings"
am: 24dd49bbb2
Change-Id: Iab058a5e869d6b25b5d256b1f6c0ee5fcedc1c1e
Diffstat (limited to 'framework/java')
| -rw-r--r-- | framework/java/android/bluetooth/BluetoothHearingAid.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/java/android/bluetooth/BluetoothHearingAid.java b/framework/java/android/bluetooth/BluetoothHearingAid.java index ead8429e4a..b4521c623e 100644 --- a/framework/java/android/bluetooth/BluetoothHearingAid.java +++ b/framework/java/android/bluetooth/BluetoothHearingAid.java @@ -335,9 +335,9 @@ public final class BluetoothHearingAid implements BluetoothProfile { * is not active, it will be null on that position. Returns empty list on error. * @hide */ - @UnsupportedAppUsage + @SystemApi @RequiresPermission(Manifest.permission.BLUETOOTH) - public List<BluetoothDevice> getActiveDevices() { + public @NonNull List<BluetoothDevice> getActiveDevices() { if (VDBG) log("getActiveDevices()"); final IBluetoothHearingAid service = getService(); try { @@ -559,8 +559,9 @@ public final class BluetoothHearingAid implements BluetoothProfile { * @return the CustomerId of the device * @hide */ + @SystemApi @RequiresPermission(Manifest.permission.BLUETOOTH) - public long getHiSyncId(BluetoothDevice device) { + public long getHiSyncId(@Nullable BluetoothDevice device) { if (VDBG) { log("getCustomerId(" + device + ")"); } |
