Searched refs:fileContents (Results 1 – 7 of 7) sorted by relevance
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | ProcStatsUtilTest.java | 169 private String runReadNullSeparatedFile(String fileContents) throws IOException { in runReadNullSeparatedFile() argument 171 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadNullSeparatedFile() 177 private String runReadSingleLineProcFile(String fileContents) throws IOException { in runReadSingleLineProcFile() argument 179 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadSingleLineProcFile() 186 String fileContents, byte terminator) throws IOException { in runReadTerminatedProcFile() argument 188 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadTerminatedProcFile()
|
H A D | ProcLocksReaderTest.java | 108 private void runHandleBlockingFileLocks(String fileContents) throws Exception { in runHandleBlockingFileLocks() argument 110 Files.write(tempFile.toPath(), fileContents.getBytes()); in runHandleBlockingFileLocks()
|
H A D | BinderfsStatsReaderTest.java | 173 private void runHandleBlockingFileLocks(String fileContents) throws Exception { in runHandleBlockingFileLocks() argument 175 Files.write(tempFile.toPath(), fileContents.getBytes()); in runHandleBlockingFileLocks()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/ |
H A D | UserFileManagerImplTest.kt | 93 val fileContents = "TestingFile" regex 104 Files.write(legacyFile.toPath(), fileContents.toByteArray()) 111 assertThat(newContents).isEqualTo(fileContents)
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
H A D | RecoverySnapshotStorageTest.java | 107 byte[] fileContents = "<keyChainSnapshot></keyChainSnapshot>".getBytes( in get_deletesFileIfItIsInvalidSnapshot() 109 Files.write(fileContents, file); in get_deletesFileIfItIsInvalidSnapshot()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | BootReceiver.java | 436 String fileContents = FileUtils.readTextFile(file, maxSize, TAG_TRUNCATED); in addFileWithFootersToDropBox() local 437 String text = headers + fileContents + footers; in addFileWithFootersToDropBox() 439 if (tag.equals(TAG_TOMBSTONE) && fileContents.contains(">>> system_server <<<")) { in addFileWithFootersToDropBox()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
H A D | WallpaperManagerServiceTests.java | 619 String fileContents = new String(fileInputStream.readAllBytes()); in assertPfdAndFileContentsEqual() local 620 assertEquals(pfdContents, fileContents); in assertPfdAndFileContentsEqual()
|