Home
last modified time | relevance | path

Searched refs:readTextFile (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java94 assertEquals(TEST_DATA, FileUtils.readTextFile(mCopyFile, 0, null)); in testCopyFile()
103 assertEquals(s, FileUtils.readTextFile(mCopyFile, 0, null)); in testCopyToFile()
216 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 0, null)); in testReadTextFile()
218 assertEquals("ABCDE", FileUtils.readTextFile(mTestFile, 5, null)); in testReadTextFile()
219 assertEquals("ABCDE<>", FileUtils.readTextFile(mTestFile, 5, "<>")); in testReadTextFile()
221 FileUtils.readTextFile(mTestFile, 51, "<>")); in testReadTextFile()
222 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 52, "<>")); in testReadTextFile()
223 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 100, "<>")); in testReadTextFile()
225 assertEquals("vwxyz", FileUtils.readTextFile(mTestFile, -5, null)); in testReadTextFile()
226 assertEquals("<>vwxyz", FileUtils.readTextFile(mTestFile, -5, "<>")); in testReadTextFile()
[all …]
DBinderThreadPriorityTest.java100 String cgroup = FileUtils.readTextFile(new File(fn), 1024, null); in getSchedulerGroup()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DEntropyMixerTest.java34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length()); in testInitialWrite()
39 assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0); in testInitialWrite()
/frameworks/base/core/java/com/android/server/
DBootReceiver.java155 return FileUtils.readTextFile(lastHeaderFile, 0, null); in getPreviousBootHeaders()
170 .append(FileUtils.readTextFile(new File("/proc/version"), 1024, "...\n")) in getCurrentBootHeaders()
304 String fileContents = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addFileWithFootersToDropBox()
345 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addAuditErrorsToDropBox()
370 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addFsckErrorsToDropBoxAndLogFsStat()
413 metricsStr = FileUtils.readTextFile(metricsFile, 0, null); in logSystemServerShutdownTimeMetrics()
525 lines = FileUtils.readTextFile(f, -maxReadSize, null); in logFsShutdownTime()
/frameworks/base/core/tests/packagemanagertests/src/android/content/pm/
DKernelPackageMappingTests.java76 return FileUtils.readTextFile(file, 0, null).trim(); in getContent()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceTest.java60 String s = FileUtils.readTextFile(restrictionsFile, 10000, ""); in testWriteReadApplicationRestrictions()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDebuggingManager.java469 FileUtils.readTextFile(new File("/data/misc/adb/adb_keys"), 0, null)); in dump()
476 FileUtils.readTextFile(new File("/adb_keys"), 0, null)); in dump()
DUsbDeviceManager.java1313 FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim()); in dump()
1321 FileUtils.readTextFile(new File(FUNCTIONS_PATH), 0, null).trim()); in dump()
1375 String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); in UsbHandlerLegacy()
1764 String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); in UsbHandlerHal()
/frameworks/base/services/core/java/com/android/server/am/
DMemoryStatUtil.java104 return FileUtils.readTextFile(file, 0 /* max */, null /* ellipsis */); in readFileContents()
DActivityManagerService.java15754 sb.append(FileUtils.readTextFile(dataFile, maxDataFileSize, in addErrorToDropBox()
/frameworks/base/services/core/java/com/android/server/
DRescueParty.java348 .readTextFile(new File("/sys/class/android_usb/android0/state"), 128, ""); in isUsbActive()
/frameworks/base/core/java/android/os/
DRecoverySystem.java1058 log = FileUtils.readTextFile(LOG_FILE, -LOG_FILE_MAX_LENGTH, "...\n"); in handleAftermath()
1074 filename = FileUtils.readTextFile(UNCRYPT_PACKAGE_FILE, 0, null); in handleAftermath()
DFileUtils.java513 public static String readTextFile(File file, int max, String ellipsis) throws IOException { in readTextFile() method in FileUtils
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java745 filename = FileUtils.readTextFile(RecoverySystem.UNCRYPT_PACKAGE_FILE, 0, null); in uncrypt()
/frameworks/base/services/java/com/android/server/
DSystemServer.java490 filename = FileUtils.readTextFile(packageFile, 0, null); in performPendingShutdown()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java2083 String[] parameters = FileUtils.readTextFile(state, 0, null).split("\n", -1); in bringup()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt4002 Landroid/os/FileUtils;->readTextFile(Ljava/io/File;ILjava/lang/String;)Ljava/lang/String;
Dboot-image-profile.txt27474 HSPLandroid/os/FileUtils;->readTextFile(Ljava/io/File;ILjava/lang/String;)Ljava/lang/String;