/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileUtilsTest.java | 127 assertEquals(TEST_DATA, FileUtils.readTextFile(mCopyFile, 0, null)); in testCopyFile() 136 assertEquals(s, FileUtils.readTextFile(mCopyFile, 0, null)); in testCopyToFile() 352 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 0, null)); in testReadTextFile() 354 assertEquals("ABCDE", FileUtils.readTextFile(mTestFile, 5, null)); in testReadTextFile() 355 assertEquals("ABCDE<>", FileUtils.readTextFile(mTestFile, 5, "<>")); in testReadTextFile() 357 FileUtils.readTextFile(mTestFile, 51, "<>")); in testReadTextFile() 358 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 52, "<>")); in testReadTextFile() 359 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 100, "<>")); in testReadTextFile() 361 assertEquals("vwxyz", FileUtils.readTextFile(mTestFile, -5, null)); in testReadTextFile() 362 assertEquals("<>vwxyz", FileUtils.readTextFile(mTestFile, -5, "<>")); in testReadTextFile() [all …]
|
D | BinderThreadPriorityTest.java | 118 String cgroup = FileUtils.readTextFile(new File(fn), 1024, null); in getSchedulerGroup()
|
/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 | BootReceiver.java | 231 return FileUtils.readTextFile(lastHeaderFile, 0, null); in getPreviousBootHeaders() 246 .append(FileUtils.readTextFile(new File("/proc/version"), 1024, "...\n")); in getCurrentBootHeaders() 472 String fileContents = FileUtils.readTextFile(file, maxSize, TAG_TRUNCATED); in addFileWithFootersToDropBox() 529 String log = FileUtils.readTextFile(file, maxSize, TAG_TRUNCATED); in addAuditErrorsToDropBox() 554 String log = FileUtils.readTextFile(file, maxSize, TAG_TRUNCATED); in addFsckErrorsToDropBoxAndLogFsStat() 619 metricsStr = FileUtils.readTextFile(metricsFile, 0, null); in logSystemServerShutdownTimeMetrics() 732 lines = FileUtils.readTextFile(f, -maxReadSize, null); in logFsShutdownTime()
|
D | ExtconUEventObserver.java | 222 String name = FileUtils.readTextFile(new File(cableDir, "name"), 0, null); in ExtconInfo()
|
D | RescueParty.java | 1019 .readTextFile(new File("/sys/class/android_usb/android0/state"), 128, ""); in isUsbActive()
|
D | Watchdog.java | 1091 final String state = FileUtils.readTextFile( in hasActiveUsbConnection()
|
/frameworks/base/core/tests/packagemanagertests/src/android/content/pm/ |
D | KernelPackageMappingTests.java | 71 return FileUtils.readTextFile(file, 0, null).trim(); in getContent()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | CpuScalingPolicyReader.java | 128 String contents = FileUtils.readTextFile(file, 0, null).trim(); in readIntsFromFile()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | IonMemoryUtil.java | 128 return FileUtils.readTextFile(file, 0 /* max */, null /* ellipsis */); in readFile()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | MemoryStatUtil.java | 108 return FileUtils.readTextFile(file, 0 /* max */, null /* ellipsis */); in readFileContents()
|
/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/ |
D | RemoteProvisioningShellCommandTest.java | 126 code, FileUtils.readTextFile(out, 0, null), FileUtils.readTextFile(err, 0, null)); in exec()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceTest.java | 94 String s = FileUtils.readTextFile(restrictionsFile, 10000, ""); in testWriteReadApplicationRestrictions()
|
/frameworks/base/core/java/android/os/ |
D | RecoverySystem.java | 1313 log = FileUtils.readTextFile(LOG_FILE, -LOG_FILE_MAX_LENGTH, "...\n"); in handleAftermath() 1326 filename = FileUtils.readTextFile(UNCRYPT_PACKAGE_FILE, 0, null); in handleAftermath()
|
D | FileUtils.java | 742 public static String readTextFile(File file, int max, String ellipsis) throws IOException { in readTextFile() method in FileUtils
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 1710 FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim()); in dump() 1721 FileUtils.readTextFile(new File(FUNCTIONS_PATH), 0, null).trim()); in dump() 1807 String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); in UsbHandlerLegacy() 2202 String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); in UsbHandlerHal()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/ |
D | UpdatableFontDirTest.java | 89 String content = FileUtils.readTextFile(file, 100, ""); in getPostScriptName() 95 String content = FileUtils.readTextFile(file, 100, ""); in buildFontFileName() 101 String content = FileUtils.readTextFile(file, 100, ""); in getRevision()
|
/frameworks/base/services/core/java/com/android/server/adb/ |
D | AdbDebuggingManager.java | 1818 FileUtils.readTextFile(userKeys, 0, null)); in dump() 1828 FileUtils.readTextFile(new File("/adb_keys"), 0, null)); in dump() 1835 FileUtils.readTextFile(mTempKeysFile, 0, null)); in dump()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ShutdownThread.java | 825 filename = FileUtils.readTextFile(RecoverySystem.UNCRYPT_PACKAGE_FILE, 0, null);
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 1015 filename = FileUtils.readTextFile(packageFile, 0, null); in performPendingShutdown()
|