Revert "Timing Hacks DO NOT MERGE"

This reverts commit 629dc1801331ce89e8ee0ff7ee5dcde1d7512417.

Conflicts:
	core/java/com/android/internal/os/Zygote.java
	core/java/com/android/internal/os/ZygoteConnection.java
	core/jni/com_android_internal_os_Zygote.cpp

Change-Id: I2b5f3ebb3b17fcddc6660b84780ad2d1bfaf5262
Lose some unnecessary JNI from the zygote.

Bug: 18719692
Change-Id: Ie2d50400f10f3c54cfbf94e54656f6d704eac267
Reimplement reopenStdio in Java.

Bug: 18719692
Change-Id: I4ed984cd6148c5cba75d46a60f32a0687a5bcac3
Fix typo with register native allocation.

bug 18579193

Change-Id: I42d30709b79a37d6a4126559a511e98e9c8d4808
Rewrite selectReadable JNI in Java.

Bug: 18719692
Change-Id: Id4fa95a31f112c720f7a3ac47a3b6c95c3028438
[ActivityManager] Use synchronized to protect object

Symptom: ArrayIndexOutOfBoundsException at mResourcePackages
Root Cause: Race condition issue
Solution: Use synchronized to protect object

Change-Id: Ia2d89d50919d95d95f6f8ac2eb75594a93e8f2da
Prevent wrong system ui visibility callback after the user swipe

If we return vis without clearing clearable flags, it will be set to
IStatusBarService in updateSystemUiVisibilityLw(), and then be
callbacked to WMS via statusBarVisibilityChanged(), and then be
dispatched to the client; which is wrong because WMS should dispatch
the new value to the client, not the old one.

https://code.google.com/p/android/issues/detail?id=79991

Change-Id: I2a06d1fbe66e854e639d86a39784f8c6a3303674