am 2019792f: am 04396916: Fix regression in Exchange calendar attendee response

Merge commit '2019792f1f2b98747db25ba11fea35e03b5e73aa' into gingerbread-plus-aosp

* commit '2019792f1f2b98747db25ba11fea35e03b5e73aa':
  Fix regression in Exchange calendar attendee response
am 4cfaaa95: am 2019792f: am 04396916: Fix regression in Exchange calendar attendee response

Merge commit '4cfaaa9527d1712bbcff4caef8be3957427a0a66'

* commit '4cfaaa9527d1712bbcff4caef8be3957427a0a66':
  Fix regression in Exchange calendar attendee response
am 3b811ae4: resolved conflicts for merge of fb060de6 to gingerbread

Merge commit '3b811ae4c6bff1204bd08921f5debdb3ad1700b6' into gingerbread-plus-aosp

* commit '3b811ae4c6bff1204bd08921f5debdb3ad1700b6':
  Explicitly verify certificate hostname on SSL connections
am a3e021d1: am 3b811ae4: resolved conflicts for merge of fb060de6 to gingerbread

Merge commit 'a3e021d12c96d10f758fb6af3b7a05e85d0d8eeb'

* commit 'a3e021d12c96d10f758fb6af3b7a05e85d0d8eeb':
  Explicitly verify certificate hostname on SSL connections
Use "*#*#36245#*#*" to activate the debug screen.

Dial *#*#36245#*#* on the dialer to activate the debug screen.
"36245" = "email"

It's useful when
- There's no keyboard.
- There's no account set up yet.
  (You can do it by entering the special username/password on new account
  screen, but that's a bit of a pain.)

It's also easier to tell to people.

Also, removed "sensitive logging", which should never be used.

Change-Id: Id692f8b216f2d85abe1880c452d2067f170dac83
Prevent MailService from potential looping due to EAS accounts

* The code assumed that all accounts used the scheduler in MailService
  whereas only those using MessagingController do so (i.e. EAS does
  not)
* Change setupSyncReportsLocked to set the syncInterval for accounts
  that don't use MessagingController to Account.CHECK_INTERVAL_NEVER
* Add unit test for the changed code

Change-Id: I74a3dae21d9ec16f9903bdf2a1c28092ae89cc50
Cleaning up MessageView

- Removed dead code/dead comment.
- Moved static utility methods to Utility.
- Renamed some methods.
- Changed the timing to call super methods.

Also:
- Internationalized formatSize()
- Added unit tests for createUniqueFile() and formatSize()
- createUniqueFile now uses File.createNewFile() instead of exists().

Change-Id: Ibc30e15b029ed5088954bd6fc9032e25dddf176e
Merge "Cleaning up MessageView"
Fixing UI for EML files.

For EML,
- No menu
- No older/newer buttons
- No star
- No bottom buttons.

I've started to feel like the two UIs (one for regular messages and the
other for EML files) shouldn't be handled by one class; we probably
should separate them into two different classes.  I'll see if I can
do that after fragmentize it.

Bug 2804147

Change-Id: I5ae162af546bfc21af27352c642d6b2a1e16cf0f
Interpret "busy" on new events to mean "no response"

* The meaning of a busy status of "Busy" is uncertain; it could mean
  "Accepted" or "Tentative", depending on whether the event was
  created via OWA/Outlook or EAS
* We have interpreted it as "Accepted", which prevents the user from
  actually accepting the event (as a state change is required for us
  to send updates to the server/organizer)
* This CL changes the behavior such that a newly arriving event with
  a "Busy" status is shown as "No response" in the Calendar, thereby
  allowing the user to pick from any of the three possible options.

Bug: 2811859
Change-Id: Ie2c375278b79b47dedac02472dfe6e4cf1182b65
Merge commit '42e3f10a9575e277ba6f121e6cac56ddb02fda12' into oxygen_1007

* commit '42e3f10a9575e277ba6f121e6cac56ddb02fda12':
  Use "*#*#36245#*#*" to activate the debug screen.

Conflicts:
	src/com/android/email/activity/Debug.java
Merge commit '42ff939e3a8a69ca5937aa5d6a2a932ae2e80752' into oxygen_1007

* commit '42ff939e3a8a69ca5937aa5d6a2a932ae2e80752':
  Prevent MailService from potential looping due to EAS accounts

Conflicts:
	src/com/android/email/service/MailService.java
Merge commit '44b5242edd938450f5e7bc5569852fa5f793da41' into oxygen_1007

* commit '44b5242edd938450f5e7bc5569852fa5f793da41':
  Cleaning up MessageView

Conflicts:
	src/com/android/email/activity/MessageView.java
	tests/src/com/android/email/UtilityUnitTests.java
Merge commit 'c6886ed3ad10a4fd62822991d336f17e69848b1b' into oxygen_1007

* commit 'c6886ed3ad10a4fd62822991d336f17e69848b1b':
  Fixing UI for EML files.
Merge commit '32db98f8eb146662e086e6c58f1ce188112f2c71' into oxygen_1007

* commit '32db98f8eb146662e086e6c58f1ce188112f2c71':
  Interpret "busy" on new events to mean "no response"
Fix merge with 42e3f10a9575e277ba6f121e6cac56ddb02fda12