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

Commit f3cc317c authored by Antony Sargent's avatar Antony Sargent
Browse files

Add a new Bluetooth device details page

Bug: 35877479
Test: none

This adds a metrics event code for the new page, and removes the final
keyword from some classes to facilitate robolectric tests.

Change-Id: Ia0ae93840f7f12dd57101e7aba9360c210f15a03
parent 52b2f160
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ import java.util.List;
/**
 * MapProfile handles Bluetooth MAP profile.
 */
public final class MapProfile implements LocalBluetoothProfile {
public class MapProfile implements LocalBluetoothProfile {
    private static final String TAG = "MapProfile";
    private static boolean V = true;

+4 −2
Original line number Diff line number Diff line
@@ -25,19 +25,21 @@ import android.content.Context;
import android.os.ParcelUuid;
import android.util.Log;

import com.android.internal.annotations.VisibleForTesting;
import com.android.settingslib.R;

/**
 * PBAPServer Profile
 */
public final class PbapServerProfile implements LocalBluetoothProfile {
public class PbapServerProfile implements LocalBluetoothProfile {
    private static final String TAG = "PbapServerProfile";
    private static boolean V = true;

    private BluetoothPbap mService;
    private boolean mIsProfileReady;

    static final String NAME = "PBAP Server";
    @VisibleForTesting
    public static final String NAME = "PBAP Server";

    // Order of this profile in device profiles list
    private static final int ORDINAL = 6;
+5 −0
Original line number Diff line number Diff line
@@ -4074,6 +4074,11 @@ message MetricsEvent {
    // OS: O DR
    ACTION_WIFI_SIGNIN = 1008;

    // OPEN: Settings->Connected Devices->Bluetooth->(click on details link for a paired device)
    // CATEGORY: SETTINGS
    // OS: O DR
    BLUETOOTH_DEVICE_DETAILS = 1009;

    // Add new aosp constants above this line.
    // END OF AOSP CONSTANTS
  }