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

Commit 2aaf6a24 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "Pretty print profile names in BluetoothDatabase"

parents 3e56cc31 06e611e9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -377,7 +377,8 @@ public class DatabaseManager {
            Metadata data = mMetadataCache.get(address);
            int connectionPolicy = data.getProfileConnectionPolicy(profile);

            Log.v(TAG, "getProfileConnectionPolicy: " + address + ", profile=" + profile
            Log.v(TAG, "getProfileConnectionPolicy: " + address + ", profile="
                    + BluetoothProfile.getProfileName(profile)
                    + ", connectionPolicy = " + connectionPolicy);
            return connectionPolicy;
        }
+14 −0
Original line number Diff line number Diff line
@@ -485,8 +485,22 @@ public interface BluetoothProfile {
                return "HEARING_AID";
            case LE_AUDIO:
                return "LE_AUDIO";
            case VOLUME_CONTROL:
                return "VOLUME_CONTROL";
            case MCP_SERVER:
                return "MCP_SERVER";
            case CSIP_SET_COORDINATOR:
                return "CSIP_SET_COORDINATOR";
            case LE_AUDIO_BROADCAST:
                return "LE_AUDIO_BROADCAST";
            case LE_CALL_CONTROL:
                return "LE_CALL_CONTROL";
            case HAP_CLIENT:
                return "HAP_CLIENT";
            case LE_AUDIO_BROADCAST_ASSISTANT:
                return "LE_AUDIO_BROADCAST_ASSISTANT";
            case BATTERY:
                return "BATTERY";
            default:
                return "UNKNOWN_PROFILE";
        }