/external/linux-tools-perf/util/ |
H A D | path.c | 15 static char bad_path[] = "/bad-path/"; 47 static char *cleanup_path(char *path) argument 50 if (!memcmp(path, "./", 2)) { 51 path += 2; 52 while (*path == '/') 53 path++; 55 return path; 80 char path[PATH_MAX]; local 83 (void)perf_vsnpath(path, sizeof(path), fm 124 chomp_trailing_dir_sep(const char *path, int len) argument 136 strip_path_suffix(const char *path, const char *suffix) argument [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/ |
H A D | Path.java | 40 private static String createPath(Box box, String path) { argument 42 return path; 46 path = String.format("/%s[%d]", box.getType(), index) + path; 48 return createPath(box.getParent(), path); 52 public static Box getPath(Box box, String path) { argument 53 List<Box> all = getPaths(box, path); 58 public static List<Box> getPaths(Box box, String path) { argument 59 if (path.startsWith("/")) { 65 return getPaths(isoFile, path 111 isContained(Box box, String path) argument [all...] |
/external/chromium_org/chrome/common/extensions/docs/server2/ |
H A D | chained_compiled_file_system.py | 43 def GetFromFile(self, path): 45 path, 46 lambda compiled_fs: compiled_fs.GetFromFile(path), 47 lambda compiled_fs: compiled_fs.GetFileVersion(path)) 49 def GetFromFileListing(self, path): 50 if not path.endswith('/'): 51 path += '/' 53 path, 54 lambda compiled_fs: compiled_fs.GetFromFileListing(path), 55 lambda compiled_fs: compiled_fs.GetFileListingVersion(path)) [all...] |
/external/chromium_org/chrome_frame/tools/ |
H A D | smoke_test.py | 9 import os.path namespace 16 _SRC_DIR = os.path.abspath(os.path.join( 17 os.path.dirname(__file__), '../..')) 20 def AbsolutePath(path): 21 '''Convert path to absolute. 24 path: a path relative to _SRC_DIR. 26 Returns: Path as an absolute, normalized path. 28 return os.path [all...] |
/external/chromium_org/extensions/common/ |
H A D | file_util.cc | 18 std::string url_path = url.path(); 29 base::FilePath path = base::FilePath::FromUTF8Unsafe(file_path); local 31 // It's still possible for someone to construct an annoying URL whose path 34 if (path.IsAbsolute()) 37 return path; 51 base::FilePath path = root.AppendASCII(host).Append(relative_path); 52 if (!base::PathExists(path)) 54 path = base::MakeAbsoluteFilePath(path); 55 if (path [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
H A D | export-w3c-performance-wg-tests | 49 source_directory = os.path.join(sys.argv[1], 'LayoutTests', 'http', 'tests', 'w3c', 'webperf') 50 destination_directory = os.path.join(sys.argv[2], 'tests') 62 destination_subdirectory = os.path.join(destination_directory, directory_to_copy) 63 if not os.path.exists(destination_subdirectory): 65 for root, dirs, files in os.walk(os.path.join(source_directory, directory_to_copy)): 66 root = os.path.relpath(root, source_directory) 68 destination_subdirectory = os.path.join(destination_directory, root, dirname) 69 if not os.path.exists(destination_subdirectory): 74 with open(os.path.join(source_directory, root, filename), 'r') as in_file: 75 with open(os.path [all...] |
H A D | check-blink-deps | 34 print 'Usage: %s [dir=Source]' % os.path.basename(sys.argv[0]) 45 root_dir = os.path.realpath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) 47 start_dir = os.path.join(root_dir, 'Source') 49 check_deps = os.path.realpath(os.path.join(root_dir, os.pardir, os.pardir, 'tools', 'checkdeps', 'checkdeps.py'))
|
/external/chromium_org/third_party/WebKit/public/platform/ |
H A D | WebFileSystem.h | 62 // a name and root path for the requested FileSystem when the operation 69 // information (name, root path and type) and file metadata (file path and 92 // Deletes a file or directory at a given |path|. 96 virtual void remove(const WebURL& path, WebFileSystemCallbacks) { BLINK_ASSERT_NOT_REACHED(); } argument 98 // Deletes a file or directory recursively at a given |path|. 101 virtual void removeRecursively(const WebURL& path, WebFileSystemCallbacks) { BLINK_ASSERT_NOT_REACHED(); } argument 103 // Retrieves the metadata information of the file or directory at the given |path|. 104 // This may not always return the local platform path in remote filesystem cases. 107 virtual void readMetadata(const WebURL& path, WebFileSystemCallback argument 117 createFile(const WebURL& path, bool exclusive, WebFileSystemCallbacks) argument 127 createDirectory(const WebURL& path, bool exclusive, WebFileSystemCallbacks) argument 132 fileExists(const WebURL& path, WebFileSystemCallbacks) argument 137 directoryExists(const WebURL& path, WebFileSystemCallbacks) argument 142 readDirectory(const WebURL& path, WebFileSystemCallbacks) argument 148 createFileWriter(const WebURL& path, WebFileWriterClient*) argument 153 createFileWriter(const WebURL& path, WebFileWriterClient*, WebFileSystemCallbacks) argument 163 createSnapshotFileAndReadMetadata(const WebURL& path, WebFileSystemCallbacks) argument [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
H A D | extension_to_load.py | 15 def __init__(self, path, browser_type, is_component=False): 16 if not os.path.isdir(path): 18 'Extension path not a directory %s' % path) 19 self._path = path 20 self._local_path = path 22 if is_component and not crx_id.HasPublicKey(path): 24 'Component extension %s must have a public key' % path) 29 # the extension path 48 def path(self): member in class:ExtensionToLoad [all...] |
/external/chromium_org/webkit/glue/ |
H A D | webfileutilities_impl.cc | 28 bool WebFileUtilitiesImpl::getFileInfo(const WebString& path, argument 35 if (!base::GetFileInfo(base::FilePath::FromUTF16Unsafe(path), &file_info)) 39 web_file_info.platformPath = path; 43 WebString WebFileUtilitiesImpl::directoryName(const WebString& path) { argument 44 return base::FilePath::FromUTF16Unsafe(path).DirName().AsUTF16Unsafe(); 47 WebString WebFileUtilitiesImpl::baseName(const WebString& path) { argument 48 return base::FilePath::FromUTF16Unsafe(path).BaseName().AsUTF16Unsafe(); 51 blink::WebURL WebFileUtilitiesImpl::filePathToURL(const WebString& path) { argument 52 return net::FilePathToFileURL(base::FilePath::FromUTF16Unsafe(path)); 55 base::PlatformFile WebFileUtilitiesImpl::openFile(const WebString& path, argument [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/bin/ |
H A D | antenv.cmd | 74 parse arg path elem 76 if path\='' & right(path, 1)\=';' then path = path || ';' 77 return path 79 if substr(path, length(path)) = ';' then glue = '' 81 if pos(translate(elem), translate(path)) = 0 then path [all...] |
/external/chromium-trace/trace-viewer/build/ |
H A D | generate_template_contents.py | 9 srcdir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../src")) 16 all_filenames.append(os.path.join(dirpath, f)) 19 os.path.splitext(x)[1] == ".html"] 20 filenames = [os.path.relpath(x) for x in filenames] 23 if os.path.basename(x).startswith('.'):
|
/external/chromium_org/base/prefs/ |
H A D | pref_service.h | 167 const PrefService::Preference* FindPreference(const char* path) const; 169 // If the path is valid and the value at the end of the path matches the type 172 bool GetBoolean(const char* path) const; 173 int GetInteger(const char* path) const; 174 double GetDouble(const char* path) const; 175 std::string GetString(const char* path) const; 176 base::FilePath GetFilePath(const char* path) const; 179 // Note that |path| must point to a registered preference. In that case, these 182 const char* path) cons [all...] |
/external/chromium_org/chrome/test/mini_installer_test/ |
H A D | installer_path_provider.h | 13 // Locate and provides path for installers. 24 bool GetFullInstaller(base::FilePath* path); 25 bool GetDiffInstaller(base::FilePath* path); 26 bool GetMiniInstaller(base::FilePath* path); 27 bool GetPreviousInstaller(base::FilePath* path); 28 bool GetStandaloneInstaller(base::FilePath* path); 29 bool GetSignedStandaloneInstaller(base::FilePath* path); 35 // Returns the local file path for the given file |name|. 39 bool GetInstaller(const std::string& pattern, base::FilePath* path);
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
H A D | mount_dev.h | 17 virtual Error Access(const Path& path, int a_mode); 18 virtual Error Open(const Path& path, 21 virtual Error Unlink(const Path& path); 22 virtual Error Mkdir(const Path& path, int permissions); 23 virtual Error Rmdir(const Path& path); 24 virtual Error Remove(const Path& path); 25 virtual Error Rename(const Path& path, const Path& newpath);
|
/external/chromium_org/sandbox/linux/services/ |
H A D | libc_urandom_override.cc | 50 typedef FILE* (*FopenFunction)(const char* path, const char* mode); 56 typedef int (*XstatFunction)(int version, const char *path, struct stat *buf); 57 typedef int (*Xstat64Function)(int version, const char *path, 63 typedef int (*StatFunction)(const char *path, struct stat *buf); 64 typedef int (*Stat64Function)(const char *path, struct stat64 *buf); 125 FILE* fopen_override(const char* path, const char* mode) __asm__ ("fopen"); 128 FILE* fopen_override(const char* path, const char* mode) { argument 129 if (g_override_urandom && strcmp(path, kUrandomDevPath) == 0) { 139 return g_libc_fopen(path, mode); 144 FILE* fopen64(const char* path, cons argument 170 xstat_override(int version, const char *path, struct stat *buf) argument 187 xstat64_override(int version, const char *path, struct stat64 *buf) argument 205 stat_override(const char *path, struct stat *buf) argument 221 stat64_override(const char *path, struct stat64 *buf) argument [all...] |
/external/chromium_org/third_party/icu/source/common/ |
H A D | resbund_cnv.cpp | 25 ResourceBundle::ResourceBundle( const UnicodeString& path, argument 30 constructForLocale(path, locale, error); 33 ResourceBundle::ResourceBundle( const UnicodeString& path, argument 37 constructForLocale(path, Locale::getDefault(), error); 41 ResourceBundle::constructForLocale(const UnicodeString& path, argument 45 if (path.isEmpty()) { 49 UnicodeString nullTerminatedPath(path);
|
/external/chromium_org/tools/telemetry_tools/ |
H A D | telemetry_bootstrap.py | 55 """Returns a dictionary with os.path.normpath called on every key.""" 56 return dict((os.path.normpath(k), v) for (k, v) in 59 def GetDirList(self, path): 60 """Returns string names of all files and subdirs of path on the server.""" 61 props = self.__norm_path_keys(self.client.propfind(path, depth=1)) 62 # remove this path 63 del props[os.path.normpath(path)] 64 return [os.path.basename(p) for p in props.keys()] 66 def IsFile(self, path) [all...] |
/external/chromium_org/v8/tools/ |
H A D | test-server.py | 37 ROOT = os.path.abspath(os.path.dirname(sys.argv[0])) 55 return os.path.exists(PIDFILE) 67 data_dir = os.path.join(ROOT, "data") 68 if not os.path.exists(data_dir): 72 trusted_dir = os.path.join(ROOT, "trusted") 73 if not os.path.exists(trusted_dir): 96 privkeyfile = os.path.expanduser("~/.ssh/v8_dtest") 97 if not os.path.exists(privkeyfile): 102 pubkeyfile = os.path [all...] |
/external/icu4c/common/ |
H A D | resbund_cnv.cpp | 25 ResourceBundle::ResourceBundle( const UnicodeString& path, argument 30 constructForLocale(path, locale, error); 33 ResourceBundle::ResourceBundle( const UnicodeString& path, argument 37 constructForLocale(path, Locale::getDefault(), error); 41 ResourceBundle::constructForLocale(const UnicodeString& path, argument 45 if (path.isEmpty()) { 49 UnicodeString nullTerminatedPath(path);
|
/external/skia/tests/ |
H A D | PathOpsSimplifyFailTest.cpp | 41 SkPath path; local 46 case 0: path.lineTo(nonFinitePts[i]); break; 47 case 1: path.quadTo(nonFinitePts[i], nonFinitePts[i]); break; 48 case 2: path.quadTo(nonFinitePts[i], finitePts[f]); break; 49 case 3: path.quadTo(finitePts[f], nonFinitePts[i]); break; 50 case 4: path.cubicTo(nonFinitePts[i], finitePts[f], finitePts[f]); break; 51 case 5: path.cubicTo(finitePts[f], nonFinitePts[i], finitePts[f]); break; 52 case 6: path.cubicTo(finitePts[f], finitePts[f], nonFinitePts[i]); break; 53 case 7: path.cubicTo(nonFinitePts[i], nonFinitePts[i], finitePts[f]); break; 54 case 8: path 70 SkPath path; local [all...] |
/external/chromium_org/chrome/tools/ |
H A D | check_grd_for_unused_strings.py | 88 full_path = os.path.join(root, file) 98 full_path = os.path.join(root, file) 115 chrome_tools_dir = os.path.dirname(os.path.abspath(sys.argv[0])) 116 src_dir = os.path.dirname(os.path.dirname(chrome_tools_dir)) 129 ash_base_dir = os.path.join(src_dir, 'ash') 130 chrome_dir = os.path.join(src_dir, 'chrome') 131 chrome_app_dir = os.path.join(chrome_dir, 'app') 132 chrome_app_res_dir = os.path [all...] |
/external/chromium_org/remoting/webapp/ |
H A D | build-webapp.py | 26 # Update the module path, assuming that this script is in src/remoting/webapp, 28 # sys.path[0] refers to the directory containing this script. 30 sys.path.append( 31 os.path.abspath(os.path.join(sys.path[0], '../../google_apis'))) 36 oldFilename = os.path.basename(filepath) + '.old' 37 oldFilepath = os.path.join(os.path.dirname(filepath), oldFilename) 48 zipfile_base = os.path [all...] |
/external/chromium_org/third_party/libjingle/overrides/ |
H A D | init_webrtc.cc | 54 // Returns the full or relative path to the libpeerconnection module depending 57 base::FilePath path; local 58 CHECK(PathService::Get(base::DIR_MODULE, &path)); 60 path = path.Append(FILE_PATH_LITERAL("libpeerconnection.dll")); 63 path = path.Append(FILE_PATH_LITERAL("Libraries")) 66 path = path.Append(FILE_PATH_LITERAL("libpeerconnection.so")); 68 path [all...] |
/external/valgrind/main/none/tests/ |
H A D | procfs-cmdline-exe.c | 21 const char* const path) 27 fd = open(path, 0); 49 const char* const path) 55 if ((n = readlink(path, buf, sizeof(buf) - 1)) >= 0) 68 const char* const path) 75 if ((n = readlinkat(AT_FDCWD, path, buf, sizeof(buf) - 1)) >= 0) 94 char path[512]; local 101 snprintf(path, sizeof(path), "/proc/%d/cmdline", getpid()); 104 test_cmdline(cwd, "/proc/<pid>/cmdline", path); 20 test_cmdline(const char* const cwd, const char* const label, const char* const path) argument 48 test_readlink(const char* const cwd, const char* const label, const char* const path) argument 67 test_readlinkat(const char* const cwd, const char* const label, const char* const path) argument [all...] |