/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileUtilsTest.java | 116 assertEquals(TEST_DATA, FileUtils.readTextFile(mCopyFile, 0, null)); in testCopyFile() 125 assertEquals(s, FileUtils.readTextFile(mCopyFile, 0, null)); in testCopyToFile() 238 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 0, null)); in testReadTextFile() 240 assertEquals("ABCDE", FileUtils.readTextFile(mTestFile, 5, null)); in testReadTextFile() 241 assertEquals("ABCDE<>", FileUtils.readTextFile(mTestFile, 5, "<>")); in testReadTextFile() 243 FileUtils.readTextFile(mTestFile, 51, "<>")); in testReadTextFile() 244 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 52, "<>")); in testReadTextFile() 245 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 100, "<>")); in testReadTextFile() 247 assertEquals("vwxyz", FileUtils.readTextFile(mTestFile, -5, null)); in testReadTextFile() 248 assertEquals("<>vwxyz", FileUtils.readTextFile(mTestFile, -5, "<>")); in testReadTextFile() [all …]
|
D | BinderThreadPriorityTest.java | 99 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 | 155 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() 348 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addAuditErrorsToDropBox() 373 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addFsckErrorsToDropBoxAndLogFsStat() 416 metricsStr = FileUtils.readTextFile(metricsFile, 0, null); in logSystemServerShutdownTimeMetrics() 528 lines = FileUtils.readTextFile(f, -maxReadSize, null); in logFsShutdownTime()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ZramWriteback.java | 89 .readTextFile(new File(wbStatsPath), WB_STATS_MAX_FILE_SIZE, ""); in getWrittenPageCount() 112 .readTextFile(new File(String.format(BDEV_SYS, sZramDeviceId)), 128, ""); in isWritebackEnabled()
|
D | ExtconStateObserver.java | 49 FileUtils.readTextFile(new File(statePath), 0, null).trim()); in parseStateFromFile()
|
D | RescueParty.java | 402 .readTextFile(new File("/sys/class/android_usb/android0/state"), 128, ""); in isUsbActive()
|
/frameworks/base/core/tests/packagemanagertests/src/android/content/pm/ |
D | KernelPackageMappingTests.java | 71 return FileUtils.readTextFile(file, 0, null).trim(); in getContent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceTest.java | 60 String s = FileUtils.readTextFile(restrictionsFile, 10000, ""); in testWriteReadApplicationRestrictions()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | MemoryStatUtil.java | 175 return FileUtils.readTextFile(file, 0 /* max */, null /* ellipsis */); in readFileContents()
|
D | ActivityManagerService.java | 9651 sb.append(FileUtils.readTextFile(dataFile, maxDataFileSize, in addErrorToDropBox()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 1310 FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim()); in dump() 1318 FileUtils.readTextFile(new File(FUNCTIONS_PATH), 0, null).trim()); in dump() 1371 String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); in UsbHandlerLegacy() 1749 String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); in UsbHandlerHal()
|
/frameworks/base/core/java/android/os/ |
D | RecoverySystem.java | 1095 log = FileUtils.readTextFile(LOG_FILE, -LOG_FILE_MAX_LENGTH, "...\n"); in handleAftermath() 1108 filename = FileUtils.readTextFile(UNCRYPT_PACKAGE_FILE, 0, null); in handleAftermath()
|
D | FileUtils.java | 613 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/adb/ |
D | AdbDebuggingManager.java | 1746 FileUtils.readTextFile(new File("/data/misc/adb/adb_keys"), 0, null)); in dump() 1753 FileUtils.readTextFile(new File("/adb_keys"), 0, null)); in dump() 1760 FileUtils.readTextFile(getAdbTempKeysFile(), 0, null)); in dump()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ShutdownThread.java | 746 filename = FileUtils.readTextFile(RecoverySystem.UNCRYPT_PACKAGE_FILE, 0, null); in uncrypt()
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 601 filename = FileUtils.readTextFile(packageFile, 0, null); in performPendingShutdown()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 2765 String[] parameters = FileUtils.readTextFile(state, 0, null).split("\n", -1);
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 11461 HSPLandroid/os/FileUtils;->readTextFile(Ljava/io/File;ILjava/lang/String;)Ljava/lang/String;
|