Home
last modified time | relevance | path

Searched refs:toPath (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DProcTimeInStateReaderTest.java59 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()
DProcStatsUtilTest.java171 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()
DKernelCpuProcStringReaderTest.java106 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()
DStoragedUidIoStatsReaderTest.java95 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()
DKernelCpuThreadReaderTest.java79 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/
DMtpUtils.cpp120 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()
DMtpUtils.h34 int copyRecursive(const char *fromPath, const char *toPath);
35 int copyFile(const char *fromPath, const char *toPath);
/frameworks/base/core/java/android/gesture/
DGesture.java125 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()
DOrientedBoundingBox.java55 public Path toPath() { in toPath() method in OrientedBoundingBox
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DCornerPathRenderer.java62 return toPath(points); in approximateInnerPath()
90 private Path toPath(List<PointF> points) { in toPath() method in CornerPathRenderer
/frameworks/base/core/java/android/app/backup/
DBackupUtils.java47 if (file.toPath().startsWith(canonicalPath)) { in isFileSpecifiedInPathList()
/frameworks/base/core/java/com/android/server/
DSystemConfig.java897 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/
DTestHarnessModeService.java179 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/
DAppMetadataBackupWriterTest.java430 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/
DDexMetadataHelperTest.java147 Files.createFile(invalidDmFile.toPath()); in testParsePackageWithDmFileInvalid()
163 Files.createFile(invalidDmFile.toPath()); in testParsePackageSplitsWithDmFileInvalid()
/frameworks/base/core/java/com/android/internal/os/
DStoragedUidIoStatsReader.java79 try (BufferedReader reader = Files.newBufferedReader(file.toPath())) { in readAbsolute()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotLoader.java75 final byte[] bytes = Files.readAllBytes(protoFile.toPath()); in loadTask()
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFont_Builder_Delegate.java78 byte[] byteArray = Files.readAllBytes(new File(fullPath).toPath()); in nGetAssetBuffer()
/frameworks/layoutlib/bridge/src/android/util/
DPathParser_Delegate.java150 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/
DFontFallbackSetup.java68 Files.copy(is, outInCache.toPath(), StandardCopyOption.REPLACE_EXISTING); in FontFallbackSetup()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackStore.java224 Files.copy(sourceFile.toPath(), targetFile.toPath()); in backupPackageCodePath()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DPersistAtomsStorage.java132 Files.readAllBytes(mContext.getFileStreamPath(FILENAME).toPath())); in loadAtomsFromFile()
/frameworks/base/apct-tests/perftests/core/src/android/database/
DSQLiteDatabaseIoPerfTest.java155 List<String> lines = Files.readAllLines(new File(ioStat).toPath()); in getIoStats()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java421 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/
DRenamingDelegatingContext.java247 Files.setPosixFilePermissions(mCacheDir.toPath(), in getCacheDir()

12