/third_party/rust/crates/cxx/gen/lib/src/gen/ |
H A D | include.rs | 14 /// The header's path, not including the enclosing quotation marks or angle 16 pub path: String, 17 /// Whether to emit `#include "path"` or `#include <path>`. 58 .any(|header| header.path == "rust/cxx.h" || header.path == "rust\\cxx.h") in has_cxx_header() 75 writeln!(out, "#include \"{}\"", include.path.escape_default()); 78 writeln!(out, "#include <{}>", include.path); 186 path: include.path in from() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/ |
H A D | generate_def_files.py | 93 os.path.join(out_dir, 'obj', 'third_party', 'abseil-cpp')): 95 obj_files.extend((os.path.join(root, f) for f in matched_files)) 143 def_file = os.path.join('third_party', 'abseil-cpp', 146 def_file = os.path.join('third_party', 'abseil-cpp', 167 if not os.getcwd().endswith('src') or not os.path.exists('chrome/browser'):
|
/third_party/skia/modules/canvaskit/npm_build/ |
H A D | node.example.js | 3 const path = require('path'); 5 const assetPath = path.join(__dirname, '..', 'tests', 'assets'); 13 let img = fs.readFileSync(path.join(assetPath, 'mandrill_512.png')); 16 let fontData = fs.readFileSync(path.join(assetPath, 'Roboto-Regular.woff')); 57 let robotoData = fs.readFileSync(path.join(assetPath, 'Roboto-Regular.woff'));
|
/third_party/skia/experimental/c-api-example/ |
H A D | skia-c-example.c | 25 static void emit_png(const char* path, sk_surface_t* surface) { in emit_png() argument 29 FILE* f = fopen(path, "wb"); in emit_png() 60 sk_path_t* path = sk_pathbuilder_detach_path(path_builder); in draw() local 61 sk_canvas_draw_path(canvas, path, stroke); in draw() 72 sk_path_delete(path); in draw()
|
/third_party/skia/build/fuchsia/ |
H A D | update_fuchsia_sdk | 81 if os.path.exists(curr_dir): 88 if not os.path.exists(sdk_dir): 90 if not os.path.exists(clang_dir): 94 if (not os.access(sdk_dir, os.W_OK)) or (not os.path.isdir(sdk_dir)): 96 if (not os.access(clang_dir, os.W_OK)) or (not os.path.isdir(clang_dir)):
|
/third_party/rust/crates/os_str_bytes/tests/ |
H A D | common.rs | 16 use std::path::Path; 17 use std::path::PathBuf; 57 let path = PathBuf::from_raw_vec(string.clone()); 58 test_from_bytes::<Path, _, _>(&path, string); 59 assert_eq!(os_string, path.map(PathBuf::into_os_string));
|
/third_party/skia/buildtools/checkdeps/ |
H A D | proto_checker.py | 41 """Checks if the given path is a valid path starting from |_root_dir|.""" 45 return os.path.isdir(self._root_dir + "/" + match.group(1)) 76 dependee_dir = os.path.dirname(dependee_path) 77 import_path = os.path.join(dependee_dir, import_path) 78 import_path = os.path.relpath(import_path, self._root_dir) 113 """Returns True iff the given path ends in one of the extensions 116 return os.path.splitext(file_path)[1] in ProtoChecker.EXTENSIONS 119 """Check if the new #include file path should be presubmit checked. 122 file_path: file path t [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_install_daemon_test/ |
H A D | bms_install_daemon_operator_test.cpp | 127 std::string path;
in HWTEST_F() local 128 auto ret = InstalldOperator::IsExistFile(path);
in HWTEST_F() 152 std::string path;
in HWTEST_F() local 153 auto ret = InstalldOperator::IsExistDir(path);
in HWTEST_F() 177 std::string path;
in HWTEST_F() local 178 auto ret = InstalldOperator::IsDirEmpty(path);
in HWTEST_F() 190 std::string path;
in HWTEST_F() local 191 auto ret = InstalldOperator::MkRecursiveDir(path, false);
in HWTEST_F() 193 path = "/data/app/el2";
in HWTEST_F() 194 ret = InstalldOperator::MkRecursiveDir(path, fals in HWTEST_F() 206 std::string path; HWTEST_F() local 219 std::string path; HWTEST_F() local 285 std::string path; HWTEST_F() local 299 std::string path; HWTEST_F() local 313 std::string path; HWTEST_F() local 327 std::string path; HWTEST_F() local 392 std::string path; HWTEST_F() local 408 std::string path; HWTEST_F() local 422 std::string path; HWTEST_F() local 436 std::string path; HWTEST_F() local 468 std::string path; HWTEST_F() local 665 std::vector<std::string> path; HWTEST_F() local 680 std::vector<std::string> path; HWTEST_F() local 1482 std::string path = "test.path"; HWTEST_F() local [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | ICUResourceBundle.java | 247 * Given a tree path and keyword, return a string enumeration of all possible values for that keyword. 293 * @param path The path to the required resource key 297 public ICUResourceBundle getWithFallback(String path) throws MissingResourceException { in getWithFallback() argument 301 ICUResourceBundle result = findResourceWithFallback(path, actualBundle, null); in getWithFallback() 307 path, getKey()); in getWithFallback() 311 throw new MissingResourceException("Encountered NO_INHERITANCE_MARKER", path, getKey()); in getWithFallback() 342 * @param path the path to the resource 345 public ICUResourceBundle findWithFallback(String path) { in findWithFallback() argument 348 findStringWithFallback(String path) findStringWithFallback() argument 353 getStringWithFallback(String path) getStringWithFallback() argument 371 getValueWithFallback(String path) getValueWithFallback() argument 391 getAllItemsWithFallbackNoFail(String path, UResource.Sink sink) getAllItemsWithFallbackNoFail() argument 406 getAllItemsWithFallback(String path, UResource.Sink sink) getAllItemsWithFallback() argument 444 getAllChildrenWithFallback(final String path, final UResource.Sink sink) getAllChildrenWithFallback() argument 933 findResourceWithFallback(String path, UResourceBundle actualBundle, UResourceBundle requested) findResourceWithFallback() argument 995 findStringWithFallback(String path, UResourceBundle actualBundle, UResourceBundle requested) findStringWithFallback() argument 1116 countPathKeys(String path) countPathKeys() argument 1137 getResPathKeys(String path, int num, String[] keys, int start) getResPathKeys() argument [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_proxy_test/ |
H A D | bms_bundle_installer_proxy_test.cpp | 484 std::string path = "path"; in HWTEST_F() local 486 auto res = bundleInstallerProxy.WriteFile(path, outputFd); in HWTEST_F() 500 std::string path = "/"; in HWTEST_F() local 502 auto res = bundleInstallerProxy.WriteFile(path, outputFd); in HWTEST_F() 517 std::string path = "path"; in HWTEST_F() local 518 auto res = bundleInstallerProxy.WriteHapFileToStream(streamInstaller, path); in HWTEST_F() 538 std::string path = "/"; in HWTEST_F() local 539 auto res = bundleInstallerProxy.WriteHapFileToStream(streamInstaller, path); in HWTEST_F() 554 std::string path = "path"; HWTEST_F() local 576 std::string path = "/"; HWTEST_F() local 593 std::string path = "path"; HWTEST_F() local 615 std::string path = "/"; HWTEST_F() local 632 std::string path = "path"; HWTEST_F() local 654 std::string path = "/"; HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_util.cpp | 74 * path should not include ".." or "./" or ".\0" 76 bool BundleUtil::CheckRealPath(const char *path) in CheckRealPath() argument 78 if (path == nullptr) { in CheckRealPath() 80 HILOG_ERROR(HILOG_MODULE_AAFWK, "[BMS] CheckRealPath path null"); in CheckRealPath() 84 if (strlen(path) > PATH_LENGTH) { in CheckRealPath() 86 HILOG_ERROR(HILOG_MODULE_AAFWK, "[BMS] CheckRealPath path too long:%d", strlen(path)); in CheckRealPath() 90 char *next = const_cast<char *>(path); in CheckRealPath() 98 HILOG_ERROR(HILOG_MODULE_AAFWK, "[BMS] CheckRealPath path fail:%d", *next); in CheckRealPath() 106 bool BundleUtil::IsFile(const char *path) in IsFile() argument 130 IsDir(const char *path) IsDir() argument 375 GetJsonStream(const char *path) GetJsonStream() argument 849 RemoveDir(const char *path) RemoveDir() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/ |
H A D | inode.c | 279 static int spufs_context_open(struct path *path) in spufs_context_open() argument 288 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_context_open() 410 struct path path = {.mnt = mnt, .dentry = dentry}; in spufs_create_context() local 449 ret = spufs_context_open(&path); in spufs_create_context() 498 static int spufs_gang_open(struct path *path) in spufs_gang_open() argument 509 * in error path of *_open(). in spufs_gang_open() 511 filp = dentry_open(path, O_RDONL in spufs_gang_open() 526 struct path path = {.mnt = mnt, .dentry = dentry}; spufs_create_gang() local 543 spufs_create(struct path *path, struct dentry *dentry, unsigned int flags, umode_t mode, struct file *filp) spufs_create() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/spufs/ |
H A D | inode.c | 278 static int spufs_context_open(const struct path *path) in spufs_context_open() argument 287 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_context_open() 409 struct path path = {.mnt = mnt, .dentry = dentry}; in spufs_create_context() local 448 ret = spufs_context_open(&path); in spufs_create_context() 494 static int spufs_gang_open(const struct path *path) in spufs_gang_open() argument 505 * in error path of *_open(). in spufs_gang_open() 507 filp = dentry_open(path, O_RDONL in spufs_gang_open() 522 struct path path = {.mnt = mnt, .dentry = dentry}; spufs_create_gang() local 539 spufs_create(const struct path *path, struct dentry *dentry, unsigned int flags, umode_t mode, struct file *filp) spufs_create() argument [all...] |
/kernel/linux/linux-6.6/tools/perf/arch/arm/util/ |
H A D | cs-etm.c | 78 char path[PATH_MAX]; in cs_etm_validate_context_id() local 97 snprintf(path, PATH_MAX, "cpu%d/%s", in cs_etm_validate_context_id() 99 err = perf_pmu__scan_file(cs_etm_pmu, path, "%x", &val); in cs_etm_validate_context_id() 104 path); in cs_etm_validate_context_id() 149 char path[PATH_MAX]; in cs_etm_validate_timestamp() local 164 snprintf(path, PATH_MAX, "cpu%d/%s", in cs_etm_validate_timestamp() 166 err = perf_pmu__scan_file(cs_etm_pmu, path, "%x", &val); in cs_etm_validate_timestamp() 171 CORESIGHT_ETM_PMU_NAME, path); in cs_etm_validate_timestamp() 251 char msg[BUFSIZ], path[PATH_MAX], *sink; in cs_etm_set_sink_attr() local 264 snprintf(path, PATH_MA in cs_etm_set_sink_attr() 567 char path[PATH_MAX]; cs_etm_is_etmv4() local 586 cs_etm_get_ro(struct perf_pmu *pmu, int cpu, const char *path) cs_etm_get_ro() argument 602 cs_etm_get_ro_signed(struct perf_pmu *pmu, int cpu, const char *path) cs_etm_get_ro_signed() argument 618 cs_etm_pmu_path_exists(struct perf_pmu *pmu, int cpu, const char *path) cs_etm_pmu_path_exists() argument [all...] |
/test/testfwk/developer_test/local_coverage/keyword_registration/ |
H A D | keyword_filter.py | 50 file_path = os.path.join(root_path, file) 61 css_file_path = os.path.join(root_path, file) 70 if os.path.exists(css_file_path): 81 os.path.normcase(os.path.join(os.path.dirname(gcov_file_path), file_name)) 85 os.path.normcase(os.path.join(self.report_path, file_name)) 95 self.keyword_file_path = os.path.normcase( 96 os.path [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | cpp_driver_lite.py | 116 if os.path.exists(self.result): 236 parser_instance.suites_name = os.path.basename(self.result) 285 report_path = os.path.join(self.config.report_path, "result") 291 os.path.join(report_path, "%s.xml" % execute_bin), 295 for xml_file in os.listdir(os.path.split(self.result)[0]): 298 if xml_file != os.path.split(self.result)[1]: 299 os.remove(os.path.join(os.path.split( 304 self.result = "%s.xml" % os.path.join(request.config.report_path, 411 os.path [all...] |
/third_party/node/deps/v8/tools/release/ |
H A D | common_includes.py | 54 VERSION_FILE = os.path.join("include", "v8-version.h") 59 V8_BASE = os.path.dirname( 60 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 65 path_to_depot_tools = os.path.join(V8_BASE, 'third_party', 'depot_tools') 321 os.path.join(self._options.work_dir, "v8")) 344 if not self._state and os.path.exists(state_file): 452 if not os.path.exists(os.path [all...] |
/third_party/nghttp2/src/ |
H A D | shrpx_log.cc | 547 return req.path; in construct_absolute_request_uri() 550 auto len = req.authority.size() + req.path.size(); in construct_absolute_request_uri() 569 p = std::copy(std::begin(req.path), std::end(req.path), p); in construct_absolute_request_uri() 598 auto path = in upstream_accesslog() local 601 : req.path.empty() ? req.method == HTTP_OPTIONS ? StringRef::from_lit("*") in upstream_accesslog() 603 : req.path; in upstream_accesslog() 606 ? path in upstream_accesslog() 607 : StringRef{std::begin(path), in upstream_accesslog() 608 std::find(std::begin(path), st in upstream_accesslog() 974 open_log_file(const char *path) open_log_file() argument [all...] |
/third_party/skia/tests/ |
H A D | PathOpsExtendedTest.cpp | 260 SkDebugf(" SkPath path, pathB;\n"); 261 SkPathOpsDebug::ShowOnePath(a, "path", false); 263 SkDebugf(" testPathOp(reporter, path, pathB, %s, filename);\n", opStrs[shapeOp]); 327 out.append("(skiatest::Reporter* reporter) {\n SkPath path"); 360 bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadState& state, 364 path.setFillType(fillType); 366 if (!Simplify(path, &out)) { 374 int result = comparePaths(state.fReporter, nullptr, path, out, *state.fBitmap); 381 pathPrefix = " path.setFillType(SkPathFillType::kEvenOdd);\n"; 384 const char testFunction[] = "testSimplify(reporter, path);"; 407 json_path_out(const SkPath& path, const char* pathName, const char* fillTypeName, bool lastField) json_path_out() argument 461 inner_simplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename, ExpectSuccess expectSuccess, SkipAssert skipAssert, ExpectMatch expectMatch) inner_simplify() argument 511 testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename) testSimplify() argument 516 testSimplifyFuzz(skiatest::Reporter* reporter, const SkPath& path, const char* filename) testSimplifyFuzz() argument 521 testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, const char* filename, bool checkFail) testSimplifyCheck() argument 527 testSimplifyFail(skiatest::Reporter* reporter, const SkPath& path, const char* filename) testSimplifyFail() argument [all...] |
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
H A D | libcpuset.c | 184 * which say that for cpu on node N (from the path above), the 398 * time_t get_mtime(char *path) 400 * Return modtime of file at location path, else return 0. 403 static time_t get_mtime(const char *path) in get_mtime() argument 407 if (stat(path, &statbuf) != 0) in get_mtime() 413 * int set_mtime(const char *path, time_t mtime) 415 * Set modtime of file 'path' to 'mtime'. Return 0 on success, 419 static int set_mtime(const char *path, time_t mtime) in set_mtime() argument 425 return utime(path, ×); in set_mtime() 430 * False if either path ca 941 load_flag(const char *path, char *flagp, const char *flag) load_flag() argument 967 load_number(const char *path, int *numberp, const char *file) load_number() argument 1012 load_mask(const char *path, struct bitmask **bmpp, int nbits, const char *mask) load_mask() argument 1053 exists_flag(const char *path, const char *flag) exists_flag() argument 1065 store_flag(const char *path, const char *flag, int val) store_flag() argument 1073 store_number(const char *path, const char *file, int val) store_number() argument 1084 store_mask(const char *path, const char *mask, const struct bitmask *bmp) store_mask() argument 1485 parse_distance_file(unsigned int node, const char *path) parse_distance_file() argument 1733 apply_cpuset_settings(const char *path, const struct cpuset *cp) apply_cpuset_settings() argument 2246 isdir(const char *path) isdir() argument 2722 __cpuset_move(pid_t pid, const char *path) __cpuset_move() argument 3104 char *path; global() member 3191 char *path; global() member [all...] |
/third_party/python/Lib/test/ |
H A D | test_mailbox.py | 46 if os.path.isdir(target): 48 elif os.path.exists(target): 515 self.assertFalse(os.path.exists(self._get_lock_path())) 517 self.assertTrue(os.path.exists(self._get_lock_path())) 519 self.assertFalse(os.path.exists(self._get_lock_path())) 554 # Return the path of the dot lock file. May be overridden. 562 box = mailbox.Mailbox('path') 596 _factory = lambda self, path, factory=None: mailbox.Maildir(path, factory) 604 self.assertEqual(os.listdir(os.path [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_vendor_makefile.py | 21 def __init__(self, root, vendor, kernel, path):
22 if path:
23 self.file_path = path
29 if not os.path.exists(self.file_path):
|
/foundation/ai/intelligent_voice_framework/tests/unittest/intell_voice_test/src/ |
H A D | trigger_manager_test.cpp | 43 void ReadFile(const std::string &path); 72 void TriggerManagerTest::ReadFile(const std::string &path) in ReadFile() argument 74 INTELL_VOICE_LOG_INFO("path: %{public}s", path.c_str()); in ReadFile() 76 infile.open(path, ios::in); in ReadFile()
|
/foundation/ability/ability_runtime/test/mock/frameworks_kits_runtime_test/ |
H A D | mock_runtime.h | 88 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) in RunScript() argument 97 napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) in LoadJsBundle() argument 101 napi_value LoadJsModule(const std::string& path, const std::string& hapPath) in LoadJsModule() argument 105 bool LoadScript(const std::string& path, std::vector<uint8_t>* buffer = nullptr, bool isBundle = false) in LoadScript() argument
|
/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/mock/amsthread/ |
H A D | ams_thread.h | 59 char path[APP_RECORD_STRING_BUFFER_MAX] = {0}; member 75 int StartAbilityInner(const char *path, const char *bundleName); 77 JSAppRecord *CreateNewAppRecord(const char *path, const char *bundleName); 80 JSAppRecord *GetAppRecordByInfo(const char *path, const char *bundleName);
|