Synchronize isClosed.

See https://github.com/square/okhttp/issues/151

Change-Id: I363343e94194668236ab92926883a094a81816d0
Automatically flush the cache when an edit is completed.

This will remove the need for applications to manually flush
the cache.

Change-Id: I6658634f2e6a333c486a5eb5144e7989d3c50be8
Fixed possible file handle leak

Change-Id: I05d57c626c34911d4992e87fed106e4bfe22e807
Bring NativeCode.mk in line with the internal copy.

Change-Id: I4b42be83871a852d087ff9da6eeca8c5a08b1f19
Restore dalvik-host target to working order

Change-Id: I11e76580308e82e3e267439287690191fa2528d7