summaryrefslogtreecommitdiff
path: root/framework/java
diff options
context:
space:
mode:
author William Escande <wescande@google.com> 2025-02-26 14:01:47 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-02-26 14:01:47 -0800
commitb0bfdf18a18d0e3528d26dbd8ab94b52ac6f3e7d (patch)
treebf637c70b5e1c6676556dba33e450be615f0f1a1 /framework/java
parent9820d73d1135d4b8a976c868da8a50996bce5253 (diff)
parentaf661450208eb77b27d349e323b50b0564ec8f0a (diff)
Merge "InCallService: phoneStateChanged stays within Bt" into main
Diffstat (limited to 'framework/java')
-rw-r--r--framework/java/android/bluetooth/BluetoothHeadset.java30
1 files changed, 0 insertions, 30 deletions
diff --git a/framework/java/android/bluetooth/BluetoothHeadset.java b/framework/java/android/bluetooth/BluetoothHeadset.java
index 10f8f3f422..448bb05ea0 100644
--- a/framework/java/android/bluetooth/BluetoothHeadset.java
+++ b/framework/java/android/bluetooth/BluetoothHeadset.java
@@ -1130,36 +1130,6 @@ public final class BluetoothHeadset implements BluetoothProfile {
}
/**
- * Notify Headset of phone state change. This is a backdoor for phone app to call
- * BluetoothHeadset since there is currently not a good way to get precise call state change
- * outside of phone app.
- *
- * @hide
- */
- @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
- @RequiresBluetoothConnectPermission
- @RequiresPermission(
- allOf = {
- BLUETOOTH_CONNECT,
- MODIFY_PHONE_STATE,
- })
- public void phoneStateChanged(
- int numActive, int numHeld, int callState, String number, int type, String name) {
- final IBluetoothHeadset service = getService();
- if (service == null) {
- Log.w(TAG, "Proxy not attached to service");
- if (DBG) log(Log.getStackTraceString(new Throwable()));
- } else if (isEnabled()) {
- try {
- service.phoneStateChanged(
- numActive, numHeld, callState, number, type, name, mAttributionSource);
- } catch (RemoteException e) {
- Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
- }
- }
- }
-
- /**
* Sends a vendor-specific unsolicited result code to the headset.
*
* <p>The actual string to be sent is <code>command + ": " + arg</code>. For example, if {@code