Merge "Add tests for CalendarSyncAdapter"
Fix broken build

Change-Id: Ic6d1187ac475754057dd319684f59aa9ce9eeceb
Handle "Allow non-provisionable devices" properly

* Send policy key of "0" when validating; this gets us the policies
  even if "Allow..." is enabled (currently, we simply don't see the
  policies)
* If we don't support all of the policies, send back the response
  code indicating support for partial support.  If we get a positive
  response back, then we're good to go - the server allows devices
  with partial support.  Otherwise, we fail as we always have - with
  the toast indicating that the device doesn't support required
  policies
* Remove PolicySet.isSupported() and ensure proper field ranges
  within the constructor
* Update tests as appropriate

Bug: 2759782
Change-Id: I5f354a0e2d81844aff75d8a8a6de3b97f0020c1f
Don't use internal resources.

Change-Id: I0edce125b3544724ad74e72d91b4abd40c244b09
Merge "Handle "Allow non-provisionable devices" properly"
Merge "Don't use internal resources."
Cleaning up MessageListFragment.

- Introduced EmptyCallback to avoid the flood of null checks.

- Fixed some TODOs in MessageListFragment.
  - Notably, sendPendingMessages() is now handled by the fragment itself,
    rather than by the activity.
  - Moved two DB accesss from the UI thread to a worker thread.

- Replaced the 'mailboxid < 0' check with isMagicMailbox(), which is more
  explicit and easier to understand.

- Renamed some methods in preparation of moving to the activity.

Change-Id: Ie730c2c561050bbfa83a38252fcf09d59238f7ea
Convert AccountFolderList to use a Fragment

* Introduce AccountFolderListFragment and its layout
* Extract all list-related UI into it
* Fix leaking cursor in AccountsAdapter and add unit test

Change-Id: Ica566847d97927b736f515d434c6691c82343290
Merge commit '8b7cb9cf03989cf712f650caa1a48c1a9bd4c672' into oxygen_1006

* commit '8b7cb9cf03989cf712f650caa1a48c1a9bd4c672':
  Fix broken build
Merge (-sours) commit '1d6dab29562eca7978f179be5f5c75f22f44d734' into oxygen_1006

* commit '1d6dab29562eca7978f179be5f5c75f22f44d734':
  Handle "Allow non-provisionable devices" properly
Merge commit '4df94867b4a2c9f77b9e7b51590b22622cf12856' into oxygen_1006

* commit '4df94867b4a2c9f77b9e7b51590b22622cf12856':
  Don't use internal resources.
Merge commit '91d47ccb47e4d4e340854a091d39886fbbadbf15' into oxygen_1006

* commit '91d47ccb47e4d4e340854a091d39886fbbadbf15':
  Cleaning up MessageListFragment.
Merge commit 'e4ecb500916591bb5bf1f6fa0cc2e85cc186cb7d' into oxygen_1006

* commit 'e4ecb500916591bb5bf1f6fa0cc2e85cc186cb7d':
  Convert AccountFolderList to use a Fragment

Conflicts:
	src/com/android/email/activity/AccountFolderList.java