Remove dead code.

Change-Id: I389bf967ed9a11de8ecb194bf06f69164ac4da4c
Improve the System.currentTimeMillis/Date/DateFormat/SimpleDateFormat documentation.

15 years later, this stuff is still causing confusion.

Change-Id: Id68d43014b72de2cf620cf1798517106fd68d229
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
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
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
Clean up RandomBitsSupplier.

The reason the array had later items commented out is that the loop
was wrong: it would always choose the _last_ valid device, not the
_first_ as intended.

There were two choices here:
1. fix the loop and have the same list of three devices that OpenSSL uses.
2. remove the loop and just say "you must have /dev/urandom".

This patch goes with option 2.

Change-Id: Ia99be6ba929c7b6c35bed77c19d47de80719973c
Improve exception detail in Mac.update

Change-Id: I51667af9b054afe202d98474e219f04eb5267370
Improve our time zone name collection.

A variety of bugs here. We weren't using dates in the current year,
we were assuming that icu4c has correct time zone transition data (it
usually doesn't), and in the fallback code (which we'd previously
never hit) we weren't honoring the caller's request for standard/daylight
time.

This patch fixes:

         Africa/Tripoli: long='Eastern European Standard Time' short='Eastern European Standard Time'!
      America/Araguaina: long='Brasilia Standard Time' short='Brasilia Standard Time'!
   America/Campo_Grande: long='Amazon Standard Time' short='Amazon Standard Time'!
         America/Cuiaba: long='Amazon Standard Time' short='Amazon Standard Time'!
         America/Havana: long='Cuba Standard Time' short='Cuba Standard Time'!
       America/Santiago: long='Chile Standard Time' short='Chile Standard Time'!
      America/Sao_Paulo: long='Brasilia Standard Time' short='Brasilia Standard Time'!
      Antarctica/Palmer: long='Chile Standard Time' short='Chile Standard Time'!
         Asia/Jerusalem: long='Israel Standard Time' short='Israel Standard Time'!
            Asia/Tehran: long='Iran Standard Time' short='Iran Standard Time'!
          Asia/Tel_Aviv: long='Israel Standard Time' short='Israel Standard Time'!
            Brazil/East: long='Brasilia Standard Time' short='Brasilia Standard Time'!
      Chile/Continental: long='Chile Standard Time' short='Chile Standard Time'!
     Chile/EasterIsland: long='Easter Island Standard Time' short='Easter Island Standard Time'!
                   Cuba: long='Cuba Standard Time' short='Cuba Standard Time'!
                   Iran: long='Iran Standard Time' short='Iran Standard Time'!
                 Israel: long='Israel Standard Time' short='Israel Standard Time'!
                  Libya: long='Eastern European Standard Time' short='Eastern European Standard Time'!
           Pacific/Apia: long='Samoa Standard Time' short='Samoa Standard Time'!
         Pacific/Easter: long='Easter Island Standard Time' short='Easter Island Standard Time'!
           Pacific/Fiji: long='Fiji Standard Time' short='Fiji Standard Time'!

It also fixes Pacific/Fakaofo, which was confused between GMT+14:00 and
GMT+13:00.

We need a special case for Pacific/Apia because icu4c 4.9 doesn't believe
Samoa has ever used daylight time.

I've also added a test to keep us out of mischief in the face of future
upgrades to the Olson tzdata and/or icu4c.

Bug: 7955614
Bug: 8026776
Change-Id: I7ed551a691f29e26dd71456d492493d2a4fce945
Memory leak in StringStack::push detected in ExpatParser_initialize

array pointer becomes loose.
Need to delete it before array = NewArray
Improve java.nio.Buffer.toString.

Bug: https://code.google.com/p/android/issues/detail?id=53637
Change-Id: I823662b39cb48b5f4456f4c58269324dfcdc2fd1
Simplify the nio Buffer implementations, and fix MappedByteBuffer.

* Fix the reported bug caused by delegation in the MappedByteBuffer
  implementation.

* Collapse the three classes (ReadOnly*, ReadWrite*, and *) used
  to implement most buffer types into one class each.

* Rename HeapByteBuffer to ByteArrayBuffer to match its companions.

* Remove BaseByteBuffer.

* Give the classes used to implement asXBuffer sane names (their
  existing names were backwards).

Bug: https://code.google.com/p/android/issues/detail?id=53637
Change-Id: I2a7ff4f1d502564389615384324afadabccb04f9
Remove dead NioUtils.getDirectBufferAddress.

Change-Id: I764d86db1d74c5daf54cc925a9fc76db15a1107a