Home
last modified time | relevance | path

Searched refs:readFile (Results 1 – 12 of 12) sorted by relevance

/aosp14/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DToastTest.java57 private static String readFile(String fn) { in readFile() method in ToastTest
87 String text = "freq=" + readFile("/sys/class/leds/red/device/grpfreq")
88 + "\npwm=" + readFile("/sys/class/leds/red/device/grppwm");
/aosp14/frameworks/base/services/core/java/com/android/server/stats/pull/
H A DIonMemoryUtil.java57 return parseIonHeapSizeFromDebugfs(readFile(DEBUG_SYSTEM_ION_HEAP_FILE)); in readSystemIonHeapSizeFromDebugfs()
85 return parseProcessIonHeapSizesFromDebugfs(readFile(DEBUG_SYSTEM_ION_HEAP_FILE)); in readProcessSystemIonHeapSizesFromDebugfs()
125 private static String readFile(String path) { in readFile() method in IonMemoryUtil
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DFileRotator.java245 readFile(file, rewriter); in rewriteSingle()
313 readFile(file, reader); in readMatching()
385 private static void readFile(File file, Reader reader) throws IOException { in readFile() method in FileRotator
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DLockSettingsStorage.java241 return readFile(getChildProfileLockFile(userId)); in readChildProfileLock()
253 return readFile(getRebootEscrowFile(userId)); in readRebootEscrow()
269 return readFile(getRebootEscrowServerBlobFile()); in readRebootEscrowServerBlob()
281 byte[] contents = readFile(path); in hasFile()
285 private byte[] readFile(File path) { in readFile() method in LockSettingsStorage
403 final byte[] data = readFile(getRepairModePersistentDataFile()); in readRepairModePersistentData()
436 return readFile(getSyntheticPasswordStateFileForUser(userId, protectorId, name)); in readSyntheticPasswordState()
/aosp14/frameworks/base/packages/SystemUI/scripts/token_alignment/helpers/
H A DFileIO.ts42 return await fs.readFile(path, { encoding: 'utf8' });
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DFileUtilsTest.java149 actual = readFile(dest); in testCopy_FileToFile()
188 actual = readFile(dest); in testCopy_PipeToFile()
226 actual = readFile(dest); in testCopy_ShortPipeToFile()
248 actual = readFile(dest); in testCopyFileWithAppend()
720 private byte[] readFile(File file) throws Exception { in readFile() method in FileUtilsTest
/aosp14/frameworks/base/services/core/java/com/android/server/policy/role/
H A DRoleServicePlatformHelperImpl.java88 Map<String, Set<String>> roles = readFile(userId); in getLegacyRoleState()
96 private Map<String, Set<String>> readFile(@UserIdInt int userId) { in readFile() method in RoleServicePlatformHelperImpl
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
H A DCompatConfigTest.java85 private String readFile(File file) throws IOException { in readFile() method in CompatConfigTest
975 assertThat(readFile(overridesFile)).isEqualTo("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" in testSaveOverrides()
1019 assertThat(readFile(overridesFile)).isEqualTo("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" in testSaveOverridesWithRanges()
1200 assertThat(readFile(dynamicOverridesFile)) in testInitOverridesWithStaticFile()
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DColorFade.java233 private String readFile(Context context, int resourceId) { in readFile() method in ColorFade
245 String source = readFile(context, resourceId); in loadShader()
/aosp14/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportProgressService.java2267 bugreportFile = readFile(in); in BugreportInfo()
2271 screenshotFiles.add(readFile(in)); in BugreportInfo()
2321 private File readFile(Parcel in) { in readFile() method in BugreportProgressService.BugreportInfo
/aosp14/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp998 static bool readFile(ZipFileRO* zip, const char* name, String8& outString) { in readFile() function
1134 if (!readFile(animation.zip, "desc.txt", desString)) { in parseAnimationDesc()
/aosp14/frameworks/base/services/
H A Dart-profile4909 HSPLcom/android/server/locksettings/LockSettingsStorage;->readFile(Ljava/io/File;)[B