Home
last modified time | relevance | path

Searched refs:shortcutInfos (Results 1 – 25 of 35) sorted by relevance

12

/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/launcherservice_fuzzer/
H A Dlauncherservice_fuzzer.cpp35 std::vector<ShortcutInfo> shortcutInfos; in DoSomethingInterestingWithMyAPI() local
36 launcherService.GetShortcutInfos(bundleName, shortcutInfos); in DoSomethingInterestingWithMyAPI()
41 launcherService.GetShortcutInfoV9(bundleName, shortcutInfos); in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dshortcut_data_storage_rdb.cpp95 …DataStorageRdb::GetAllDesktopShortcutInfo(int32_t userId, std::vector<ShortcutInfo> &shortcutInfos) in GetAllDesktopShortcutInfo() argument
128 shortcutInfos.emplace_back(shortcutInfo); in GetAllDesktopShortcutInfo()
131 GetDesktopShortcutInfosByDefaultUserId(shortcutInfos); in GetAllDesktopShortcutInfo()
193 …cutDataStorageRdb::GetDesktopShortcutInfosByDefaultUserId(std::vector<ShortcutInfo> &shortcutInfos) in GetDesktopShortcutInfosByDefaultUserId() argument
227 shortcutInfos.emplace_back(shortcutInfo); in GetDesktopShortcutInfosByDefaultUserId()
H A Dbundle_mgr_host_impl.cpp1982 std::vector<ShortcutInfo> shortcutInfos; in DumpShortcutInfo() local
1992 if (!GetShortcutInfos(bundleName, userId, shortcutInfos)) { in DumpShortcutInfo()
1999 for (const auto &info : shortcutInfos) { in DumpShortcutInfo()
2437 const std::string &bundleName, std::vector<ShortcutInfo> &shortcutInfos) in GetShortcutInfos() argument
2446 return GetShortcutInfos(bundleName, currentUserId, shortcutInfos); in GetShortcutInfos()
2450 const std::string &bundleName, int32_t userId, std::vector<ShortcutInfo> &shortcutInfos) in GetShortcutInfos() argument
2469 return dataMgr->GetShortcutInfos(bundleName, userId, shortcutInfos); in GetShortcutInfos()
2473 std::vector<ShortcutInfo> &shortcutInfos, int32_t userId) in GetShortcutInfoV9() argument
2490 return dataMgr->GetShortcutInfoV9(bundleName, userId, shortcutInfos); in GetShortcutInfoV9()
4430 …dleMgrHostImpl::GetAllDesktopShortcutInfo(int32_t userId, std::vector<ShortcutInfo> &shortcutInfos) in GetAllDesktopShortcutInfo() argument
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dshortcut_data_storage_rdb.h32 void GetAllDesktopShortcutInfo(int32_t userId, std::vector<ShortcutInfo> &shortcutInfos);
38 void GetDesktopShortcutInfosByDefaultUserId(std::vector<ShortcutInfo> &shortcutInfos);
H A Dshortcut_data_storage_interface.h29 …virtual void GetAllDesktopShortcutInfo(int32_t userId, std::vector<ShortcutInfo> &shortcutInfos) =…
H A Dbundle_mgr_host_impl.h691 …GetShortcutInfos(const std::string &bundleName, std::vector<ShortcutInfo> &shortcutInfos) override;
700 …std::vector<ShortcutInfo> &shortcutInfos, int32_t userId = Constants::UNSPECIFIED_USERID) override;
1009 …rCode GetAllDesktopShortcutInfo(int32_t userId, std::vector<ShortcutInfo> &shortcutInfos) override;
1056 const std::string &bundleName, int32_t userId, std::vector<ShortcutInfo> &shortcutInfos);
H A Dinner_bundle_info.h347 void AddModuleShortcutInfo(const std::map<std::string, ShortcutInfo> &shortcutInfos) in AddModuleShortcutInfo() argument
349 for (const auto &shortcut : shortcutInfos) { in AddModuleShortcutInfo()
1103 void InsertShortcutInfos(const std::string &keyName, const ShortcutInfo &shortcutInfos) in InsertShortcutInfos() argument
1105 shortcutInfos_.emplace(keyName, shortcutInfos); in InsertShortcutInfos()
1193 void GetShortcutInfos(std::vector<ShortcutInfo> &shortcutInfos) const;
H A Dbundle_data_mgr.h555 … const std::string &bundleName, int32_t userId, std::vector<ShortcutInfo> &shortcutInfos) const;
564 … const std::string &bundleName, int32_t userId, std::vector<ShortcutInfo> &shortcutInfos) const;
984 ErrCode GetAllDesktopShortcutInfo(int32_t userId, std::vector<ShortcutInfo> &shortcutInfos);
1220 const InnerBundleInfo &info, std::vector<ShortcutInfo> &shortcutInfos) const;
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launcher_bundle_manager/
H A Dlauncher_bundle_manager.cpp274 std::vector<OHOS::AppExecFwk::ShortcutInfo> &shortcutInfos, int32_t userId) in InnerGetShortcutInfo() argument
280 return launcherService->GetShortcutInfoV9(bundleName, shortcutInfos, userId); in InnerGetShortcutInfo()
291 asyncCallbackInfo->shortcutInfos, asyncCallbackInfo->userId); in GetShortcutInfoExec()
307 … CommonFunc::ConvertShortCutInfos(env, asyncCallbackInfo->shortcutInfos, result[ARGS_POS_ONE]); in GetShortcutInfoComplete()
385 std::vector<OHOS::AppExecFwk::ShortcutInfo> shortcutInfos; in GetShortcutInfoSync() local
386 … CommonFunc::ConvertErrCode(launcherService->GetShortcutInfoV9(bundleName, shortcutInfos, userId)); in GetShortcutInfoSync()
396 CommonFunc::ConvertShortCutInfos(env, shortcutInfos, nShortcutInfos); in GetShortcutInfoSync()
H A Dlauncher_bundle_manager.h51 std::vector<OHOS::AppExecFwk::ShortcutInfo> shortcutInfos; member
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/shortcut_manager/
H A Dshortcut_manager.cpp202 int32_t userId, std::vector<OHOS::AppExecFwk::ShortcutInfo> &shortcutInfos) in InnerGetAllDesktopShortcutInfo() argument
209 return iBundleMgr->GetAllDesktopShortcutInfo(userId, shortcutInfos); in InnerGetAllDesktopShortcutInfo()
221 InnerGetAllDesktopShortcutInfo(asyncCallbackInfo->userId, asyncCallbackInfo->shortcutInfos); in GetAllDesktopShortcutInfoExec()
238 … CommonFunc::ConvertShortCutInfos(env, asyncCallbackInfo->shortcutInfos, result[ARGS_POS_ONE]); in GetAllDesktopShortcutInfoComplete()
H A Dshortcut_manager.h46 std::vector<OHOS::AppExecFwk::ShortcutInfo> shortcutInfos; member
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/
H A Dlauncher_service.cpp248 const std::string &bundleName, std::vector<ShortcutInfo> &shortcutInfos) in GetShortcutInfos() argument
276 shortcutInfos.emplace_back(shortcutInfo); in GetShortcutInfos()
373 const std::string &bundleName, std::vector<ShortcutInfo> &shortcutInfos, int32_t userId) in GetShortcutInfoV9() argument
393 shortcutInfos.emplace_back(shortcutInfo); in GetShortcutInfoV9()
/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlemgrproxy_fuzzer/
H A Dbundlemgrproxy_fuzzer.cpp69 std::vector<ShortcutInfo> shortcutInfos; in DoSomethingInterestingWithMyAPI() local
70 shortcutInfos.push_back(shortcutInfo); in DoSomethingInterestingWithMyAPI()
71 bundleMgrProxy.GetShortcutInfos(bundleName, shortcutInfos); in DoSomethingInterestingWithMyAPI()
72 bundleMgrProxy.GetShortcutInfoV9(bundleName, shortcutInfos); in DoSomethingInterestingWithMyAPI()
331 bundleMgrProxy.GetAllDesktopShortcutInfo(reinterpret_cast<uintptr_t>(data), shortcutInfos); in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launchermgr/
H A Djs_launcher.cpp53 std::vector<OHOS::AppExecFwk::ShortcutInfo> shortcutInfos; member
460 const std::vector<OHOS::AppExecFwk::ShortcutInfo> &shortcutInfos) in ParseShortcutInfo() argument
462 if (shortcutInfos.empty()) { in ParseShortcutInfo()
467 for (const auto& item : shortcutInfos) { in ParseShortcutInfo()
909 std::vector<OHOS::AppExecFwk::ShortcutInfo>& shortcutInfos) in InnerJSGetShortcutInfos() argument
916 auto result = launcher->GetShortcutInfos(bundleName, shortcutInfos); in InnerJSGetShortcutInfos()
970 asyncCallbackInfo->shortcutInfos); in JSGetShortcutInfos()
984 ParseShortcutInfo(env, result[INDEX_ONE], asyncCallbackInfo->shortcutInfos); in JSGetShortcutInfos()
/ohos5.0/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_launcher_service_system_test/
H A Dbms_launcher_service_system_test.cpp834 std::vector<ShortcutInfo> shortcutInfos; variable
835 auto result = launcherservice.GetShortcutInfos(bundleName, shortcutInfos);
856 std::vector<ShortcutInfo> shortcutInfos; variable
857 auto result = launcherservice.GetShortcutInfos("", shortcutInfos);
879 std::vector<ShortcutInfo> shortcutInfos; variable
880 auto result = launcherservice.GetShortcutInfoV9(bundleName, shortcutInfos);
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_data_mgr_test.cpp696 ShortcutInfo shortcutInfos; in MockShortcutInfo() local
697 shortcutInfos.id = shortcutId; in MockShortcutInfo()
700 shortcutInfos.icon = SHORTCUT_ICON; in MockShortcutInfo()
703 shortcutInfos.isStatic = true; in MockShortcutInfo()
705 shortcutInfos.isEnables = true; in MockShortcutInfo()
711 return shortcutInfos; in MockShortcutInfo()
896 ShortcutInfo shortcutInfos; in InitShortcutInfo() local
897 shortcutInfos.id = "id_test1"; in InitShortcutInfo()
903 shortcutInfos.isStatic = true; in InitShortcutInfo()
905 shortcutInfos.isEnables = true; in InitShortcutInfo()
[all …]
H A Dbms_bundle_kit_service_test.cpp821 ShortcutInfo shortcutInfos; in MockShortcutInfo() local
822 shortcutInfos.id = shortcutId; in MockShortcutInfo()
825 shortcutInfos.icon = SHORTCUT_ICON; in MockShortcutInfo()
826 shortcutInfos.label = SHORTCUT_LABEL; in MockShortcutInfo()
828 shortcutInfos.isStatic = true; in MockShortcutInfo()
829 shortcutInfos.isHomeShortcut = true; in MockShortcutInfo()
830 shortcutInfos.isEnables = true; in MockShortcutInfo()
836 return shortcutInfos; in MockShortcutInfo()
5648 EXPECT_TRUE(shortcutInfos.empty());
5663 EXPECT_TRUE(shortcutInfos.empty());
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_install_system_test/
H A Dbm_install_multi_user_test.cpp1153 std::vector<ShortcutInfo> shortcutInfos; variable
1154 …auto res = bmsProxy->GetShortcutInfoV9("com.example.ohosproject.hmservice", shortcutInfos, userId);
1156 EXPECT_FALSE(shortcutInfos.empty());
1183 std::vector<ShortcutInfo> shortcutInfos; variable
1184 auto res = bmsProxy->GetShortcutInfoV9("com.example.ohosproject.hmservice", shortcutInfos, 100);
1186 EXPECT_TRUE(shortcutInfos.empty());
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr/
H A Dlauncher_service.h103 std::vector<ShortcutInfo> &shortcutInfos, int32_t userId = Constants::UNSPECIFIED_USERID);
H A Dbundle_mgr_interface.h970 …tual bool GetShortcutInfos(const std::string &bundleName, std::vector<ShortcutInfo> &shortcutInfos) in GetShortcutInfos() argument
976 std::vector<ShortcutInfo> &shortcutInfos, int32_t userId = Constants::UNSPECIFIED_USERID)
1557 …virtual ErrCode GetAllDesktopShortcutInfo(int32_t userId, std::vector<ShortcutInfo> &shortcutInfos) in GetAllDesktopShortcutInfo() argument
H A Dbundle_mgr_proxy.h712 …GetShortcutInfos(const std::string &bundleName, std::vector<ShortcutInfo> &shortcutInfos) override;
721 …std::vector<ShortcutInfo> &shortcutInfos, int32_t userId = Constants::UNSPECIFIED_USERID) override;
1088 …rCode GetAllDesktopShortcutInfo(int32_t userId, std::vector<ShortcutInfo> &shortcutInfos) override;
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_data_mgr_test/
H A Dbms_data_mgr_test.cpp145 ShortcutInfo shortcutInfos; in InitShortcutInfo() local
146 shortcutInfos.id = "id_test1"; in InitShortcutInfo()
147 shortcutInfos.bundleName = "com.ohos.hello"; in InitShortcutInfo()
148 shortcutInfos.hostAbility = "hostAbility"; in InitShortcutInfo()
149 shortcutInfos.icon = "$media:16777224"; in InitShortcutInfo()
150 shortcutInfos.label = "shortcutLabel"; in InitShortcutInfo()
151 shortcutInfos.disableMessage = "shortcutDisableMessage"; in InitShortcutInfo()
152 shortcutInfos.isStatic = true; in InitShortcutInfo()
153 shortcutInfos.isHomeShortcut = true; in InitShortcutInfo()
154 shortcutInfos.isEnables = true; in InitShortcutInfo()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_permission_grant_test/
H A Dbms_bundle_permission_system_app_test.cpp500 std::vector<ShortcutInfo> shortcutInfos; variable
501 bool ret = bundleMgrHostImpl_->GetShortcutInfos(BUNDLE_NAME, USERID, shortcutInfos);
513 std::vector<ShortcutInfo> shortcutInfos; variable
514 ErrCode ret = bundleMgrHostImpl_->GetShortcutInfoV9(BUNDLE_NAME, shortcutInfos);
H A Dbms_bundle_permission_false_test.cpp690 std::vector<ShortcutInfo> shortcutInfos; variable
691 bool ret = bundleMgrHostImpl_->GetShortcutInfos(BUNDLE_NAME, USERID, shortcutInfos);
703 std::vector<ShortcutInfo> shortcutInfos; variable
704 ErrCode ret = bundleMgrHostImpl_->GetShortcutInfoV9(BUNDLE_NAME, shortcutInfos);

12