Home
last modified time | relevance | path

Searched refs:UTF_8 (Results 1 – 25 of 33) sorted by relevance

12

/tools/platform-compat/javatest/android/processor/compat/changeid/
DChangeIdProcessorTest.java19 import static java.nio.charset.StandardCharsets.UTF_8;
124 "Compat_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testCompatConfigXmlOutput()
172 "Compat_compat_config.xml").contentsAsString(UTF_8).isEqualTo(libcoreExpectedFile); in testCompatConfigXmlOutput_multiplePackages()
174 "SomeClass_compat_config.xml").contentsAsString(UTF_8).isEqualTo( in testCompatConfigXmlOutput_multiplePackages()
209 "Compat.Inner_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testCompatConfigXmlOutput_innerClass()
241 "Compat_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testCompatConfigXmlOutput_interface()
274 "Compat_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testCompatConfigXmlOutput_enum()
377 "Compat_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testLoggingOnly()
536 "Compat.Inner_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testCompatConfigXmlOutput_hideTag()
/tools/carrier_settings/java/
DGenDeviceSettings.java18 import static java.nio.charset.StandardCharsets.UTF_8;
85 try (BufferedReader br = Files.newBufferedReader(Paths.get(deviceFileName), UTF_8)) { in generate() argument
111 try (BufferedReader br = Files.newBufferedReader(baseSettingFile.toPath(), UTF_8)) { in generate() argument
137 try (BufferedReader br = Files.newBufferedReader(baseSettingFile.toPath(), UTF_8)) { in generate() argument
163 try (BufferedWriter bw = Files.newBufferedWriter(deviceSettingTextFile.toPath(), UTF_8)) { in generate() argument
DGenCarrierList.java18 import static java.nio.charset.StandardCharsets.UTF_8;
86 try (BufferedReader br = Files.newBufferedReader(Paths.get(textpbFileName), UTF_8)) { in generate() argument
115 Files.newBufferedWriter(Paths.get(outFileMainName + TEXT_PB_SUFFIX), UTF_8)) { in generate() argument
DCarrierConfigConverterV2.java20 import static java.nio.charset.StandardCharsets.UTF_8;
307 BufferedReader br = new BufferedReader(new InputStreamReader(carriersTextpb, UTF_8))) { in convert() argument
342 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(os, UTF_8))) { in convert() argument
357 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(os, UTF_8))) { in convert() argument
367 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(os, UTF_8))) { in convert() argument
401 BufferedReader textpbReader = new BufferedReader(new InputStreamReader(textpb, UTF_8))) { in loadAospCarrierList() argument
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DHistogram.java115 output.write("<".getBytes(StandardCharsets.UTF_8)); in plotAscii()
118 output.write(">".getBytes(StandardCharsets.UTF_8)); in plotAscii()
121 output.write(" ".getBytes(StandardCharsets.UTF_8)); in plotAscii()
/tools/asuite/asuite_plugin/src/test/unittests/
DCommandRunnerTest.java47 Assert.assertSame(commandLine.getCharset(), StandardCharsets.UTF_8); in testCommandRunnerByLs()
58 Assert.assertSame(commandLine.getCharset(), StandardCharsets.UTF_8); in testCommandRunnerByTarget()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DEncodeUtils.java92 return decode(data, Charsets.UTF_8); in decode()
124 return Charsets.UTF_8; in flagsCharset()
/tools/metalava/src/main/java/com/android/tools/metalava/
DAnnotationsDiffer.kt29 import kotlin.text.Charsets.UTF_8 in <lambda>()
139 apiFile.writeText(cleanedUp, UTF_8) in <lambda>()
DNullabilityAnnotationsValidator.kt31 import kotlin.text.Charsets.UTF_8 in <lambda>()
109 Files.readLines(topLevelClassesList, UTF_8) in <lambda>()
215 PrintWriter(Files.asCharSink(warningsTxtFile, UTF_8).openBufferedStream()).use { w -> in <lambda>()
DRewriteAnnotations.kt40 import kotlin.text.Charsets.UTF_8 in <lambda>()
65 source.readText(UTF_8).replace( in <lambda>()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DVerityTreeBuilderTest.java19 import static java.nio.charset.StandardCharsets.UTF_8;
79 return DataSources.asDataSource(ByteBuffer.wrap(data.getBytes(UTF_8))); in makeStringDataSource()
/tools/metalava/src/test/java/com/android/tools/metalava/apilevels/
DApiGeneratorTest.kt34 import kotlin.text.Charsets.UTF_8
86 val xml = output.readText(UTF_8) in Extract API levels()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSinkTestBase.java50 byte[] input = "abcdefg".getBytes(StandardCharsets.UTF_8); in testConsumeFromArray()
78 ByteBuffer input = ByteBuffer.wrap("abcdefg".getBytes(StandardCharsets.UTF_8)); in testConsumeFromByteBuffer()
DDataSourceFromByteBufferTest.java34 ByteBuffer buf = ByteBuffer.wrap("abcdefgh".getBytes(StandardCharsets.UTF_8)); in testChangesToBufferPosAndLimitNotVisible()
DDataSourceFromRAFChunkTest.java60 raf.write("hijkl".getBytes(StandardCharsets.UTF_8)); in testFileSizeChangesNotVisible()
DDataSourceFromRAFTest.java62 raf.write("hijkl".getBytes(StandardCharsets.UTF_8)); in testFileSizeChangesVisible()
DDataSourceTestBase.java44 return createDataSource(contents.getBytes(StandardCharsets.UTF_8)); in createDataSource()
332 return new String(arr, offset, size, StandardCharsets.UTF_8); in toString()
/tools/asuite/asuite_plugin/src/java/com/android/atest/commandAdapter/
DCommandRunner.java60 mCommand.setCharset(StandardCharsets.UTF_8); in CommandRunner()
96 mCommand.setCharset(StandardCharsets.UTF_8); in CommandRunner()
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DCentralDirectoryRecord.java226 byte[] nameBytes = name.getBytes(StandardCharsets.UTF_8); in createWithDeflateCompressedData()
286 return new String(nameBytes, nameBytesOffset, nameLengthBytes, StandardCharsets.UTF_8); in getName()
/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DManifestWriter.java85 byte[] lineBytes = line.getBytes(StandardCharsets.UTF_8); in writeLine()
DManifestParser.java129 return new String(bytes, StandardCharsets.UTF_8); in readAttribute()
/tools/metalava/src/test/java/com/android/tools/metalava/
DDocAnalyzerTest.kt10 import kotlin.text.Charsets.UTF_8
2001 val doc = File(html, "test/pkg/LocationManager.html").readText(UTF_8) in Invoke external documentation tool()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DHostGTestTest.java347 String testOutput = new String(mFakeReceiver.getReceivedOutput(), StandardCharsets.UTF_8); in testTestFailureHandledCorrectly()
393 String testOutput = new String(mFakeReceiver.getReceivedOutput(), StandardCharsets.UTF_8); in testBothStdoutAndStderrCollected()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DPasswordRetriever.java363 return StandardCharsets.UTF_8; in getCharsetByName()
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackTestHelper.java390 final BufferedReader br = Files.newReader(result, StandardCharsets.UTF_8); in parseKeyValuePairFromFile()
536 final PrintWriter writer = new PrintWriter(csvFile, StandardCharsets.UTF_8.name()); in writeAllResultsToCSVFile()

12