/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_statvfs/ |
H A D | statvfs_n_exporter.cpp | 36 std::unique_ptr<char[]> path; in GetFreeSizeSync() local 37 tie(succ, path, std::ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in GetFreeSizeSync() 39 HILOGE("Invalid path"); in GetFreeSizeSync() 45 int ret = statvfs(path.get(), &diskInfo); in GetFreeSizeSync() 65 std::unique_ptr<char []> path; in GetFreeSize() local 66 tie(succ, path, std::ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in GetFreeSize() 68 HILOGE("Invalid path"); in GetFreeSize() 74 std::string pathString(path.get()); in GetFreeSize() 112 std::unique_ptr<char[]> path; in GetTotalSizeSync() local 113 tie(succ, path, st in GetTotalSizeSync() 141 std::unique_ptr<char []> path; GetTotalSize() local [all...] |
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/ |
H A D | egl_wrapper_loader.cpp | 57 std::string path = std::string(VENDOR_LIB_PATH) + std::string(libName); in LoadEgl() local 59 if (!PathToRealPath(path, realPath) || in LoadEgl() 61 WLOGD("Vendor path is invalid or not within vendor directory: %{private}s", path.c_str()); in LoadEgl() 67 path = std::string(SYSTEM_LIB_PATH) + std::string(libName); in LoadEgl() 68 if (!PathToRealPath(path, realPath) || in LoadEgl() 70 WLOGE("System path is invalid or not within system directory: %{private}s", path.c_str()); in LoadEgl() 110 std::string path = std::string(VENDOR_LIB_PATH) + std::string(libName); in LoadGl() local 113 if (!PathToRealPath(path, realPat in LoadGl() [all...] |
/test/xts/acts/storage/storagefilesharendktest/entry/src/main/cpp/ |
H A D | fileshare.cpp | 28 char path[] = in FileShare_001() local 31 {path, sizeof(path) - 1, FileShare_OperationMode::READ_MODE}}; in FileShare_001() 67 char path[] = in FileShare_003() local 70 {path, sizeof(path) - 1, FileShare_OperationMode::READ_MODE}}; in FileShare_003() 87 char path[] = in FileShare_004() local 90 {path, sizeof(path) - 1, FileShare_OperationMode::READ_MODE}}; in FileShare_004() 109 char path[] in FileShare_005() local [all...] |
/test/xts/hats/kernel/syscalls/fileio/fchownat/ |
H A D | FchownatApiTest.cpp | 64 * @tc.desc : fchownat change specify path file owner id and group id success. 99 * @tc.desc : fchownat change current path file owner id and group id by AT_FDCWD success. 107 char path[PATH_MAX_LEN]; in HWTEST_F() local 112 char *dir = getcwd(path, sizeof(path)); in HWTEST_F() 131 chdir(path); in HWTEST_F() 166 char path[PATH_MAX_LEN]; in HWTEST_F() local 167 char *dir = getcwd(path, sizeof(path)); in HWTEST_F() 193 chdir(path); in HWTEST_F() 209 char path[PATH_MAX_LEN]; HWTEST_F() local [all...] |
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ |
H A D | RbPath.java | 22 * A resource bundle path, used to identify entries in ICU data. 58 * Returns a path with the specified segments in (possibly empty). Note that unlike 59 * {@link #parse(String)}, {@code '/'} is not treated specially and can be present in a path 67 * Returns a path with the specified segments in (possibly empty). Note that unlike 68 * {@link #parse(String)}, {@code '/'} is not treated specially and can be present in a path 75 /** Parses the given path string, assuming {@code '/'} as a path separator. */ 76 public static RbPath parse(String path) { in parse() argument 77 checkArgument(!path.isEmpty(), "cannot parse an empty path strin in parse() 158 contains(RbPath path) contains() argument 169 matchesSublist(RbPath path, int offset) matchesSublist() argument [all...] |
/third_party/libuv/src/ |
H A D | heap-inl.h | 112 unsigned int path; in HEAP_EXPORT() local 120 /* Calculate the path from the root to the insertion point. This is a min in HEAP_EXPORT() 123 path = 0; in HEAP_EXPORT() 125 path = (path << 1) | (n & 1); in HEAP_EXPORT() 127 /* Now traverse the heap using the path we calculated in the previous step. */ in HEAP_EXPORT() 131 if (path & 1) in HEAP_EXPORT() 135 path >>= 1; in HEAP_EXPORT() 157 unsigned int path; in HEAP_EXPORT() local 164 /* Calculate the path fro in HEAP_EXPORT() [all...] |
/third_party/mbedtls/scripts/ |
H A D | generate_driver_wrappers.py | 45 loader=jinja2.FileSystemLoader(os.path.dirname(template_path)), 47 template = environment.get_template(os.path.basename(template_path)) 59 os.path.join(template_dir, template_file_name) 63 with open(file=os.path.join(output_dir, os.path.splitext(template_file_name)[0]), 116 'transparent': os.path.join(project_root, 121 'opaque': os.path.join(project_root, 142 with open(file=os.path.join(json_directory, jsondriver_list), 148 driver_file=os.path.join(json_directory, driver_file_name)) 179 project_root = os.path [all...] |
/third_party/node/test/parallel/ |
H A D | test-fs-rmdir-recursive.js | 7 const path = require('path'); 12 'In future versions of Node.js, fs.rmdir(path, { recursive: true }) ' + 13 'will be removed. Use fs.rm(path, { recursive: true }) instead', 21 path.join(tmpdir.path, `${name}-${count++}`); 25 fs.writeFileSync(path.join(dirname, 'text.txt'), 'hello', 'utf8'); 30 fs.writeFileSync(path.join(dirname, `f-${depth}-${f}`), '', options); 37 path.join(dirname, `link-${depth}-good`), 44 path [all...] |
H A D | test-fs-utimes.js | 32 const lpath = `${tmpdir.path}/symlink`; 73 const stats = fs.statSync(tmpdir.path); 75 const asPath = (path) => path; 76 const asUrl = (path) => url.pathToFileURL(path); 101 fs.utimes(pathType(tmpdir.path), atime, mtime, common.mustCall((err) => { 102 expect_ok('utimes', tmpdir.path, err, atime, mtime); 112 fd = fs.openSync(tmpdir.path, 'r+'); 114 fd = fs.openSync(tmpdir.path, ' [all...] |
/third_party/ltp/testcases/kernel/syscalls/nftw/ |
H A D | lib64.c | 55 * Create a path containing a component of length pathconf(NAME_MAX) + 1 179 char *path, *tmpPtr; in test_ENAMETOOLONG_path() local 194 if ((path = malloc(pcPathMax + 2)) == NULL) { in test_ENAMETOOLONG_path() 195 tst_resm(TFAIL, "malloc(%zu) for path failed: %s", in test_ENAMETOOLONG_path() 200 path = strcpy(path, tmp_path); in test_ENAMETOOLONG_path() 201 pathLength = (int)strlen(path); in test_ENAMETOOLONG_path() 204 /* leave some chars for element that pushes path over PC_PATH_MAX */ in test_ENAMETOOLONG_path() 207 tmpPtr = path + strlen(path); in test_ENAMETOOLONG_path() [all...] |
H A D | lib.c | 55 * Create a path containing a component of length pathconf(NAME_MAX) + 1 179 char *path, *tmpPtr; in test_ENAMETOOLONG_path() local 194 if ((path = malloc(pcPathMax + 2)) == NULL) { in test_ENAMETOOLONG_path() 195 tst_resm(TFAIL, "malloc(%zu) for path failed: %s", in test_ENAMETOOLONG_path() 200 path = strcpy(path, tmp_path); in test_ENAMETOOLONG_path() 201 pathLength = (int)strlen(path); in test_ENAMETOOLONG_path() 204 /* leave some chars for element that pushes path over PC_PATH_MAX */ in test_ENAMETOOLONG_path() 207 tmpPtr = path + strlen(path); in test_ENAMETOOLONG_path() [all...] |
/third_party/node/deps/uv/src/ |
H A D | heap-inl.h | 111 unsigned int path; in HEAP_EXPORT() local 119 /* Calculate the path from the root to the insertion point. This is a min in HEAP_EXPORT() 122 path = 0; in HEAP_EXPORT() 124 path = (path << 1) | (n & 1); in HEAP_EXPORT() 126 /* Now traverse the heap using the path we calculated in the previous step. */ in HEAP_EXPORT() 130 if (path & 1) in HEAP_EXPORT() 134 path >>= 1; in HEAP_EXPORT() 156 unsigned int path; in HEAP_EXPORT() local 163 /* Calculate the path fro in HEAP_EXPORT() [all...] |
/third_party/rust/crates/clap/clap_derive/src/ |
H A D | attr.rs | 28 let kind = if attr.path().is_ident("clap") { in parse_all() 29 Sp::new(AttrKind::Clap, attr.path().span()) in parse_all() 30 } else if attr.path().is_ident("structopt") { in parse_all() 31 Sp::new(AttrKind::StructOpt, attr.path().span()) in parse_all() 32 } else if attr.path().is_ident("command") { in parse_all() 33 Sp::new(AttrKind::Command, attr.path().span()) in parse_all() 34 } else if attr.path().is_ident("group") { in parse_all() 35 Sp::new(AttrKind::Group, attr.path().span()) in parse_all() 36 } else if attr.path().is_ident("arg") { in parse_all() 37 Sp::new(AttrKind::Arg, attr.path() in parse_all() [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | test_upload.py | 118 path = os.path.join(tmp, 'xxx') 119 self.write_file(path) 120 command, pyversion, filename = 'xxx', '2.6', path 167 path = os.path.join(tmp, 'xxx') 168 self.write_file(path, content='yy\r') 169 command, pyversion, filename = 'xxx', '2.6', path 195 path = os.path [all...] |
/third_party/openssl/crypto/http/ |
H A D | http_lib.c | 49 const char *path, *path_end; in OSSL_parse_url() local 94 /* look for start of optional port, path, query, or fragment */ in OSSL_parse_url() 122 /* check for optional path starting with '/' or '?'. Else must start '#' */ in OSSL_parse_url() 123 path = p; in OSSL_parse_url() 124 if (*path != '\0' && *path != '/' && *path != '?' && *path != '#') { in OSSL_parse_url() 128 path_end = query = query_end = frag = frag_end = path + strlen(path); in OSSL_parse_url() [all...] |
/third_party/skia/samplecode/ |
H A D | SampleCusp.cpp | 32 // Create a path with one or two cubics, where one has a cusp. 34 SkPath path; in cusp() local 35 path.moveTo(P[0]); in cusp() 42 path.cubicTo(P[1], P[2], P[3]); in cusp() 46 path.cubicTo(PP[1], PP[2], PP[3]); in cusp() 47 path.cubicTo(PP[4], PP[5], PP[6]); in cusp() 50 return path; in cusp() 114 SkPath path; 121 path.moveTo( SkBits2Float(dat[i].pt[0].fX), SkBits2Float(dat[i].pt[0].fY)); 122 path 126 SkPath path; global() variable [all...] |
/third_party/skia/src/pathops/ |
H A D | SkPathOpsSimplify.cpp | 140 bool SimplifyDebug(const SkPath& path, SkPath* result in SimplifyDebug() argument 143 SkPathFillType fillType = path.isInverseFillType() ? SkPathFillType::kInverseEvenOdd in SimplifyDebug() 145 if (path.isConvex()) { in SimplifyDebug() 146 if (result != &path) { in SimplifyDebug() 147 *result = path; in SimplifyDebug() 152 // turn path into list of segments in SimplifyDebug() 164 SkPathOpsDebug::DumpSimplify(path, testName); in SimplifyDebug() 170 SkOpEdgeBuilder builder(path, contourList, &globalState); in SimplifyDebug() 214 bool Simplify(const SkPath& path, SkPath* result) { in Simplify() argument 217 if (!SimplifyDebug(path, resul in Simplify() [all...] |
/third_party/skia/third_party/externals/angle2/util/ |
H A D | test_utils_unittest.cpp | 82 char path[kMaxPath] = {}; in TEST() local 83 ASSERT_TRUE(CreateTemporaryFile(path, kMaxPath)); in TEST() 84 ASSERT_TRUE(strlen(path) > 0); in TEST() 88 FILE *fp = fopen(path, "wt"); in TEST() 97 EXPECT_TRUE(ReadEntireFileToString(path, actualString, kMaxPath)); in TEST() 101 EXPECT_TRUE(angle::DeleteSystemFile(path)); in TEST() 110 char path[kMaxPath] = {}; in TEST() local 111 ASSERT_TRUE(CreateTemporaryFileInDir(tempDir, path, kMaxPath)); in TEST() 112 ASSERT_TRUE(strlen(path) > 0); in TEST() 116 FILE *fp = fopen(path, "w in TEST() [all...] |
/third_party/skia/tools/ |
H A D | git-sync-deps | 14 GIT_EXECUTABLE: path to "git" binary; if unset, will look for git in 15 your default path. 24 cd path/to/repository 28 cd path/to/repository 59 DEFAULT_DEPS_PATH = os.path.normpath( 60 os.path.join(os.path.dirname(__file__), os.pardir, 'DEPS')) 91 directory (string) the path into which the repository 97 return os.path.realpath(directory) == os.path [all...] |
/third_party/python/PC/ |
H A D | python_uwp.cpp | 68 std::wstring path { localCache.Path().c_str() }; in get_user_base() 69 if (!path.empty()) { in get_user_base() 70 return path + L"\\local-packages"; in get_user_base() 85 std::wstring path; in get_package_home() local 86 path.resize(pathLength); in get_package_home() 87 DWORD rc = GetCurrentPackagePath(&pathLength, path.data()); in get_package_home() 89 path.resize(pathLength - 1); in get_package_home() 90 return path; in get_package_home() 95 path.resize(pathLength); in get_package_home() 96 rc = GetCurrentPackagePath(&pathLength, path in get_package_home() [all...] |
/third_party/python/Lib/test/test_importlib/ |
H A D | test_threaded_import.py | 79 def find_spec(self, name, path=None, target=None): 94 def find_spec(self, name, path=None, target=None): 161 # In order for our path hook to be called at each import, we need 165 def path_hook(path): 204 sys.path.insert(0, TESTFN) 205 self.addCleanup(sys.path.remove, TESTFN) 208 with open(os.path.join(TESTFN, name + ".py"), "wb") as f: 238 sys.path.insert(0, os.curdir) 239 self.addCleanup(sys.path.remove, os.curdir) 253 fn = os.path [all...] |
/third_party/vk-gl-cts/scripts/verify/ |
H A D | verify.py | 26 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "log")) 27 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "build")) 101 statementPath = os.path.join(package.basePath, package.statement) 149 statusPath = os.path.join(package.basePath, s) 160 logPath = os.path.join(package.basePath, gitLog) 169 for log, path i [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_uc_fw.c | 60 uc_fw->file_selected.path : intel_uc_fw_status_repr(status)); in intel_uc_fw_change_status() 188 const char *path; in INTEL_GUC_FIRMWARE_DEFS() local 200 .path = path_, 300 if (uc_fw->file_selected.path) { in __uc_fw_auto_select() 303 * Once the previously chosen path has been found, clear it out in __uc_fw_auto_select() 306 if (uc_fw->file_selected.path == blob->path) in __uc_fw_auto_select() 307 uc_fw->file_selected.path = NULL; in __uc_fw_auto_select() 312 uc_fw->file_selected.path = blob->path; in __uc_fw_auto_select() 454 const char *path = NULL; __uc_fw_user_override() local [all...] |
/kernel/liteos_m/components/fs/vfs/ |
H A D | vfs_fs.c | 119 * @brief Get canonical form of a given path based on cwd(Current working directory). 122 * @param path Indicates the path to be canonicalization. 125 * @return Returns the length of the canonical path. 127 * @attention if path is an absolute path, cwd is ignored. if cwd if not specified, it is assumed to be root('/'). 129 * length of the canonical path. 131 static size_t GetCanonicalPath(const char *cwd, const char *path, char *buf, size_t bufSize) in GetCanonicalPath() argument 134 if (!path) { in GetCanonicalPath() 135 path in GetCanonicalPath() 207 VfsPathCheck(const char *path, bool isFile) VfsPathCheck() argument 229 VfsOpen(const char *path, int flags) VfsOpen() argument 494 open(const char *path, int flags, ...) open() argument 690 stat(const char *path, struct stat *stat) stat() argument 730 statfs(const char *path, struct statfs *buf) statfs() argument 767 unlink(const char *path) unlink() argument 883 opendir(const char *path) opendir() argument 1011 mkdir(const char *path, mode_t mode) mkdir() argument 1044 rmdir(const char *path) rmdir() argument 1074 lstat(const char *path, struct stat *buffer) lstat() argument 1267 access(const char *path, int amode) access() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
H A D | phy.c | 798 /* BoardType of each RF path is matched*/ in _rtl8821ae_check_positive() 908 u8 band, u8 path, in _rtl8821ae_phy_set_txpower_by_rate_base() 915 if (path > RF90_PATH_D) { in _rtl8821ae_phy_set_txpower_by_rate_base() 917 "Invalid Rf Path %d in phy_SetTxPowerByRatBase()\n", path); in _rtl8821ae_phy_set_txpower_by_rate_base() 924 rtlphy->txpwr_by_rate_base_24g[path][txnum][0] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 927 rtlphy->txpwr_by_rate_base_24g[path][txnum][1] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 930 rtlphy->txpwr_by_rate_base_24g[path][txnum][2] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 933 rtlphy->txpwr_by_rate_base_24g[path][txnum][3] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 936 rtlphy->txpwr_by_rate_base_24g[path][txnum][4] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 939 rtlphy->txpwr_by_rate_base_24g[path][txnu in _rtl8821ae_phy_set_txpower_by_rate_base() 907 _rtl8821ae_phy_set_txpower_by_rate_base(struct ieee80211_hw *hw, u8 band, u8 path, u8 rate_section, u8 txnum, u8 value) _rtl8821ae_phy_set_txpower_by_rate_base() argument 976 _rtl8821ae_phy_get_txpower_by_rate_base(struct ieee80211_hw *hw, u8 band, u8 path, u8 txnum, u8 rate_section) _rtl8821ae_phy_get_txpower_by_rate_base() argument 1053 u8 base = 0, path = 0; _rtl8821ae_phy_store_txpower_by_rate_base() local 2226 _rtl8821ae_phy_get_ratesection_intxpower_byrate(u8 path, u8 rate) _rtl8821ae_phy_get_ratesection_intxpower_byrate() argument 2490 _rtl8821ae_phy_get_txpower_by_rate(struct ieee80211_hw *hw, u8 band, u8 path, u8 rate) _rtl8821ae_phy_get_txpower_by_rate() argument 2601 _rtl8821ae_get_txpower_index(struct ieee80211_hw *hw, u8 path, u8 rate, u8 bandwidth, u8 channel) _rtl8821ae_get_txpower_index() argument 2728 _rtl8821ae_phy_set_txpower_index(struct ieee80211_hw *hw, u8 power_index, u8 path, u8 rate) _rtl8821ae_phy_set_txpower_index() argument 3137 _rtl8821ae_phy_set_txpower_level_by_path(struct ieee80211_hw *hw, u8 *array, u8 path, u8 channel, u8 size) _rtl8821ae_phy_set_txpower_level_by_path() argument 3156 _rtl8821ae_phy_txpower_training_by_path(struct ieee80211_hw *hw, u8 bw, u8 channel, u8 path) _rtl8821ae_phy_txpower_training_by_path() argument 3194 rtl8821ae_phy_set_txpower_level_by_path(struct ieee80211_hw *hw, u8 channel, u8 path) rtl8821ae_phy_set_txpower_level_by_path() argument 3258 u8 path = 0; rtl8821ae_phy_set_txpower_level() local 3495 u8 path; rtl8821ae_phy_sw_chnl_callback() local 3673 _rtl8821ae_iqk_tx_fill_iqc(struct ieee80211_hw *hw, enum radio_path path, u32 tx_x, u32 tx_y) _rtl8821ae_iqk_tx_fill_iqc() argument 3699 _rtl8821ae_iqk_rx_fill_iqc(struct ieee80211_hw *hw, enum radio_path path, u32 rx_x, u32 rx_y) _rtl8821ae_iqk_rx_fill_iqc() argument 3722 _rtl8821ae_iqk_tx(struct ieee80211_hw *hw, enum radio_path path) _rtl8821ae_iqk_tx() argument 4415 _rtl8821ae_iqk_restore_rf(struct ieee80211_hw *hw, enum radio_path path, u32 *backup_rf_reg, u32 *rf_backup, u32 rf_reg_num) _rtl8821ae_iqk_restore_rf() argument [all...] |