Merge tag 'android-4.3_r2.2' of https://android.googlesource.com/platform/libcore into cm-10.2

Android 4.3 release 2.2
Fix German date parsing.

CLDR changed German from having a mix of 3- and 4-character abbreviated month
names (such as "Juli" and "Aug"[ust]) to having only 4-character names by
adding periods to the end of abbreviated names (giving "Juli" and "Aug.").
This means that a date formatted with the old data (by jb-mr1, say) can't
be parsed with the new data (in jb-mr2, say). Work around this by doing what
icu4c's SimpleDateFormat::parse does --- accepting "xxx" as a match for "xxx.".

Bug: https://code.google.com/p/android/issues/detail?id=59383
Bug: 10511599
Change-Id: I021ea8ffeea37ea2cae943a84cdd2babb337301d
Apply a variation of the suggested app-level patch to SecureRandom

http://android-developers.blogspot.pt/2013/08/some-securerandom-thoughts.html
for more details. This isn't an ideal solution, but until a proper patch
comes up it'll do

Change-Id: Ib6bf4478fc1ae3d16eefa4eb2ad90f1f3e9de021
Merge "Fix German date parsing." into cm-10.2
Do not apply the PRNG workarounds if an explicit seed is given

If the caller seeds the engine, do NOT override that seed with another
from urandom.

This is a companion change to Ib6bf4478fc1ae3d16eefa4eb2ad90f1f3e9de021,
and should be reverted along with it when the proper fix appears.

Change-Id: I0a9ba35d74af89c91b6aafa35cc94001372794e1
Merge remote-tracking branch 'cm/cm-10.2' into HEAD
Use sk_FOO_pop_free instead of sk_FOO_free

The proper way to free a stack of owned "FOO" items is to use
sk_FOO_pop_free since that will iterate through all the FOO instances
in the stack and free them. Calling sk_FOO_free just frees the stack and
not the items.

(cherry picked from commit 64299318644c0c6b86992d414e68d0af236b52c5)

Bug: 10610037
Bug: http://code.google.com/p/android/issues/detail?id=59536
Change-Id: I8af603b10219acb476666e77cc776b6936a19f8d
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
Merge "Use sk_FOO_pop_free instead of sk_FOO_free" into jb43