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

Commit 78e8da5e authored by Leon Liao's avatar Leon Liao Committed by android-build-merger
Browse files

Merge "Rename method isConnectable()"

am: e238a19a

Change-Id: Ia19f7f53f62ff9839890e962b7b659c9f43fa3b1
parents 7fdac2d0 e238a19a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ public class A2dpProfile implements LocalBluetoothProfile {
                BluetoothProfile.A2DP);
    }

    public boolean isConnectable() {
    public boolean accessProfileEnabled() {
        return true;
    }

+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ final class A2dpSinkProfile implements LocalBluetoothProfile {
                BluetoothProfile.A2DP_SINK);
    }

    public boolean isConnectable() {
    public boolean accessProfileEnabled() {
        return true;
    }

+2 −2
Original line number Diff line number Diff line
@@ -249,7 +249,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>

        int preferredProfiles = 0;
        for (LocalBluetoothProfile profile : mProfiles) {
            if (connectAllProfiles ? profile.isConnectable() : profile.isAutoConnectable()) {
            if (connectAllProfiles ? profile.accessProfileEnabled() : profile.isAutoConnectable()) {
                if (profile.isPreferred(mDevice)) {
                    ++preferredProfiles;
                    connectInt(profile);
@@ -735,7 +735,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
        List<LocalBluetoothProfile> connectableProfiles =
                new ArrayList<LocalBluetoothProfile>();
        for (LocalBluetoothProfile profile : mProfiles) {
            if (profile.isConnectable()) {
            if (profile.accessProfileEnabled()) {
                connectableProfiles.add(profile);
            }
        }
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ public class HeadsetProfile implements LocalBluetoothProfile {
                BluetoothProfile.HEADSET);
    }

    public boolean isConnectable() {
    public boolean accessProfileEnabled() {
        return true;
    }

+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public class HearingAidProfile implements LocalBluetoothProfile {
                BluetoothProfile.HEARING_AID);
    }

    public boolean isConnectable() {
    public boolean accessProfileEnabled() {
        return false;
    }

Loading