Loading android/app/src/com/android/bluetooth/pbapclient/BluetoothPbapRequestPullPhoneBook.java +2 −2 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ import javax.obex.HeaderSet; final class BluetoothPbapRequestPullPhoneBook extends BluetoothPbapRequest { private static final boolean DBG = true; private static final boolean VDBG = false; private static final String TAG = "BluetoothPbapRequestPullPhoneBook"; Loading Loading @@ -98,7 +98,7 @@ final class BluetoothPbapRequestPullPhoneBook extends BluetoothPbapRequest { Log.v(TAG, "readResponse"); mResponse = new BluetoothPbapVcardList(mAccount, stream, mFormat); if (DBG) { if (VDBG) { Log.d(TAG, "Read " + mResponse.getCount() + " entries."); } } Loading android/app/src/com/android/bluetooth/pbapclient/CallLogPullRequest.java +12 −3 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import java.util.List; public class CallLogPullRequest extends PullRequest { private static boolean DBG = true; private static boolean VDBG = false; private static String TAG = "PbapCallLogPullRequest"; private static final String TIMESTAMP_PROPERTY = "X-IRMC-CALL-DATETIME"; private static final String TIMESTAMP_FORMAT = "yyyyMMdd'T'HHmmss"; Loading @@ -54,7 +55,10 @@ public class CallLogPullRequest extends PullRequest { } if (DBG) { Log.d(TAG, "onPullComplete with " + mEntries.size() + " count."); Log.d(TAG, "onPullComplete"); if (VDBG) { Log.d(TAG, " with " + mEntries.size() + " count."); } } int type; try { Loading @@ -73,7 +77,9 @@ public class CallLogPullRequest extends PullRequest { for (VCardEntry vcard : mEntries) { List<PhoneData> phones = vcard.getPhoneList(); if (phones == null || phones.size() != 1) { if (VDBG) { Log.d(TAG, "Incorrect number of phones: " + vcard); } continue; } Loading @@ -85,7 +91,10 @@ public class CallLogPullRequest extends PullRequest { try { date = parser.parse(pair.second); } catch (ParseException e) { Log.d(TAG, "Failed to parse date " + pair.second); Log.d(TAG, "Failed to parse date "); if (VDBG) { Log.d(TAG, pair.second); } } } } Loading android/app/src/com/android/bluetooth/pbapclient/PhonebookPullRequest.java +5 −3 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ import java.util.List; public class PhonebookPullRequest extends PullRequest { private static final int MAX_OPS = 200; private static final boolean DBG = true; private static final boolean VDBG = false; private static final String TAG = "PbapPhonebookPullRequest"; private final Account mAccount; Loading Loading @@ -72,7 +72,7 @@ public class PhonebookPullRequest extends PullRequest { return; } if (DBG) { if (VDBG) { Log.d(TAG, "onPullComplete with " + mEntries.size() + " count."); } try { Loading @@ -82,7 +82,9 @@ public class PhonebookPullRequest extends PullRequest { } addContact(e); } if (VDBG) { Log.d(TAG, "Sync complete: add=" + mEntries.size()); } } catch (OperationApplicationException | RemoteException | NumberFormatException e) { Log.d(TAG, "Got exception: ", e); } catch (InterruptedException e) { Loading Loading
android/app/src/com/android/bluetooth/pbapclient/BluetoothPbapRequestPullPhoneBook.java +2 −2 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ import javax.obex.HeaderSet; final class BluetoothPbapRequestPullPhoneBook extends BluetoothPbapRequest { private static final boolean DBG = true; private static final boolean VDBG = false; private static final String TAG = "BluetoothPbapRequestPullPhoneBook"; Loading Loading @@ -98,7 +98,7 @@ final class BluetoothPbapRequestPullPhoneBook extends BluetoothPbapRequest { Log.v(TAG, "readResponse"); mResponse = new BluetoothPbapVcardList(mAccount, stream, mFormat); if (DBG) { if (VDBG) { Log.d(TAG, "Read " + mResponse.getCount() + " entries."); } } Loading
android/app/src/com/android/bluetooth/pbapclient/CallLogPullRequest.java +12 −3 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import java.util.List; public class CallLogPullRequest extends PullRequest { private static boolean DBG = true; private static boolean VDBG = false; private static String TAG = "PbapCallLogPullRequest"; private static final String TIMESTAMP_PROPERTY = "X-IRMC-CALL-DATETIME"; private static final String TIMESTAMP_FORMAT = "yyyyMMdd'T'HHmmss"; Loading @@ -54,7 +55,10 @@ public class CallLogPullRequest extends PullRequest { } if (DBG) { Log.d(TAG, "onPullComplete with " + mEntries.size() + " count."); Log.d(TAG, "onPullComplete"); if (VDBG) { Log.d(TAG, " with " + mEntries.size() + " count."); } } int type; try { Loading @@ -73,7 +77,9 @@ public class CallLogPullRequest extends PullRequest { for (VCardEntry vcard : mEntries) { List<PhoneData> phones = vcard.getPhoneList(); if (phones == null || phones.size() != 1) { if (VDBG) { Log.d(TAG, "Incorrect number of phones: " + vcard); } continue; } Loading @@ -85,7 +91,10 @@ public class CallLogPullRequest extends PullRequest { try { date = parser.parse(pair.second); } catch (ParseException e) { Log.d(TAG, "Failed to parse date " + pair.second); Log.d(TAG, "Failed to parse date "); if (VDBG) { Log.d(TAG, pair.second); } } } } Loading
android/app/src/com/android/bluetooth/pbapclient/PhonebookPullRequest.java +5 −3 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ import java.util.List; public class PhonebookPullRequest extends PullRequest { private static final int MAX_OPS = 200; private static final boolean DBG = true; private static final boolean VDBG = false; private static final String TAG = "PbapPhonebookPullRequest"; private final Account mAccount; Loading Loading @@ -72,7 +72,7 @@ public class PhonebookPullRequest extends PullRequest { return; } if (DBG) { if (VDBG) { Log.d(TAG, "onPullComplete with " + mEntries.size() + " count."); } try { Loading @@ -82,7 +82,9 @@ public class PhonebookPullRequest extends PullRequest { } addContact(e); } if (VDBG) { Log.d(TAG, "Sync complete: add=" + mEntries.size()); } } catch (OperationApplicationException | RemoteException | NumberFormatException e) { Log.d(TAG, "Got exception: ", e); } catch (InterruptedException e) { Loading