Searched defs:path (Results 376 - 400 of 1823) sorted by relevance

<<11121314151617181920>>

/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/
H A DInputStreamSourceFileLocatorTest.java39 protected InputStream getSourceStream(String path) throws IOException { argument
40 final byte[] bytes = sources.get(path);
H A DMemoryMultiReportOutput.java42 public OutputStream createFile(final String path) throws IOException { argument
43 assertFalse("Duplicate output " + path, files.containsKey(path));
44 open.add(path);
48 open.remove(path);
52 files.put(path, out);
64 public void assertFile(String path) { argument
66 path, files.keySet()), files.get(path));
69 public void assertNoFile(String path) { argument
73 assertSingleFile(String path) argument
77 getFile(String path) argument
82 getFileAsStream(String path) argument
[all...]
/external/jarjar/src/main/com/tonicsystems/jarjar/
H A DPackageRemapper.java58 public String mapPath(String path) { argument
59 String s = pathCache.get(path);
61 s = path;
78 return path;
80 pathCache.put(path, s);
/external/jsilver/src/com/google/clearsilver/jsilver/data/
H A DDataContext.java82 * object for this variable is requested, it will return the Data object at the path location or
84 * true}, then if no Data object exists at the path location, it will be created.
87 * @param path The path to the Data object
89 void createLocalVariableByPath(String name, String path); argument
/external/jsoncpp/scons-tools/
H A Dtargz.py13 import os.path namespace
30 def archive_name( path ):
31 path = os.path.normpath( os.path.abspath( path ) )
32 common_path = os.path.commonprefix( (base_dir, path) )
33 archive_name = path[len(common_path):]
38 path
[all...]
/external/jsoncpp/test/
H A Dpyjsontestrunner.py4 import os.path namespace
13 base_path = os.path.splitext(input_path)[0]
18 def valueTreeToString( fout, value, path = '.' ):
21 fout.write( '%s={}\n' % path )
22 suffix = path[-1] != '.' and '.' or ''
26 valueTreeToString( fout, value[name], path + suffix + name )
28 fout.write( '%s=[]\n' % path )
30 valueTreeToString( fout, childValue, path + '[%d]' % index )
32 fout.write( '%s="%s"\n' % (path,value) )
34 fout.write( '%s=%d\n' % (path,valu
[all...]
/external/libbrillo/brillo/dbus/
H A Dexported_object_manager.cc19 const dbus::ObjectPath& path)
20 : bus_(bus), dbus_object_(nullptr, bus, path) {
41 const dbus::ObjectPath& path,
54 signal_itf_added_.lock()->Send(path, interfaces_and_properties);
55 registered_objects_[path][interface_name] = property_writer;
59 const dbus::ObjectPath& path,
62 auto interfaces_for_path_itr = registered_objects_.find(path);
64 << "Attempting to signal interface removal for path " << path.value()
70 << path
18 ExportedObjectManager(scoped_refptr<dbus::Bus> bus, const dbus::ObjectPath& path) argument
40 ClaimInterface( const dbus::ObjectPath& path, const std::string& interface_name, const ExportedPropertySet::PropertyWriter& property_writer) argument
58 ReleaseInterface( const dbus::ObjectPath& path, const std::string& interface_name) argument
[all...]
/external/libbrillo/brillo/
H A Dfile_utils.cc49 kFailure = 0, // Failed to delete whatever was at the path.
51 kEmpty = 2 // Anything that was at the path has been deleted.
54 // Checks if a regular file owned by |uid| and |gid| exists at |path|, otherwise
55 // deletes anything that might be at |path|. Returns a RegularFileOrDeleteResult
56 // enum indicating what is at |path| after the function finishes.
57 RegularFileOrDeleteResult RegularFileOrDelete(const base::FilePath& path, argument
63 AT_FDCWD, path.value().c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW)));
66 // If there is a file/directory at |path|, see if it matches our criteria.
76 // If we get here and anything was at |path|, try to delete it so we can put
79 if (!base::DeleteFile(path, tru
94 TouchFileInternal(const base::FilePath& path, uid_t uid, gid_t gid, base::ScopedFD* fd_out) argument
133 TouchFile(const base::FilePath& path, int new_file_permissions, uid_t uid, gid_t gid) argument
159 TouchFile(const base::FilePath& path) argument
[all...]
/external/libchrome/base/files/
H A Dfile.cc30 File::File(const FilePath& path, uint32_t flags) argument
32 Initialize(path, flags);
85 void File::Initialize(const FilePath& path, uint32_t flags) { argument
86 if (path.ReferencesParent()) {
91 tracing_path_ = path;
93 DoInitialize(path, flags);
H A Dfile_path_watcher_kqueue.h44 bool Watch(const FilePath& path,
55 EventData(const FilePath& path, const FilePath::StringType& subdir) argument
56 : path_(path), subdir_(subdir) { }
57 FilePath path_; // Full path to this item.
69 // Respond to a change of attributes of the path component represented by
76 // Respond to a move or deletion of the path component represented by
83 // Respond to a creation of an item in the path component represented by
95 // Fills |events| with one kevent per component in |path|.
98 static int EventsForPath(FilePath path, EventVector *events);
105 static uintptr_t FileDescriptorForPath(const FilePath& path);
[all...]
H A Dimportant_file_writer_unittest.cc26 std::string GetFileContent(const FilePath& path) { argument
28 if (!ReadFileToString(path, &content)) {
90 file_ = temp_dir_.path().AppendASCII("test-file");
104 EXPECT_FALSE(PathExists(writer.path()));
110 ASSERT_TRUE(PathExists(writer.path()));
111 EXPECT_EQ("foo", GetFileContent(writer.path()));
116 EXPECT_FALSE(PathExists(writer.path()));
124 ASSERT_TRUE(PathExists(writer.path()));
125 EXPECT_EQ("foo", GetFileContent(writer.path()));
134 ASSERT_TRUE(PathExists(writer.path()));
[all...]
/external/libchrome/base/
H A Dsys_info_posix.cc92 int64_t SysInfo::AmountOfFreeDiskSpace(const FilePath& path) { argument
96 if (HANDLE_EINTR(statvfs(path.value().c_str(), &stats)) != 0)
/external/libchrome/base/test/
H A Dtest_file_util_posix.cc26 // Deny |permission| on the file |path|.
27 bool DenyFilePermission(const FilePath& path, mode_t permission) { argument
29 if (stat(path.value().c_str(), &stat_buf) != 0)
33 int rv = HANDLE_EINTR(chmod(path.value().c_str(), stat_buf.st_mode));
37 // Gets a blob indicating the permission information for |path|.
40 void* GetPermissionInfo(const FilePath& path, size_t* length) { argument
45 if (stat(path.value().c_str(), &stat_buf) != 0)
50 *mode = stat_buf.st_mode & ~S_IFMT; // Filter out file/path kind.
55 // Restores the permission information for |path|, given the blob retrieved
60 bool RestorePermissionInfo(const FilePath& path, voi argument
90 MakeFileUnreadable(const FilePath& path) argument
94 MakeFileUnwritable(const FilePath& path) argument
98 FilePermissionRestorer(const FilePath& path) argument
[all...]
/external/libchrome/sandbox/linux/services/
H A Dnamespace_utils.cc71 const char* path; local
76 path = "/proc/self/ns/ipc";
79 path = "/proc/self/ns/net";
82 path = "/proc/self/ns/mnt";
85 path = "/proc/self/ns/pid";
88 path = "/proc/self/ns/uts";
95 return base::PathExists(base::FilePath(path));
H A Dproc_util.cc31 base::ScopedFD OpenDirectory(const char* path) { argument
32 DCHECK(path);
34 HANDLE_EINTR(open(path, O_RDONLY | O_DIRECTORY | O_CLOEXEC)));
/external/libchrome/sandbox/linux/syscall_broker/
H A Dbroker_file_permission.h17 // BrokerFilePermission defines a path for whitelisting.
21 // |path| is the path to be whitelisted.
28 static BrokerFilePermission ReadOnly(const std::string& path) { argument
29 return BrokerFilePermission(path, false, false, true, false, false);
32 static BrokerFilePermission ReadOnlyRecursive(const std::string& path) { argument
33 return BrokerFilePermission(path, true, false, true, false, false);
36 static BrokerFilePermission WriteOnly(const std::string& path) { argument
37 return BrokerFilePermission(path, false, false, false, true, false);
40 static BrokerFilePermission ReadWrite(const std::string& path) { argument
44 ReadWriteCreate(const std::string& path) argument
48 ReadWriteCreateUnlink(const std::string& path) argument
52 ReadWriteCreateUnlinkRecursive( const std::string& path) argument
[all...]
/external/libdrm/tests/
H A Ddrmtest.c64 const char *pci_id, *path; local
79 path = udev_list_entry_get_name(entry);
80 device = udev_device_new_from_syspath(udev, path);
/external/libmtp/examples/
H A Dalbumart.c53 char *path = NULL; local
97 path = argv[0];
99 if ( stat(path, &statbuff) == -1 ) {
100 fprintf(stderr, "%s: ", path);
108 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) {
110 if ( (fd = open(path, O_RDONLY)) == -1) {
112 printf("Couldn't open image file %s (%s)\n",path,strerror(errno));
/external/libselinux/src/
H A Dprocattr.c21 char *path; local
25 rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr);
27 rc = asprintf(&path, "/proc/thread-self/attr/%s", attr);
30 fd = open(path, flags | O_CLOEXEC);
33 free(path);
35 rc = asprintf(&path, "/proc/self/task/%d/attr/%s", tid, attr);
43 fd = open(path, flags | O_CLOEXEC);
45 free(path);
/external/libunwind/src/ptrace/
H A D_UPT_find_proc_info.c42 char *path = NULL; local
66 if (tdep_get_elf_image (as, &ei, pid, ip, &segbase, &mapoff, &path, as_arg) < 0)
69 ret = tdep_find_unwind_table (edi, &ei, as, path, segbase, mapoff, ip);
70 free(path);
/external/libweave/src/
H A Daccess_api_handler_unittest.cc92 std::string path = local
94 EXPECT_FALSE(path.empty());
95 const auto* component = component_manager_.FindComponent(path, nullptr);
H A Dcomponent_manager.h35 const std::string& path,
38 component{path},
70 // |path| is a path to the parent component (or empty string if a root-level
74 virtual bool AddComponent(const std::string& path,
80 // |path| is a path to the parent component.
83 virtual bool AddComponentArrayItem(const std::string& path,
89 // |path| is a path t
34 ComponentStateChange(base::Time time, const std::string& path, std::unique_ptr<base::DictionaryValue> properties) argument
[all...]
/external/littlemock/tests/com/google/testing/littlemock/
H A DAppDataDirGuesserTest.java84 private TestCondition guessCacheDirFor(final String path) { argument
99 File[] results = guesser.guessPath(path);
100 assertNotNull("Null results for " + path, results);
101 assertEquals("Bad lengths for " + path, files.length, results.length);
/external/lzma/CPP/7zip/UI/Common/
H A DWorkDir.cpp16 FString GetWorkDir(const NWorkDir::CInfo &workDirInfo, const FString &path, FString &fileName) argument
23 FString prefix = path.Left(3);
39 int pos = path.ReverseFind(FCHAR_PATH_SEPARATOR) + 1;
40 fileName = path.Ptr(pos);
45 return path.Left(pos);;
/external/mesa3d/
H A Dcommon.py5 import os.path namespace

Completed in 4385 milliseconds

<<11121314151617181920>>