summaryrefslogtreecommitdiff
path: root/framework/java
diff options
context:
space:
mode:
author William Escande <wescande@google.com> 2025-02-19 17:36:30 -0800
committer William Escande <wescande@google.com> 2025-03-04 16:02:48 -0800
commitb9e891f1e8dc664f71f5f9e49373c9529457efb9 (patch)
tree435faf1b2c53e1accbfa12a0924d7894f0ad15de /framework/java
parentca4600bc58455bacdd57df1dc20f82e6508f5126 (diff)
LeCallControl: delete dead code
networkStateChanged is never called from anywhere Bug: 380356012 Test: m Bluetooth Flag: Exempt dead code removal Change-Id: Iaaf884045f603a1543df38032a9bc093cf62deef
Diffstat (limited to 'framework/java')
-rw-r--r--framework/java/android/bluetooth/BluetoothLeCallControl.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/framework/java/android/bluetooth/BluetoothLeCallControl.java b/framework/java/android/bluetooth/BluetoothLeCallControl.java
index e7f6b4edc9..e4b2e4fc32 100644
--- a/framework/java/android/bluetooth/BluetoothLeCallControl.java
+++ b/framework/java/android/bluetooth/BluetoothLeCallControl.java
@@ -527,39 +527,6 @@ public final class BluetoothLeCallControl implements BluetoothProfile {
}
/**
- * Provide the network current status
- *
- * <p>This function must be invoked on change of network state.
- * <!-- The Technology is an integer value. The possible values are defined at
- * https://www.bluetooth.com/specifications/assigned-numbers (login required).
- * -->
- *
- * @param provider Network provider name
- * @param technology Network technology
- * @hide
- */
- @RequiresBluetoothConnectPermission
- @RequiresPermission(allOf = {BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED})
- public void networkStateChanged(@NonNull String provider, int technology) {
- Log.d(TAG, "networkStateChanged: provider=" + provider + ", technology=" + technology);
- if (mCcid == 0) {
- return;
- }
-
- final IBluetoothLeCallControl service = getService();
- if (service == null) {
- Log.w(TAG, "Proxy not attached to service");
- return;
- }
-
- try {
- service.networkStateChanged(mCcid, provider, technology, mAttributionSource);
- } catch (RemoteException e) {
- Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
- }
- }
-
- /**
* Send a response to a call control request to a remote device.
*
* <p>This function must be invoked in when a request is received by one of these callback