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

Commit 9c498988 authored by AnubhavGupta's avatar AnubhavGupta Committed by Steve Kondik
Browse files

Bluetooth: Added new key to store last connected A2dp Sep type

Changes made to add new key and API to store, retrieve the last
connected A2dp Sep type using Content Resolver.

CRs-fixed: 599358
Change-Id: I2648603cc456921ec1896fb498b602416bd79e72
parent b36ebcba
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -117,6 +117,24 @@ public interface BluetoothProfile {
     */
    public static final int HANDSFREE_CLIENT = 10;

     /**
     * A2dp Source
     * @hide
     */
    public static final int PROFILE_A2DP_SRC = 1;

    /**
    * A2dp Sink
    * @hide
    */
    public static final int PROFILE_A2DP_SNK = 2;

    /**
    * Profile A2dp undefined
    * @hide
    */
    public static final int PROFILE_A2DP_UNDEFINED = -1;

    /**
     * DUN
     * @hide
+11 −0
Original line number Diff line number Diff line
@@ -6932,6 +6932,9 @@ public final class Settings {
        public static final String
                BLUETOOTH_A2DP_SINK_PRIORITY_PREFIX = "bluetooth_a2dp_sink_priority_";
        /** {@hide} */
        public static final String
                BLUETOOTH_LAST_CONNECTED_A2DP_SEP_TYPE = "bluetooth_last_connected_a2dp_sep_type_";
        /** {@hide} */
        public static final String
                BLUETOOTH_INPUT_DEVICE_PRIORITY_PREFIX = "bluetooth_input_device_priority_";
        /** {@hide} */
@@ -6954,6 +6957,14 @@ public final class Settings {
            return BLUETOOTH_A2DP_SINK_PRIORITY_PREFIX + address.toUpperCase(Locale.ROOT);
        }

        /**
         * Get the key that retrieves a bluetooth last connected a2dp profile.
         * @hide
         */
        public static final String getBluetoothLastConnectedA2dpSepTypeKey(String address) {
            return BLUETOOTH_LAST_CONNECTED_A2DP_SEP_TYPE + address.toUpperCase(Locale.ROOT);
        }

        /**
         * Get the key that retrieves a bluetooth Input Device's priority.
         * @hide