/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | shortcut_data_storage_rdb.cpp | 60 if (!ShortcutIdVerification(shortcutInfo, userId)) { in AddDesktopShortcutInfo() 66 to_json(jsonObject, shortcutInfo); in AddDesktopShortcutInfo() 70 valuesBucket.PutString(SHORTCUT_ID, shortcutInfo.id); in AddDesktopShortcutInfo() 72 valuesBucket.PutInt(APP_INDEX, shortcutInfo.appIndex); in AddDesktopShortcutInfo() 126 ShortcutInfo shortcutInfo; in GetAllDesktopShortcutInfo() local 127 from_json(jsonObject, shortcutInfo); in GetAllDesktopShortcutInfo() 128 shortcutInfos.emplace_back(shortcutInfo); in GetAllDesktopShortcutInfo() 165 if (shortcutInfo.id.empty()) { in ShortcutIdVerification() 225 ShortcutInfo shortcutInfo; in GetDesktopShortcutInfosByDefaultUserId() local 226 from_json(jsonObject, shortcutInfo); in GetDesktopShortcutInfosByDefaultUserId() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | shortcut_info.cpp | 216 shortcutInfo.id, in from_json() 224 shortcutInfo.bundleName, in from_json() 232 shortcutInfo.moduleName, in from_json() 248 shortcutInfo.icon, in from_json() 256 shortcutInfo.label, in from_json() 272 shortcutInfo.isStatic, in from_json() 288 shortcutInfo.isEnables, in from_json() 296 shortcutInfo.intents, in from_json() 304 shortcutInfo.iconId, in from_json() 312 shortcutInfo.labelId, in from_json() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-shortcutManager-sys.md | 3 本模块提供系统应用对于快捷方式的增加、删除,以及查询能力,包括[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)信息的增加、删除以及查… 20 addDesktopShortcutInfo(shortcutInfo: [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md), use… 22 增加指定用户的[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)。 34 | shortcutInfo | [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md) | 是 | 快捷方式信息。 | 99 deleteDesktopShortcutInfo(shortcutInfo: [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md), … 101 删除指定用户的[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)。 113 | shortcutInfo | [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md) | 是 | 快捷方式信息。 | 174 …utInfo(userId: number) : Promise<Array\<[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)>> 176 查询指定用户的所有[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)。 194 …hortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)> | Array形式返回[ShortcutInfo](js-apis-bundleM…
|
H A D | js-apis-launcherBundleManager-sys.md | 297 查询当前用户下指定应用的[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)。 310 …o](js-apis-bundleManager-shortcutInfo-sys.md)\>\> | 是 | callback形式返回当前用户下指定应用的[ShortcutInfo](js-ap… 350 查询当前用户下指定应用的[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)。 368 …Info](js-apis-bundleManager-shortcutInfo-sys.md)\>\> | Promise形式返回当前用户下指定应用的[ShortcutInfo](js-apis… 406 查询当前用户下指定应用的[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)。 424 …utInfo](js-apis-bundleManager-shortcutInfo-sys.md)\> | Array形式返回当前用户下指定应用的[ShortcutInfo](js-apis-b… 458 查询指定用户下指定应用的[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)。 477 …utInfo](js-apis-bundleManager-shortcutInfo-sys.md)\> | Array形式返回指定用户下指定应用的[ShortcutInfo](js-apis-b… 510 startShortcut(shortcutInfo: ShortcutInfo, options?: StartOptions): Promise\<void\>; 512 拉起指定[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)中的ability。 [all …]
|
H A D | js-apis-bundle-ShortcutInfo-sys.md | 1 # shortcutInfo (系统接口) 13 > 从API version 9开始不再维护,建议使用[bundleManager-ShortcutWant](js-apis-bundleManager-shortcutInfo-sys.md)替…
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-shortcutManager-sys.md | 3 …, delete, and query shortcuts, including [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md). 20 addDesktopShortcutInfo(shortcutInfo: [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md), use… 22 Adds [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md) for a given user. 34 | shortcutInfo | [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md) | Yes | Shortcut inform… 99 deleteDesktopShortcutInfo(shortcutInfo: [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md), … 101 Deletes [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md) for a given user. 113 | shortcutInfo | [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md) | Yes | Shortcut inform… 174 …utInfo(userId: number) : Promise<Array\<[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)>> 176 Obtains all [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md) records of a given user. 194 …tInfo](js-apis-bundleManager-shortcutInfo-sys.md)> | Array that holds the [ShortcutInfo](js-apis-b…
|
H A D | js-apis-bundle-ShortcutInfo-sys.md | 1 # shortcutInfo (System API) 3 The shortcutInfo module defines shortcut information configured in the configuration file. For the … 13 …are advised to use [bundleManager-ShortcutWant](js-apis-bundleManager-shortcutInfo-sys.md) instead.
|
H A D | js-apis-launcherBundleManager-sys.md | 295 … callback: AsyncCallback\<Array\<[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)\>\>) : … 310 | callback | AsyncCallback\<Array\<[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)\>\> | … 348 …undleName : string) : Promise\<Array\<[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)\>\> 368 | Promise\<Array\<[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)\>\> | Promise used to r… 404 getShortcutInfoSync(bundleName : string) : Array\<[ShortcutInfo](js-apis-bundleManager-shortcutInfo… 424 | Array\<[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)\> | Array of the **ShortcutInfo*… 456 …eName: string, userId: number) : Array\<[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)\> 477 | Array\<[ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md)\> | Array of the **ShortcutInfo*… 510 startShortcut(shortcutInfo: ShortcutInfo, options?: StartOptions): Promise\<void\>; 512 Starts the ability in the specified [ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md). [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/shortcut_manager/ |
H A D | shortcut_manager.cpp | 39 static ErrCode InnerAddDesktopShortcutInfo(const OHOS::AppExecFwk::ShortcutInfo &shortcutInfo, int3… in InnerAddDesktopShortcutInfo() argument 46 return iBundleMgr->AddDesktopShortcutInfo(shortcutInfo, userId); in InnerAddDesktopShortcutInfo() 57 …asyncCallbackInfo->err = InnerAddDesktopShortcutInfo(asyncCallbackInfo->shortcutInfo, asyncCallbac… in AddDesktopShortcutInfoExec() 96 … if (!CommonFunc::ParseShortCutInfo(env, args[ARGS_POS_ZERO], asyncCallbackInfo->shortcutInfo) || in AddDesktopShortcutInfo() 97 !CommonFunc::CheckShortcutInfo(asyncCallbackInfo->shortcutInfo)) { in AddDesktopShortcutInfo() 119 static ErrCode InnerDeleteDesktopShortcutInfo(const OHOS::AppExecFwk::ShortcutInfo &shortcutInfo, i… in InnerDeleteDesktopShortcutInfo() argument 126 return iBundleMgr->DeleteDesktopShortcutInfo(shortcutInfo, userId); in InnerDeleteDesktopShortcutInfo() 137 …asyncCallbackInfo->err = InnerDeleteDesktopShortcutInfo(asyncCallbackInfo->shortcutInfo, asyncCall… in DeleteDesktopShortcutInfoExec() 178 … if (!CommonFunc::ParseShortCutInfo(env, args[ARGS_POS_ZERO], asyncCallbackInfo->shortcutInfo) || in DeleteDesktopShortcutInfo() 179 !CommonFunc::CheckShortcutInfo(asyncCallbackInfo->shortcutInfo)) { in DeleteDesktopShortcutInfo()
|
H A D | shortcut_manager.h | 31 OHOS::AppExecFwk::ShortcutInfo shortcutInfo; member 38 OHOS::AppExecFwk::ShortcutInfo shortcutInfo; member
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | shortcut_data_storage_rdb.h | 30 … bool AddDesktopShortcutInfo(const ShortcutInfo &shortcutInfo, int32_t userId, bool &isIdIllegal); 31 bool DeleteDesktopShortcutInfo(const ShortcutInfo &shortcutInfo, int32_t userId); 37 bool ShortcutIdVerification(const ShortcutInfo &shortcutInfo, int32_t userId);
|
H A D | shortcut_data_storage_interface.h | 27 …virtual bool AddDesktopShortcutInfo(const ShortcutInfo &shortcutInfo, int32_t userId, bool &isIdIl… 28 virtual bool DeleteDesktopShortcutInfo(const ShortcutInfo &shortcutInfo, int32_t userId) = 0;
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launcher_bundle_manager/ |
H A D | launcher_bundle_manager.cpp | 401 static ErrCode InnerStartShortcut(const OHOS::AppExecFwk::ShortcutInfo &shortcutInfo, in InnerStartShortcut() argument 404 if (shortcutInfo.intents.empty()) { in InnerStartShortcut() 410 element.SetBundleName(shortcutInfo.intents[0].targetBundle); in InnerStartShortcut() 411 element.SetModuleName(shortcutInfo.intents[0].targetModule); in InnerStartShortcut() 412 element.SetAbilityName(shortcutInfo.intents[0].targetClass); in InnerStartShortcut() 414 for (const auto &item : shortcutInfo.intents[0].parameters) { in InnerStartShortcut() 417 want.SetParam(AAFwk::Want::PARAM_APP_CLONE_INDEX_KEY, shortcutInfo.appIndex); in InnerStartShortcut() 433 …asyncCallbackInfo->err = InnerStartShortcut(asyncCallbackInfo->shortcutInfo, asyncCallbackInfo->st… in StartShortcutExec() 476 … if (!CommonFunc::ParseShortCutInfo(env, args[ARGS_POS_ZERO], asyncCallbackInfo->shortcutInfo)) { in StartShortcut() 480 if (asyncCallbackInfo->shortcutInfo.intents.empty()) { in StartShortcut()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/benchmarktest/json_serializer_test/ |
H A D | json_serializer_test.cpp | 341 ShortcutInfo shortcutInfo; in BenchmarkTestForShortcutInfoToJson() local 342 shortcutInfo.bundleName = "ohos_global_systemres"; in BenchmarkTestForShortcutInfoToJson() 343 shortcutInfo.id = "1"; in BenchmarkTestForShortcutInfoToJson() 344 shortcutInfo.disableMessage = "/data/accounts/account_0/applications/ohos.global.systemres"; in BenchmarkTestForShortcutInfoToJson() 347 to_json(jsonObject, shortcutInfo); in BenchmarkTestForShortcutInfoToJson() 363 ShortcutInfo shortcutInfo; in BenchmarkTestForShortcutInfoFromJson() local 366 from_json(jsonObject, shortcutInfo); in BenchmarkTestForShortcutInfoFromJson()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/ |
H A D | launcher_service.cpp | 274 for (ShortcutInfo shortcutInfo : infos) { in GetShortcutInfos() local 275 if (bundleName == shortcutInfo.bundleName) { in GetShortcutInfos() 276 shortcutInfos.emplace_back(shortcutInfo); in GetShortcutInfos() 391 for (ShortcutInfo shortcutInfo : infos) { in GetShortcutInfoV9() local 392 if (bundleName == shortcutInfo.bundleName) { in GetShortcutInfoV9() 393 shortcutInfos.emplace_back(shortcutInfo); in GetShortcutInfoV9()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launchermgr/ |
H A D | js_launcher.cpp | 380 const OHOS::AppExecFwk::ShortcutInfo &shortcutInfo) in ConvertShortcutInfo() argument 385 … shortcutInfo.id.c_str(), NAPI_AUTO_LENGTH, &shortId)); in ConvertShortcutInfo() 391 …env, napi_create_string_utf8(env, shortcutInfo.bundleName.c_str(), NAPI_AUTO_LENGTH, &bundleName)); in ConvertShortcutInfo() 397 …env, napi_create_string_utf8(env, shortcutInfo.moduleName.c_str(), NAPI_AUTO_LENGTH, &moduleName)); in ConvertShortcutInfo() 413 NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, shortcutInfo.iconId, &iconId)); in ConvertShortcutInfo() 423 NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, shortcutInfo.labelId, &labelId)); in ConvertShortcutInfo() 435 for (size_t index = 0; index < shortcutInfo.intents.size(); ++index) { in ConvertShortcutInfo() 438 ConvertShortcutIntent(env, intent, shortcutInfo.intents[index]); in ConvertShortcutInfo() 445 NAPI_CALL_RETURN_VOID(env, napi_get_boolean(env, shortcutInfo.isStatic, &isStatic)); in ConvertShortcutInfo() 450 NAPI_CALL_RETURN_VOID(env, napi_get_boolean(env, shortcutInfo.isHomeShortcut, &isHomeShortcut)); in ConvertShortcutInfo() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/benchmarktest/launcher_service_test/ |
H A D | launcher_service_test.cpp | 124 std::vector<ShortcutInfo> shortcutInfo; in BenchmarkTestForGetShortcutInfos() local 127 launcherservice.GetShortcutInfos(bundleName, shortcutInfo); in BenchmarkTestForGetShortcutInfos()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/ |
H A D | json_serializer.h | 66 void to_json(nlohmann::json &jsonObject, const ShortcutInfo &shortcutInfo); 67 void from_json(const nlohmann::json &jsonObject, ShortcutInfo &shortcutInfo); 132 void to_json(nlohmann::json &jsonObject, const ShortcutInfo &shortcutInfo); 133 void from_json(const nlohmann::json &jsonObject, ShortcutInfo &shortcutInfo);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_data_mgr_test/ |
H A D | bms_data_mgr_test.cpp | 2369 ShortcutInfo shortcutInfo = BmsDataMgrTest::InitShortcutInfo(); variable 2375 ret = shortcutDataStorageRdb->DeleteDesktopShortcutInfo(shortcutInfo, USERID); 2393 ShortcutInfo shortcutInfo = BmsDataMgrTest::InitShortcutInfo(); variable 2417 ShortcutInfo shortcutInfo = BmsDataMgrTest::InitShortcutInfo(); variable 2443 ShortcutInfo shortcutInfo = BmsDataMgrTest::InitShortcutInfo(); variable 2469 ShortcutInfo shortcutInfo = BmsDataMgrTest::InitShortcutInfo(); variable 2471 vecShortcutInfo.push_back(shortcutInfo); 2477 shortcutDataStorageRdb->DeleteDesktopShortcutInfo(shortcutInfo, USERID); 2501 ShortcutInfo shortcutInfo = BmsDataMgrTest::InitShortcutInfo(); variable 2503 vecShortcutInfo.push_back(shortcutInfo); [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/ |
H A D | common_func.cpp | 2454 shortcutInfo.id = id; in ParseShortCutInfo() 2462 shortcutInfo.bundleName = bundleName; in ParseShortCutInfo() 2470 shortcutInfo.moduleName = moduleName; in ParseShortCutInfo() 2486 shortcutInfo.icon = icon; in ParseShortCutInfo() 2494 shortcutInfo.iconId = iconId; in ParseShortCutInfo() 2502 shortcutInfo.label = label; in ParseShortCutInfo() 2510 shortcutInfo.labelId = labelId; in ParseShortCutInfo() 2518 shortcutInfo.intents = intents; in ParseShortCutInfo() 2526 shortcutInfo.appIndex = appIndex; in ParseShortCutInfo() 2534 shortcutInfo.sourceType = sourceType; in ParseShortCutInfo() [all …]
|
H A D | common_func.h | 94 static bool ParseShortCutInfo(napi_env env, napi_value param, ShortcutInfo &shortcutInfo); 158 static void ConvertShortCutInfo(napi_env env, const ShortcutInfo &shortcutInfo, napi_value value); 190 static bool CheckShortcutInfo(const ShortcutInfo &shortcutInfo);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlemgrproxy_fuzzer/ |
H A D | bundlemgrproxy_fuzzer.cpp | 67 ShortcutInfo shortcutInfo; in DoSomethingInterestingWithMyAPI() local 68 shortcutInfo.bundleName = bundleName; in DoSomethingInterestingWithMyAPI() 70 shortcutInfos.push_back(shortcutInfo); in DoSomethingInterestingWithMyAPI() 329 bundleMgrProxy.AddDesktopShortcutInfo(shortcutInfo, reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI() 330 bundleMgrProxy.DeleteDesktopShortcutInfo(shortcutInfo, reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/ |
H A D | js-apidiff-bundle.md | 9 | shortcutInfo | ShortcutInfo | readonly labelId: number; | 新增 | 10 | shortcutInfo | ShortcutInfo | readonly iconId: number; | 新增 |
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-beta/ |
H A D | native-apidiff-v3.1-beta.md | 16 …cutInfos(napi_env env, napi_callback_info info) | 新增 | 新增通过bundleName获取应用的shortcutInfo接口 |
|
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/ |
H A D | js-apidiff-bundle.md | 9 | shortcutInfo | ShortcutInfo | readonly labelId: number; | Added| 10 | shortcutInfo | ShortcutInfo | readonly iconId: number; | Added|
|