/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | ProcTimeInStateReaderTest.java | 59 Path initialTimeInStateFile = mProcDirectory.toPath().resolve("initial-time-in-state"); in testSimple() 75 final Path initialTimeInStateFile = mProcDirectory.toPath().resolve( in testHeaderFormat() 92 Path initialTimeInStateFile = mProcDirectory.toPath().resolve("initial-time-in-state"); in testDifferentFile() 96 Path timeInStateFile = mProcDirectory.toPath().resolve("time-in-state"); in testDifferentFile() 106 Path initialTimeInStateFile = mProcDirectory.toPath().resolve("initial-time-in-state"); in testWrongLength() 110 Path timeInStateFile = mProcDirectory.toPath().resolve("time-in-state"); in testWrongLength() 117 Path initialTimeInStateFile = mProcDirectory.toPath().resolve("initial-time-in-state"); in testEmptyInitialFails()
|
D | ProcStatsUtilTest.java | 171 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadNullSeparatedFile() 173 Files.delete(tempFile.toPath()); in runReadNullSeparatedFile() 179 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadSingleLineProcFile() 181 Files.delete(tempFile.toPath()); in runReadSingleLineProcFile() 188 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadTerminatedProcFile() 190 Files.delete(tempFile.toPath()); in runReadTerminatedProcFile()
|
D | KernelCpuProcStringReaderTest.java | 106 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testReadErrorsLimit() 120 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testReadErrorsLimit() 141 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testReadLine() 175 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testMultipleRead() 192 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testReadLineToArray() 230 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testReadOverLimit() 248 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testConcurrent() 300 try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) { in testConcurrent()
|
D | StoragedUidIoStatsReaderTest.java | 95 BufferedWriter bufferedWriter = Files.newBufferedWriter(mTestFile.toPath()); in testReadExpected() 132 BufferedWriter bufferedWriter = Files.newBufferedWriter(mTestFile.toPath()); in testLineDoesNotElevenEntries() 155 BufferedWriter bufferedWriter = Files.newBufferedWriter(mTestFile.toPath()); in testLineIsMalformed()
|
D | KernelCpuThreadReaderTest.java | 79 setupDirectory(mProcDirectory.toPath().resolve(String.valueOf(uid)), in testReader_byUids() 87 mProcDirectory.toPath(), in testReader_byUids() 88 mProcDirectory.toPath().resolve(uids[0] + "/task/" + uids[0] + "/time_in_state"), in testReader_byUids()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 120 int copyRecursive(const char *fromPath, const char *toPath) { in copyRecursive() argument 123 string toPathStr(toPath); in copyRecursive() 156 int copyFile(const char *fromPath, const char *toPath) { in copyFile() argument 164 android::base::unique_fd toFd(open(toPath, O_CREAT | O_WRONLY, FILE_PERM)); in copyFile() 166 PLOG(ERROR) << "Failed to open copy to " << toPath; in copyFile() 191 chown(toPath, getuid(), FILE_GROUP); in copyFile() 192 access_ok(toPath); in copyFile()
|
D | MtpUtils.h | 34 int copyRecursive(const char *fromPath, const char *toPath); 35 int copyFile(const char *fromPath, const char *toPath);
|
/frameworks/base/core/java/android/gesture/ |
D | Gesture.java | 125 public Path toPath() { in toPath() method in Gesture 126 return toPath(null); in toPath() 129 public Path toPath(Path path) { in toPath() method in Gesture 142 public Path toPath(int width, int height, int edge, int numSample) { in toPath() method in Gesture 143 return toPath(null, width, height, edge, numSample); in toPath() 146 public Path toPath(Path path, int width, int height, int edge, int numSample) { in toPath() method in Gesture 153 path.addPath(strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample)); in toPath() 204 Path path = strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample); in toBitmap() 234 final Path path = toPath(); in toBitmap()
|
D | OrientedBoundingBox.java | 55 public Path toPath() { in toPath() method in OrientedBoundingBox
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | CornerPathRenderer.java | 62 return toPath(points); in approximateInnerPath() 90 private Path toPath(List<PointF> points) { in toPath() method in CornerPathRenderer
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupUtils.java | 47 if (file.toPath().startsWith(canonicalPath)) { in isFileSpecifiedInPathList()
|
/frameworks/base/core/java/com/android/server/ |
D | SystemConfig.java | 897 boolean vendor = permFile.toPath().startsWith( in readPermissionsFromXml() 898 Environment.getVendorDirectory().toPath() + "/") in readPermissionsFromXml() 899 || permFile.toPath().startsWith( in readPermissionsFromXml() 900 Environment.getOdmDirectory().toPath() + "/"); in readPermissionsFromXml() 901 boolean product = permFile.toPath().startsWith( in readPermissionsFromXml() 902 Environment.getProductDirectory().toPath() + "/"); in readPermissionsFromXml() 903 boolean systemExt = permFile.toPath().startsWith( in readPermissionsFromXml() 904 Environment.getSystemExtDirectory().toPath() + "/"); in readPermissionsFromXml()
|
/frameworks/base/services/core/java/com/android/server/testharness/ |
D | TestHarnessModeService.java | 179 writeBytesToFile(persistentData.mAdbKeys, adbManager.getAdbKeysFile().toPath()); in setUpAdbFiles() 180 writeBytesToFile(persistentData.mAdbTempKeys, adbManager.getAdbTempKeysFile().toPath()); in setUpAdbFiles() 352 Path path = file.toPath(); in getBytesFromFile()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/ |
D | AppMetadataBackupWriterTest.java | 430 Files.setLastModifiedTime(file.toPath(), FileTime.fromMillis(System.currentTimeMillis())); in modifyFileMetadata() 436 Files.write(apkFile.toPath(), data); in createApkFileAndWrite() 444 Files.write(obbFile.toPath(), data); in createObbFileAndWrite()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/dex/ |
D | DexMetadataHelperTest.java | 147 Files.createFile(invalidDmFile.toPath()); in testParsePackageWithDmFileInvalid() 163 Files.createFile(invalidDmFile.toPath()); in testParsePackageSplitsWithDmFileInvalid()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | StoragedUidIoStatsReader.java | 79 try (BufferedReader reader = Files.newBufferedReader(file.toPath())) { in readAbsolute()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotLoader.java | 75 final byte[] bytes = Files.readAllBytes(protoFile.toPath()); in loadTask()
|
/frameworks/layoutlib/bridge/src/android/graphics/fonts/ |
D | Font_Builder_Delegate.java | 78 byte[] byteArray = Files.readAllBytes(new File(fullPath).toPath()); in nGetAssetBuffer()
|
/frameworks/layoutlib/bridge/src/android/util/ |
D | PathParser_Delegate.java | 150 PathParser_Delegate toPath = PathParser_Delegate.getDelegate(toDataPtr); in nCanMorph() local 151 if (fromPath == null || toPath == null || fromPath.getPathDataNodes() == null || toPath in nCanMorph() 155 return PathParser_Delegate.canMorph(fromPath.getPathDataNodes(), toPath.getPathDataNodes()); in nCanMorph()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | FontFallbackSetup.java | 68 Files.copy(is, outInCache.toPath(), StandardCopyOption.REPLACE_EXISTING); in FontFallbackSetup()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackStore.java | 224 Files.copy(sourceFile.toPath(), targetFile.toPath()); in backupPackageCodePath()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | PersistAtomsStorage.java | 132 Files.readAllBytes(mContext.getFileStreamPath(FILENAME).toPath())); in loadAtomsFromFile()
|
/frameworks/base/apct-tests/perftests/core/src/android/database/ |
D | SQLiteDatabaseIoPerfTest.java | 155 List<String> lines = Files.readAllLines(new File(ioStat).toPath()); in getIoStats()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsDatabase.java | 421 Files.copy(mVersionFile.toPath(), in doUpgradeLocked() 422 new File(backupDir, mVersionFile.getName()).toPath(), in doUpgradeLocked() 451 Files.move(files[j].toPath(), backupFile.toPath(), in doUpgradeLocked()
|
/frameworks/base/test-runner/src/android/test/ |
D | RenamingDelegatingContext.java | 247 Files.setPosixFilePermissions(mCacheDir.toPath(), in getCacheDir()
|