/tools/platform-compat/javatest/android/processor/compat/changeid/ |
D | ChangeIdProcessorTest.java | 19 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/metalava/src/main/java/com/android/tools/metalava/ |
D | Driver.kt | 71 import kotlin.text.Charsets.UTF_8 in <lambda>() 595 if (apiFile.readText(UTF_8) == signatureFile.readText(UTF_8)) { in checkCompatibility() 608 if (apiFile != null && apiFile.readText(UTF_8) == signatureFile.readText(UTF_8)) { in checkCompatibility() 629 val text = file.readText(UTF_8) in checkCompatibility() 744 writer.write(String(b, UTF_8)) in write() 752 writer.write(String(b, off, len, UTF_8)) in write() 1078 val writer = PrintWriter(Files.asCharSink(apiFile, UTF_8).openBufferedStream()) in createReportFile() 1179 var contents = Files.asCharSource(file, UTF_8).read() in addHiddenPackages() 1271 val source = Files.asCharSource(file, UTF_8).read() in findPackage()
|
D | NullabilityAnnotationsValidator.kt | 31 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>()
|
D | Baseline.kt | 41 import kotlin.text.Charsets.UTF_8 in <lambda>() 201 val lines = file.readLines(UTF_8) in <lambda>() 260 updateFile.writeText(sb.toString(), UTF_8) in <lambda>()
|
D | AnnotationsMerger.kt | 80 import kotlin.text.Charsets.UTF_8 164 val xml = Files.asCharSource(file, UTF_8).read() in mergeQualifierAnnotationsFromFile() 194 val xml = String(bytes, UTF_8) in mergeFromJar()
|
D | AnnotationsDiffer.kt | 29 import kotlin.text.Charsets.UTF_8 in <lambda>() 139 apiFile.writeText(cleanedUp, UTF_8) in <lambda>()
|
D | RewriteAnnotations.kt | 40 import kotlin.text.Charsets.UTF_8 in <lambda>() 65 source.readText(UTF_8).replace( in <lambda>()
|
D | ExtractAnnotations.kt | 66 import kotlin.text.Charsets.UTF_8 in <lambda>() 152 val bytes = writer.contents.toByteArray(UTF_8) in <lambda>()
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | DriverTest.kt | 64 import kotlin.text.Charsets.UTF_8 in <lambda>() 142 val stdout = output.toString(UTF_8.name()) in <lambda>() 146 val stderr = error.toString(UTF_8.name()) in <lambda>() 856 convertSig.writeText(signature.trimIndent(), UTF_8) in <lambda>() 861 baseFile.writeText(base.trimIndent(), UTF_8) in <lambda>() 1193 parseDocument(apiXmlFile.readText(UTF_8), false) in <lambda>() 1307 … Files.asCharSource(validateNullabilityTxt, UTF_8).readLines().map(String::trim).toSet() in <lambda>() 1430 val xml = String(bytes, UTF_8).replace("\r\n", "\n") in <lambda>() 1536 var apiLines: List<String> = Files.asCharSource(file, UTF_8).readLines() in <lambda>()
|
D | AnnotationsDifferTest.kt | 25 import kotlin.text.Charsets.UTF_8 64 val actual = apiFile.readText(UTF_8) in Write diff()
|
D | RewriteAnnotationsTest.kt | 29 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()
|
D | DocAnalyzerTest.kt | 10 import kotlin.text.Charsets.UTF_8 2001 val doc = File(html, "test/pkg/LocationManager.html").readText(UTF_8) in Invoke external documentation tool()
|
D | CompatibilityCheckTest.kt | 22 import kotlin.text.Charsets.UTF_8 2648 val previousSignatureApi = signatureFile.readText(UTF_8) in Test All Android API levels()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/ |
D | Histogram.java | 115 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/main/java/com/android/tools/metalava/model/ |
D | Codebase.kt | 43 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/ |
D | CommandRunnerTest.java | 47 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/ |
D | EncodeUtils.java | 92 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/ |
D | VerityTreeBuilderTest.java | 19 import static java.nio.charset.StandardCharsets.UTF_8; 80 return DataSources.asDataSource(ByteBuffer.wrap(data.getBytes(UTF_8))); in makeStringDataSource()
|
/tools/metalava/src/test/java/com/android/tools/metalava/apilevels/ |
D | ApiGeneratorTest.kt | 34 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/ |
D | DataSinkTestBase.java | 50 byte[] input = "abcdefg".getBytes(StandardCharsets.UTF_8); in testConsumeFromArray() 78 ByteBuffer input = ByteBuffer.wrap("abcdefg".getBytes(StandardCharsets.UTF_8)); in testConsumeFromByteBuffer()
|
D | DataSourceTestBase.java | 44 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/ |
D | CommandRunner.java | 60 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/ |
D | CentralDirectoryRecord.java | 226 byte[] nameBytes = name.getBytes(StandardCharsets.UTF_8); in createWithDeflateCompressedData() 286 return new String(nameBytes, nameBytesOffset, nameLengthBytes, StandardCharsets.UTF_8); in getName()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | HostGTestTest.java | 347 String testOutput = new String(mFakeReceiver.getReceivedOutput(), StandardCharsets.UTF_8); in testTestFailureHandledCorrectly() 393 String testOutput = new String(mFakeReceiver.getReceivedOutput(), StandardCharsets.UTF_8); in testBothStdoutAndStderrCollected()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AudioLoopbackTestHelper.java | 390 final BufferedReader br = Files.newReader(result, StandardCharsets.UTF_8); in parseKeyValuePairFromFile() 536 final PrintWriter writer = new PrintWriter(csvFile, StandardCharsets.UTF_8.name()); in writeAllResultsToCSVFile()
|