From 4d931c8105fd62a7e2290f2e0e37d601fd0942d2 Mon Sep 17 00:00:00 2001 From: Andrew Cheng Date: Tue, 23 Jul 2019 10:05:33 -0700 Subject: Splitting over-the-air downloading into batches Splitting the over-the-air downloading of contacts into batches to ameliorate PBAP crash when system goes to S2R while download is in progress. Test: Use ACTS/SL4A: act.py -c .json -tc BtCarPbapTest:test_contact_download Bug: b/117588939 Change-Id: I7d138a7d497c04c54710702320ba1fdea8f15ea7 (cherry picked from commit 1128539a1aced99db216bd86080dbab9c2b710ed) Merged-In: I7d138a7d497c04c54710702320ba1fdea8f15ea7 Change-Id: Idd1b1b5b22360ab36b05ddfbf62e5043e873098d --- .../android/bluetooth/pbapclient/BluetoothPbapRequestPullPhoneBook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/bluetooth/pbapclient/BluetoothPbapRequestPullPhoneBook.java') diff --git a/src/com/android/bluetooth/pbapclient/BluetoothPbapRequestPullPhoneBook.java b/src/com/android/bluetooth/pbapclient/BluetoothPbapRequestPullPhoneBook.java index 34ab7d52c..a5b3fbfea 100644 --- a/src/com/android/bluetooth/pbapclient/BluetoothPbapRequestPullPhoneBook.java +++ b/src/com/android/bluetooth/pbapclient/BluetoothPbapRequestPullPhoneBook.java @@ -73,7 +73,7 @@ final class BluetoothPbapRequestPullPhoneBook extends BluetoothPbapRequest { oap.add(OAP_TAGID_FORMAT, format); /* - * maxListCount is a special case which is handled in + * maxListCount == 0 is a special case which is handled in * BluetoothPbapRequestPullPhoneBookSize */ if (maxListCount > 0) { -- cgit v1.2.3