/foundation/filemanagement/user_file_service/utils/ |
H A D | user_access_common_utils.h | 38 static bool GetUserName(std::string &userName) in GetUserName() argument 40 userName = "currentUser"; in GetUserName()
|
/foundation/filemanagement/user_file_service/test/fuzztest/useraccesscommonutils_fuzzer/ |
H A D | useraccesscommonutils_fuzzer.cpp | 34 string userName; in GetUserNameFuzzTest() local 35 GetUserName(userName); in GetUserNameFuzzTest()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_environment/ |
H A D | environment_n_exporter.cpp | 63 std::string userName; in GetUserName() local 64 ErrCode errCode = OHOS::AccountSA::OsAccountManager::GetOsAccountShortName(userName); in GetUserName() 65 if (errCode != ERR_OK || userName.empty()) { in GetUserName() 66 HILOGE("Get userName Failed"); in GetUserName() 68 userName = DEFAULT_USERNAME; in GetUserName() 69 return userName; in GetUserName() 274 static std::string userName = GetUserName(); in GetUserHomeDir() local 275 if (userName.empty()) { in GetUserHomeDir() 280 return NVal::CreateUTF8String(env, PC_STORAGE_PATH + userName).val_; in GetUserHomeDir()
|
/foundation/filemanagement/user_file_service/interfaces/kits/native/recent/ |
H A D | recent_n_exporter.cpp | 356 std::string userName; in InitRecentPath() local 357 if (GetUserName(userName) && userName != "") { in InitRecentPath() 358 RecentNExporter::recentPath_ = "/storage/Users/" + userName + "/.Recent/"; in InitRecentPath()
|
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_share/include/ |
H A D | file_permission.h | 77 static string GetPathByPermission(const std::string &userName, const std::string &permission);
|
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_share/src/ |
H A D | file_permission.cpp | 367 string FilePermission::GetPathByPermission(const std::string &userName, const std::string &permission) in GetPathByPermission() argument 371 if (!userName.empty()) { in GetPathByPermission() 372 path = path.replace(path.find(CURRENTUSER), CURRENTUSER.length(), userName); in GetPathByPermission()
|
/foundation/filemanagement/user_file_service/interfaces/kits/native/trash/src/ |
H A D | file_trash_n_exporter.cpp | 721 std::string userName;
in InitTrashPath() local 722 if (GetUserName(userName) && userName != "") {
in InitTrashPath() 723 FileTrashNExporter::trashPath_ = "/storage/Users/" + userName + "/.Trash";
in InitTrashPath()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | on_text_changed_listener_impl.cpp | 25 const std::string AUTO_FILL_PARAMS_USERNAME = "com.autofill.params.userName"; 362 auto userName = privateCommand.find(AUTO_FILL_PARAMS_USERNAME); in AutoFillReceivePrivateCommand() local 363 textFieldPattern->SetAutoFillUserName(std::get<std::string>(userName->second)); in AutoFillReceivePrivateCommand() 365 TAG_LOGI(AceLogTag::ACE_AUTO_FILL, "com.autofill.params.userName : %{private}s", in AutoFillReceivePrivateCommand() 366 std::get<std::string>(userName->second).c_str()); in AutoFillReceivePrivateCommand()
|
H A D | text_field_pattern.h | 1310 void SetAutoFillUserName(const std::string& userName) in SetAutoFillUserName() argument 1312 autoFillUserName_ = userName; in SetAutoFillUserName()
|
/foundation/filemanagement/user_file_service/interfaces/inner_api/file_access/src/ |
H A D | js_file_access_ext_ability.cpp | 1192 std::string userName; in ChangeCurrentDir() local 1193 if (!GetUserName(userName) || userName == "") { in ChangeCurrentDir() 1194 HILOG_WARN("get userName fail"); in ChangeCurrentDir() 1197 HILOG_DEBUG("GetuserName: %{public}s", userName.c_str()); in ChangeCurrentDir() 1199 rootInfo.uri = "file://docs/storage/Users/" + userName; in ChangeCurrentDir() 1202 rootInfo.relativePath = "/storage/Users/" + userName; in ChangeCurrentDir()
|
/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | app_spawn_client.cpp | 179 ret = strcpy_s(appDacInfo.userName, sizeof(appDacInfo.userName), APPSPAWN_CLIENT_USER_NAME); in SetDacInfo() 181 TAG_LOGE(AAFwkTag::APPMGR, "set dac userName fail"); in SetDacInfo()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/cross_platform/ |
H A D | web_object_event.h | 108 virtual bool Confirm(void* object, std::string& userName, std::string& pwd, int index) in Confirm() argument
|
H A D | web_delegate_cross.h | 126 bool Confirm(std::string& userName, std::string& pwd) override;
|
H A D | web_delegate_cross.cpp | 523 bool WebAuthResult::Confirm(std::string& userName, std::string& pwd) in Confirm() argument 530 return obj->Confirm(object_, userName, pwd, index_); in Confirm()
|
/foundation/CastEngine/castengine_wifi_display/tests/unittest/protocol/rtsp/ |
H A D | rtsp_unit_test.cpp | 907 auto userName = rtspUrl->GetUsername(); in HWTEST_F() local 908 EXPECT_EQ(userName, "admin"); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/web/ |
H A D | mock_web_delegate.cpp | 254 bool AuthResultOhos::Confirm(std::string& userName, std::string& pwd) in Confirm() argument
|
/foundation/arkui/ace_engine/frameworks/core/components/web/resource/ |
H A D | web_delegate.h | 181 bool Confirm(std::string& userName, std::string& pwd) override;
|
H A D | web_delegate.cpp | 232 bool AuthResultOhos::Confirm(std::string& userName, std::string& pwd) in Confirm() argument 235 return result_->Confirm(userName, pwd); in Confirm()
|
/foundation/arkui/ace_engine/frameworks/core/components/web/ |
H A D | web_event.h | 467 virtual bool Confirm(std::string& userName, std::string& pwd) = 0;
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_web.cpp | 314 std::string userName = args[0]->ToString(); in Confirm() local 318 result_->Confirm(userName, password); in Confirm()
|