/external/llvm/unittests/Transforms/DebugIR/ |
D | DebugIR.cpp | 58 bool removeIfExists(StringRef Path) { in removeIfExists() argument 61 std::error_code EC = sys::fs::remove(Path, false); in removeIfExists() 85 SmallVector<char, 8> Path; in getPath() local 86 sys::path::append(Path, Dir, Filename); in getPath() 87 Path.resize(Dir.size() + Filename.size() + 2); in getPath() 88 Path[Dir.size() + Filename.size() + 1] = '\0'; in getPath() 89 return string(Path.data()); in getPath() 102 string Path(getPath(Dir, File)); in TEST_F() local 104 M.reset(createEmptyModule(Path)); in TEST_F() 111 ASSERT_FALSE(removeIfExists(Path)) << "Unexpected file " << Path; in TEST_F() [all …]
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
D | path.cc | 15 Path::Path(const Path& path) { in Path() function in nacl_io::Path 19 Path::Path(const std::string& path) { in Path() function in nacl_io::Path 23 bool Path::IsAbsolute() const { in IsAbsolute() 27 const std::string& Path::Part(size_t index) const { in Part() 31 size_t Path::Size() const { in Size() 35 bool Path::IsRoot() const { in IsRoot() 39 Path& Path::Append(const std::string& path) { in Append() 55 Path& Path::Prepend(const std::string& path) { in Prepend() 71 Path& Path::Set(const std::string& path) { in Set() 77 Path Path::Parent() const { in Parent() [all …]
|
D | path.h | 17 class Path { 19 Path() {} in Path() function 20 Path(const Path& path); 25 explicit Path(const std::string& path); 40 Path& Append(const std::string& path); 41 Path& Prepend(const std::string& path); 42 Path& Set(const std::string& path); 45 Path Parent() const; 60 Path& operator=(const Path& p); 61 Path& operator=(const std::string& str); [all …]
|
D | filesystem.h | 68 virtual Error OpenWithMode(const Path& path, 76 Error Open(const Path& path, 83 virtual Error OpenResource(const Path& path, ScopedNode* out_node); 87 virtual Error Unlink(const Path& path) = 0; 88 virtual Error Mkdir(const Path& path, int permissions) = 0; 89 virtual Error Rmdir(const Path& path) = 0; 90 virtual Error Remove(const Path& path) = 0; 91 virtual Error Rename(const Path& path, const Path& newpath) = 0;
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
D | filesystem_test.cc | 33 if (Open(Path(filename), O_RDONLY, &node)) in Exists() 61 EXPECT_EQ(ENOENT, fs.Open(Path("/foo"), O_RDWR, &result_node)); in TEST() 66 EXPECT_EQ(0, fs.Open(Path("/foo"), O_RDWR | O_CREAT, &file)); in TEST() 77 EXPECT_EQ(0, fs.Open(Path("/"), O_RDONLY, &root)); in TEST() 81 EXPECT_EQ(EISDIR, fs.Open(Path("/"), O_RDWR, &root)); in TEST() 85 EXPECT_EQ(0, fs.Open(Path("/"), O_RDONLY, &root)); in TEST() 96 fs.Open(Path("/foo"), O_RDWR | O_CREAT | O_EXCL, &result_node)); in TEST() 101 EXPECT_EQ(EEXIST, fs.Mkdir(Path("/foo"), O_RDWR)); in TEST() 120 EXPECT_EQ(0, fs.Open(Path("/foo"), O_RDWR | O_CREAT, &result_node)); in TEST() 133 EXPECT_EQ(0, fs.Unlink(Path("/foo"))); in TEST() [all …]
|
D | mock_fs.h | 16 typedef nacl_io::Path Path; typedef 26 MOCK_METHOD2(Access, Error(const Path&, int)); 27 MOCK_METHOD3(Open, Error(const Path&, int, ScopedNode*)); 28 MOCK_METHOD4(OpenWithMode, Error(const Path&, int, mode_t, ScopedNode*)); 29 MOCK_METHOD2(OpenResource, Error(const Path&, ScopedNode*)); 30 MOCK_METHOD1(Unlink, Error(const Path&)); 31 MOCK_METHOD2(Mkdir, Error(const Path&, int)); 32 MOCK_METHOD1(Rmdir, Error(const Path&)); 33 MOCK_METHOD1(Remove, Error(const Path&)); 34 MOCK_METHOD2(Rename, Error(const Path&, const Path&));
|
D | path_test.cc | 16 Path ph1("."); in TEST() 17 Path *ph2 = new Path("."); in TEST() 20 Path p1("."); in TEST() 23 Path p2("/"); in TEST() 29 Path empty; in TEST() 30 Path dot("."); in TEST() 31 Path root("/"); in TEST() 32 Path abs_str("/abs/from/string"); in TEST() 33 Path rel_str("rel/from/string"); in TEST() 34 Path self_str("./rel/from/string"); in TEST() [all …]
|
D | http_fs_test.cc | 85 ASSERT_EQ(EIO, fs_.Open(Path("/file"), O_RDONLY, &node)); in TEST_P() 99 ASSERT_EQ(0, fs_.Open(Path("/file"), O_RDONLY, &node)); in TEST_P() 129 ASSERT_EQ(0, fs_.Open(Path("/file"), O_RDONLY, &node)); in TEST_P() 153 ASSERT_EQ(0, fs_.Open(Path("/file"), O_WRONLY, &node)); in TEST_P() 168 ASSERT_EQ(0, fs_.Open(Path("/file"), O_RDONLY, &node)); in TEST_P() 185 ASSERT_EQ(0, fs_.Open(Path("/file"), O_RDWR, &node)); in TEST_P() 212 ASSERT_EQ(0, fs_.Open(Path("/file"), O_RDONLY, &node)); in TEST_P() 242 ASSERT_EQ(0, fs_.Open(Path("/file"), O_RDONLY, &node)); in TEST_P() 268 ASSERT_EQ(0, fs.Open(Path("/"), O_RDONLY, &node)); in TEST() 283 EXPECT_EQ(EEXIST, fs.Mkdir(Path("/"), 0)); in TEST() [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
D | Path.cpp | 44 Path::Path() in Path() function in blink::Path 49 Path::Path(const Path& other) in Path() function in blink::Path 54 Path::~Path() in ~Path() 58 Path& Path::operator=(const Path& other) in operator =() 64 bool Path::operator==(const Path& other) const in operator ==() 69 bool Path::contains(const FloatPoint& point, WindRule rule) const in contains() 74 bool Path::strokeContains(const FloatPoint& point, const StrokeData& strokeData) const in strokeContains() 84 FloatRect Path::boundingRect() const in boundingRect() 89 FloatRect Path::strokeBoundingRect(const StrokeData& strokeData) const in strokeBoundingRect() 108 void Path::apply(void* info, PathApplierFunction function) const in apply() [all …]
|
D | Path.h | 68 class PLATFORM_EXPORT Path { 71 Path(); 72 ~Path(); 74 Path(const Path&); 75 Path& operator=(const Path&); 76 bool operator==(const Path&) const; 97 explicit PositionCalculator(const Path&); 133 void addPath(const Path&, const AffineTransform&); 145 bool subtractPath(const Path&); 146 bool intersectPath(const Path&); [all …]
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/html5fs/ |
D | html5_fs.h | 21 virtual Error OpenWithMode(const Path& path, int open_flags, mode_t mode, 23 virtual Error Unlink(const Path& path); 24 virtual Error Mkdir(const Path& path, int permissions); 25 virtual Error Rmdir(const Path& path); 26 virtual Error Remove(const Path& path); 27 virtual Error Rename(const Path& path, const Path& newpath); 35 static ino_t HashPath(const Path& path); 47 virtual Error RemoveInternal(const Path& path, int remove_type); 53 Path GetFullPath(const Path& path);
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/memfs/ |
D | mem_fs.h | 29 virtual Error FindNode(const Path& path, int type, ScopedNode* out_node); 32 virtual Error OpenWithMode(const Path& path, int open_flags, mode_t mode, 34 virtual Error Unlink(const Path& path); 35 virtual Error Mkdir(const Path& path, int perm); 36 virtual Error Rmdir(const Path& path); 37 virtual Error Remove(const Path& path); 38 virtual Error Rename(const Path& path, const Path& newpath); 45 Error RemoveInternal(const Path& path, int remove_type);
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/httpfs/ |
D | http_fs.h | 21 virtual Error OpenWithMode(const Path& path, int open_flags, mode_t mode, 23 virtual Error Unlink(const Path& path); 24 virtual Error Mkdir(const Path& path, int permissions); 25 virtual Error Rmdir(const Path& path); 26 virtual Error Remove(const Path& path); 27 virtual Error Rename(const Path& path, const Path& newpath); 38 ScopedNode FindExistingNode(const Path& path); 39 Error FindOrCreateDir(const Path& path, ScopedNode* out_node); 49 std::string MakeUrl(const Path& path);
|
/external/chromium_org/content/browser/fileapi/ |
D | native_file_util_unittest.cc | 29 base::FilePath Path() { in Path() function in content::NativeFileUtilTest 33 base::FilePath Path(const char* file_name) { in Path() function in content::NativeFileUtilTest 55 base::FilePath file_name = Path("test_file"); in TEST_F() 79 base::FilePath file_name = Path("foobar"); in TEST_F() 94 base::FilePath dir_name = Path("test_dir"); in TEST_F() 115 base::FilePath file_name = Path("test_file"); in TEST_F() 151 base::FilePath path_1 = Path("dir1"); in TEST_F() 152 base::FilePath path_2 = Path("file1"); in TEST_F() 153 base::FilePath path_11 = Path("dir1").AppendASCII("file11"); in TEST_F() 154 base::FilePath path_12 = Path("dir1").AppendASCII("dir12"); in TEST_F() [all …]
|
/external/chromium_org/ui/gfx/ |
D | path.cc | 11 Path::Path() in Path() function in gfx::Path 15 Path::Path(const Point* points, size_t count) { in Path() function in gfx::Path 22 Path::Path(const PointF* points, size_t count) { in Path() function in gfx::Path 29 Path::~Path() { in ~Path()
|
D | path.h | 15 class GFX_EXPORT Path : public SkPath { 27 Path(); 30 Path(const Point* points, size_t count); 31 Path(const PointF* points, size_t count); 33 ~Path(); 56 DISALLOW_COPY_AND_ASSIGN(Path);
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/passthroughfs/ |
D | passthrough_fs.h | 21 virtual Error OpenWithMode(const Path& path, int open_flags, mode_t mode, 23 virtual Error OpenResource(const Path& path, ScopedNode* out_node); 24 virtual Error Unlink(const Path& path); 25 virtual Error Mkdir(const Path& path, int perm); 26 virtual Error Rmdir(const Path& path); 27 virtual Error Remove(const Path& path); 28 virtual Error Rename(const Path& path, const Path& newpath);
|
D | passthrough_fs.cc | 25 Error PassthroughFs::OpenWithMode(const Path& path, int open_flags, in OpenWithMode() 37 Error PassthroughFs::OpenResource(const Path& path, ScopedNode* out_node) { in OpenResource() 48 Error PassthroughFs::Unlink(const Path& path) { in Unlink() 53 Error PassthroughFs::Mkdir(const Path& path, int perm) { in Mkdir() 57 Error PassthroughFs::Rmdir(const Path& path) { in Rmdir() 61 Error PassthroughFs::Remove(const Path& path) { in Remove() 66 Error PassthroughFs::Rename(const Path& path, const Path& newpath) { in Rename()
|
/external/chromium_org/third_party/WebKit/Source/core/paint/ |
D | DetailsMarkerPainter.cpp | 40 static Path createPath(const FloatPoint* path) in createPath() 42 Path result; in createPath() 49 static Path createDownArrowPath() in createDownArrowPath() 55 static Path createUpArrowPath() in createUpArrowPath() 61 static Path createLeftArrowPath() in createLeftArrowPath() 67 static Path createRightArrowPath() in createRightArrowPath() 73 Path DetailsMarkerPainter::getCanonicalPath() const in getCanonicalPath() 82 return Path(); in getCanonicalPath() 85 Path DetailsMarkerPainter::getPath(const LayoutPoint& origin) const in getPath() 87 Path result = getCanonicalPath(); in getPath()
|
/external/clang/lib/Tooling/ |
D | FileMatchTrie.cpp | 57 if (Path.empty()) { in insert() 59 Path = NewPath; in insert() 64 if (NewPath == Path) in insert() 68 StringRef(Path).drop_back(ConsumedLength))); in insert() 69 Children[Element].Path = Path; in insert() 102 if (Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent() 103 return StringRef(Path); in findEquivalent() 137 if (Path.empty()) in getAll() 140 Results.push_back(StringRef(Path)); in getAll() 154 std::string Path; member in clang::tooling::FileMatchTrieNode
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/devfs/ |
D | dev_fs.h | 17 virtual Error OpenWithMode(const Path& path, int open_flags, mode_t mode, 19 virtual Error Unlink(const Path& path); 20 virtual Error Mkdir(const Path& path, int permissions); 21 virtual Error Rmdir(const Path& path); 22 virtual Error Remove(const Path& path); 23 virtual Error Rename(const Path& path, const Path& newpath);
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/stream/ |
D | stream_fs.h | 57 virtual Error OpenWithMode(const Path& path, int o_flags, mode_t mode, 59 virtual Error Unlink(const Path& path); 60 virtual Error Mkdir(const Path& path, int permissions); 61 virtual Error Rmdir(const Path& path); 62 virtual Error Remove(const Path& path); 63 virtual Error Rename(const Path& path, const Path& newpath);
|
/external/clang/lib/Basic/ |
D | VirtualFileSystem.cpp | 163 ErrorOr<Status> status(const Twine &Path) override; 164 std::error_code openFileForRead(const Twine &Path, 170 ErrorOr<Status> RealFileSystem::status(const Twine &Path) { in status() argument 172 if (std::error_code EC = sys::fs::status(Path, RealStatus)) in status() 175 Result.setName(Path.str()); in status() 196 std::string Path; member in __anon0ae46cf00311::RealFSDirIter 200 : Path(_Path.str()), Iter(Path, EC) { in RealFSDirIter() 245 ErrorOr<Status> OverlayFileSystem::status(const Twine &Path) { in status() argument 248 ErrorOr<Status> Status = (*I)->status(Path); in status() 256 OverlayFileSystem::openFileForRead(const llvm::Twine &Path, in openFileForRead() argument [all …]
|
D | FileSystemStatCache.cpp | 54 bool FileSystemStatCache::get(const char *Path, FileData &Data, bool isFile, in get() argument 62 R = Cache->getStat(Path, Data, isFile, F, FS); in get() 66 llvm::ErrorOr<vfs::Status> Status = FS.status(Path); in get() 82 std::error_code EC = FS.openFileForRead(Path, OwnedFile); in get() 122 MemorizeStatCalls::getStat(const char *Path, FileData &Data, bool isFile, in getStat() argument 124 LookupResult Result = statChained(Path, Data, isFile, F, FS); in getStat() 134 if (!Data.IsDirectory || llvm::sys::path::is_absolute(Path)) in getStat() 135 StatCalls[Path] = Data; in getStat()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | PathTest.java | 3 import android.graphics.Path; 22 Path path = Robolectric.newInstanceOf(Path.class); in testGradTo() 30 Path path = Robolectric.newInstanceOf(Path.class); in testMoveTo() 42 Path path = Robolectric.newInstanceOf(Path.class); in testLineTo()
|