Home
last modified time | relevance | path

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

123

/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()
157 int copyFile(const char *fromPath, const char *toPath) { in copyFile() argument
165 android::base::unique_fd toFd(open(toPath, O_CREAT | O_WRONLY, FILE_PERM)); in copyFile()
167 PLOG(ERROR) << "Failed to open copy to " << toPath; in copyFile()
192 chown(toPath, getuid(), FILE_GROUP); in copyFile()
193 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/services/core/java/com/android/server/security/
DFileIntegrityService.java138 loadCertificatesFromDirectory(Environment.getRootDirectory().toPath() in loadAllCertificates()
140 loadCertificatesFromDirectory(Environment.getProductDirectory().toPath() in loadAllCertificates()
152 byte[] certificateBytes = Files.readAllBytes(cert.toPath()); in loadCertificatesFromDirectory()
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/
DEncryptedLocalTransport.java70 Files.copy(in, packageFile.toPath(), StandardCopyOption.REPLACE_EXISTING); in performBackup()
94 Files.copy(packageFile.toPath(), out); in getRestoreData()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DIntegrityFileManagerTest.java71 Files.walk(mTmpDir.toPath()) in setUp()
80 Files.walk(mTmpDir.toPath()) in tearDown()
87 Files.walk(mTmpDir.toPath()) in tearDown()
/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/android/os/incremental/
DIncrementalManager.java242 final Path sourceBase = sourceAbsolutePath.toPath().resolve(sourceRelativePath); in linkFiles()
244 Files.walkFileTree(sourceAbsolutePath.toPath(), new SimpleFileVisitor<Path>() { in linkFiles()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java189 writeBytesToFile(persistentData.mAdbKeys, adbManager.getAdbKeysFile().toPath()); in setUpAdbFiles()
192 writeBytesToFile(persistentData.mAdbTempKeys, adbManager.getAdbTempKeysFile().toPath()); in setUpAdbFiles()
359 Path path = file.toPath(); in getBytesFromFile()
/frameworks/base/core/java/com/android/server/
DSystemConfig.java1013 boolean vendor = permFile.toPath().startsWith( in readPermissionsFromXml()
1014 Environment.getVendorDirectory().toPath() + "/") in readPermissionsFromXml()
1015 || permFile.toPath().startsWith( in readPermissionsFromXml()
1016 Environment.getOdmDirectory().toPath() + "/"); in readPermissionsFromXml()
1017 boolean product = permFile.toPath().startsWith( in readPermissionsFromXml()
1018 Environment.getProductDirectory().toPath() + "/"); in readPermissionsFromXml()
1019 boolean systemExt = permFile.toPath().startsWith( in readPermissionsFromXml()
1020 Environment.getSystemExtDirectory().toPath() + "/"); in readPermissionsFromXml()
/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/java/com/android/internal/os/
DStoragedUidIoStatsReader.java79 try (BufferedReader reader = Files.newBufferedReader(file.toPath())) { in readAbsolute()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexMetadataHelperTest.java154 Files.createFile(invalidDmFile.toPath()); in testParsePackageWithDmFileInvalid()
171 Files.createFile(invalidDmFile.toPath()); in testParsePackageSplitsWithDmFileInvalid()
/frameworks/base/core/tests/coretests/src/android/text/
DFontFallbackSetup.java68 Files.copy(is, outInCache.toPath(), StandardCopyOption.REPLACE_EXISTING); in FontFallbackSetup()
/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/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/
DStagedInstallInternalTest.java81 Files.deleteIfExists(mTestStateFile.toPath()); in cleanUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/
DLogBufferEulogizer.kt62 Paths.get(context.filesDir.toPath().toString(), "log_buffers.txt"), in <lambda>()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DPersistAtomsStorage.java132 Files.readAllBytes(mContext.getFileStreamPath(FILENAME).toPath())); in loadAtomsFromFile()

123