Loading service/lint-baseline.xml +1 −17 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ message="This method should only be accessed from tests or within private scope"> <location file="packages/modules/Bluetooth/service/src/com/android/server/bluetooth/BluetoothManagerService.java" line="1533"/> line="1532"/> </issue> <issue Loading @@ -49,20 +49,4 @@ line="51"/> </issue> <issue id="UseValueOf" message="Use `Integer.valueOf(bluetoothProfile)` instead"> <location file="packages/modules/Bluetooth/service/src/com/android/server/bluetooth/BluetoothManagerService.java" line="1451"/> </issue> <issue id="UseValueOf" message="Use `Integer.valueOf(bluetoothProfile)` instead"> <location file="packages/modules/Bluetooth/service/src/com/android/server/bluetooth/BluetoothManagerService.java" line="1466"/> </issue> </issues> service/src/com/android/server/bluetooth/BluetoothManagerService.java +4 −5 Original line number Diff line number Diff line Loading @@ -1434,7 +1434,7 @@ class BluetoothManagerService { + ", not in supported profiles list"); return false; } ProfileServiceConnections psc = mProfileServices.get(Integer.valueOf(bluetoothProfile)); ProfileServiceConnections psc = mProfileServices.get(bluetoothProfile); if (psc == null) { if (DBG) { Log.d( Loading @@ -1448,7 +1448,7 @@ class BluetoothManagerService { return false; } mProfileServices.put(new Integer(bluetoothProfile), psc); mProfileServices.put(bluetoothProfile, psc); } } Loading @@ -1463,8 +1463,7 @@ class BluetoothManagerService { void unbindBluetoothProfileService( int bluetoothProfile, IBluetoothProfileServiceConnection proxy) { synchronized (mProfileServices) { Integer profile = new Integer(bluetoothProfile); ProfileServiceConnections psc = mProfileServices.get(profile); ProfileServiceConnections psc = mProfileServices.get(bluetoothProfile); if (psc == null) { return; } Loading @@ -1477,7 +1476,7 @@ class BluetoothManagerService { Log.e(TAG, "Unable to unbind service with intent: " + psc.mIntent, e); } if (!mUnbindingAll) { mProfileServices.remove(profile); mProfileServices.remove(bluetoothProfile); } } } Loading Loading
service/lint-baseline.xml +1 −17 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ message="This method should only be accessed from tests or within private scope"> <location file="packages/modules/Bluetooth/service/src/com/android/server/bluetooth/BluetoothManagerService.java" line="1533"/> line="1532"/> </issue> <issue Loading @@ -49,20 +49,4 @@ line="51"/> </issue> <issue id="UseValueOf" message="Use `Integer.valueOf(bluetoothProfile)` instead"> <location file="packages/modules/Bluetooth/service/src/com/android/server/bluetooth/BluetoothManagerService.java" line="1451"/> </issue> <issue id="UseValueOf" message="Use `Integer.valueOf(bluetoothProfile)` instead"> <location file="packages/modules/Bluetooth/service/src/com/android/server/bluetooth/BluetoothManagerService.java" line="1466"/> </issue> </issues>
service/src/com/android/server/bluetooth/BluetoothManagerService.java +4 −5 Original line number Diff line number Diff line Loading @@ -1434,7 +1434,7 @@ class BluetoothManagerService { + ", not in supported profiles list"); return false; } ProfileServiceConnections psc = mProfileServices.get(Integer.valueOf(bluetoothProfile)); ProfileServiceConnections psc = mProfileServices.get(bluetoothProfile); if (psc == null) { if (DBG) { Log.d( Loading @@ -1448,7 +1448,7 @@ class BluetoothManagerService { return false; } mProfileServices.put(new Integer(bluetoothProfile), psc); mProfileServices.put(bluetoothProfile, psc); } } Loading @@ -1463,8 +1463,7 @@ class BluetoothManagerService { void unbindBluetoothProfileService( int bluetoothProfile, IBluetoothProfileServiceConnection proxy) { synchronized (mProfileServices) { Integer profile = new Integer(bluetoothProfile); ProfileServiceConnections psc = mProfileServices.get(profile); ProfileServiceConnections psc = mProfileServices.get(bluetoothProfile); if (psc == null) { return; } Loading @@ -1477,7 +1476,7 @@ class BluetoothManagerService { Log.e(TAG, "Unable to unbind service with intent: " + psc.mIntent, e); } if (!mUnbindingAll) { mProfileServices.remove(profile); mProfileServices.remove(bluetoothProfile); } } } Loading