Loading android/app/src/com/android/bluetooth/gatt/ContextMap.java +15 −1 Original line number Diff line number Diff line Loading @@ -189,6 +189,7 @@ import com.android.bluetooth.btservice.BluetoothProto; while (i.hasNext()) { App entry = i.next(); if (entry.id == id) { removeConnectionsByAppId(id); entry.unlinkToDeath(); entry.appScanStats.isRegistered = false; i.remove(); Loading Loading @@ -226,6 +227,19 @@ import com.android.bluetooth.btservice.BluetoothProto; } } /** * Remove all connections for a given application ID. */ void removeConnectionsByAppId(int appId) { Iterator<Connection> i = mConnections.iterator(); while (i.hasNext()) { Connection connection = i.next(); if (connection.appId == appId) { i.remove(); } } } /** * Get an application context by ID. */ Loading Loading
android/app/src/com/android/bluetooth/gatt/ContextMap.java +15 −1 Original line number Diff line number Diff line Loading @@ -189,6 +189,7 @@ import com.android.bluetooth.btservice.BluetoothProto; while (i.hasNext()) { App entry = i.next(); if (entry.id == id) { removeConnectionsByAppId(id); entry.unlinkToDeath(); entry.appScanStats.isRegistered = false; i.remove(); Loading Loading @@ -226,6 +227,19 @@ import com.android.bluetooth.btservice.BluetoothProto; } } /** * Remove all connections for a given application ID. */ void removeConnectionsByAppId(int appId) { Iterator<Connection> i = mConnections.iterator(); while (i.hasNext()) { Connection connection = i.next(); if (connection.appId == appId) { i.remove(); } } } /** * Get an application context by ID. */ Loading