Fix build break caused by wonky imports

Change-Id: Ib12a70222ac3fd9e65bec3834c0aae061858776c
Fix issue found by FindBugs

Bug: 2664472
Change-Id: I861d1a1a3f8f6af4cb62c67b6acfb2c03bcba721
Fix flaky tests

Follow up to I3bf7d340.  Make sure temp directory is set before running tests.

Turned out Application.onCreate doesn't seem to be guaranteed to be run
before unit tests.

Without this, some tests may fail saying: "TempDirectory not set.
Application hasn't started??", if onCreate runs too late.

Change-Id: Ic5aee939a2c21f9579a643d0729dd0e9ba81022e
Relax MIME date parser.

Make the date parser accept invalid dates like
"Thu, 10 Dec 09 15:08:08 GMT-0700" which was observed in an email from eBay.

Per RFC, timezone must be either obs-zone (e.g. "GMT") or +/- with 4 digits.
The GMT+/-digits format is not permitted.

Bug 2367124

Change-Id: I59968274160aeadea70223208b463ee692660056
Added a label to Exchange device ID.

Bug 2610257

Change-Id: Ie065514e942a01dc5ae3c81bc79a2501f67390e1
Merge (-sours) commit '128fb393e8ed613c2ce283c0bd51684af2ba444d' into oxygen_4.3

* commit '128fb393e8ed613c2ce283c0bd51684af2ba444d':
  Relax MIME date parser.
  Fix flaky tests
  Fix build break caused by wonky imports
Merge commit 'cfe95a833350c457c636a156de7cf5c815680cbc' into oxygen_4.3

* commit 'cfe95a833350c457c636a156de7cf5c815680cbc':
  Added a label to Exchange device ID.
Merge commit '5a69403c03787ec960cc80fedc59dc7720791115' into oxygen_4.3

* commit '5a69403c03787ec960cc80fedc59dc7720791115':
  Fix issue found by FindBugs