Home
last modified time | relevance | path

Searched refs:fileContents (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DProcStatsUtilTest.java166 private String runReadNullSeparatedFile(String fileContents) throws IOException { in runReadNullSeparatedFile() argument
168 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadNullSeparatedFile()
174 private String runReadSingleLineProcFile(String fileContents) throws IOException { in runReadSingleLineProcFile() argument
176 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadSingleLineProcFile()
183 String fileContents, byte terminator) throws IOException { in runReadTerminatedProcFile() argument
185 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadTerminatedProcFile()
DProcLocksReaderTest.java105 private void runHandleBlockingFileLocks(String fileContents) throws Exception { in runHandleBlockingFileLocks() argument
107 Files.write(tempFile.toPath(), fileContents.getBytes()); in runHandleBlockingFileLocks()
DBinderfsStatsReaderTest.java170 private void runHandleBlockingFileLocks(String fileContents) throws Exception { in runHandleBlockingFileLocks() argument
172 Files.write(tempFile.toPath(), fileContents.getBytes()); in runHandleBlockingFileLocks()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DUserFileManagerImplTest.kt93 val fileContents = "TestingFile" in testMigrateFile() constant
104 Files.write(legacyFile.toPath(), fileContents.toByteArray()) in testMigrateFile()
111 assertThat(newContents).isEqualTo(fileContents) in testMigrateFile()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DAconfigFlags.java179 private void loadAconfigDefaultValues(byte[] fileContents) throws IOException { in loadAconfigDefaultValues() argument
180 parsed_flags parsedFlags = parsed_flags.parseFrom(fileContents); in loadAconfigDefaultValues()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySnapshotStorageTest.java107 byte[] fileContents = "<keyChainSnapshot></keyChainSnapshot>".getBytes( in get_deletesFileIfItIsInvalidSnapshot()
109 Files.write(fileContents, file); in get_deletesFileIfItIsInvalidSnapshot()
/frameworks/base/cmds/uinput/tests/src/com/android/commands/uinput/tests/
DEvemuParserTest.java47 private Event getRegistrationEvent(String fileContents) throws IOException { in getRegistrationEvent() argument
48 StringReader reader = new StringReader(fileContents); in getRegistrationEvent()
/frameworks/base/services/core/java/com/android/server/
DBootReceiver.java472 String fileContents = FileUtils.readTextFile(file, maxSize, TAG_TRUNCATED); in addFileWithFootersToDropBox() local
473 String text = headers + fileContents + footers; in addFileWithFootersToDropBox()
475 if (tag.equals(TAG_TOMBSTONE) && fileContents.contains(">>> system_server <<<")) { in addFileWithFootersToDropBox()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperManagerServiceTests.java619 String fileContents = new String(fileInputStream.readAllBytes()); in assertPfdAndFileContentsEqual() local
620 assertEquals(pfdContents, fileContents); in assertPfdAndFileContentsEqual()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java672 byte[] fileContents, in loadAconfigDefaultValues() argument
676 parsed_flags parsedFlags = parsed_flags.parseFrom(fileContents); in loadAconfigDefaultValues()