/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | shortcut_info.cpp | 39 const char* JSON_KEY_BUNDLE_INTENTS = "intents"; 73 CONTAINER_SECURITY_VERIFY(parcel, intentsSize, &intents); in ReadFromParcel() 87 intents.emplace_back(shortcutIntent); in ReadFromParcel() 120 const auto intentsSize = static_cast<int32_t>(intents.size()); in Marshalling() 123 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(intents[i].targetBundle)); in Marshalling() 124 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(intents[i].targetModule)); in Marshalling() 125 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(intents[i].targetClass)); in Marshalling() 126 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, static_cast<int32_t>(intents[i].parameters.size())); in Marshalling() 127 for (const auto &dataItem : intents[i].parameters) { in Marshalling() 160 {JSON_KEY_BUNDLE_INTENTS, shortcutInfo.intents}, in to_json() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/ |
H A D | launcher_shortcut_info.h | 25 std::vector<ShortcutIntent> intents; member
|
H A D | shortcut_info.h | 68 std::vector<ShortcutIntent> intents; member
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launcher_bundle_manager/ |
H A D | launcher_bundle_manager.cpp | 404 if (shortcutInfo.intents.empty()) { in InnerStartShortcut() 405 APP_LOGW("intents is 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() 480 if (asyncCallbackInfo->shortcutInfo.intents.empty()) { in StartShortcut()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_parser_test/ |
H A D | bms_bundle_parser_test.cpp | 105 "intents": [ 1473 "intents": [
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launchermgr/ |
H A D | js_launcher.cpp | 433 napi_value intents; in ConvertShortcutInfo() local 434 NAPI_CALL_RETURN_VOID(env, napi_create_array(env, &intents)); in ConvertShortcutInfo() 435 for (size_t index = 0; index < shortcutInfo.intents.size(); ++index) { in ConvertShortcutInfo() 438 ConvertShortcutIntent(env, intent, shortcutInfo.intents[index]); in ConvertShortcutInfo() 439 NAPI_CALL_RETURN_VOID(env, napi_set_element(env, intents, index, intent)); in ConvertShortcutInfo() 441 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, objShortcutInfo, "wants", intents)); in ConvertShortcutInfo()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_profile.cpp | 317 std::vector<Intent> intents; member 1400 void from_json(const nlohmann::json &jsonObject, Intent &intents) in from_json() argument 1407 intents.targetClass, in from_json() 1413 intents.targetBundle, in from_json() 1487 shortcut.intents, in from_json() 2317 for (const auto &intent : info.intents) { in ToInnerBundleInfo() 2322 shortcutInfo.intents.emplace_back(shortcutIntent); in ToInnerBundleInfo()
|
H A D | inner_bundle_info.cpp | 4082 shortcutInfo.intents.emplace_back(shortcutIntent); in InnerProcessShortcut()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/ |
H A D | common_func.cpp | 2123 napi_value intents; in ConvertShortCutInfo() local 2124 NAPI_CALL_RETURN_VOID(env, napi_create_array(env, &intents)); in ConvertShortCutInfo() 2125 for (size_t index = 0; index < shortcutInfo.intents.size(); ++index) { in ConvertShortCutInfo() 2128 ConvertShortcutIntent(env, shortcutInfo.intents[index], intent); in ConvertShortCutInfo() 2129 NAPI_CALL_RETURN_VOID(env, napi_set_element(env, intents, index, intent)); in ConvertShortCutInfo() 2131 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "wants", intents)); in ConvertShortCutInfo() 2511 std::vector<ShortcutIntent> intents; in ParseShortCutInfo() local 2512 if (!ParseShortcutWantArray(env, prop, intents)) { in ParseShortCutInfo() 2513 intents.clear(); in ParseShortCutInfo() 2515 shortcutInfo.intents in ParseShortCutInfo() [all...] |
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_launcher_service_system_test/ |
H A D | bms_launcher_service_system_test.cpp | 284 for (auto want : shortcutinfo.intents) { in CheckShortcutInfos()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/ |
H A D | bms_bundle_kit_service_test.cpp | 834 shortcutInfos.intents.push_back(shortcutIntent); in MockShortcutInfo() 1400 for (auto &shortcutIntent : shortcutInfo.intents) { in CheckShortcutInfoTest() 1439 for (auto &shortcutIntent : shortcutInfo.intents) { in CheckShortcutInfoDemo()
|
H A D | bms_bundle_data_mgr_test.cpp | 712 shortcutInfos.intents.push_back(shortcutIntent); in MockShortcutInfo()
|