Ensure policy notifications are shown

cherry-pick of:
https://googleplex-android-review.googlesource.com/218352
https://googleplex-android-review.googlesource.com/218353
Bug: 8510828

Change-Id: If3197e715fefac93c5f348645261fc4a16ef4e64
Remvoe platform_packages_apps_Exchange.log file

Change-Id: Ifa1977b1c8ee84e5314b3505bae8f18a337e830f
Exchange: Support Email sync size function for Exchange accounts.

- Could sync the selected size for each exchange account's mail.
- Make the user can fetch the entire mail if the mail has not been synced completely.

Change-Id: Ia51f6f2668723f10667e5305b9fbdebc01680a6e
Exchange: Need to press cancel button more times

"EasCertificateRequestor" activity was recreated when rotate device.

Add android:configChanges="orientation|screenSize"
to "EasCertificateRequestor" in AndroidManifest.xml.

CRs-Fixed: 413557

Change-Id: Iae0f5b495bbd89babd79cbc62eee0bb935f3a42b
Merge "Exchange: Need to press cancel button more times"
Exchange: Skip the tag "TRUNCATED" when parse the result of fetching entire mail

When we send the request to get the whole mail. In most instances, the reponse will not
contains the "TRUNCATED" tag, but sometimes it will contain the "TRUNCATED" tag such as
the hotmail server. And caused by we request to fetch the whole mail and the truncated
must be false. So we didn't care about the value, and could skip this tag.

CRs-fixed: 543194

Change-Id: Ibd34464baa1abe7e7a48a2e3dcdcf6ff81d7face
Merge "Exchange: Skip the tag "TRUNCATED" when parse the result of fetching entire mail"
Exchange: Fix broadcast failed to unregister receiver issue

Broadcast receiver has been unregister in onDestroy, so it will
crash to unregister it again.

To unregister receiver in onDestroy, and set the receiver value as null.
So if this broadcast receiver has been unregister, it won't be unregistered
again.

CRs-Fixed: 574946

Change-Id: Ie466d64a418435d3665deebbefd34a64a73cc509
Merge "Exchange: Fix broadcast failed to unregister receiver issue"
Merge branch 'jb_3.2.1' of git://codeaurora.org/platform/packages/apps/Exchange into caf