Add generic sugar for ArrayMap and ArraySet.

Change-Id: Id749bd41f2e53664c00a0199c14babd2b63087fb
Faster PrintWriter.

Change-Id: I4e1ae7e0357214deb7e19ae65f8701b69b347c6e
Improve FastPrintWriter.

Change-Id: I23acb8d4c3db1f2f8e2f8003296f8c253e2ae7d2

Conflicts:
	services/java/com/android/server/am/ProcessTracker.java
Fix a bug in FastPrintWriter where println(long) was not printing the newline

Refer to 20cdcee47d10986969e7e2a53a40a6ecabae3827

Change-Id: I13c5995e20c65fe1114d38e36b5a00ef048e122c
Use FastPrintWriter...  everywhere.

One problem this turned up is, because FastPrintWriter does
its own buffering, a lot of code that used to use PrintWriter
would fail -- if it pointed to a StringWriter, there was no
buffering, so it could just immediately get the result.  Now
you need to first flush the FastPrintWriter.

Also added some new constructors to specify the size of buffer
that FastPrintWriter should use.

Change-Id: If48cd28d7be0b6b3278bbb69a8357e6ce88cf54a

Conflicts:
	core/java/android/app/ActivityManager.java
	core/java/android/app/ActivityThread.java
	services/java/com/android/server/BatteryService.java
	services/java/com/android/server/am/ActivityManagerService.java
	services/java/com/android/server/pm/PackageManagerService.java