| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Cover ZipFile(File, Charset) and ZipFile(String, Charset) with
unit tests.
cp1251.zip archive has single empty file with cp1251 encoding name.
Its name is 'имя файла'('file name' in Russian), but in cp1251.
It was created using "convmv -f utf-8 -t cp1251 <file> --notest".
Bug: 182164908
Test: atest libcore.java.util.zip.ZipFileTest
Change-Id: Ib1ac6619f9ece3e44a6d52179ccdd988f09007bf
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since Android updated to ICU54 (Android 6.0), Android's
CharsetEncoder would report canEncode() based on whether or
not the input sequence would map to no bytes. This meant the
behavior for "default ignorable codepoints" was inconsistent.
If a CharBuffer only contained ignorable codepoints with no
mapping it would report false, but true if they were part of
a wider string.
This change makes the behavior consistent: all default ignorable
codepoints will now register canEncode() == true whether alone
or as part of a sequence. canEncode() effectively becomes
"If this sequence were encoded, would there be a mapping error?".
This change contains a new test and a set of reference data
for the new behavior for StandardCharsets. The reference data
is generated from the new encoder behavior. See
StandardCharsetsEncoderTest.Dumper for how the files were
generated.
Bug: 73550237
Test: CTS: run cts -m CtsLibcoreTestCases
Change-Id: Id78a3259940e73c83f895a4d95e7c526176b06a6
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implements the Executable.getParameters() code to take advantage of
.dex metadata that records parameter names and access flags / modifiers
(e.g. final, sythentic, mandated).
On Android, this metadata is stored in a new system annotation
dalvik.annotation.MethodParameters. See the MethodParameters class for
the specification. The metadata is optional and the intention is that
Jack or other compilers can include or exclude it based on developer
preference.
Contained here are various tests for valid and invalid metadata, along
with the supporting .smali files used to generate the .dex files
used by the tests. See the README.txt for more information on
generation.
See the associated art/ change for the native code used in Executable.
Bug: 30391692
Test: test-art-host and CtsLibcoreTestCases
Change-Id: Ied3d0f03bb6eb154b974a856b341bd14b5e45fc1
|
|
|
This removes all tests duplicated in Harmony's test suite, and
moves the rest into the libcore.java.lang package.
Change-Id: Ic2fe12cc1e10513abb721d98e7b9b3a2e00192f5
http://b/3246523
|