Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08967a04 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

Remove gatt_cleanup_restricted_handles flag

Bug: 323110155
Test: m -j;
Change-Id: Ib1e34215e34b1181c2f1baddb98525d8af52bd1b
parent e42c8b81
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -241,9 +241,7 @@ public class GattService extends ProfileService {
        }
        mAdvertiseManager.clear();
        mClientMap.clear();
        if (Flags.gattCleanupRestrictedHandles()) {
        mRestrictedHandles.clear();
        }
        mServerMap.clear();
        mHandleMap.clear();
        mReliableQueue.clear();
@@ -1335,9 +1333,7 @@ public class GattService extends ProfileService {
        mClientMap.removeConnection(clientIf, connId);
        ContextMap<IBluetoothGattCallback>.App app = mClientMap.getById(clientIf);

        if (Flags.gattCleanupRestrictedHandles()) {
        mRestrictedHandles.remove(connId);
        }

        // Remove AtomicBoolean representing permit if no other connections rely on this remote
        // device.
+0 −1
Original line number Diff line number Diff line
@@ -708,7 +708,6 @@ public class GattServiceTest {

    @Test
    public void restrictedHandles() throws Exception {
        mSetFlagsRule.enableFlags(Flags.FLAG_GATT_CLEANUP_RESTRICTED_HANDLES);
        int clientIf = 1;
        int connId = 1;
        ArrayList<GattDbElement> db = new ArrayList<>();
+0 −7
Original line number Diff line number Diff line
@@ -29,13 +29,6 @@ flag {
    bug: "317128464"
}

flag {
    name: "gatt_cleanup_restricted_handles"
    namespace: "bluetooth"
    description: "Cleans up restricted handles when disconnected"
    bug: "323110155"
}

flag {
    name: "phy_to_native"
    namespace: "bluetooth"