Home
last modified time | relevance | path

Searched refs:dirPath (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dfile_utils.cpp45 /* static */ bool FileUtils::existsDir(const char *const dirPath) { in existsDir() argument
46 DIR *const dir = opendir(dirPath); in existsDir()
55 /* static */ bool FileUtils::removeDirAndFiles(const char *const dirPath) { in removeDirAndFiles() argument
56 return removeDirAndFiles(dirPath, 5 /* maxTries */); in removeDirAndFiles()
60 /* static */ bool FileUtils::removeDirAndFiles(const char *const dirPath, const int maxTries) { in removeDirAndFiles() argument
61 DIR *const dir = opendir(dirPath); in removeDirAndFiles()
63 AKLOGE("Cannot open dir %s.", dirPath); in removeDirAndFiles()
74 const int filePathBufSize = getFilePathBufSize(dirPath, dirent->d_name); in removeDirAndFiles()
76 getFilePath(dirPath, dirent->d_name, filePathBufSize, filePath); in removeDirAndFiles()
84 if (remove(dirPath) != 0) { in removeDirAndFiles()
[all …]
Dfile_utils.h29 static bool existsDir(const char *const dirPath);
32 static bool removeDirAndFiles(const char *const dirPath);
39 static int getFilePathBufSize(const char *const dirPath, const char *const fileName);
41 static void getFilePath(const char *const dirPath, const char *const fileName,
57 static bool removeDirAndFiles(const char *const dirPath, const int maxTries);
Dmmapped_buffer.cpp73 const char *const dirPath, const char *const fileName, const bool isUpdatable) { in openBuffer() argument
76 const int filePathLength = snprintf(filePath, filePathBufferSize, "%s%s", dirPath, in openBuffer()
Ddict_file_writing_utils.cpp65 /* static */ bool DictFileWritingUtils::createEmptyV4DictFile(const char *const dirPath, in createEmptyV4DictFile() argument
79 return dictBuffers->flush(dirPath); in createEmptyV4DictFile()
Dmmapped_buffer.h38 static MmappedBufferPtr openBuffer(const char *const dirPath, const char *const fileName,
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java199 private static boolean contains(String dirPath, String filePath) { in contains() argument
200 if (dirPath.equals(filePath)) { in contains()
203 if (!dirPath.endsWith("/")) { in contains()
204 dirPath += "/"; in contains()
206 return filePath.startsWith(dirPath); in contains()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java366 public static boolean contains(String dirPath, String filePath) { in contains() argument
367 if (dirPath.equals(filePath)) { in contains()
370 if (!dirPath.endsWith("/")) { in contains()
371 dirPath += "/"; in contains()
373 return filePath.startsWith(dirPath); in contains()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
Ddictionary_structure_with_buffer_policy_factory.h60 static void getHeaderFilePathInDictDir(const char *const dirPath,
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DDataModel.java273 String dirPath = fullPath.substring(0, fileNameStart); in doInBackground() local
274 paths.add(dirPath); in doInBackground()
/packages/services/Car/watchdog/server/src/
DProcPidStat.h85 virtual std::string dirPath() { return mPath; } in dirPath() function
DIoPerfCollection.cpp563 mProcPidStat->dirPath().c_str()), in dumpCollectorsStatusLocked()
/packages/services/Car/watchdog/server/tests/
DIoPerfCollectionTest.cpp105 std::string dirPath() override { return kProcDirPath; } in dirPath() function in android::automotive::watchdog::__anon41d9652f0111::ProcPidStatStub