/external/webkit/Tools/Scripts/webkitpy/common/system/ |
D | filesystem_mock.py | 33 from webkitpy.common.system import path 59 def _raise_not_found(self, path): argument 60 raise IOError(errno.ENOENT, path, os.strerror(errno.ENOENT)) 62 def _split(self, path): argument 63 return path.rsplit(self.sep, 1) 65 def abspath(self, path): argument 66 if os.path.isabs(path): 67 return self.normpath(path) 68 return self.abspath(self.join(self.cwd, path)) 70 def basename(self, path): argument [all …]
|
D | filesystem.py | 57 def abspath(self, path): argument 58 return os.path.abspath(path) 60 def basename(self, path): argument 62 return os.path.basename(path) 64 def chdir(self, path): argument 66 return os.chdir(path) 73 def dirname(self, path): argument 75 return os.path.dirname(path) 77 def exists(self, path): argument 79 return os.path.exists(path) [all …]
|
D | logutils.py | 45 def _normalize_path(path): argument 52 path = os.path.abspath(path) 53 path = os.path.normpath(path) 54 path = os.path.splitext(path)[0] # Remove the extension, if any. 55 path = path.lower() 57 return path 70 def get_logger(path): argument 96 path = _normalize_path(path) 103 _webkitpy_dir = os.path.split(webkitpy_path)[0] 104 _scripts_dir = os.path.split(_webkitpy_dir)[0] [all …]
|
D | autoinstall.py | 93 this_dir = os.path.dirname(__file__) 94 target_dir = os.path.join(this_dir, "autoinstalled") 111 def _create_directory(self, path, name=None): argument 117 log(' "%s"' % path) 119 os.makedirs(path) 121 def _write_file(self, path, text, encoding): argument 128 _log.debug(' "%s"' % path) 129 with codecs.open(path, "w", encoding) as file: 147 if not os.path.exists(target_dir): 151 sys.path.append(target_dir) [all …]
|
/external/llvm/lib/Support/ |
D | PathV2.cpp | 23 using llvm::sys::path::is_separator; 35 StringRef find_first_component(StringRef path) { in find_first_component() argument 43 if (path.empty()) in find_first_component() 44 return path; in find_first_component() 48 if (path.size() >= 2 && std::isalpha(path[0]) && path[1] == ':') in find_first_component() 49 return path.substr(0, 2); in find_first_component() 53 if ((path.size() > 2) && in find_first_component() 54 is_separator(path[0]) && in find_first_component() 55 path[0] == path[1] && in find_first_component() 56 !is_separator(path[2])) { in find_first_component() [all …]
|
/external/qemu/android/utils/ |
D | path.c | 65 path_parent( const char* path, int levels ) in path_parent() argument 67 const char* end = path + strlen(path); in path_parent() 74 while (end > path && ispathsep(end[-1])) in path_parent() 78 while (base > path && !ispathsep(base[-1])) in path_parent() 81 if (base <= path) /* we can't go that far */ in path_parent() 97 result = malloc( end-path+1 ); in path_parent() 99 memcpy( result, path, end-path ); in path_parent() 100 result[end-path] = 0; in path_parent() 116 path_split( const char* path, char* *pdirname, char* *pbasename ) in path_split() argument 118 const char* end = path + strlen(path); in path_split() [all …]
|
D | path.h | 52 extern ABool path_exists( const char* path ); 55 extern ABool path_is_regular( const char* path ); 58 extern ABool path_is_dir( const char* path ); 61 extern ABool path_is_absolute( const char* path ); 64 extern ABool path_can_read( const char* path ); 65 extern ABool path_can_write( const char* path ); 68 extern ABool path_can_exec( const char* path ); 71 extern APosixStatus path_mkdir( const char* path, int mode ); 75 extern APosixStatus path_mkdir_if_needed( const char* path, int mode ); 79 extern APosixStatus path_get_size( const char* path, uint64_t *psize ); [all …]
|
/external/llvm/include/llvm/Support/ |
D | PathV2.h | 26 namespace path { 55 friend const_iterator begin(StringRef path); 56 friend const_iterator end(StringRef path); 83 const_iterator begin(StringRef path); 88 const_iterator end(StringRef path); 93 inline reverse_iterator rbegin(StringRef path) { in rbegin() argument 94 return reverse_iterator(end(path)); in rbegin() 100 inline reverse_iterator rend(StringRef path) { in rend() argument 101 return reverse_iterator(begin(path)); in rend() 115 void remove_filename(SmallVectorImpl<char> &path); [all …]
|
D | FileSystem.h | 119 error_code make_absolute(SmallVectorImpl<char> &path); 139 error_code create_directories(const Twine &path, bool &existed); 147 error_code create_directory(const Twine &path, bool &existed); 179 error_code remove(const Twine &path, bool &existed); 188 error_code remove_all(const Twine &path, uint32_t &num_removed); 202 error_code resize_file(const Twine &path, uint64_t size); 210 error_code set_read(const Twine &path, bool value); 218 error_code set_write(const Twine &path, bool value); 226 error_code set_execute(const Twine &path, bool value); 246 error_code exists(const Twine &path, bool &result); [all …]
|
/external/chromium/chrome/browser/prefs/ |
D | pref_service.cc | 261 void PrefService::RegisterBooleanPref(const char* path, in RegisterBooleanPref() argument 263 RegisterPreference(path, Value::CreateBooleanValue(default_value)); in RegisterBooleanPref() 266 void PrefService::RegisterIntegerPref(const char* path, int default_value) { in RegisterIntegerPref() argument 267 RegisterPreference(path, Value::CreateIntegerValue(default_value)); in RegisterIntegerPref() 270 void PrefService::RegisterDoublePref(const char* path, double default_value) { in RegisterDoublePref() argument 271 RegisterPreference(path, Value::CreateDoubleValue(default_value)); in RegisterDoublePref() 274 void PrefService::RegisterStringPref(const char* path, in RegisterStringPref() argument 276 RegisterPreference(path, Value::CreateStringValue(default_value)); in RegisterStringPref() 279 void PrefService::RegisterFilePathPref(const char* path, in RegisterFilePathPref() argument 281 RegisterPreference(path, Value::CreateStringValue(default_value.value())); in RegisterFilePathPref() [all …]
|
D | pref_service.h | 176 void RegisterBooleanPref(const char* path, bool default_value); 177 void RegisterIntegerPref(const char* path, int default_value); 178 void RegisterDoublePref(const char* path, double default_value); 179 void RegisterStringPref(const char* path, const std::string& default_value); 180 void RegisterFilePathPref(const char* path, const FilePath& default_value); 181 void RegisterListPref(const char* path); 182 void RegisterDictionaryPref(const char* path); 184 void RegisterListPref(const char* path, ListValue* default_value); 185 void RegisterDictionaryPref(const char* path, DictionaryValue* default_value); 188 void RegisterLocalizedBooleanPref(const char* path, [all …]
|
/external/webkit/LayoutTests/http/tests/resources/ |
D | network-simulator.php | 25 function contentType($path) argument 27 if (preg_match("/\.html$/", $path)) 29 if (preg_match("/\.manifest$/", $path)) 31 if (preg_match("/\.js$/", $path)) 33 if (preg_match("/\.xml$/", $path)) 35 if (preg_match("/\.xhtml$/", $path)) 37 if (preg_match("/\.svg$/", $path)) 39 if (preg_match("/\.xsl$/", $path)) 41 if (preg_match("/\.gif$/", $path)) 43 if (preg_match("/\.jpg$/", $path)) [all …]
|
/external/chromium/chrome/browser/chromeos/ |
D | plugin_selection_policy_unittest.cc | 87 FilePath* path) { in CreatePolicy() argument 92 if (path) in CreatePolicy() 93 *path = policy_file; in CreatePolicy() 99 FilePath policy_file(temp_dir_.path()); in GetPolicyPath() 110 FilePath path; in TEST_F() local 111 ASSERT_TRUE(CreatePolicy("basic", kBasicPolicy, &path)); in TEST_F() 113 EXPECT_TRUE(policy->InitFromFile(path)); in TEST_F() 118 FilePath path; in TEST_F() local 119 ASSERT_TRUE(CreatePolicy("basic", kBasicPolicy, &path)); in TEST_F() 121 EXPECT_TRUE(policy->InitFromFile(path)); in TEST_F() [all …]
|
D | cros_settings.cc | 26 bool CrosSettings::IsCrosSettings(const std::string& path) { in IsCrosSettings() argument 27 return StartsWithASCII(path, kCrosSettingsPrefix, true); in IsCrosSettings() 30 void CrosSettings::FireObservers(const char* path) { in FireObservers() argument 32 std::string path_str(path); in FireObservers() 47 void CrosSettings::Set(const std::string& path, Value* in_value) { in Set() argument 50 provider = GetProvider(path); in Set() 52 provider->Set(path, in_value); in Set() 56 void CrosSettings::SetBoolean(const std::string& path, bool in_value) { in SetBoolean() argument 58 Set(path, Value::CreateBooleanValue(in_value)); in SetBoolean() 61 void CrosSettings::SetInteger(const std::string& path, int in_value) { in SetInteger() argument [all …]
|
/external/chromium/chrome/common/extensions/docs/server/ |
D | chromeextensionsdocs.py | 26 def matchPath(self, path): argument 28 if path[0:len(match)] == match: 47 path = os.path.realpath(os.path.join('/', self.request.path)) 50 if path == "/test": 55 if (path == "/chrome/extensions") or (path == "chrome/extensions/"): 59 if(path[:18] == "/chrome/extensions"): 60 path = path[18:] 63 result = memcache.get(path) 65 logging.info("Cache miss: " + path) 66 url = self.getSrcUrl(path) [all …]
|
/external/skia/samplecode/ |
D | SamplePathFill.cpp | 11 static SkScalar make_frame(SkPath* path) { in make_frame() argument 13 path->addRoundRect(r, 15, 15); in make_frame() 18 paint.getFillPath(*path, path); in make_frame() 22 static SkScalar make_triangle(SkPath* path) { in make_triangle() argument 26 path->moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])); in make_triangle() 27 path->lineTo(SkIntToScalar(gCoord[2]), SkIntToScalar(gCoord[3])); in make_triangle() 28 path->lineTo(SkIntToScalar(gCoord[4]), SkIntToScalar(gCoord[5])); in make_triangle() 29 path->close(); in make_triangle() 30 path->offset(10, 0); in make_triangle() 34 static SkScalar make_rect(SkPath* path) { in make_rect() argument [all …]
|
/external/webkit/Source/WebCore/platform/brew/ |
D | FileSystemBrew.cpp | 47 bool getFileSize(const String& path, long long& result) in getFileSize() argument 52 if (IFILEMGR_GetInfo(fileMgr.get(), path.utf8().data(), &info) == SUCCESS) { in getFileSize() 60 bool getFileModificationTime(const String& path, time_t& result) in getFileModificationTime() argument 67 bool fileExists(const String& path) in fileExists() argument 71 return (IFILEMGR_Test(fileMgr.get(), path.utf8().data()) == SUCCESS); in fileExists() 74 bool deleteFile(const String& path) in deleteFile() argument 78 return (IFILEMGR_Remove(fileMgr.get(), path.utf8().data()) == SUCCESS); in deleteFile() 81 bool deleteEmptyDirectory(const String& path) in deleteEmptyDirectory() argument 85 return (IFILEMGR_RmDir(fileMgr.get(), path.utf8().data()) == SUCCESS); in deleteEmptyDirectory() 88 String pathByAppendingComponent(const String& path, const String& component) in pathByAppendingComponent() argument [all …]
|
/external/skia/gm/ |
D | pathfill.cpp | 8 static SkScalar make_frame(SkPath* path) { in make_frame() argument 11 path->addRoundRect(r, SkIntToScalar(15), SkIntToScalar(15)); in make_frame() 16 paint.getFillPath(*path, path); in make_frame() 20 static SkScalar make_triangle(SkPath* path) { in make_triangle() argument 24 path->moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])); in make_triangle() 25 path->lineTo(SkIntToScalar(gCoord[2]), SkIntToScalar(gCoord[3])); in make_triangle() 26 path->lineTo(SkIntToScalar(gCoord[4]), SkIntToScalar(gCoord[5])); in make_triangle() 27 path->close(); in make_triangle() 28 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_triangle() 32 static SkScalar make_rect(SkPath* path) { in make_rect() argument [all …]
|
/external/chromium/base/ |
D | file_util_android.cc | 23 mkstemps(char *path, int slen) in mkstemps() argument 27 return (_gettemp(path, &fd, 0, slen) ? fd : -1); in mkstemps() 31 mkstemp(char *path) in mkstemp() argument 35 return (_gettemp(path, &fd, 0, 0) ? fd : -1); in mkstemp() 39 mkdtemp(char *path) in mkdtemp() argument 41 return(_gettemp(path, (int *)NULL, 1, 0) ? path : (char *)NULL); in mkdtemp() 47 _mktemp(char *path) in _mktemp() argument 49 return(_gettemp(path, (int *)NULL, 0, 0) ? path : (char *)NULL); in _mktemp() 58 mktemp(char *path) in mktemp() argument 60 return(_mktemp(path)); in mktemp() [all …]
|
/external/webkit/Source/WebCore/platform/chromium/ |
D | FileSystemChromium.cpp | 40 bool deleteFile(const String& path) in deleteFile() argument 42 return PlatformBridge::deleteFile(path); in deleteFile() 45 bool deleteEmptyDirectory(const String& path) in deleteEmptyDirectory() argument 47 return PlatformBridge::deleteEmptyDirectory(path); in deleteEmptyDirectory() 50 bool getFileSize(const String& path, long long& result) in getFileSize() argument 52 return PlatformBridge::getFileSize(path, result); in getFileSize() 55 bool getFileModificationTime(const String& path, time_t& result) in getFileModificationTime() argument 57 return PlatformBridge::getFileModificationTime(path, result); in getFileModificationTime() 60 void revealFolderInOS(const String& path) in revealFolderInOS() argument 62 PlatformBridge::revealFolderInOS(path); in revealFolderInOS() [all …]
|
/external/webkit/Tools/Scripts/webkitpy/common/net/ |
D | testoutput.py | 51 path = filename.split(os.path.sep) 52 if 'platform' in path: 53 return path[path.index('platform') + 1] 57 path = filename.split(os.path.sep) 58 if 'LayoutTests' in path: 59 path = path[1 + path.index('LayoutTests'):] 60 if 'layout-test-results' in path: 61 path = path[1 + path.index('layout-test-results'):] 62 if 'platform' in path: 63 path = path[2 + path.index('platform'):] [all …]
|
/external/srec/portable/src/UNIX/ |
D | PANSIFileSystemUNIXImpl.c | 31 ESR_ReturnCode PANSIFileSystemGetVirtualPathImpl(PFileSystem* self, LCHAR* path, size_t* len) in PANSIFileSystemGetVirtualPathImpl() argument 43 CHKLOG(rc, lstrtrim(path)); in PANSIFileSystemGetVirtualPathImpl() 44 CHKLOG(rc, PFileSystemCanonicalSlashes(path)); in PANSIFileSystemGetVirtualPathImpl() 45 CHKLOG(rc, PFileSystemIsAbsolutePath(path, &isAbsolute)); in PANSIFileSystemGetVirtualPathImpl() 46 if (isAbsolute && path[0] != L('/')) in PANSIFileSystemGetVirtualPathImpl() 49 driveLetter = path[0]; in PANSIFileSystemGetVirtualPathImpl() 50 LSTRCPY(path, path + 2); in PANSIFileSystemGetVirtualPathImpl() 56 if (LSTRSTR(path, value)==path) in PANSIFileSystemGetVirtualPathImpl() 72 PLogError(L("PANSIFileSystem does not handle the specified path: %s"), path); in PANSIFileSystemGetVirtualPathImpl() 77 LSTRCPY(path, path + LSTRLEN(bestValue)); in PANSIFileSystemGetVirtualPathImpl() [all …]
|
/external/webkit/Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/ |
D | react-to-vsprops-changes.py | 12 …top_level_directory = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirn… 14 …vsprops_directory = os.path.join(top_level_directory, 'WebKitLibraries', 'win', 'tools', 'vsprops') 15 vsprops_files = glob.glob(os.path.join(vsprops_directory, '*.vsprops')) 17 newest_vsprops_time = max(map(os.path.getmtime, vsprops_files)) 19 obj_directory = os.path.join(os.environ['CONFIGURATIONBUILDDIR'], 'obj') 25 for filepath in glob.iglob(os.path.join(obj_directory, '*', '*.%s' % extension)): 30 …wtf_platform_h = os.path.join(top_level_directory, 'Source', 'JavaScriptCore', 'wtf', 'Platform.h') 31 if os.path.getmtime(wtf_platform_h) < newest_vsprops_time: 36 def delete_if_older_than(path, reference_time): argument 37 if os.path.getmtime(path) < reference_time: [all …]
|
/external/oprofile/libpp/ |
D | parse_filename.cpp | 65 void remove_base_dir(vector<string> & path) in remove_base_dir() argument 68 for (it = path.begin(); it != path.end(); ++it) { in remove_base_dir() 73 path.erase(path.begin(), it); in remove_base_dir() 137 vector<string> path = separate_token(filename_spec, '/'); in parse_filename() local 139 remove_base_dir(path); in parse_filename() 144 if (path.size() < 2) { in parse_filename() 150 for (i = 1 ; i < path.size() ; ++i) { in parse_filename() 151 if (path[i] == "{dep}") in parse_filename() 154 result.image += "/" + path[i]; in parse_filename() 157 if (i == path.size()) { in parse_filename() [all …]
|
/external/clang/tools/scan-build/ |
D | set-xcode-analyzer | 11 def FindClangSpecs(path): argument 12 for root, dirs, files in os.walk(path): 15 yield os.path.join(root, f) 17 def ModifySpec(path, pathToChecker): argument 20 with open(path) as f: 31 print "(+) processing:", path 33 shutil.copy(t.name, path) 34 os.chmod(path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH) 51 if options.path is None and options.default is None: 60 if options.path: [all …]
|