Home
last modified time | relevance | path

Searched refs:EncodeUtils (Results 1 – 5 of 5) sorted by relevance

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DEncodeUtilsTest.java29 assertTrue(EncodeUtils.canAsciiEncode("foo")); in canEncodeAsciiWithAsciiString()
35 assertFalse(EncodeUtils.canAsciiEncode(greekInGreek)); in cannotEncodeAscuuWithUtf8String()
43 byte[] encoded = EncodeUtils.encode(text, flags); in asciiEncodeAndDecode()
45 assertEquals(text, EncodeUtils.decode(encoded, flags)); in asciiEncodeAndDecode()
53 byte[] encoded = EncodeUtils.encode(kazakhCapital, flags); in utf8EncodeAndDecode()
57 assertEquals(kazakhCapital, EncodeUtils.decode(encoded, flags)); in utf8EncodeAndDecode()
69 String text = EncodeUtils.decode(greatWallChinese, flags); in asciiDecodeAsUtf8()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DEncodeUtils.java30 public class EncodeUtils { class
35 private EncodeUtils() { in EncodeUtils() method in EncodeUtils
DCentralDirectory.java346 String fileName = EncodeUtils.decode(encodedFileName, flags); in readEntry()
DStoredEntry.java473 String fileName = EncodeUtils.decode(fileNameData, cdh.getGpBit()); in readLocalHeader()
DZFile.java1658 boolean encodeWithUtf8 = !EncodeUtils.canAsciiEncode(name); in makeStoredEntry()
1666 EncodeUtils.encode(name, flags), in makeStoredEntry()