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

Commit 00b42f8b authored by khmel@google.com's avatar khmel@google.com Committed by Yury Khmel
Browse files

arc: Skip logs for bluetooth "Skip ..."

This optimization was merged to master branch however with request to
have warning level logging. For ARC this floods logcat output and makes
it is hard to find required info.

Bug: 66917724
Test: Build passes.

Change-Id: I1d03643f17fe5887cabc7e6ad4fd8fd93adb287b
(cherry picked from commit 04e6d5939f1c84d54abf428973c688fff4814feb)
parent dd6e5cec
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -503,7 +503,7 @@ final class RemoteDevices {
                        case AbstractionLayer.BT_PROPERTY_BDNAME:
                            final String newName = new String(val);
                            if (newName.equals(device.mName)) {
                                Log.w(TAG, "Skip name update for " + bdDevice);
                                debugLog("Skip name update for " + bdDevice);
                                break;
                            }
                            device.mName = newName;
@@ -525,7 +525,7 @@ final class RemoteDevices {
                        case AbstractionLayer.BT_PROPERTY_CLASS_OF_DEVICE:
                            final int newClass = Utils.byteArrayToInt(val);
                            if (newClass == device.mBluetoothClass) {
                                Log.w(TAG, "Skip class update for " + bdDevice);
                                debugLog("Skip class update for " + bdDevice);
                                break;
                            }
                            device.mBluetoothClass = Utils.byteArrayToInt(val);
@@ -541,7 +541,7 @@ final class RemoteDevices {
                            int numUuids = val.length / AbstractionLayer.BT_UUID_SIZE;
                            final ParcelUuid[] newUuids = Utils.byteArrayToUuid(val);
                            if (areUuidsEqual(newUuids, device.mUuids)) {
                                Log.w(TAG, "Skip uuids update for " + bdDevice.getAddress());
                                debugLog( "Skip uuids update for " + bdDevice.getAddress());
                                break;
                            }
                            device.mUuids = newUuids;