| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: Ia4d5a1f0112762444a57f3b4e47f5771331960ee
|
|
|
|
|
|
|
|
|
|
| |
ExchangeService was only being used for GalSearch. That
code has been moved EasService.
Other services, EasAccountService, EasOutboxService, and
EasSyncService are no longer used and have been removed,
along with a bunch of other unused helper classes.
Change-Id: I25c7e53896125818cfd6d3e3bf630ff671f142d1
|
|
|
|
|
|
| |
b/15133133
Change-Id: I2ee6524e2091e694124df63aba621bb18592eb16
|
|
|
|
|
|
|
|
| |
Fix encoding of ints to handle ints with high bit set. Modify Parser to
detect when it is decoding a run-on badly encoded int (ie, >5 bytes).
Bug:14817987
Change-Id: I4a21b126d03e2e244b0fd4c4fb4821d165897ad6
|
|
|
|
|
|
|
|
|
| |
Change Parser.pop() so doesn't reset end tag we're currently trying to
match in nextTag. Change END_DOCUMENT enum so no longer same as END tag
so callers can tell them apart.
Bug:
Change-Id: Ie5bd3e6703e75ce9d8bee888e6e3fb9a124434f3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix Parser so doesn't crash when sees an unknown tag on a known code page.
Check for unknown code page and throw parse exception. Remove unused code.
Make class variables private where unused outside class. Change tag stack
to ArrayDeque from fixed size static array. Check for unsupported WBXML
features: string tables, unsupported global tokens, and attributes. Throw
EasParserExceptions for all parse errors so Exchange can catch them and not
crash. Add unit tests.
Bug:14651154
Bug:14673019
Change-Id: If71be29391466985eccff90db8601bbdfde2658b
|
|
|
|
|
|
|
|
| |
Recurring event rule parser uses -1 for an unset recurrence type. Check
for invalid recurrence type to prevent crash.
Bug:14490734
Change-Id: I68de74d16cd4489d4235a9a3aea9c8ed0c4429dc
|
|
|
|
|
|
|
|
|
| |
Update to reflect API change to parseDateTimeToMillis and
parseEmailDateTimeToMillis, which now throw ParseExceptions on
malformed date strings.
Bug:14279251
Change-Id: I74e015b81079b127ddba15f34c8b7e555099bd1e
|
|
|
|
| |
Change-Id: I53e36adb49b7ca4084a8c805db3099e1a51372f0
|
|
|
|
| |
Change-Id: Icb51cda53b2ad9b1aac15631cf86b5696f3b8e3c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
This is the first step to decoupling actual sync execution from
the mail sync adapter. This change does not yet move to using the
new service, it only adds the code and necessary changes to existing
operations to be compatible with it. This change should not affect
existing functionality.
Change-Id: I80663c2bc216fdee44756d83fd567bc2c447e993
(cherry picked from commit 6c715246946dc4a7b7ca535dd9ff7f3cfc227c6d)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- create display name from email or phone if otherwise lacking a name
- filter out results entirely lacking a name
- query for larger than asked for result set for phone filter queries
so can return requested number of results even with client side filtering
of contacts lacking phone numbers
- for email filter queries, filter out results without an email address
Bug:12893832
Change-Id: I6168fb5bf9300b2e279c45ac9c0552451fc89296
(cherry picked from commit 4511cd31dc6cb0a3ef97661d72b4f2196b5b8fdd)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is an integration of an Exchange patch from Motorola.
getRequestEntity() was modified to not add tags that were
not part of the protocol spec for remote wipe ack.
Another big change was to unwrap this function so it could
be unit tested w/o the need for bigger, bulkier classes.
This lead to the creation of populateRequestEntitySerializer()
and changes to other functions to make then reentrant and
potentially static if possible. Oh...fixed a typo too.
Change-Id: I0c9167c9609b3d6a6f77f3f3118d9ae790077b2d
(cherry picked from commit 60b69ecd47d872c845b6bca46e4937d505a78101)
|
|
|
|
|
|
|
|
|
|
|
|
| |
caller. b/12894779
This is the integration of an Exchange fix from Motorola. As part
of this fix, unit tests have been introduced to verify that we
are experiencing the correct behavior. Writing these unit tests
required some factoring/unwrapped to make the code easier to test.
Change-Id: I3fe8278c56fb13e2e43f32c3eeba1cbe01ea3b8b
(cherry picked from commit 6fd3b6c35d930ee045cb6cfe3d6770d450b7b523)
|
|
|
|
|
|
|
|
|
|
| |
Similar to CurlLogger that dumps the base64 represention of
the EAS request, WbxmlResponseLogger will dump the base64
representation of responses from the server so that we can
easily view the XML payload. Unit tests included.
Change-Id: I96e2c2d508ac27002125ee83d307ff7cd75400c7
(cherry picked from commit 17403f2cc87358e7b768cb982921d28694a7932d)
|
|
|
|
| |
Change-Id: Ib988e0ea31b813c7fab329e529b1ef08afa4404f
|
|
|
|
|
|
|
|
|
|
|
| |
THIS DOES NOT CHANGE ANY EXISTING FUNCTIONALITY.
Address.pack() has been removed and all calls replaced with its synonym Address.toHeader().
Address.unpack() has been renamed to Address.fromHeader() to follow the new naming convention.
In days of yore, pack() and toHeader() used to do different things. Now they are identical and
thus one is superfluous. We have standardized on toHeader() and fromHeader().
Change-Id: I233a139da7aa03602b76f931b03cdd0e8414d242
|
|
|
|
| |
Change-Id: Iecfd5e662f33a09ee5eb61d760446d5e6d093b91
|
|
|
| |
Change-Id: I84da7fab150e938033335694abf854932e3f7a09
|
|
|
|
|
|
|
|
| |
Also tidy some warnings.
b/10893667
Change-Id: I207cf2b4c26bd3b8c695971bcde6254236a54c57
|
|
|
|
|
|
|
|
|
| |
Get rid of CalendarSyncAdapter, which isn't used
anymore.
Also, get the tests to compile. They don't
neccessarily pass yet, but at least they compile.
Change-Id: Icaff923a9b3d8c4c886da1e8c6410dbdf55ce395
|
|
|
|
| |
Change-Id: Ibf4f0116b0cec42e6c76aecb7b59861b01f3df47
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There is now only one LogTag class. The static initializer of
GmailApplication (existing), EmailApplication (new), and
Exchange (existing) will now set the log tag to "Gmail" and "Email",
respectively. Up until that code is run, it will be "UnifiedEmail".
"setprop log.tag.Gmail VERBOSE" (or .Email, .Exchange) will trigger
all logs to be printed as long as they go through LogUtils,
regardless of what tag is used by that individual log. This lets us
still turn on logging everywhere in one command, but also lets us use
more descriptive tags (like the class name).
And since we no longer have three com.android.mail.utils.LogTag
classes, builds will be much easier.
Also, we now use LogUtils everywhere.
Change-Id: Ib565414fae51d0c3367370db9717aece45f7eb36
|
|
|
|
| |
Change-Id: Ie417a6b27c731f24f0d8ccf5275df9c2fad37efd
|
|
|
|
|
|
|
|
| |
* Tested OK on wiped Nexus
* Tested OK on S3
* Upgrade tested on Nexus
Change-Id: Icbb939bebbaed71b7662739678b8e59e9a9e1552
|
|
|
|
|
|
|
|
| |
* We exclude original attachments from this list
* Also remove some unused code
Bug: 7005505
Change-Id: I9296b25fb80722a2d5f39a1b4a4fa66405627a9b
|
|
|
|
| |
Change-Id: Ic2fe257189c551b1d0beabed1bd0e2a2120dfb64
|
|
|
|
|
|
| |
* No changes in functionality
Change-Id: I744bc0a0ff0bddea2e91ee9f307c98960848eb68
|
|
|
|
|
|
|
|
|
|
|
|
| |
* The initial folder list sync has been worst-case O(n**2); with
this change it is now O(n)
* Also, we only save each Mailbox once, which saves a lot of extra
disk thrashing
* Assume generic user-created folders hold mail; this simplifies the
code greatly and solves a number of user issues. In the case that
we're wrong (I've never seen it), there's really no harm done
Change-Id: I20321b2708ce3e8ebbe647116a787b26d115c3bf
|
|
|
|
|
|
| |
* Goodbye, exchange1
Change-Id: Id2fc093cd43a55815047ab091b6a49c3d1138888
|
|
|
|
| |
Change-Id: I076ad6c1e24ed071fe2d2867ca0fe3fbaff5a95f
|
|\
| |
| |
| | |
Change-Id: I38a87255467e30640081027f40663c6c835398c6
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* This is a large CL, but almost all of it relates to more
comprehensive tests for folder parsing
* There are less than a dozen lines of production code changes:
- Move creation of mailboxMap out of the validation loop in
FolderSyncParser
- Make sure we fix up the parent of new/changed folders
in MailboxUtilities
Bug: 5794371
Change-Id: I5fb32369a6fdbfb33919df495d40347b56013bbd
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Change poorly named cursor variable (the code is confusing as it
was)
* Fixup the parent of parentKey-less mailboxes so that all children
are properly updated
* Fix faulty unit test (that otherwise would have caught this issue!)
Bug: 5794371
Change-Id: Ie249617775ba11d9f2e10528019893d4f9d9f81e
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Created a facility for handling the newly implemented
TransactionTooLargeException that the framework can throw if
we send a too-large batch of data to a content provider.
* For now, we're just using this with CalendarSyncAdapter,
which is where we've seen problems in the past, and in
the referenced bug.
* The test account hits the exception, and then appars to
successfully finish syncing the calendar
Bug: 5516422
Change-Id: I3c7ce3ada940464d1ee1f69bd6192640ebbd8fa3
|
|\|
| |
| |
| |
| | |
* commit '2c7d44b182654120a98921cbc864be2d135c8fda':
Attempt to better handle screwy MSFT time zone information
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Exchange appears to send time zond data that doesn't really match
any time zone in our database; in these cases, we have been
returning a random one with the same bias (base offset w/o DST)
* In this CL, we try to do better by giving the time zone information
a bit more slack when the regular determination fails (we allow
the hour of change to be up to 4 hours different from expected,
rather than one minute). This is certainly better, though I do
not have an explanation from MSFT about the reason for the
erroneous data.
* Updated unit tests to confirm that we don't break any existing
code and do, in fact, handle the case reported below as a P1/S1
bug.
Bug: 5605219
Change-Id: I8c17a687404204aff4feb1c3009adde279110cab
|
|/
|
|
| |
Change-Id: Id395e422e0363a5494501db9e9918393abcbe9aa
|
|
|
|
|
|
|
|
|
|
|
|
| |
* For some reason, EAS 2.5 sends us partially encoded file names,
which we use to specify attachments to be loaded.
* It turns out that these file names aren't properly encoded for
EAS's use in the GetAttachment command; some additional characters
must be escaped using %nn.
* We now check for EAS 2.5 and escape illegal characters
Bug: 5341416
Change-Id: Ie112359e139581c8ae31e40869b2fa0e568d7f65
|
|
|
|
|
|
|
| |
* Add unit test for updated Serializer#writeStringValue
Bug: 5321171
Change-Id: I4ae56c67ac8d69c64316a5dc2ae426f3e4be9ae3
|
|
|
|
|
| |
Bug: 5196927
Change-Id: I85ffdb9b0feaa978c6b4aebec4e264909adb19ae
|
|
|
|
| |
This reverts commit e9353616056991511d4c3a707e97ca0468c0ef42.
|
|
|
|
|
|
| |
Bug: <need to find>
Change-Id: Ic7b8299fad70aeaff05485e675ac1882dcfbc9d1
|
|
|
|
|
|
|
|
| |
* Another hard-to-find, but dumb, mistake
* Fix unit test
Bug: 3334965
Change-Id: I5b18add38780bb476e29d9ae2a28247feebe21e5
|
|
|
|
|
| |
Bug: 5197548
Change-Id: Icda6d2f9c9effb97ee55ab60c60b7e6ff5dd7f36
|
|
|
|
|
| |
Bug: 5176640
Change-Id: I7c709998b65080545f468997e2df5bc00162a89f
|
|
|
|
|
|
|
|
|
|
|
| |
* Turns out there were a couple of unusual cases that we weren't
handling correctly, including the referenced bug
* Reworked some of the code, and added test cases for these
unusual cases.
Bug: 4452794
Change-Id: I02734aefd895bccb8fb2bdcecc3539b1cb06adfd
|
|
|
|
|
|
|
|
|
| |
* We weren't handling UNTIL properly in cases when the until date
in GMT was on a different day than in the local time zone
* Rewrite this code to take into account the local time zone
Bug: 5057748
Change-Id: I3543671d434fcd672a3151a57877ba15c2195029
|
|
|
|
|
| |
Bug: 4997813
Change-Id: Ia61130e69e9114cecf6c247820109fdfd1c80cff
|