diff options
author | 2025-03-17 13:30:58 +0100 | |
---|---|---|
committer | 2025-03-17 15:00:12 +0100 | |
commit | 719980a593b841bf46f623ec3937272bd9b5033a (patch) | |
tree | f056c90796fa39167722187dcd71ba59ffae1724 | |
parent | f9c76eb959adee5650306ec4851b50eb2b424bb5 (diff) |
Remove flag api_get_connection_state_using_identity_address
Bug: 319471537
Test: mma -j32
Change-Id: I2ca7f3e2eacf6e8b0baf5718fa20cd6e5da16a5a
-rw-r--r-- | android/app/src/com/android/bluetooth/btservice/AdapterService.java | 15 | ||||
-rw-r--r-- | flags/connectivity.aconfig | 7 |
2 files changed, 6 insertions, 16 deletions
diff --git a/android/app/src/com/android/bluetooth/btservice/AdapterService.java b/android/app/src/com/android/bluetooth/btservice/AdapterService.java index 9bec63769d..cf061a49e9 100644 --- a/android/app/src/com/android/bluetooth/btservice/AdapterService.java +++ b/android/app/src/com/android/bluetooth/btservice/AdapterService.java @@ -3119,16 +3119,13 @@ public class AdapterService extends Service { public int getConnectionState(BluetoothDevice device) { final String address = device.getAddress(); - if (Flags.apiGetConnectionStateUsingIdentityAddress()) { - int connectionState = mNativeInterface.getConnectionState(getBytesFromAddress(address)); - final String identityAddress = getIdentityAddress(address); - if (identityAddress != null) { - connectionState |= - mNativeInterface.getConnectionState(getBytesFromAddress(identityAddress)); - } - return connectionState; + int connectionState = mNativeInterface.getConnectionState(getBytesFromAddress(address)); + final String identityAddress = getIdentityAddress(address); + if (identityAddress != null) { + connectionState |= + mNativeInterface.getConnectionState(getBytesFromAddress(identityAddress)); } - return mNativeInterface.getConnectionState(getBytesFromAddress(address)); + return connectionState; } int getConnectionHandle(BluetoothDevice device, int transport) { diff --git a/flags/connectivity.aconfig b/flags/connectivity.aconfig index 35af7382ec..c9b3c4c352 100644 --- a/flags/connectivity.aconfig +++ b/flags/connectivity.aconfig @@ -2,13 +2,6 @@ package: "com.android.bluetooth.flags" container: "com.android.bt" flag { - name: "api_get_connection_state_using_identity_address" - namespace: "bluetooth" - description: "Use identity address to check current connection state" - bug: "319471537" -} - -flag { name: "use_le_shim_connection_map_guard" namespace: "bluetooth" description: "Guard the le shim connection map with a mutex" |