Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
49e4a55
Snap for 5606075 from 61768b986857a19f1137c9751342ce7678330948 to qt-…
May 25, 2019
4047ed0
Snap for 5607129 from 1f61e03b09ac5ae82169a24f9639fe33df0f586e to qt-…
May 26, 2019
f2e9ad2
Snap for 5616560 from e2c0748e98ea0ffc40b6c7cb99971eb38fc3f01e to qt-…
May 30, 2019
8397a73
Snap for 5631102 from f02905d7e5e90ad8a536039a5133d8a137d434ed to qt-…
Jun 4, 2019
a5b7b57
Snap for 5636702 from 1b4741477ac60f6391247da041f9de304a10db61 to qt-…
Jun 6, 2019
62d2410
Snap for 5647767 from b9183a1020d9a4d0fea5989bb53fe14963c613fd to qt-…
Jun 10, 2019
a9a75f3
Snap for 5663715 from 56d228108e13dd7fdac00c009df7efb40db36fc7 to qt-…
Jun 15, 2019
32e3e47
Snap for 5670726 from 4de211d122348b0895501e4348b6db499bcddfbe to qt-…
Jun 19, 2019
3b9b78e
Snap for 5674532 from 65ec8dca7c01c00a43ee614094bf5b5a2328e68e to qt-…
Jun 20, 2019
43040a3
Snap for 5691653 from 7ccc2cd0731cfd6b2705cf6f6cd2c72411e4e9e0 to qt-…
Jun 27, 2019
161f16b
Snap for 5727820 from 585365a87744021b57917d29dec632f51fd4a97a to qt-…
Jul 14, 2019
e065c26
Snap for 5730727 from 382d48db5daf791629e7160e85419e6019ca61ca to qt-…
Jul 16, 2019
09f9966
Snap for 5753328 from 8af59a4886a08403e70bbd20419ff9a5f8ce24e8 to qt-…
Jul 25, 2019
cf1bb2c
Snap for 5778854 from cd6b17571973f065a98e67444c6f75a7d0e3a7f9 to qt-…
Aug 3, 2019
a94404a
Import translations. DO NOT MERGE
Aug 18, 2019
fd4a46c
Merge cherrypicks of [9231374, 9231389, 9231390, 9231391, 9231375, 92…
Aug 20, 2019
d42f066
Snap for 5817401 from 07eca9d081659d389eee129116a1a1e776906888 to qt-…
Aug 21, 2019
683a4b5
AdapterService: Check the PIN code length before using
Aug 23, 2019
110482e
Merge cherrypicks of [9426564, 9426565, 9426566, 9426567, 9425837, 94…
Sep 20, 2019
3951034
Fix build error due to missing dependency
Dec 9, 2017
173e4d6
Merge tag 'android-10.0.0_r20' of https://android.googlesource.com/pl…
RakeshBatra Dec 15, 2019
826f45a
Enforce BLUETOOTH_PRIVILEGED in setPhonebookAccessPermission
Dec 12, 2019
ae1ba0b
Merge cherrypicks of [9944759, 9944760, 9944761, 9943995, 9944763, 99…
Dec 18, 2019
a53b986
Merge tag 'android-10.0.0_r29' of https://android.googlesource.com/pl…
RakeshBatra Feb 6, 2020
d034c17
Fix null pointer exception on AvrcpTargetService
sskcorea Jul 25, 2019
d0c4d75
Bluetooth: Remove unused string resources
mikeNG Feb 26, 2019
e173a30
Check Null-safeness when switching optional-codecs state
nullxception Jan 22, 2020
e9a0bee
Merge tag 'android-10.0.0_r31' of https://android.googlesource.com/pl…
RakeshBatra Mar 6, 2020
17bc80e
Bluetooth: Remove Duplicate permission
Feb 28, 2019
8c6b0fc
Remove intent filter without any action
bgcngm Jan 10, 2020
fca928e
Merge tag 'android-10.0.0_r39' of https://android.googlesource.com/pl…
RakeshBatra Jun 4, 2020
a1583f7
translate="false" -> translatable="false"
edsj-sony Oct 18, 2019
8987b95
Bluetooth string: removed id="sender" in bt_sm_2_1_
YinchuChen69801 Apr 3, 2020
d1c3deb
Add BLE Scan Phy parameter to scan API
Jan 16, 2018
f657eab
Bluetooth: Enable Hybrid Audio from App
Apr 24, 2019
17e5133
BT: API to update quiet mode status in Adapter service [1/3]
Oct 16, 2018
2ab562a
GAP: Reset bondingInitiatedLocally flag(2/3)
Jun 27, 2019
081c0e3
Stub TWS related APIs
moetayuko May 28, 2020
a7990c1
SBC Dual Channel (SBC HD Audio) support
ValdikSS Sep 9, 2018
f6a5007
Assume optional codecs are supported if were supported previously
ValdikSS Sep 17, 2018
e7b3f08
A2DP codec priority [2/3]
Hikari-no-Tenshi Jul 3, 2020
c64274d
Disable Dual channel for SBC by default
neobuddy89 Jul 7, 2020
e8429c5
Add switch to select SBC HD by default [2/3]
neobuddy89 Jul 7, 2020
1b7f603
Stub two more QTI functions
DennySPB Jun 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL" />
<uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
<uses-permission android:name="android.permission.MANAGE_APP_OPS_MODES" />
Expand Down Expand Up @@ -227,9 +226,6 @@
android:excludeFromRecents="true"
android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
android:enabled="@bool/profile_supported_pbap">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service
android:process="@string/process"
Expand Down
9 changes: 6 additions & 3 deletions jni/com_android_bluetooth_a2dp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ static std::vector<btav_a2dp_codec_config_t> prepareCodecPreferences(

static void initNative(JNIEnv* env, jobject object,
jint maxConnectedAudioDevices,
jobjectArray codecConfigArray) {
jobjectArray codecConfigArray,
jobjectArray codecConfigOffload) {
std::unique_lock<std::shared_timed_mutex> interface_lock(interface_mutex);
std::unique_lock<std::shared_timed_mutex> callbacks_lock(callbacks_mutex);

Expand Down Expand Up @@ -306,8 +307,10 @@ static void initNative(JNIEnv* env, jobject object,
std::vector<btav_a2dp_codec_config_t> codec_priorities =
prepareCodecPreferences(env, object, codecConfigArray);

std::vector<btav_a2dp_codec_config_t> offload_codec_supported =
prepareCodecPreferences(env, object, codecConfigOffload);
bt_status_t status = sBluetoothA2dpInterface->init(
&sBluetoothA2dpCallbacks, maxConnectedAudioDevices, codec_priorities);
&sBluetoothA2dpCallbacks, maxConnectedAudioDevices, codec_priorities, offload_codec_supported);
if (status != BT_STATUS_SUCCESS) {
ALOGE("%s: Failed to initialize Bluetooth A2DP, status: %d", __func__,
status);
Expand Down Expand Up @@ -475,7 +478,7 @@ static jboolean setCodecConfigPreferenceNative(JNIEnv* env, jobject object,

static JNINativeMethod sMethods[] = {
{"classInitNative", "()V", (void*)classInitNative},
{"initNative", "(I[Landroid/bluetooth/BluetoothCodecConfig;)V",
{"initNative", "(I[Landroid/bluetooth/BluetoothCodecConfig;[Landroid/bluetooth/BluetoothCodecConfig;)V",
(void*)initNative},
{"cleanupNative", "()V", (void*)cleanupNative},
{"connectA2dpNative", "([B)Z", (void*)connectA2dpNative},
Expand Down
21 changes: 17 additions & 4 deletions jni/com_android_bluetooth_gatt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1166,11 +1166,24 @@ void set_scan_params_cmpl_cb(int client_if, uint8_t status) {
}

static void gattSetScanParametersNative(JNIEnv* env, jobject object,
jint client_if, jint scan_interval_unit,
jint scan_window_unit) {
jint client_if, jint scan_phy,
jintArray scan_interval_unit,
jintArray scan_window_unit) {
std::vector<uint32_t> scan_interval = {0,0};
std::vector<uint32_t> scan_window = {0,0};
if (!sGattIf) return;

int scan_int_cnt = env->GetArrayLength(scan_interval_unit);
if(scan_int_cnt > 0) {
env->GetIntArrayRegion(scan_interval_unit, 0, scan_int_cnt, (jint *)&scan_interval[0]);
}

int scan_window_cnt = env->GetArrayLength(scan_window_unit);
if(scan_window_cnt > 0) {
env->GetIntArrayRegion(scan_window_unit, 0, scan_window_cnt, (jint *)&scan_window[0]);
}
sGattIf->scanner->SetScanParameters(
scan_interval_unit, scan_window_unit,
scan_phy, scan_interval, scan_window,
base::Bind(&set_scan_params_cmpl_cb, client_if));
}

Expand Down Expand Up @@ -2129,7 +2142,7 @@ static JNINativeMethod sScanMethods[] = {
(void*)gattClientScanFilterClearNative},
{"gattClientScanFilterEnableNative", "(IZ)V",
(void*)gattClientScanFilterEnableNative},
{"gattSetScanParametersNative", "(III)V",
{"gattSetScanParametersNative", "(II[I[I)V",
(void*)gattSetScanParametersNative},
};

Expand Down
15 changes: 0 additions & 15 deletions res/values-az/strings_map.xml

This file was deleted.

15 changes: 0 additions & 15 deletions res/values-et/strings_map.xml

This file was deleted.

15 changes: 0 additions & 15 deletions res/values-hy/strings_map.xml

This file was deleted.

15 changes: 0 additions & 15 deletions res/values-ka/strings_map.xml

This file was deleted.

15 changes: 0 additions & 15 deletions res/values-km/strings_map.xml

This file was deleted.

15 changes: 0 additions & 15 deletions res/values-lo/strings_map.xml

This file was deleted.

15 changes: 0 additions & 15 deletions res/values-mn/strings_map.xml

This file was deleted.

15 changes: 0 additions & 15 deletions res/values-ms/strings_map.xml

This file was deleted.

15 changes: 0 additions & 15 deletions res/values-ne/strings_map.xml

This file was deleted.

Loading