Improve the System.currentTimeMillis/Date/DateFormat/SimpleDateFormat documentation.

15 years later, this stuff is still causing confusion.

Change-Id: Id68d43014b72de2cf620cf1798517106fd68d229
Lazy parsing of zip files for Java resources.

Central directories of zip files should be read lazily.
They are needed only to service calls to
BaseDexClassLoader#findResouce(s). Most android processes
don't use these methods since they use android resources.

bug:6797061

(cherry-picked from 8dd90ae77922eb05d46c797937620a4c69f758f7)

Change-Id: I1a5b5d03572601707e1fb1fd4424c1ae2fd2217d
Further clarification of System.currentTimeMillis/Date/SimpleDateFormat.

Change-Id: I91c5bc888e5ae2d368e4c063cd5741e840a21dec
Fix InnerNodeImpl.insertBefore.

As the submitter said, an insertBefore with a null refChild should be taken as
a request to append.

Bug: http://code.google.com/p/android/issues/detail?id=24530
Change-Id: I26141e2d4dd7a7805209a455a7c16bf0f26e7acf
Move comment to match code

Followup for change "Lazy parsing of zip files for Java resources."

Change-Id: Ic572dff0edda766400ce6cea9fb27344373c73df
Track changes caused by the ICU 49.2 upgrade.

(cherry-pick of 0e996f766f975305a484b40809b6b720c0046980.)

Change-Id: I503be2cebe8664a624de7b84f655b646db6e86f7
Note the icu4c 49 upgrade.

(Yes, their version numbering changed. For CLDR too.)

(cherry-pick of dcb358b1be404d56462165e52ee944df9de03839.)

Bug: 7625281
Change-Id: Icfbbcd5382b315e47c2d06555a1475fadd97f62d
Add a test for a Matcher.hitEnd bug fixed by icu4c 49.

Bug: http://code.google.com/p/android/issues/detail?id=19308
Change-Id: I4a88cc554b7d5fe2d8706287f8dd4390217bc7ab
Document that SimpleDateFormat L and c weren't available until Gingerbread.

Bug: http://code.google.com/p/android/issues/detail?id=40268
Change-Id: I07f8f4cbd97dfd5b56ed4a1e1338027eb472fa95
Fix OldClassTest failures.

These hadn't run at all until recently, and the fact that vogar doesn't
run tests in a way that makes resources accessible hid the fact that the
tests were checked-in broken as well as disabled.

Change-Id: I28d24e01b60411f0f9be7daba6de0376a7f8cac0
Add detail messages to all remaining NullPointerExceptions.

I've left java.util.concurrent alone, since that's upstream code.

Change-Id: I349960aaddb78e55d4c336b58b637009db69ff98
Synchronize calls to Matcher.closeImpl.

Bug: 7603088
Change-Id: I4ed42342438e4e74eecd2e4013be0c85e9b2ef29
Add detail messages to all the easy IllegalArgumentException cases.

Noticed during my recent Matcher change.

Change-Id: I415d911b26d0ee548ca04d56bba7fc3d4e6b3f88
Fix AbstractCollection.toArray.

ConcurrentHashMap.values().toArray() could throw if the map was being modified.
WeakHashMap had a workaround, but AbstractCollection is supposed to just do the
right thing.

Bug: http://code.google.com/p/android/issues/detail?id=36519
Bug: https://issues.apache.org/jira/browse/HARMONY-6681
Change-Id: I749fe615edbea6f8285bfe6804c972e8bdcf2530
Clean up ZipFile a little, fix a few bugs, and improve the documentation.

The main bug fixed is fixing support for .zip files larger than 2GiB (where
the central directory offset's top bit is set).

We were checking character counts rather than byte counts in several places
too, which could lead to corrupt zip files.

I've also added a comment to readCentralDirectory because I keep coming back
to this code, wanting to make it lazy, and never remember (until I've done
half the work) why that's not possible.

I've also clarified a lot of the documentation.

Bug: http://code.google.com/p/android/issues/detail?id=36187
Change-Id: Iaa8eadc501ead7c70528bd9063d5893a325dcea1
More java.util.zip documentation improvements.

Change-Id: I8ebc23b8a7a7affee0fd3756c3861cf5b6c07ee4
Fix formatting of a doc comment for ZipEntry.setComment.

Change-Id: I577c960ea0f486d1b1d55a0d31ce2c71e3776426
Add tcsendbreak(3).

Change-Id: I12821c1ef41100ee83a13fd79c14d9eb16b6adca
Fix some TimerTest flakiness.

There's more flakiness around here, but this is a start. I'm not sure
what we should do with the tests that test how many times a task
has been executed in a given period, so I've left them for now.

Bug: 7766472
Bug: 7745085
Bug: 7740706
Bug: 6896554
Change-Id: I84d8aa036c075024d5cefdad050884762eab50a3
FileChannelImpl: Ignore ftruncate failures on non-regular files

Truncate only works on regular files.  On other files, such as
UNIX character devices, truncate returns EINVAL, which
causes an IOException to be thrown.

With this change, we now have support for creating a MappedByteBuffer
on UNIX character devices such as /dev/zero, if the underlying
device node supports mmap().

Change-Id: I094371d821b187abe3da32edc411ff76a81b047e