Disallow filenames containing NUL bytes.

C code gets confused by such filenames, and even if we can handle them,
they're a misleading and of questionable utility because a valid pathname
can't contain a NUL byte.

Bug: https://code.google.com/p/android/issues/detail?id=58465
Bug: 10148349
Change-Id: I3f7e1a17c526b6bb5752dae82610125ad2648d54
am 664b5ac1: Merge "We never supported obsolete EBCDIC variants."

* commit '664b5ac1c58d8f60f6064c70772ff37e65d02ef4':
  We never supported obsolete EBCDIC variants.
am 36c1e341: Merge "Remove tests for es__TRADITIONAL."

* commit '36c1e34133f9815e11e2b9a952bbee66c11bd10a':
  Remove tests for es__TRADITIONAL.
am 3a17b98a: Merge "Fix libcore.java.util.OldScannerTest#testPerformance."

* commit '3a17b98aa09bb4105663a56ddcb19abeea69ae92':
  Fix libcore.java.util.OldScannerTest#testPerformance.
am c5ee4c34: Merge "Fix GB-18030 tests."

* commit 'c5ee4c34f703a21e0332261827820fe669c97dc8':
  Fix GB-18030 tests.
am fdf82f8b: Merge "Fix various Charset tests, clean up the implementation."

* commit 'fdf82f8ba94915a263b418350c3b55ab42002841':
  Fix various Charset tests, clean up the implementation.
Fix sign-extension of type indices.

We pass type indices as ints but Dex represents them as shorts. Avoid sign
extending the shorts which would cause problem for dex cache indices, etc.

(cherry-picked from commit 1d02e61adf72a3cd59b796fc8d7ee1161ba66e7a)

Change-Id: Id9b540863fee56ad3165f4cac2a23389ba78ca2e
Fix AIOOBE in Method.compareParameters.

Bug: 10032782

(cherry-picked from commit f700b73e492203ec773fb76d4525394ed3a1cc23)

Change-Id: Id46690c1b3b08594cc8ad54f22f601b44d17841e
Merge "Disallow filenames containing NUL bytes."
Add test for STORED zip entry stream size

Tests that the size used for the InputStream from ZipFile.getInputStream
is the uncompressed size and not the compressed size.

Bug: 10227498
Change-Id: Ibc98fe0d8f8c4d6067d675d66432a9dbcc5a7b8d
Merge "Add test for STORED zip entry stream size"
am ed80d3a1: (-s ours) Fix sign-extension of type indices.

* commit 'ed80d3a1a25d5bd37c25c1cd8ea4c192729c2618':
  Fix sign-extension of type indices.
am 5608e04d: Fix AIOOBE in Method.compareParameters.

* commit '5608e04d323281a4c7e45eee1a9ca4b23437e0c5':
  Fix AIOOBE in Method.compareParameters.
am 8405b262: Disallow filenames containing NUL bytes.

* commit '8405b26225d88812bb336b2b6c0181266768c3f0':
  Disallow filenames containing NUL bytes.
am f70ef016: am 664b5ac1: Merge "We never supported obsolete EBCDIC variants."

* commit 'f70ef01670cbd6c0f832fa2d94f6462006679ce4':
am 8c1e661b: am 36c1e341: Merge "Remove tests for es__TRADITIONAL."

* commit '8c1e661b75190504c12ca5ba2f87a1099474474a':
am d206131a: am 3a17b98a: Merge "Fix libcore.java.util.OldScannerTest#testPerformance."

* commit 'd206131a9c1be9571ef1b218e68a856aa0df448b':
am 94dba4f2: am c5ee4c34: Merge "Fix GB-18030 tests."

* commit '94dba4f2a11cc041e88e84c151ff5ebc675c4969':
am 4f048e21: am fdf82f8b: Merge "Fix various Charset tests, clean up the implementation."

* commit '4f048e215773f825ec8129363fd2eb989b6a272f':
Remove updateProcessState.

Change-Id: Icbbc65dbc51bb46e64df27a5066b2ef08fe7b93f