Searched refs:fileContents (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | ProcStatsUtilTest.java | 166 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()
|
D | ProcLocksReaderTest.java | 105 private void runHandleBlockingFileLocks(String fileContents) throws Exception { in runHandleBlockingFileLocks() argument 107 Files.write(tempFile.toPath(), fileContents.getBytes()); in runHandleBlockingFileLocks()
|
D | BinderfsStatsReaderTest.java | 170 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/ |
D | UserFileManagerImplTest.kt | 93 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/ |
D | AconfigFlags.java | 179 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/ |
D | RecoverySnapshotStorageTest.java | 107 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/ |
D | EvemuParserTest.java | 47 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/ |
D | BootReceiver.java | 472 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/ |
D | WallpaperManagerServiceTests.java | 619 String fileContents = new String(fileInputStream.readAllBytes()); in assertPfdAndFileContentsEqual() local 620 assertEquals(pfdContents, fileContents); in assertPfdAndFileContentsEqual()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsState.java | 672 byte[] fileContents, in loadAconfigDefaultValues() argument 676 parsed_flags parsedFlags = parsed_flags.parseFrom(fileContents); in loadAconfigDefaultValues()
|