Loading services/core/java/com/android/server/media/BluetoothRouteProvider.java +12 −12 Original line number Diff line number Diff line Loading @@ -176,6 +176,18 @@ class BluetoothRouteProvider { } } private BluetoothRouteInfo findBluetoothRouteWithRouteId(String routeId) { if (routeId == null) { return null; } for (BluetoothRouteInfo btRouteInfo : mBluetoothRoutes.values()) { if (TextUtils.equals(btRouteInfo.mRoute.getId(), routeId)) { return btRouteInfo; } } return null; } /** * Clears the active device for all known profiles. */ Loading Loading @@ -238,18 +250,6 @@ class BluetoothRouteProvider { return routes; } BluetoothRouteInfo findBluetoothRouteWithRouteId(String routeId) { if (routeId == null) { return null; } for (BluetoothRouteInfo btRouteInfo : mBluetoothRoutes.values()) { if (TextUtils.equals(btRouteInfo.mRoute.getId(), routeId)) { return btRouteInfo; } } return null; } /** * Updates the volume for {@link AudioManager#getDevicesForStream(int) devices}. * Loading Loading
services/core/java/com/android/server/media/BluetoothRouteProvider.java +12 −12 Original line number Diff line number Diff line Loading @@ -176,6 +176,18 @@ class BluetoothRouteProvider { } } private BluetoothRouteInfo findBluetoothRouteWithRouteId(String routeId) { if (routeId == null) { return null; } for (BluetoothRouteInfo btRouteInfo : mBluetoothRoutes.values()) { if (TextUtils.equals(btRouteInfo.mRoute.getId(), routeId)) { return btRouteInfo; } } return null; } /** * Clears the active device for all known profiles. */ Loading Loading @@ -238,18 +250,6 @@ class BluetoothRouteProvider { return routes; } BluetoothRouteInfo findBluetoothRouteWithRouteId(String routeId) { if (routeId == null) { return null; } for (BluetoothRouteInfo btRouteInfo : mBluetoothRoutes.values()) { if (TextUtils.equals(btRouteInfo.mRoute.getId(), routeId)) { return btRouteInfo; } } return null; } /** * Updates the volume for {@link AudioManager#getDevicesForStream(int) devices}. * Loading