Home
last modified time | relevance | path

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

12

/tools/platform-compat/javatest/android/processor/compat/changeid/
DChangeIdProcessorTest.java19 import static java.nio.charset.StandardCharsets.UTF_8;
163 "Compat_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testCompatConfigXmlOutput()
211 "Compat_compat_config.xml").contentsAsString(UTF_8).isEqualTo(libcoreExpectedFile); in testCompatConfigXmlOutput_multiplePackages()
213 "SomeClass_compat_config.xml").contentsAsString(UTF_8).isEqualTo( in testCompatConfigXmlOutput_multiplePackages()
248 "Compat.Inner_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testCompatConfigXmlOutput_innerClass()
280 "Compat_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testCompatConfigXmlOutput_interface()
313 "Compat_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testCompatConfigXmlOutput_enum()
492 "Compat_compat_config.xml").contentsAsString(UTF_8).isEqualTo(expectedFile); in testLoggingOnly()
651 "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;
296 BufferedReader br = new BufferedReader(new InputStreamReader(carriersTextpb, UTF_8))) { in convert() argument
331 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(os, UTF_8))) { in convert() argument
346 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(os, UTF_8))) { in convert() argument
356 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(os, UTF_8))) { in convert() argument
390 BufferedReader textpbReader = new BufferedReader(new InputStreamReader(textpb, UTF_8))) { in loadAospCarrierList() argument
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt65 import kotlin.text.Charsets.UTF_8 in <lambda>()
622 if (apiFile != null && apiFile.readText(UTF_8) == signatureFile.readText(UTF_8)) { in checkCompatibility()
652 val text = file.readText(UTF_8) in checkCompatibility()
767 writer.write(String(b, UTF_8)) in write()
775 writer.write(String(b, off, len, UTF_8)) in write()
1090 val writer = PrintWriter(Files.asCharSink(apiFile, UTF_8).openBufferedStream()) in createReportFile()
1161 var contents = Files.asCharSource(file, UTF_8).read() in gatherPackageJavadoc()
1236 val source = Files.asCharSource(file, UTF_8).read() in findPackage()
DNullabilityAnnotationsValidator.kt30 import kotlin.text.Charsets.UTF_8 in <lambda>()
108 Files.readLines(topLevelClassesList, UTF_8) in <lambda>()
214 PrintWriter(Files.asCharSink(warningsTxtFile, UTF_8).openBufferedStream()).use { w -> in <lambda>()
DBaseline.kt40 import kotlin.text.Charsets.UTF_8 in <lambda>()
201 val lines = file.readLines(UTF_8) in <lambda>()
258 updateFile.writeText(sb.toString(), UTF_8) in <lambda>()
DAnnotationsDiffer.kt26 import kotlin.text.Charsets.UTF_8 in <lambda>()
136 apiFile.writeText(cleanedUp, UTF_8) in <lambda>()
DRewriteAnnotations.kt40 import kotlin.text.Charsets.UTF_8 in <lambda>()
65 source.readText(UTF_8).replace( in <lambda>()
DAnnotationsMerger.kt80 import kotlin.text.Charsets.UTF_8
165 val xml = Files.asCharSource(file, UTF_8).read() in mergeQualifierAnnotationsFromFile()
195 val xml = String(bytes, UTF_8) in mergeFromJar()
/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/metalava/src/test/java/com/android/tools/metalava/
DDriverTest.kt62 import kotlin.text.Charsets.UTF_8 in <lambda>()
145 val stdout = output.toString(UTF_8.name()) in <lambda>()
149 val stderr = error.toString(UTF_8.name()) in <lambda>()
900 convertSig.writeText(signature.trimIndent(), UTF_8) in <lambda>()
905 baseFile.writeText(base.trimIndent(), UTF_8) in <lambda>()
1240 parseDocument(apiXmlFile.readText(UTF_8), false) in <lambda>()
1372 … Files.asCharSource(validateNullabilityTxt, UTF_8).readLines().map(String::trim).toSet() in <lambda>()
1455 val xml = String(bytes, UTF_8).replace("\r\n", "\n") in <lambda>()
1561 var apiLines: List<String> = Files.asCharSource(file, UTF_8).readLines() in <lambda>()
DAnnotationsDifferTest.kt25 import kotlin.text.Charsets.UTF_8
64 val actual = apiFile.readText(UTF_8) in Write diff()
DRewriteAnnotationsTest.kt29 import kotlin.text.Charsets.UTF_8
86 """.trimIndent().trim(), recentlyNull.readText(UTF_8).trim().replace("\r\n", "\n") in Test copying private annotations from one of the stubs()
DDocAnalyzerTest.kt10 import kotlin.text.Charsets.UTF_8
2079 val doc = File(html, "test/pkg/LocationManager.html").readText(UTF_8) in Invoke external documentation tool()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DCodebase.kt43 import kotlin.text.Charsets.UTF_8 in <lambda>()
285 val doc = parseDocument(manifest?.readText(UTF_8) ?: "", true) in getPermissionLevel()
310 val doc = parseDocument(manifest?.readText(UTF_8) ?: "", true) in getMinSdkVersion()
/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/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.kt33 import kotlin.text.Charsets.UTF_8
85 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()
DDataSourceTestBase.java44 return createDataSource(contents.getBytes(StandardCharsets.UTF_8)); in createDataSource()
332 return new String(arr, offset, size, StandardCharsets.UTF_8); in toString()
DDataSourceFromByteBufferTest.java34 ByteBuffer buf = ByteBuffer.wrap("abcdefgh".getBytes(StandardCharsets.UTF_8)); in testChangesToBufferPosAndLimitNotVisible()
/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()

12