/cts/suite/audio_quality/test/ |
FileUtilTest.cpp | 31 android::String8 dirPath; 32 ASSERT_TRUE(FileUtil::prepare(dirPath)); 33 ASSERT_TRUE(dirPath.find("reports/") == 0); 34 LOGI("returned %s %d", dirPath.string(), dirPath.find("reports/")); 37 ASSERT_TRUE(dirPath == dirPath2);
|
/external/webrtc/talk/app/webrtc/java/src/org/webrtc/ |
CallSessionFileRotatingLogSink.java | 37 public static byte[] getLogData(String dirPath) { 38 return nativeGetLogData(dirPath); 42 String dirPath, int maxFileSize, Logging.Severity severity) { 43 nativeSink = nativeAddSink(dirPath, maxFileSize, severity.ordinal()); 54 String dirPath, int maxFileSize, int severity); 56 private static native byte[] nativeGetLogData(String dirPath);
|
/sdk/find_lock/ |
find_lock_exe.cpp | 32 CPath dirPath;
39 } else if (dirPath.isEmpty()) {
40 dirPath.set(argv[i]);
47 if (dirPath.isEmpty()) {
51 } else if (!dirPath.dirExists()) {
52 fprintf(stderr, "Error: '%s' is not a valid directory.\n", dirPath.cstr());
71 if (findLock(dirPath, &result)) {
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
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);
|
file_utils.cpp | 45 /* static */ bool FileUtils::existsDir(const char *const dirPath) { 46 DIR *const dir = opendir(dirPath); 55 /* static */ bool FileUtils::removeDirAndFiles(const char *const dirPath) { 56 return removeDirAndFiles(dirPath, 5 /* maxTries */); 60 /* static */ bool FileUtils::removeDirAndFiles(const char *const dirPath, const int maxTries) { 61 DIR *const dir = opendir(dirPath); 63 AKLOGE("Cannot open dir %s.", dirPath); 74 const int filePathBufSize = getFilePathBufSize(dirPath, dirent->d_name); 76 getFilePath(dirPath, dirent->d_name, filePathBufSize, filePath); 84 if (remove(dirPath) != 0) [all...] |
mmapped_buffer.h | 38 static MmappedBufferPtr openBuffer(const char *const dirPath, const char *const fileName,
|
mmapped_buffer.cpp | 73 const char *const dirPath, const char *const fileName, const bool isUpdatable) { 76 const int filePathLength = snprintf(filePath, filePathBufferSize, "%s%s", dirPath,
|
dict_file_writing_utils.cpp | 65 /* static */ bool DictFileWritingUtils::createEmptyV4DictFile(const char *const dirPath, 79 return dictBuffers->flush(dirPath);
|
/external/webrtc/talk/app/webrtc/objc/public/ |
RTCFileLogger.h | 68 - (instancetype)initWithDirPath:(NSString *)dirPath 71 - (instancetype)initWithDirPath:(NSString *)dirPath
|
/hardware/interfaces/cas/1.0/default/ |
FactoryLoader.h | 95 String8 dirPath("/vendor/lib/mediacas"); 96 DIR* pDir = opendir(dirPath.string()); 99 ALOGE("Failed to open plugin directory %s", dirPath.string()); 105 String8 pluginPath = dirPath + "/" + pEntry->d_name; 130 String8 dirPath("/vendor/lib/mediacas"); 131 DIR* pDir = opendir(dirPath.string()); 134 ALOGE("Failed to open plugin directory %s", dirPath.string()); 142 String8 pluginPath = dirPath + "/" + pEntry->d_name;
|
/cts/suite/audio_quality/lib/include/ |
FileUtil.h | 36 * @param dirPath returns path of created dir 38 static bool prepare(android::String8& dirPath); 55 // store dirPath to prevent creating multiple times
|
/external/skia/tools/ |
picture_utils.h | 43 * @param dirPath directory within which to write the image file 44 * @param subdirOrNull subdirectory within dirPath, or nullptr to just write into dirPath 49 bool write_bitmap_to_disk(const SkBitmap& bm, const SkString& dirPath,
|
picture_utils.cpp | 58 bool write_bitmap_to_disk(const SkBitmap& bm, const SkString& dirPath, 62 partialPath = SkOSPath::Join(dirPath.c_str(), subdirOrNull); 65 partialPath.set(dirPath);
|
/external/lzma/CPP/7zip/Bundles/SFXSetup/ |
ExtractEngine.cpp | 62 FString dirPath = DestFolder;
63 NName::NormalizeDirPathPrefix(dirPath);
65 if (!CreateComplexDir(dirPath))
71 fs2us(dirPath));
76 ExtractCallbackSpec->Init(ArchiveLink.GetArchive(), dirPath, L"Default", fi.MTime, 0);
|
/external/webrtc/talk/app/webrtc/objc/ |
RTCFileLogger.mm | 60 - (instancetype)initWithDirPath:(NSString *)dirPath 62 return [self initWithDirPath:dirPath 67 - (instancetype)initWithDirPath:(NSString *)dirPath 70 NSParameterAssert(dirPath.length); 75 if ([fileManager fileExistsAtPath:dirPath isDirectory:&isDir]) { 81 if (![fileManager createDirectoryAtPath:dirPath 89 _dirPath = dirPath;
|
/external/google-breakpad/src/client/mac/crash_generation/ |
ConfigFile.h | 38 BOOL EnsureDirectoryPathExists(NSString *dirPath);
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
FilesTest.java | 181 Path dirPath = filesSetup.getPathInTestDir("dir1/dir2/dir3"); 182 assertFalse(Files.exists(dirPath)); 183 Files.createDirectories(dirPath); 184 assertTrue(Files.isDirectory(dirPath)); 187 Files.createDirectories(dirPath); 200 Path dirPath = filesSetup.getPathInTestDir("dir1/dir2/dir3"); 203 assertFalse(Files.exists(dirPath)); 204 Files.createDirectories(dirPath, attr); 205 assertEquals(attr.value(), Files.getAttribute(dirPath, attr.name())); 210 Files.createDirectories(dirPath, attr) [all...] |
DefaultFileSystemProviderTest.java | 551 Path dirPath = filesSetup.getPathInTestDir("dir"); 552 Files.createDirectory(dirPath); 553 provider.delete(dirPath); 554 assertFalse(Files.exists(dirPath)); 558 Files.createDirectory(dirPath); 561 provider.delete(dirPath); 584 Path dirPath = filesSetup.getPathInTestDir("dir"); 585 Files.createDirectory(dirPath); 586 assertTrue(Files.deleteIfExists(dirPath)); 587 assertFalse(Files.exists(dirPath)); [all...] |
DefaultFileSystemProvider2Test.java | 165 Path dirPath = filesSetup.getPathInTestDir("dir1"); 169 Files.createDirectory(dirPath); 173 provider.move(dirPath, dirPath2); 184 assertFalse(Files.exists(dirPath)); 191 Path dirPath = filesSetup.getPathInTestDir("dir1"); 193 Files.createDirectory(dirPath); 195 Files.createFile(Paths.get(dirPath.toString(), DATA_FILE)); 198 Files.copy(dirPath, dirPath4, REPLACE_EXISTING);
|
/cts/suite/audio_quality/lib/src/ |
FileUtil.cpp | 34 bool FileUtil::prepare(android::String8& dirPath) 37 dirPath = mDirPath; 74 dirPath = path;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/ |
dictionary_structure_with_buffer_policy_factory.h | 60 static void getHeaderFilePathInDictDir(const char *const dirPath,
|
/external/lzma/CPP/Windows/ |
FileName.h | 17 void NormalizeDirPathPrefix(FString &dirPath); // ensures that it ended with '\\', if dirPath is not epmty
18 void NormalizeDirPathPrefix(UString &dirPath);
|
FileName.cpp | 44 void NormalizeDirPathPrefix(FString &dirPath)
46 if (dirPath.IsEmpty())
48 if (!IsPathSepar(dirPath.Back()))
49 dirPath.Add_PathSepar();
53 void NormalizeDirPathPrefix(UString &dirPath)
55 if (dirPath.IsEmpty())
57 if (!IsPathSepar(dirPath.Back()))
58 dirPath.Add_PathSepar();
|
/external/deqp/framework/delibs/decpp/ |
deFilePath.cpp | 259 FilePath dirPath = FilePath::normalize(path); 260 FilePath parentPath (dirPath.getDirName()); 262 if (dirPath.exists())
|
/frameworks/base/core/java/android/os/ |
FileUtils.java | 438 public static boolean contains(String dirPath, String filePath) { 439 if (dirPath.equals(filePath)) { 442 if (!dirPath.endsWith("/")) { 443 dirPath += "/"; 445 return filePath.startsWith(dirPath);
|