/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | xml-utils.h | 85 const char *path); 87 const char *path);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | xml-utils.h | 85 const char *path); 87 const char *path);
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/ |
H A D | dlp_file.cpp | 420 static bool IsExistFile(const std::string& path) in IsExistFile() argument 422 if (path.empty()) { in IsExistFile() 427 if (stat(path.c_str(), &buf) != 0) { in IsExistFile() 434 static int32_t GetFileContent(const std::string& path, std::string& content) in GetFileContent() argument 436 if (!IsExistFile(path)) { in GetFileContent() 437 DLP_LOG_INFO(LABEL, "cannot find file, path = %{public}s", path.c_str()); in GetFileContent() 441 std::ifstream i(path); in GetFileContent() 443 DLP_LOG_INFO(LABEL, "cannot open file %{public}s, errno %{public}d.", path.c_str(), errno); in GetFileContent() 738 int32_t DlpFile::GetTempFile(const std::string& workDir, int32_t& tempFile, std::string& path) in GetTempFile() argument 769 std::string path; UpdateCertAndText() local [all...] |
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/ |
H A D | local_socket_exec.cpp | 72 MsgWithLocalRemoteInfo(void *d, size_t length, const std::string &path) : data(d), len(length) in MsgWithLocalRemoteInfo() 74 remoteInfo.SetAddress(path); in MsgWithLocalRemoteInfo() 222 static bool OnRecvLocalSocketMessage(EventManager *manager, void *data, size_t len, const std::string &path) in OnRecvLocalSocketMessage() argument 228 MsgWithLocalRemoteInfo *msg = new (std::nothrow) MsgWithLocalRemoteInfo(data, len, path); in OnRecvLocalSocketMessage() 363 explicit LocalSocketMessageCallback(EventManager *manager, const std::string &path = "") in LocalSocketMessageCallback() 364 : manager_(manager), socketPath_(path) in LocalSocketMessageCallback() 489 const LocalSocketMessageCallback &callback, const std::string &path) in LocalSocketServerRecvHandler() 541 const std::string &path) in LocalSocketServerAccept() 572 std::ref(path)); in LocalSocketServerAccept() 769 NETSTACK_LOGE("failed to copy socket path, sockf in ExecLocalSocketBind() 488 LocalSocketServerRecvHandler(int connectFd, LocalSocketServerManager *serverManager, const LocalSocketMessageCallback &callback, const std::string &path) LocalSocketServerRecvHandler() argument 540 LocalSocketServerAccept(LocalSocketServerManager *mgr, const LocalSocketMessageCallback &callback, const std::string &path) LocalSocketServerAccept() argument 1263 auto path = context->GetSocketPath(); LocalSocketGetLocalAddressCallback() local 1326 auto path = context->GetSocketPath(); LocalSocketServerGetLocalAddressCallback() local 1371 auto path = context->GetSocketPath(); LocalSocketConnectionGetLocalAddressCallback() local [all...] |
/foundation/filemanagement/app_file_service/test/unittest/file_permission_native/src/ |
H A D | file_permission_test.cpp | 430 std::string path = FilePermission::GetPathByPermission("", PermissionName); in HWTEST_F() local 431 EXPECT_EQ(path, sandboxPath); in HWTEST_F() 447 std::string path = FilePermission::GetPathByPermission("", PermissionName); in HWTEST_F() local 448 EXPECT_EQ(path, sandboxPath); in HWTEST_F() 464 std::string path = FilePermission::GetPathByPermission("", PermissionName); in HWTEST_F() local 465 EXPECT_EQ(path, sandboxPath); in HWTEST_F() 613 PolicyInfo infoA = {.path = "file://" + BUNDLE_NAME_A + "/storage/001.txt"}; in HWTEST_F() 614 PolicyInfo infoB = {.path = BUNDLE_NAME_A + "/storage/001.txt"}; in HWTEST_F() 615 PolicyInfo infoC = {.path = "file://media/Photo/10/1.jpeg"}; in HWTEST_F() 616 PolicyInfo infoD = {.path in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_file_manager.c | 413 char *GetFullFilePath(const char *path, const char *fileName) in GetFullFilePath() argument 418 if (path == NULL || fileName == NULL) { in GetFullFilePath() 422 if ((CheckPathSeprator(path) == NSTACKX_TRUE) || (CheckFilenameSeprator(fileName) == NSTACKX_TRUE)) { in GetFullFilePath() 423 fullPathLength = (uint32_t)(strlen(path) + strlen(fileName) + sizeof('\0')); in GetFullFilePath() 425 fullPathLength = (uint32_t)(strlen(path) + sizeof(PATH_SEPARATOR) + strlen(fileName) + sizeof('\0')); in GetFullFilePath() 430 DFILE_LOGE(TAG, "full path calloc error"); in GetFullFilePath() 434 if ((CheckPathSeprator(path) == NSTACKX_TRUE) || (CheckFilenameSeprator(fileName) == NSTACKX_TRUE)) { in GetFullFilePath() 435 ret = sprintf_s(fullPath, fullPathLength, "%s%s", path, fileName); in GetFullFilePath() 437 ret = sprintf_s(fullPath, fullPathLength, "%s%c%s", path, PATH_SEPARATOR, fileName); in GetFullFilePath() 441 DFILE_LOGE(TAG, "splice path an in GetFullFilePath() 448 ClearIncompleteRecvFiles(const char *path, FileListTask *fileList) ClearIncompleteRecvFiles() argument 470 FileInfoWriteInit(FileInfo *fileInfo, const char *path, uint8_t isTruncate) FileInfoWriteInit() argument 1295 FileManagerSetWritePathList(FileManager *fileManager, char *path[], uint16_t *pathType, uint16_t pathNum) FileManagerSetWritePathList() argument [all...] |
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_ladspa.c | 1145 const char *path, in snd_pcm_ladspa_check_dir() 1151 int len = strlen(path), err; in snd_pcm_ladspa_check_dir() 1157 need_slash = path[len - 1] != '/'; in snd_pcm_ladspa_check_dir() 1159 dir = opendir(path); in snd_pcm_ladspa_check_dir() 1175 strcpy(filename, path); in snd_pcm_ladspa_check_dir() 1195 const char *path, in snd_pcm_ladspa_look_for_plugin() 1203 for (c = path; (l = strcspn(c, ": ")) > 0; ) { in snd_pcm_ladspa_look_for_plugin() 1427 const char *path, in snd_pcm_ladspa_add_plugin() 1507 err = snd_pcm_ladspa_look_for_plugin(lplug, path, label, ladspa_id); in snd_pcm_ladspa_add_plugin() 1509 SNDERR("Unable to find or load plugin '%s' ID %li, path ' in snd_pcm_ladspa_add_plugin() 1144 snd_pcm_ladspa_check_dir(snd_pcm_ladspa_plugin_t * const plugin, const char *path, const char *label, const unsigned long ladspa_id) snd_pcm_ladspa_check_dir() argument 1194 snd_pcm_ladspa_look_for_plugin(snd_pcm_ladspa_plugin_t * const plugin, const char *path, const char *label, const long ladspa_id) snd_pcm_ladspa_look_for_plugin() argument 1426 snd_pcm_ladspa_add_plugin(struct list_head *list, const char *path, snd_config_t *plugin, int reverse) snd_pcm_ladspa_add_plugin() argument 1528 snd_pcm_ladspa_build_plugins(struct list_head *list, const char *path, snd_config_t *plugins, int reverse) snd_pcm_ladspa_build_plugins() argument 1741 const char *path = NULL; _snd_pcm_ladspa_open() local [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_streams.py | 644 def __init__(self, loop, path): 647 self.path = path 659 path=self.path)) 667 path=self.path) 676 async def client(path): 677 reader, writer = await asyncio.open_unix_connection(path) 690 with test_utils.unix_socket_path() as path [all...] |
/third_party/skia/src/core/ |
H A D | SkScan_AAAPath.cpp | 37 algorithm. We consider a path as a collection of line segments, as 57 the coverage of this horizontal strip of our path on each pixel. This can be 58 done very efficiently because the strip of our path now only consists of 86 unnessasary horizontal scan lines. For example, given a triangle path, the 139 // We need this mask blitter because it significantly accelerates small path filling. 150 // the absolute real blitter (e.g., when we fall back to the old code path). 464 // This exists specifically for concave path filling. 873 // to exclude the area that's not covered by the path. 1848 const SkPath& path, 1859 int count = builder.buildEdges(path, pathContainedInCli [all...] |
/base/account/os_account/services/accountmgr/src/account_iam/ |
H A D | inner_account_iam_manager.cpp | 121 std::string path = Constants::USER_INFO_BASE + Constants::PATH_SEPARATOR + std::to_string(userId) + in AddCredential() local 124 ErrCode code = accountFileOperator->InputFileByPathAndContent(path, ""); in AddCredential() 127 ACCOUNT_LOGE("Input file fail, path=%{public}s", path.c_str()); in AddCredential() 455 std::string path = Constants::USER_INFO_BASE + Constants::PATH_SEPARATOR + std::to_string(userId) + in HandleFileKeyException() local 458 bool isExistFile = accountFileOperator->IsExistFile(path); in HandleFileKeyException() 493 code = accountFileOperator->DeleteDirOrFile(path); in HandleFileKeyException() 497 ACCOUNT_LOGE("Delete file fail, path=%{public}s", path.c_str()); in HandleFileKeyException()
|
/base/powermgr/thermal_manager/services/native/src/thermal_policy/ |
H A D | thermal_srv_config_parser.cpp | 40 bool ThermalSrvConfigParser::ThermalSrvConfigInit(const std::string& path) in ThermalSrvConfigInit() argument 42 if (ParseXmlFile(path)) { in ThermalSrvConfigInit() 48 bool ThermalSrvConfigParser::DecryptConfig(const std::string& path, std::string& result) in DecryptConfig() argument 50 if (path.compare(0, SYSTEM_PREFIX_INDEX, SYSTEM_PREFIX) == 0) { in DecryptConfig() 86 bool ThermalSrvConfigParser::ParseXmlFile(const std::string& path) in ParseXmlFile() argument 90 if (DecryptConfig(path, result)) { in ParseXmlFile() 96 docParse = xmlReadFile(path.c_str(), nullptr, XML_PARSE_NOBLANKS); in ParseXmlFile()
|
/base/security/security_guard/test/unittest/config_manager/src/ |
H A D | security_guard_config_manager_test.cpp | 177 std::string path = "test path"; in HWTEST_F() local 178 config.path = path; in HWTEST_F() 183 EXPECT_TRUE(outConfig.path == config.path); in HWTEST_F() 281 EXPECT_TRUE(modelCfg.path == "preset_model"); in HWTEST_F() 300 EXPECT_TRUE(modelCfg.path == "update_model"); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_slider_modifier.cpp | 392 auto path = AceType::MakeRefPtr<Path>(); in SetSliderBlockPath() local 396 path->SetWidth(width); in SetSliderBlockPath() 397 path->SetHeight(height); in SetSliderBlockPath() 398 path->SetValue(StringUtils::TrimStr(pathCommands)); in SetSliderBlockPath() 399 SliderModelNG::SetBlockShape(frameNode, path); in SetSliderBlockPath() 623 auto path = AceType::DynamicCast<Path>(basicShape); in GetSliderBlockShape() local 624 g_strValue = path->GetValue(); in GetSliderBlockShape()
|
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_multifinger_multitap.cpp | 724 bool AccessibilityMultiTapGestureRecognizer::recognizeGesturePath(const std::vector<Pointer> &path) in recognizeGesturePath() argument 727 if (path.size() < MIN_MOVE_POINTER_NUM) { in recognizeGesturePath() 731 int pathSize = static_cast<int>(path.size() - 1); in recognizeGesturePath() 733 int32_t dx = static_cast<int32_t>(path[routerIndex + 1].px_ - path[routerIndex].px_); in recognizeGesturePath() 734 int32_t dy = static_cast<int32_t>(path[routerIndex + 1].py_ - path[routerIndex].py_); in recognizeGesturePath()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | skill.cpp | 41 constexpr const char* JSON_KEY_PATH = "path"; 209 // if uri is a file path, match type by the suffix in MatchUriAndType() 304 // if uri is a file path, match type by the suffix in MatchUriAndType() 366 if (skillUri.path.empty() && skillUri.pathStartWith.empty() && skillUri.pathRegex.empty()) { in MatchUri() 370 // 2.scheme://host:port/path in MatchUri() 375 // 2.scheme://host/path in MatchUri() 376 // 3.scheme://host:port scheme://host:port/path in MatchUri() 384 // if one of path, pathStartWith, pathRegex match, then match in MatchUri() 385 if (!skillUri.path.empty()) { in MatchUri() 386 // path matc in MatchUri() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_extend_resource_manager_test/ |
H A D | bms_extend_resource_manager_test.cpp | 465 * @tc.desc: 1.test create fd by bundle name and path 472 std::string path = FILE_PATH; in HWTEST_F() local 473 ErrCode code = impl.CreateFd(fileName, fd, path); in HWTEST_F() 475 code = impl.CreateFd(BUNDLE_NAME, fd, path); in HWTEST_F() 773 std::string path; in HWTEST_F() local 774 auto res = impl.CreateFd(fileName, fd, path); in HWTEST_F() 788 std::string path; in HWTEST_F() local 789 auto res = impl.CreateFd(fileName, fd, path); in HWTEST_F()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | image_utils.cpp | 250 bool ImageUtils::PathToRealPath(const string &path, string &realPath) in PathToRealPath() argument 252 if (path.empty()) { in PathToRealPath() 253 IMAGE_LOGE("path is empty!"); in PathToRealPath() 257 if ((path.length() >= PATH_MAX)) { in PathToRealPath() 258 IMAGE_LOGE("path len is error, the len is: [%{public}lu]", static_cast<unsigned long>(path.length())); in PathToRealPath() 265 if (_fullpath(tmpPath, path.c_str(), path.length()) == nullptr) { in PathToRealPath() 266 IMAGE_LOGW("path to _fullpath error"); in PathToRealPath() 269 if (realpath(path in PathToRealPath() [all...] |
/foundation/multimedia/player_framework/frameworks/native/player/test/unittest/src/ |
H A D | player_mock.cpp | 374 int32_t PlayerMock::SetSource(const std::string &path, int64_t offset, int64_t size) in SetSource() argument 377 std::string rawFile = path.substr(strlen("file://")); in SetSource() 404 int32_t PlayerMock::SetDataSrc(const std::string &path, int32_t size, bool seekable) in SetDataSrc() argument 407 dataSrc_ = MediaDataSourceTestSeekable::Create(path, size); in SetDataSrc() 409 dataSrc_ = MediaDataSourceTestNoSeek::Create(path, size); in SetDataSrc() 700 int32_t PlayerMock::AddSubSource(const std::string &path, int64_t offset, int64_t size) in AddSubSource() argument 703 std::string rawFile = path.substr(strlen("file://")); in AddSubSource()
|
/third_party/gn/src/gn/ |
H A D | xcode_writer.cc | 204 // Returns a SourceFile for absolute path `file_path` below `//`. 392 // Returns the path to root_src_dir from settings. 737 for (const auto& path : g_scheduler->GetGenDependencies()) { in AddSourcesFromBuilder() 738 if (!build_settings_->root_path().IsParent(path)) in AddSourcesFromBuilder() 741 const SourceFile source = FilePathToSourceFile(build_settings_, path); in AddSourcesFromBuilder() 759 for (base::FilePath path = it.Next(); !path.empty(); path = it.Next()) { in AddSourcesFromBuilder() 760 const SourceFile source = FilePathToSourceFile(build_settings_, path); in AddSourcesFromBuilder()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | LocaleDisplayNamesImpl.java | 672 public ICUDataTable(String path, ULocale locale, boolean nullIfNotFound) { in ICUDataTable() argument 675 path, locale.getBaseName()); in ICUDataTable() 707 private final String path; field in LocaleDisplayNamesImpl.ICUDataTables 709 protected ICUDataTables(String path) { in ICUDataTables() argument 710 this.path = path; in ICUDataTables() 715 return new ICUDataTable(path, locale, nullIfNotFound); in get()
|
/third_party/icu/tools/unicode/c/genprops/ |
H A D | casepropsbuilder.cpp | 277 virtual void writeCSourceFile(const char *path, UErrorCode &errorCode); 278 virtual void writeBinaryData(const char *path, UBool withCopyright, UErrorCode &errorCode); 1185 CasePropsBuilder::writeCSourceFile(const char *path, UErrorCode &errorCode) { in writeCSourceFile() argument 1188 FILE *f=usrc_create(path, "ucase_props_data.h", 2016, in writeCSourceFile() 1237 CasePropsBuilder::writeBinaryData(const char *path, UBool withCopyright, UErrorCode &errorCode) { in writeBinaryData() argument 1240 UNewDataMemory *pData=udata_create(path, "icu", "ucase", &dataInfo, in writeBinaryData() 1244 path, u_errorName(errorCode)); in writeBinaryData()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | LocaleDisplayNamesImpl.java | 650 public ICUDataTable(String path, ULocale locale, boolean nullIfNotFound) { in ICUDataTable() argument 653 path, locale.getBaseName()); in ICUDataTable() 685 private final String path; field in LocaleDisplayNamesImpl.ICUDataTables 687 protected ICUDataTables(String path) { in ICUDataTables() argument 688 this.path = path; in ICUDataTables() 693 return new ICUDataTable(path, locale, nullIfNotFound); in get()
|
/third_party/libuv/src/unix/ |
H A D | process.c | 674 const char *path; in uv__spawn_resolve_and_spawn() local 680 path = NULL; in uv__spawn_resolve_and_spawn() 706 path = uv__spawn_find_path_in_env(env); in uv__spawn_resolve_and_spawn() 712 /* If no path was provided in env, use the default value in uv__spawn_resolve_and_spawn() 714 if (path == NULL) in uv__spawn_resolve_and_spawn() 715 path = _PATH_DEFPATH; in uv__spawn_resolve_and_spawn() 721 l = strnlen(path, PATH_MAX - 1) + 1; in uv__spawn_resolve_and_spawn() 723 for (p = path;; p = z) { in uv__spawn_resolve_and_spawn() 804 * already destroyed, only the happy path requires cleanup */ in uv__spawn_and_init_child_posix_spawn()
|
/third_party/libwebsockets/lib/misc/fts/ |
H A D | trie-fd.c | 379 * relative path attractiveness dynamically, after we already used its in ac_record() 501 * has. If not "credible" this path cannot in lws_fts_search() 510 * path shown by the remainder of needle in lws_fts_search() 572 * bp may exceed sizeof(buf) on no match path in lws_fts_search() 622 char path[256], *pp; in lws_fts_search() local 638 if (lws_fts_filepath(jtf, (int)fi, path, sizeof(path) - 1, in lws_fts_search() 644 if (ftsp->only_filepath && strcmp(path, ftsp->only_filepath)) in lws_fts_search() 652 ofd = open(path, O_RDONLY); in lws_fts_search() 659 fplen = (uint32_t)strlen(path); in lws_fts_search() [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | genRef.py | 197 includePat = re.compile(r'^include::(?P<path>.*)\[\]') 203 path = matches.group('path') 205 if path[0] != '{': 206 # Relative path to include file from here 207 incPath = specDir + '/' + path 209 newPath = os.path.relpath(incPath, baseDir) 214 # An asciidoctor variable starts the path. 215 # This must be an absolute path, not needing to be rewritten. 666 # Save the path t [all...] |