/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileUtilsTest.java | 74 assertEquals(TEST_DATA, FileUtils.readTextFile(mCopyFile, 0, null)); in testCopyFile() 82 assertEquals(s, FileUtils.readTextFile(mCopyFile, 0, null)); in testCopyToFile() 95 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 0, null)); in testReadTextFile() 97 assertEquals("ABCDE", FileUtils.readTextFile(mTestFile, 5, null)); in testReadTextFile() 98 assertEquals("ABCDE<>", FileUtils.readTextFile(mTestFile, 5, "<>")); in testReadTextFile() 100 FileUtils.readTextFile(mTestFile, 51, "<>")); in testReadTextFile() 101 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 52, "<>")); in testReadTextFile() 102 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 100, "<>")); in testReadTextFile() 104 assertEquals("vwxyz", FileUtils.readTextFile(mTestFile, -5, null)); in testReadTextFile() 105 assertEquals("<>vwxyz", FileUtils.readTextFile(mTestFile, -5, "<>")); in testReadTextFile() [all …]
|
D | BinderThreadPriorityTest.java | 100 String cgroup = FileUtils.readTextFile(new File(fn), 1024, null); in getSchedulerGroup()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | EntropyMixerTest.java | 34 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/ |
D | BootReceiver.java | 126 .append(FileUtils.readTextFile(new File("/proc/version"), 1024, "...\n")) in logBootEvents() 228 db.addText(tag, headers + FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n") + in addFileWithFootersToDropBox() 253 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addAuditErrorsToDropBox() 275 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addFsckErrorsToDropBox()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceTest.java | 58 String s = FileUtils.readTextFile(restrictionsFile, 10000, ""); in testWriteReadApplicationRestrictions()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDebuggingManager.java | 462 pw.println(FileUtils.readTextFile(new File("/data/misc/adb/adb_keys"), 0, null)); in dump() 468 pw.println(FileUtils.readTextFile(new File("/adb_keys"), 0, null)); in dump()
|
D | UsbDeviceManager.java | 347 String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); in UsbHandler() 913 + FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim()); 915 + FileUtils.readTextFile(new File(FUNCTIONS_PATH), 0, null).trim());
|
/frameworks/base/core/java/android/os/ |
D | RecoverySystem.java | 773 log = FileUtils.readTextFile(LOG_FILE, -LOG_FILE_MAX_LENGTH, "...\n"); in handleAftermath() 789 filename = FileUtils.readTextFile(UNCRYPT_PACKAGE_FILE, 0, null); in handleAftermath()
|
D | FileUtils.java | 262 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/ |
D | ShutdownThread.java | 703 filename = FileUtils.readTextFile(RecoverySystem.UNCRYPT_PACKAGE_FILE, 0, null); in uncrypt()
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 371 filename = FileUtils.readTextFile(packageFile, 0, null); in performPendingShutdown()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 1690 String[] parameters = FileUtils.readTextFile(state, 0, null).split("\n", -1); in execute()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 13620 sb.append(FileUtils.readTextFile(dataFile, maxDataFileSize, in addErrorToDropBox()
|