Home
last modified time | relevance | path

Searched refs:intents (Results 1 - 12 of 12) sorted by relevance

/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dshortcut_info.cpp39 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 Dlauncher_shortcut_info.h25 std::vector<ShortcutIntent> intents; member
H A Dshortcut_info.h68 std::vector<ShortcutIntent> intents; member
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launcher_bundle_manager/
H A Dlauncher_bundle_manager.cpp404 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 Dbms_bundle_parser_test.cpp105 "intents": [
1473 "intents": [
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launchermgr/
H A Djs_launcher.cpp433 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 Dbundle_profile.cpp317 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 Dinner_bundle_info.cpp4082 shortcutInfo.intents.emplace_back(shortcutIntent); in InnerProcessShortcut()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/
H A Dcommon_func.cpp2123 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 Dbms_launcher_service_system_test.cpp284 for (auto want : shortcutinfo.intents) { in CheckShortcutInfos()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_kit_service_test.cpp834 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 Dbms_bundle_data_mgr_test.cpp712 shortcutInfos.intents.push_back(shortcutIntent); in MockShortcutInfo()

Completed in 58 milliseconds