summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothHapClient.java
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@codecoup.pl>2022-03-14 16:09:18 +0000
committerJakub Tyszkowski <jakub.tyszkowski@codecoup.pl>2022-03-15 07:47:18 +0000
commitd6cba6bdbffdc306dcf0bbbd7fe91dfeb9df1b12 (patch)
treef8f59c3efb0771ac352fd67d66574ceb72c7e9d4 /framework/java/android/bluetooth/BluetoothHapClient.java
parent3115ab2e3c7f4d9edc8fdf68bd6893fa7cf4a708 (diff)
hap: Remove HAP features callback
The non-@SystemApi cannot be implemented by the app on error-prone build, but has to be implemented in the regular build. To compile the app on both this has to be removed. Bug: 150670922 Tag: #feature Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothHapClientTest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I7ee01d74726f39320f56b36895a1d80a26852014
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothHapClient.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothHapClient.java23
1 files changed, 0 insertions, 23 deletions
diff --git a/framework/java/android/bluetooth/BluetoothHapClient.java b/framework/java/android/bluetooth/BluetoothHapClient.java
index 4d1bd6ac1a..986c4adf14 100644
--- a/framework/java/android/bluetooth/BluetoothHapClient.java
+++ b/framework/java/android/bluetooth/BluetoothHapClient.java
@@ -141,17 +141,6 @@ public final class BluetoothHapClient implements BluetoothProfile, AutoCloseable
@Status int statusCode);
/**
- * Invoked to inform about HA device's feature set.
- *
- * @param device remote device
- * @param hapFeatures the feature set integer with feature bits set. The inidividual bits
- * are defined by Bluetooth SIG in Hearing Access Service specification.
- *
- * @hide
- */
- void onHapFeaturesAvailable(@NonNull BluetoothDevice device, @Feature int hapFeatures);
-
- /**
* Invoked to inform about the failed preset rename attempt.
*
* @param device remote device
@@ -224,18 +213,6 @@ public final class BluetoothHapClient implements BluetoothProfile, AutoCloseable
}
@Override
- public void onHapFeaturesAvailable(@NonNull BluetoothDevice device,
- @Feature int hapFeatures) {
- Attributable.setAttributionSource(device, mAttributionSource);
- for (Map.Entry<BluetoothHapClient.Callback, Executor> callbackExecutorEntry:
- mCallbackExecutorMap.entrySet()) {
- BluetoothHapClient.Callback callback = callbackExecutorEntry.getKey();
- Executor executor = callbackExecutorEntry.getValue();
- executor.execute(() -> callback.onHapFeaturesAvailable(device, hapFeatures));
- }
- }
-
- @Override
public void onSetPresetNameFailed(@NonNull BluetoothDevice device, int status) {
Attributable.setAttributionSource(device, mAttributionSource);
for (Map.Entry<BluetoothHapClient.Callback, Executor> callbackExecutorEntry: