Home
last modified time | relevance | path

Searched refs:userName (Results 1 - 20 of 20) sorted by relevance

/foundation/filemanagement/user_file_service/utils/
H A Duser_access_common_utils.h38 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 Duseraccesscommonutils_fuzzer.cpp34 string userName; in GetUserNameFuzzTest() local
35 GetUserName(userName); in GetUserNameFuzzTest()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_environment/
H A Denvironment_n_exporter.cpp63 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 Drecent_n_exporter.cpp356 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 Dfile_permission.h77 static string GetPathByPermission(const std::string &userName, const std::string &permission);
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_share/src/
H A Dfile_permission.cpp367 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 Dfile_trash_n_exporter.cpp721 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 Don_text_changed_listener_impl.cpp25 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 Dtext_field_pattern.h1310 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 Djs_file_access_ext_ability.cpp1192 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 Dapp_spawn_client.cpp179 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 Dweb_object_event.h108 virtual bool Confirm(void* object, std::string& userName, std::string& pwd, int index) in Confirm() argument
H A Dweb_delegate_cross.h126 bool Confirm(std::string& userName, std::string& pwd) override;
H A Dweb_delegate_cross.cpp523 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 Drtsp_unit_test.cpp907 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 Dmock_web_delegate.cpp254 bool AuthResultOhos::Confirm(std::string& userName, std::string& pwd) in Confirm() argument
/foundation/arkui/ace_engine/frameworks/core/components/web/resource/
H A Dweb_delegate.h181 bool Confirm(std::string& userName, std::string& pwd) override;
H A Dweb_delegate.cpp232 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 Dweb_event.h467 virtual bool Confirm(std::string& userName, std::string& pwd) = 0;
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_web.cpp314 std::string userName = args[0]->ToString(); in Confirm() local
318 result_->Confirm(userName, password); in Confirm()

Completed in 48 milliseconds