Home
last modified time | relevance | path

Searched refs:shortcutIntent (Results 1 - 9 of 9) sorted by relevance

/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dshortcut_info.cpp75 ShortcutIntent shortcutIntent; in ReadFromParcel() local
76 shortcutIntent.targetBundle = Str16ToStr8(parcel.ReadString16()); // target bundle name in ReadFromParcel()
77 shortcutIntent.targetModule = Str16ToStr8(parcel.ReadString16()); // target module name in ReadFromParcel()
78 shortcutIntent.targetClass = Str16ToStr8(parcel.ReadString16()); // target class name in ReadFromParcel()
81 CONTAINER_SECURITY_VERIFY(parcel, parametersSize, &shortcutIntent.parameters); in ReadFromParcel()
85 shortcutIntent.parameters.emplace(key, value); in ReadFromParcel()
87 intents.emplace_back(shortcutIntent); in ReadFromParcel()
137 void to_json(nlohmann::json &jsonObject, const ShortcutIntent &shortcutIntent) in to_json() argument
140 {JSON_KEY_BUNDLE_TARGET_BUNDLE, shortcutIntent.targetBundle}, in to_json()
141 {JSON_KEY_BUNDLE_TARGET_MODULE, shortcutIntent in to_json()
168 from_json(const nlohmann::json &jsonObject, ShortcutIntent &shortcutIntent) from_json() argument
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launchermgr/
H A Djs_launcher.cpp355 const OHOS::AppExecFwk::ShortcutIntent &shortcutIntent) in ConvertShortcutIntent()
359 env, napi_create_string_utf8(env, shortcutIntent.targetBundle.c_str(), NAPI_AUTO_LENGTH, &nTargetBundle)); in ConvertShortcutIntent()
364 env, napi_create_string_utf8(env, shortcutIntent.targetModule.c_str(), NAPI_AUTO_LENGTH, &nTargetModule)); in ConvertShortcutIntent()
369 env, napi_create_string_utf8(env, shortcutIntent.targetClass.c_str(), NAPI_AUTO_LENGTH, &nTargetClass)); in ConvertShortcutIntent()
374 ConvertParameters(env, shortcutIntent.parameters, nParameters); in ConvertShortcutIntent()
354 ConvertShortcutIntent(napi_env env, napi_value objShortcutInfo, const OHOS::AppExecFwk::ShortcutIntent &shortcutIntent) ConvertShortcutIntent() argument
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Djson_serializer.h131 void to_json(nlohmann::json &jsonObject, const ShortcutIntent &shortcutIntent);
132 void from_json(const nlohmann::json &jsonObject, ShortcutIntent &shortcutIntent);
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/
H A Dcommon_func.h96 static bool ParseShortcutWant(napi_env env, napi_value param, ShortcutIntent &shortcutIntent);
156 const OHOS::AppExecFwk::ShortcutIntent &shortcutIntent, napi_value value);
H A Dcommon_func.cpp2039 const OHOS::AppExecFwk::ShortcutIntent &shortcutIntent, napi_value value) in ConvertShortcutIntent()
2043 env, napi_create_string_utf8(env, shortcutIntent.targetBundle.c_str(), NAPI_AUTO_LENGTH, &nTargetBundle)); in ConvertShortcutIntent()
2048 env, napi_create_string_utf8(env, shortcutIntent.targetModule.c_str(), NAPI_AUTO_LENGTH, &nTargetModule)); in ConvertShortcutIntent()
2053 env, napi_create_string_utf8(env, shortcutIntent.targetClass.c_str(), NAPI_AUTO_LENGTH, &nTargetClass)); in ConvertShortcutIntent()
2058 ConvertParameters(env, shortcutIntent.parameters, nParameters); in ConvertShortcutIntent()
2369 bool CommonFunc::ParseShortcutWant(napi_env env, napi_value param, ShortcutIntent &shortcutIntent) in ParseShortcutWant() argument
2384 shortcutIntent.targetBundle = targetBundle; in ParseShortcutWant()
2392 shortcutIntent.targetModule = targetModule; in ParseShortcutWant()
2400 shortcutIntent.targetClass = targetAbility; in ParseShortcutWant()
2408 shortcutIntent in ParseShortcutWant()
2038 ConvertShortcutIntent(napi_env env, const OHOS::AppExecFwk::ShortcutIntent &shortcutIntent, napi_value value) ConvertShortcutIntent() argument
2425 ShortcutIntent shortcutIntent; ParseShortcutWantArray() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_profile.cpp2318 ShortcutIntent shortcutIntent; in ToInnerBundleInfo() local
2319 shortcutIntent.targetBundle = intent.targetBundle; in ToInnerBundleInfo()
2320 shortcutIntent.targetModule = Constants::EMPTY_STRING; in ToInnerBundleInfo()
2321 shortcutIntent.targetClass = intent.targetClass; in ToInnerBundleInfo()
2322 shortcutInfo.intents.emplace_back(shortcutIntent); in ToInnerBundleInfo()
H A Dinner_bundle_info.cpp4077 ShortcutIntent shortcutIntent; in InnerProcessShortcut() local
4078 shortcutIntent.targetBundle = shortcutWant.bundleName; in InnerProcessShortcut()
4079 shortcutIntent.targetModule = shortcutWant.moduleName; in InnerProcessShortcut()
4080 shortcutIntent.targetClass = shortcutWant.abilityName; in InnerProcessShortcut()
4081 shortcutIntent.parameters = shortcutWant.parameters; in InnerProcessShortcut()
4082 shortcutInfo.intents.emplace_back(shortcutIntent); in InnerProcessShortcut()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_kit_service_test.cpp830 ShortcutIntent shortcutIntent; in MockShortcutInfo() local
831 shortcutIntent.targetBundle = SHORTCUT_INTENTS_TARGET_BUNDLE; in MockShortcutInfo()
832 shortcutIntent.targetModule = SHORTCUT_INTENTS_TARGET_MODULE; in MockShortcutInfo()
833 shortcutIntent.targetClass = SHORTCUT_INTENTS_TARGET_CLASS; in MockShortcutInfo()
834 shortcutInfos.intents.push_back(shortcutIntent); in MockShortcutInfo()
840 ShortcutIntent shortcutIntent; in MockShortcutIntent() local
841 shortcutIntent.targetBundle = SHORTCUT_INTENTS_TARGET_BUNDLE; in MockShortcutIntent()
842 shortcutIntent.targetModule = SHORTCUT_INTENTS_TARGET_MODULE; in MockShortcutIntent()
843 shortcutIntent.targetClass = SHORTCUT_INTENTS_TARGET_CLASS; in MockShortcutIntent()
844 return shortcutIntent; in MockShortcutIntent()
10621 ShortcutIntent shortcutIntent = MockShortcutIntent(); HWTEST_F() local
[all...]
H A Dbms_bundle_data_mgr_test.cpp708 ShortcutIntent shortcutIntent; in MockShortcutInfo() local
709 shortcutIntent.targetBundle = SHORTCUT_INTENTS_TARGET_BUNDLE; in MockShortcutInfo()
710 shortcutIntent.targetModule = SHORTCUT_INTENTS_TARGET_MODULE; in MockShortcutInfo()
711 shortcutIntent.targetClass = SHORTCUT_INTENTS_TARGET_CLASS; in MockShortcutInfo()
712 shortcutInfos.intents.push_back(shortcutIntent); in MockShortcutInfo()
718 ShortcutIntent shortcutIntent; in MockShortcutIntent() local
719 shortcutIntent.targetBundle = SHORTCUT_INTENTS_TARGET_BUNDLE; in MockShortcutIntent()
720 shortcutIntent.targetModule = SHORTCUT_INTENTS_TARGET_MODULE; in MockShortcutIntent()
721 shortcutIntent.targetClass = SHORTCUT_INTENTS_TARGET_CLASS; in MockShortcutIntent()
722 return shortcutIntent; in MockShortcutIntent()
[all...]

Completed in 36 milliseconds