History log of /packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d34e08dade60d10a9751920f928fe0d02f58ac4c 10-May-2014 Jay Shrauner <shrauner@google.com> Fix ArrayBoundsException in ContactsSyncParser

Fix ArrayIndexOutOfBoundsException when ops.mResults is an empty array.

Bug:14684155
Change-Id: I87c5e6ebe15018ea0adc534ad6049531c7cc96f2
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
6cf9c927628e2d5d84f5983f4e1737e6e448485e 03-May-2014 Jay Shrauner <shrauner@google.com> Fix NPE with null mimeType

Fix mimeType comparison to be null safe

Bug:14497110
Change-Id: I808f1e336a59f16494ae1ac2799b4f74b80f929a
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
7c3686eae16af8c7873e114976c67f4c8b62bc60 02-May-2014 Jay Shrauner <shrauner@google.com> Handle malformed photos

Catch base-64 encoding errors with contact photos.

Bug:14489407
Change-Id: If3999606bb56dbc48807c3e17490c4d286c091ae
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
0c0fdc5dfe605eb4b2047d4a7a89bcce5b2aa813 01-May-2014 Jay Shrauner <shrauner@google.com> Don't crash when content provider is disabled

Catch exception thrown by content resolver when calendar or
contacts provider have been disabled.

Bug:14469863
Change-Id: Ie7a376f8edbcdd24e77142d1a54351a194ed42be
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
185060cbeb39dc4539fbc0c72a865d8ec8d12979 01-May-2014 Jay Shrauner <shrauner@google.com> Fix null cursor NPEs

Check for null cursors from content resolver before calling
newEntityIterator, since they will cause it to crash.

Bug:14464486
Change-Id: I7e95b1485f458b79643487c1d6d7e9aca9224025
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
2f369a47e14916a34f49c79c0a246a2e3ac3072f 30-Apr-2014 Jay Shrauner <shrauner@google.com> Date parser utility helpers throw parse exceptions

Update to reflect API change to parseDateTimeToMillis and
parseEmailDateTimeToMillis, which now throw ParseExceptions on
malformed date strings.

Bug:14279251
Change-Id: I74e015b81079b127ddba15f34c8b7e555099bd1e
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
102e1cf9d34fceebbad64356e58e3427ee4e6da4 07-Apr-2014 Anthony Lee <anthonylee@google.com> b/11435875. Add support for fileAs when uploading new contacts.

When a new contact is created on the device, we do not push a fileAs up to Exchange
and that causes problems when you view the contact via OWA to check the results.
The challenge is to not push a fileAs if one was already created (i.e. the contact
was created on the server). We handle this by actually syncing the fileAs from the
server and being smart enough not to overwrite if it exists on the upload. Generation
of the fileAs string is done in 1 of 2 methods. The first is to use the alternative
display name stored in the RawContacts information for this contact. The fallback
method is to generate a fileAs string using a combination of structured name fields
and available email addresses. Unit tests are included.

Change-Id: I957071da758801d2e5c2799fc1f0b4fdbe0b4e4d
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
6cb6c70ea47035a27bd1d808babe39a2d1829c8d 08-Mar-2014 Yu Ping Hu <yph@google.com> Suppress auth notification for provisioning errors.

Also clean up from the recent conversion work, now that the dust has
settled.

Bug: 13365490
Change-Id: I6c163a302b275381ea1fd07a2d096b1ecfd5f775
(cherry picked from commit 77670c227e8073f4300511b200162408a6e22b68)
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
f4195d389ffd4d92e37cd1d01db1713180740291 07-Mar-2014 Yu Ping Hu <yph@google.com> Switch contacts sync to an EasSyncBase.

Also includes some changes to EasSyncBase and friends to
accomodate this conversion.

Change-Id: I6b58bbdd9c62120371a92d1a2deddbab302d1b13
(cherry picked from commit 52c9dfbbed3860d9b7dfc60fae466f620464151c)
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
ab9c23bcf59ec01a3dd79000b7b4136791a9db65 15-Nov-2013 Yu Ping Hu <yph@google.com> Improve birthday handling in contacts upsync.

Before this change, we assumed the string in the contacts
provider is in the proper format for Exchange. However, this
is not always true, so we now try to parse it using two
possible formats, and then make sure to format it correctly
when forming the request.

If the birthday isn't in one of the two known formats, we
do not send it in the upsync. This is bad, but will not arise
with the default contacts app.

Bug: 11636563
Change-Id: Ib7268409f5c3f39ecb345a2628ed66b73c40604c
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
5b874897559eb3ad6ac777c7317cfd5d253704f9 05-Oct-2013 Yu Ping Hu <yph@google.com> Properly clamp the window size.

Also make sure our array is big enough regardless.

Bug: 11087300
Change-Id: Ibae371bb2d8da009171ac9d1f9ec27c6ca231fc3
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
110837ebff288a75f9bda067c38e2c46797d99b5 27-Sep-2013 Alon Albert <aalbert@google.com> Unify Log Tags

Use a single log tag

Change-Id: I6f08c1eb6e84971cc21497ca14bf60860f75bab4
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
add575db94f86397c9246d89ed85d29968b5aeaa 26-Sep-2013 Alon Albert <aalbert@google.com> Increase Sync Windows

Bug: 10935007

Change-Id: Ibf97b9369398a394f4cda60624386559c842a031
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
28f3556f92b20b2efb800c1d95c29b04a3bbbb4f 20-Sep-2013 Martin Hibdon <mhibdon@google.com> Add code to wipe contacts and calendar when asked to

This may explain cases where we get duplicated contacts
and calendar events.

Change-Id: Iefdaaae0ae9a3ffc4b675a8ef6a04af005a876eb
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java
ff9fed5ccdd57d5408e759f0ca6c41e79e09e999 05-Sep-2013 Martin Hibdon <mhibdon@google.com> Get rid of ContactsSyncAdapter

We still use ContactsSyncParser, but this
has been moved out of ContactsSyncAdapter and
into its own file.

Change-Id: Ifdcaa707e67aee9dc321048cc390714114a99cea
/packages/apps/Exchange/src/com/android/exchange/adapter/ContactsSyncParser.java