Revert "Don't account buffer.arrayOffset() twice."

This reverts commit 054563cf1f5adf9a34985d35fe829d85e15f994e.
Revert "Avoid running Runtime.gc() until we need to run finalization."

This reverts commit e5010ff43a0a1fb195cadfde96fd974521a16b2a.
Revert "Fix serialization / deserialization of SealedObject"

This reverts commit fb0a6a113c59e241388bd6933cd7c3a7e9b0c2cd.
Revert "Make ByteBuffer.allocateDirect be 8 byte aligned."

This reverts commit 3cfef0fe7bd25cee02082f131332314b4fa2deb4.
Revert "Throw an error when parsing an obviously bad Double"

This reverts commit debe26d8b96eb5b3b5fe52c28b7a9fdb66d10ad4.
Revert "Fix an array copy optimization bug."

This reverts commit 15bc7c0db00347c352a84a00adaecac3ca31ecdb.
Revert "A char array copy optimization (libcore)."

This reverts commit bb0de0180bd8cbfaf89fc9be015c837734dba92e.
Implements some math functions for faster performance

Changes cosh, exp, expm1, log, log10, sinh, cbrt,
asin, acos, atan, tanh, log1p
These functions are now implemnted in java to
save the overhead of a jni call

Change-Id: I4d3b70dd1693378af5b04cbbe0fecd95d97c1cff
Implements some StrictMath functions for improved performance.

The functions ceil, floor, hypot, IEEEremainder, nextafter, and rint
have all been implemented in Java to save the native call. Benchmarking
numbers to show this performance improvement are included:

Native call (before change):
  benchmark=Ceil: 97.40 ns; σ=0.02 ns @ 3 trials
  benchmark=Floor: 98.73 ns; σ=0.02 ns @ 3 trials
  benchmark=Hypot: 714.62 ns; σ=0.44 ns @ 3 trials
  benchmark=IEEEremainder: 180.31 ns; σ=0.08 ns @ 3 trials
  benchmark=NextAfterD: 110.47 ns; σ=0.02 ns @ 3 trials
  benchmark=NextAfterF: 96.20 ns; σ=0.01 ns @ 3 trials
  benchmark=Rint: 92.21 ns; σ=0.02 ns @ 3 trials

Java implementation (after change):
  benchmark=Ceil: 47.32 ns; σ=0.01 ns @ 3 trials
  benchmark=Floor: 42.03 ns; σ=0.00 ns @ 3 trials
  benchmark=Hypot: 69.42 ns; σ=0.37 ns @ 3 trials
  benchmark=IEEEremainder: 49.64 ns; σ=0.04 ns @ 3 trials
  benchmark=NextAfterD: 63.32 ns; σ=0.17 ns @ 3 trials
  benchmark=NextAfterF: 64.67 ns; σ=0.12 ns @ 3 trials
  benchmark=Rint: 31.10 ns; σ=0.41 ns @ 10 trials

Change-Id: I9ee926514c0661cdb7a1e6ae3acfe5c31a4b9f20
Update our MIME type map.

Bug: https://code.google.com/p/android/issues/detail?id=61996
Change-Id: I55efc9d38c87d89bb20073e4632ab1e06c77be09
Fix MimeUtils to treat ".flac" as "audio/flac".

(cherry-pick of 77926e913a14b9541df38b6175f795f2ca6c5266.)

Bug: 15715370
Change-Id: I2d99f070c3debea01621a172d8189951a56736b5