/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | file_utils.cpp | 45 /* 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 …]
|
D | file_utils.h | 29 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);
|
D | mmapped_buffer.cpp | 73 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()
|
D | dict_file_writing_utils.cpp | 65 /* static */ bool DictFileWritingUtils::createEmptyV4DictFile(const char *const dirPath, in createEmptyV4DictFile() argument 79 return dictBuffers->flush(dirPath); in createEmptyV4DictFile()
|
D | mmapped_buffer.h | 38 static MmappedBufferPtr openBuffer(const char *const dirPath, const char *const fileName,
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | StubProvider.java | 199 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/ |
D | FileUtils.java | 366 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/ |
D | dictionary_structure_with_buffer_policy_factory.h | 60 static void getHeaderFilePathInDictDir(const char *const dirPath,
|
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | DataModel.java | 273 String dirPath = fullPath.substring(0, fileNameStart); in doInBackground() local 274 paths.add(dirPath); in doInBackground()
|
/packages/services/Car/watchdog/server/src/ |
D | ProcPidStat.h | 85 virtual std::string dirPath() { return mPath; } in dirPath() function
|
D | IoPerfCollection.cpp | 563 mProcPidStat->dirPath().c_str()), in dumpCollectorsStatusLocked()
|
/packages/services/Car/watchdog/server/tests/ |
D | IoPerfCollectionTest.cpp | 105 std::string dirPath() override { return kProcDirPath; } in dirPath() function in android::automotive::watchdog::__anon41d9652f0111::ProcPidStatStub
|