• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.settingslib.bluetooth;
18 
19 public final class BluetoothBroadcastUtils {
20 
21     /**
22      * The fragment tag specified to FragmentManager for container activities to manage fragments.
23      */
24     public static final String TAG_FRAGMENT_QR_CODE_SCANNER = "qr_code_scanner_fragment";
25 
26     /**
27      * Action for launching qr code scanner activity.
28      */
29     public static final String ACTION_BLUETOOTH_LE_AUDIO_QR_CODE_SCANNER =
30             "android.settings.BLUETOOTH_LE_AUDIO_QR_CODE_SCANNER";
31 
32     /**
33      * Extra for {@link android.bluetooth.BluetoothDevice}.
34      */
35     public static final String EXTRA_BLUETOOTH_DEVICE_SINK = "bluetooth_device_sink";
36 
37     /**
38      * Extra for checking the {@link android.bluetooth.BluetoothLeBroadcastAssistant} should perform
39      * this operation for all coordinated set members throughout one session or not.
40      */
41     public static final String EXTRA_BLUETOOTH_SINK_IS_GROUP = "bluetooth_sink_is_group";
42 
43     /**
44      * Bluetooth scheme.
45      */
46     public static final String SCHEME_BT_BROADCAST_METADATA = "BT:";
47 
48     // BluetoothLeBroadcastMetadata
49     static final String PREFIX_BT_ADDRESS_TYPE = "T:";
50     static final String PREFIX_BT_DEVICE = "D:";
51     static final String PREFIX_BT_ADVERTISING_SID = "AS:";
52     static final String PREFIX_BT_BROADCAST_ID = "B:";
53     static final String PREFIX_BT_SYNC_INTERVAL = "SI:";
54     static final String PREFIX_BT_IS_ENCRYPTED = "E:";
55     static final String PREFIX_BT_BROADCAST_CODE = "C:";
56     static final String PREFIX_BT_PRESENTATION_DELAY = "D:";
57     static final String PREFIX_BT_SUBGROUPS = "G:";
58     static final String PREFIX_BT_ANDROID_VERSION = "V:";
59 
60     // BluetoothLeBroadcastSubgroup
61     static final String PREFIX_BTSG_CODEC_ID = "CID:";
62     static final String PREFIX_BTSG_CODEC_CONFIG = "CC:";
63     static final String PREFIX_BTSG_AUDIO_CONTENT = "AC:";
64     static final String PREFIX_BTSG_CHANNEL_PREF = "CP:";
65     static final String PREFIX_BTSG_BROADCAST_CHANNEL = "BC:";
66 
67     // BluetoothLeAudioCodecConfigMetadata
68     static final String PREFIX_BTCC_AUDIO_LOCATION = "AL:";
69     static final String PREFIX_BTCC_RAW_METADATA = "CCRM:";
70 
71     // BluetoothLeAudioContentMetadata
72     static final String PREFIX_BTAC_PROGRAM_INFO = "PI:";
73     static final String PREFIX_BTAC_LANGUAGE = "L:";
74     static final String PREFIX_BTAC_RAW_METADATA = "ACRM:";
75 
76     // BluetoothLeBroadcastChannel
77     static final String PREFIX_BTBC_CHANNEL_INDEX = "CI:";
78     static final String PREFIX_BTBC_CODEC_CONFIG = "BCCM:";
79 
80     static final String DELIMITER_QR_CODE = ";";
81 }
82