Home
last modified time | relevance | path

Searched refs:dirPath (Results 1 – 7 of 7) 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/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()