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

Commit ba93b586 authored by Ajay Panicker's avatar Ajay Panicker Committed by Andre Eisenbach
Browse files

Add additional logging for device properties

Bug: 31947953
Test: Manual
Change-Id: I7e23b55c03e7f0382d59efe9a94221ed4bdf57ab
parent a75cf68a
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ import java.util.LinkedList;
import java.util.Queue;

final class RemoteDevices {
    private static final boolean DBG = false;
    private static final boolean DBG = true;
    private static final String TAG = "BluetoothRemoteDevices";

    // Maximum number of device properties to remember
@@ -256,12 +256,18 @@ final class RemoteDevices {
        BluetoothDevice bdDevice = getDevice(address);
        DeviceProperties device;
        if (bdDevice == null) {
            debugLog("Added new device property");
            device = addDeviceProperties(address);
            bdDevice = getDevice(address);
        } else {
            device = getDeviceProperties(bdDevice);
        }

        if (types.length <= 0) {
            errorLog("No properties to update");
            return;
        }

        for (int j = 0; j < types.length; j++) {
            type = types[j];
            val = values[j];
@@ -270,6 +276,7 @@ final class RemoteDevices {
                        + ", value is empty for type: " + type);
            else {
                synchronized(mObject) {
                    debugLog("Property type: " + type);
                    switch (type) {
                        case AbstractionLayer.BT_PROPERTY_BDNAME:
                            device.mName = new String(val);