/foundation/resourceschedule/background_task_mgr/services/efficiency_resources/src/ |
H A D | resource_application_record.cpp | 5 * You may obtain a copy of the License at
94 !value.at("uid").is_number_integer() || !value.at("pid").is_number_integer() ||
in ParseFromJson() 95 !value.at("bundleName").is_string() || !value.at("resourceNumber").is_number_integer()) {
in ParseFromJson() 99 this->uid_ = value.at("uid").get<int32_t>();
in ParseFromJson() 100 this->pid_ = value.at("pid").get<int32_t>();
in ParseFromJson() 101 this->bundleName_ = value.at("bundleName").get<std::string>();
in ParseFromJson() 102 this->resourceNumber_ = value.at("resourceNumber").get<uint32_t>();
in ParseFromJson() 103 if (value.count("resourceUnitList") > 0 && value.at("resourceUnitLis in ParseFromJson() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/shape/ |
H A D | rect_pattern_test_ng.cpp | 5 * You may obtain a copy of the License at 106 paintProperty->GetTopLeftRadiusValue().GetX().ConvertToPx(), RADIUS.at(INDEX_ZERO).at(INDEX_ZERO)); in CheckRadius() 108 paintProperty->GetTopLeftRadiusValue().GetY().ConvertToPx(), RADIUS.at(INDEX_ZERO).at(INDEX_ONE)); in CheckRadius() 110 paintProperty->GetTopRightRadiusValue().GetX().ConvertToPx(), RADIUS.at(INDEX_ONE).at(INDEX_ZERO)); in CheckRadius() 112 paintProperty->GetTopRightRadiusValue().GetY().ConvertToPx(), RADIUS.at(INDEX_ONE).at(INDEX_ONE)); in CheckRadius() 114 paintProperty->GetBottomRightRadiusValue().GetX().ConvertToPx(), RADIUS.at(INDEX_TW in CheckRadius() [all...] |
/foundation/resourceschedule/memmgr/interface/innerkits/src/ |
H A D | mem_mgr_constant.cpp | 5 * You may obtain a copy of the License at 25 return ReclaimPriorityMapping.at(RECLAIM_PRIORITY_SYSTEM); in GetReclaimPriorityString() 27 return ReclaimPriorityMapping.at(RECLAIM_ONDEMAND_SYSTEM); in GetReclaimPriorityString() 29 return ReclaimPriorityMapping.at(RECLAIM_PRIORITY_KILLABLE_SYSTEM); in GetReclaimPriorityString() 31 return ReclaimPriorityMapping.at(RECLAIM_PRIORITY_FOREGROUND); in GetReclaimPriorityString() 33 return ReclaimPriorityMapping.at(RECLAIM_PRIORITY_VISIBLE); in GetReclaimPriorityString() 35 return ReclaimPriorityMapping.at(RECLAIM_PRIORITY_BG_SUSPEND_DELAY); in GetReclaimPriorityString() 37 return ReclaimPriorityMapping.at(RECLAIM_PRIORITY_BG_PERCEIVED); in GetReclaimPriorityString() 39 return ReclaimPriorityMapping.at(RECLAIM_PRIORITY_BG_DIST_DEVICE); in GetReclaimPriorityString() 41 return ReclaimPriorityMapping.at(RECLAIM_PRIORITY_BACKGROUN in GetReclaimPriorityString() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/ |
H A D | hisysevent_observer.cpp | 5 * You may obtain a copy of the License at 106 || !root.at("domain_").is_string() || !root.at("name_").is_string()) { in OnEvent() 110 std::string domainName = root.at("domain_").get<std::string>(); in OnEvent() 111 std::string eventName = root.at("name_").get<std::string>(); in OnEvent() 118 if (root.at("domain_").get<std::string>() == "AV_CODEC") { in ProcessHiSysEvent() 137 if (root.contains("CLIENT_UID") && root.at("CLIENT_UID").is_number_integer()) { in ProcessAvCodecEvent() 138 payload["uid"] = std::to_string(root.at("CLIENT_UID").get<std::int32_t>()); in ProcessAvCodecEvent() 143 if (root.contains("CLIENT_PID") && root.at("CLIENT_PID").is_number_integer()) { in ProcessAvCodecEvent() 144 payload["pid"] = std::to_string(root.at("CLIENT_PI in ProcessAvCodecEvent() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | clip_path.cpp | 5 * You may obtain a copy of the License at 26 SetLength(lengths.at(0), lengths.at(0), lengths.at(0), lengths.at(0)); in SetLength() 29 SetLength(lengths.at(0), lengths.at(1), lengths.at(0), lengths.at(1)); in SetLength() 32 SetLength(lengths.at( in SetLength() [all...] |
/foundation/CastEngine/castengine_cast_framework/common/src/ |
H A D | cast_engine_dfx.cpp | 5 * You may obtain a copy of the License at 145 "BIZ_SCENE", paramInt.at("BIZ_SCENE"), in HiSysEventWriteWrap() 146 "BIZ_STAGE", paramInt.at("BIZ_STAGE"), in HiSysEventWriteWrap() 147 "STAGE_RES", paramInt.at("STAGE_RES"), in HiSysEventWriteWrap() 148 "ERROR_CODE", paramInt.at("ERROR_CODE"), in HiSysEventWriteWrap() 149 "TO_CALL_PKG", paramStr.at("TO_CALL_PKG"), in HiSysEventWriteWrap() 150 "LOCAL_SESS_NAME", paramStr.at("LOCAL_SESS_NAME"), in HiSysEventWriteWrap() 151 "PEER_SESS_NAME", paramStr.at("PEER_SESS_NAME"), in HiSysEventWriteWrap() 152 "PEER_UDID", paramStr.at("PEER_UDID")); in HiSysEventWriteWrap() 157 "BIZ_SCENE", paramInt.at("BIZ_SCEN in HiSysEventWriteWrap() [all...] |
/foundation/bundlemanager/app_domain_verify/frameworks/verifier/src/ |
H A D | domain_json_util.cpp | 5 * You may obtain a copy of the License at 44 !jsonObj.at(ApplinkingAssetKeys::APP_LINKING).is_object()) { in Parse() 48 auto applinkingObj = jsonObj.at(ApplinkingAssetKeys::APP_LINKING); in Parse() 50 applinkingObj.at(ApplinkingAssetKeys::APPS).is_array()) { in Parse() 51 auto appsArray = applinkingObj.at(ApplinkingAssetKeys::APPS); in Parse() 57 arrayItem.at(ApplinkingAssetKeys::APP_IDENTIFIER).is_string() ? in Parse() 58 arrayItem.at(ApplinkingAssetKeys::APP_IDENTIFIER) : in Parse() 61 arrayItem.at(ApplinkingAssetKeys::BUNDLE_NAME).is_string() ? in Parse() 62 arrayItem.at(ApplinkingAssetKeys::BUNDLE_NAME) : in Parse() 65 arrayItem.at(ApplinkingAssetKey in Parse() [all...] |
/foundation/distributeddatamgr/preferences/frameworks/native/src/ |
H A D | base64_helper.cpp | 5 * You may obtain a copy of the License at 61 result += base64Encoder[input.at(index) >> BASE64_SHIFT_HIBYTE]; in Encode() 62 uint8_t code = (input.at(index++) & BASE64_MASK1) << BASE64_SHIFT; in Encode() 64 result += base64Encoder[code | (input.at(index) >> BASE64_SHIFT)]; in Encode() 65 code = (input.at(index++) & BASE64_MASK2) << BASE64_SHIFT_HIBYTE; in Encode() 67 result += base64Encoder[code | (input.at(index) >> BASE64_SHIFT_LOBYTE)]; in Encode() 68 result += base64Encoder[input.at(index++) & BASE64_MASK3]; in Encode() 91 uint8_t ch1 = base64Decoder[static_cast<uint8_t>(input.at(index++))]; in Decode() 92 uint8_t ch2 = base64Decoder[static_cast<uint8_t>(input.at(index++))]; in Decode() 97 if (input.at(inde in Decode() [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/include/mission/ |
H A D | json_util.h | 5 * You may obtain a copy of the License at
48 auto arrays = jsonObject.at(key);
in CheckArrayType() 64 data = jsonObject.at(key).get<T>();
in CheckArrayType() 75 data = jsonObject.at(key).get<T>();
in CheckArrayType() 85 data = jsonObject.at(key).get<T>();
in CheckArrayType() 108 if (!jsonObject.at(key).is_boolean()) {
in GetValueIfFindKey() 113 data = jsonObject.at(key).get<T>();
in GetValueIfFindKey() 116 if (!jsonObject.at(key).is_number()) {
in GetValueIfFindKey() 121 data = jsonObject.at(key).get<T>();
in GetValueIfFindKey() 124 if (!jsonObject.at(ke in GetValueIfFindKey() [all...] |
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/include/bundle_parser/ |
H A D | json_util.h | 5 * You may obtain a copy of the License at 48 auto arrays = jsonObject.at(key); in CheckArrayType() 65 data = jsonObject.at(key).get<T>(); in CheckArrayType() 77 data = jsonObject.at(key).get<T>(); in CheckArrayType() 88 data = jsonObject.at(key).get<T>(); in CheckArrayType() 111 if (!jsonObject.at(key).is_boolean()) { in GetValueIfFindKey() 116 data = jsonObject.at(key).get<T>(); in GetValueIfFindKey() 119 if (!jsonObject.at(key).is_number()) { in GetValueIfFindKey() 124 data = jsonObject.at(key).get<T>(); in GetValueIfFindKey() 127 if (!jsonObject.at(ke in GetValueIfFindKey() [all...] |
/foundation/resourceschedule/work_scheduler/services/native/src/ |
H A D | work_status.cpp | 5 * You may obtain a copy of the License at 70 auto workTimerCondition = workInfo.GetConditionMap()->at(WorkCondition::Type::TIMER); in WorkStatus() 97 conditionMap_.at(type) = value; in OnConditionChanged() 146 if (conditionMap_.at(WorkCondition::Type::TIMER)->boolVal) { in UpdateTimerIfNeed() 151 int32_t cycleLeft = conditionMap_.at(WorkCondition::Type::TIMER)->intVal; in UpdateTimerIfNeed() 152 conditionMap_.at(WorkCondition::Type::TIMER)->intVal = cycleLeft - 1; in UpdateTimerIfNeed() 164 if (conditionMap_.at(WorkCondition::Type::TIMER)->boolVal) { in NeedRemove() 167 if (conditionMap_.at(WorkCondition::Type::TIMER)->intVal <= 0) { in NeedRemove() 258 if (conditionMap_.at(type)->enumVal == WorkCondition::Network::NETWORK_UNKNOWN) { in IsBatteryAndNetworkReady() 261 if (workConditionMap->at(typ in IsBatteryAndNetworkReady() [all...] |
/foundation/filemanagement/file_api/utils/filemgmt_libn/src/ |
H A D | n_error.cpp | 5 * You may obtain a copy of the License at 57 return uvCode2ErrCodeTable.at(uvCode); in ConvertUVCode2ErrCode() 72 errno_ = errCodeTable.at(UNKROWN_ERR).first; in NError() 73 errMsg_ = errCodeTable.at(UNKROWN_ERR).second + ", errno is " + to_string(abs(errCode)); in NError() 107 code = errCodeTable.at(UNKROWN_ERR).first; in GetNapiErr() 108 msg = errCodeTable.at(UNKROWN_ERR).second; in GetNapiErr() 123 code = errCodeTable.at(errCode).first; in GetNapiErrAddData() 124 msg = errCodeTable.at(errCode).second; in GetNapiErrAddData() 126 code = errCodeTable.at(UNKROWN_ERR).first; in GetNapiErrAddData() 127 msg = errCodeTable.at(UNKROWN_ER in GetNapiErrAddData() [all...] |
/foundation/ability/form_fwk/services/include/ |
H A D | json_util_form.h | 5 * You may obtain a copy of the License at 47 auto arrays = jsonObject.at(key); in CheckArrayType() 61 data = jsonObject.at(key).get<T>(); in CheckArrayType() 73 data = jsonObject.at(key).get<T>(); in CheckArrayType() 84 data = jsonObject.at(key).get<T>(); in CheckArrayType() 107 if (!jsonObject.at(key).is_boolean()) { in GetValueIfFindKey() 112 data = jsonObject.at(key).get<T>(); in GetValueIfFindKey() 115 if (!jsonObject.at(key).is_number()) { in GetValueIfFindKey() 120 data = jsonObject.at(key).get<T>(); in GetValueIfFindKey() 123 if (!jsonObject.at(ke in GetValueIfFindKey() [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/include/ |
H A D | json_util.h | 5 * You may obtain a copy of the License at
49 auto arrays = jsonObject.at(key);
in CheckArrayType() 63 data = jsonObject.at(key).get<T>();
in CheckArrayType() 75 data = jsonObject.at(key).get<T>();
in CheckArrayType() 86 data = jsonObject.at(key).get<T>();
in CheckArrayType() 109 if (!jsonObject.at(key).is_boolean()) {
in GetValueIfFindKey() 114 data = jsonObject.at(key).get<T>();
in GetValueIfFindKey() 117 if (!jsonObject.at(key).is_number()) {
in GetValueIfFindKey() 122 data = jsonObject.at(key).get<T>();
in GetValueIfFindKey() 125 if (!jsonObject.at(ke in GetValueIfFindKey() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/ |
H A D | query_helper.cpp | 5 * You may obtain a copy of the License at 59 int pointer = 0; // Read pointer starts at 0 in StringToDbQuery() 60 int end = words.size() - 1; // Read pointer ends at size - 1 in StringToDbQuery() 63 std::string keyword = words.at(pointer); in StringToDbQuery() 89 std::string keyword = words.at(pointer); in Handle() 119 std::string keyword = words.at(pointer); in HandleExtra() 145 const std::string &fieldType = words.at(pointer + 1); // fieldType in HandleEqualTo() 146 const std::string &fieldName = words.at(pointer + 2); // fieldName in HandleEqualTo() 147 const std::string &fieldValue = words.at(pointer + 3); // fieldValue in HandleEqualTo() 172 const std::string &fieldType = words.at(pointe in HandleNotEqualTo() [all...] |
/foundation/ability/ability_base/interfaces/kits/native/view_data/src/ |
H A D | page_node_info.cpp | 5 * You may obtain a copy of the License at 42 id = jsonObject.at(PAGE_NODE_INFO_ID).get<int32_t>(); in FromJsonString() 45 depth = jsonObject.at(PAGE_NODE_INFO_DEPTH).get<int32_t>(); in FromJsonString() 48 autoFillType = static_cast<AutoFillType>(jsonObject.at(PAGE_NODE_INFO_AUTO_FILL_TYPE).get<int32_t>()); in FromJsonString() 51 tag = jsonObject.at(PAGE_NODE_INFO_TAG).get<std::string>(); in FromJsonString() 54 value = jsonObject.at(PAGE_NODE_INFO_VALUE).get<std::string>(); in FromJsonString() 57 placeholder = jsonObject.at(PAGE_NODE_INFO_PLACEHOLDER).get<std::string>(); in FromJsonString() 60 passwordRules = jsonObject.at(PAGE_NODE_INFO_PASSWORD_RULES).get<std::string>(); in FromJsonString() 63 metadata = jsonObject.at(PAGE_NODE_INFO_META_DATA).get<std::string>(); in FromJsonString() 67 enableAutoFill = jsonObject.at(PAGE_NODE_INFO_ENABLE_AUTO_FIL in FromJsonString() [all...] |
/foundation/graphic/graphic_2d/interfaces/kits/cj/color_manager/ |
H A D | cj_color_manager.cpp | 5 * You may obtain a copy of the License at 26 return std::make_tuple(static_cast<int32_t>(CJ_TO_ERROR_CODE_MAP.at(CMError::CM_ERROR_INVALID_ENUM_USAGE)), in create() 31 std::make_shared<ColorSpace>(CJ_TO_NATIVE_COLOR_SPACE_NAME_MAP.at(csType)); in create() 33 return std::make_tuple(static_cast<int32_t>(CJ_TO_ERROR_CODE_MAP.at(CMError::CM_ERROR_NULLPTR)), in create() 45 *errCode = static_cast<int32_t>(CJ_TO_ERROR_CODE_MAP.at(CMError::CM_ERROR_NULLPTR)); in create() 57 *errCode = static_cast<int32_t>(CJ_TO_ERROR_CODE_MAP.at(CMError::CM_ERROR_NULLPTR)); in GetColorSpaceName() 63 csName, NATIVE_TO_CJ_COLOR_SPACE_TYPE_MAP.at(csName)); in GetColorSpaceName() 65 return static_cast<uint32_t>(NATIVE_TO_CJ_COLOR_SPACE_TYPE_MAP.at(csName)); in GetColorSpaceName() 68 *errCode = static_cast<int32_t>(CJ_TO_ERROR_CODE_MAP.at(CMError::CM_ERROR_INVALID_PARAM)); in GetColorSpaceName() 77 *errCode = static_cast<int32_t>(CJ_TO_ERROR_CODE_MAP.at(CMErro in GetWhitePoint() [all...] |
/foundation/resourceschedule/device_standby/services/core/src/ |
H A D | allow_record.cpp | 5 * You may obtain a copy of the License at 51 uint32_t allowTypeIndex = persistTime.at("allowTypeIndex").get<uint32_t>(); in setAllowTime() 52 int64_t endTime_ = persistTime.at("endTime").get<int64_t>(); in setAllowTime() 53 std::string reason_ = persistTime.at("reason").get<std::string>(); in setAllowTime() 70 this->uid_ = value.at("uid").get<int32_t>(); in setAllowRecordField() 71 this->pid_ = value.at("pid").get<int32_t>(); in setAllowRecordField() 72 this->name_ = value.at("name").get<std::string>(); in setAllowRecordField() 73 this->allowType_ = value.at("allowType").get<uint32_t>(); in setAllowRecordField() 74 this->reasonCode_ = value.at("reasonCode").get<uint32_t>(); in setAllowRecordField() 84 const nlohmann::json &allowTimeVal = value.at("allowTimeLis in ParseFromJson() [all...] |
/foundation/resourceschedule/background_task_mgr/services/continuous_task/src/ |
H A D | continuous_task_record.cpp | 5 * You may obtain a copy of the License at
189 this->bundleName_ = value.at("bundleName").get<std::string>();
in ParseFromJson() 190 this->abilityName_ = value.at("abilityName").get<std::string>();
in ParseFromJson() 191 this->userId_ = value.at("userId").get<int32_t>();
in ParseFromJson() 192 this->uid_ = value.at("uid").get<int32_t>();
in ParseFromJson() 193 this->pid_ = value.at("pid").get<int32_t>();
in ParseFromJson() 194 this->bgModeId_ = value.at("bgModeId").get<uint32_t>();
in ParseFromJson() 195 this->isNewApi_ = value.at("isNewApi").get<bool>();
in ParseFromJson() 196 this->isFromWebview_ = value.at("isFromWebview").get<bool>();
in ParseFromJson() 197 this->notificationLabel_ = value.at("notificationLabe in ParseFromJson() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/ |
H A D | text_line_base_test.cpp | 5 * You may obtain a copy of the License at 74 ASSERT_NE(textLine_.at(0), nullptr); in HWTEST_F() 75 EXPECT_EQ(textLine_.at(0)->GetGlyphCount(), textLine_.at(0)->GetGlyphRuns().at(0)->GetGlyphs().size()); in HWTEST_F() 76 EXPECT_EQ(textLine_.at(0)->GetGlyphCount(), 5); in HWTEST_F() 87 ASSERT_NE(textLine_.at(0), nullptr); in HWTEST_F() 88 EXPECT_EQ(textLine_.at(0)->GetTextRange().start, 0); in HWTEST_F() 89 EXPECT_EQ(textLine_.at(0)->GetTextRange().end, 6); in HWTEST_F() 100 ASSERT_NE(textLine_.at( in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/ |
H A D | text_line_base_test.cpp | 5 * You may obtain a copy of the License at 73 ASSERT_NE(textLine_.at(0), nullptr); in HWTEST_F() 74 EXPECT_EQ(textLine_.at(0)->GetGlyphCount(), textLine_.at(0)->GetGlyphRuns().at(0)->GetGlyphs().size()); in HWTEST_F() 75 EXPECT_EQ(textLine_.at(0)->GetGlyphCount(), 7); in HWTEST_F() 86 ASSERT_NE(textLine_.at(0), nullptr); in HWTEST_F() 87 EXPECT_EQ(textLine_.at(0)->GetTextRange().leftIndex, 0); in HWTEST_F() 88 EXPECT_EQ(textLine_.at(0)->GetTextRange().rightIndex, 7); in HWTEST_F() 99 ASSERT_NE(textLine_.at( in HWTEST_F() [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | extension_config.cpp | 5 * You may obtain a copy of the License at 102 if (!object.contains(EXTENSION_CONFIG_NAME) || !object.at(EXTENSION_CONFIG_NAME).is_array()) { in LoadExtensionConfig() 107 for (auto &item : object.at(EXTENSION_CONFIG_NAME).items()) { in LoadExtensionConfig() 109 if (!jsonObject.contains(EXTENSION_TYPE_NAME) || !jsonObject.at(EXTENSION_TYPE_NAME).is_string()) { in LoadExtensionConfig() 112 std::string extensionTypeName = jsonObject.at(EXTENSION_TYPE_NAME).get<std::string>(); in LoadExtensionConfig() 122 !object.at(EXTENSION_AUTO_DISCONNECT_TIME).is_number()) { in LoadExtensionAutoDisconnectTime() 126 int32_t extensionAutoDisconnectTime = object.at(EXTENSION_AUTO_DISCONNECT_TIME).get<int32_t>(); in LoadExtensionAutoDisconnectTime() 135 !object.at(EXTENSION_THIRD_PARTY_APP_BLOCKED_FLAG_NAME).is_boolean()) { in LoadExtensionThirdPartyAppBlockedList() 139 thirdPartyAppEnableFlags_[extensionTypeName] = object.at(EXTENSION_THIRD_PARTY_APP_BLOCKED_FLAG_NAME).get<bool>(); in LoadExtensionThirdPartyAppBlockedList() 148 !object.at(EXTENSION_SERVICE_STARTUP_ENABLE_FLA in LoadExtensionServiceBlockedList() [all...] |
H A D | ams_configuration_parameter.cpp | 5 * You may obtain a copy of the License at 105 pickerJsonObject_ = Object.at(AmsConfig::PICKER_CONFIGURATION); in SetPickerJsonObject() 268 Object.at(AmsConfig::SYSTEM_CONFIGURATION).contains(AmsConfig::SYSTEM_ORIENTATION) && in LoadSystemConfiguration() 269 Object.at(AmsConfig::SYSTEM_CONFIGURATION).at(AmsConfig::SYSTEM_ORIENTATION).is_string()) { in LoadSystemConfiguration() 270 orientation_ = Object.at(AmsConfig::SYSTEM_CONFIGURATION).at(AmsConfig::SYSTEM_ORIENTATION).get<std::string>(); in LoadSystemConfiguration() 281 Object.at(AmsConfig::SUPPORT_BACK_TO_CALLER).is_boolean()) { in LoadBackToCallerConfig() 282 supportBackToCaller_ = Object.at(AmsConfig::SUPPORT_BACK_TO_CALLER).get<bool>(); in LoadBackToCallerConfig() 298 Object.at(AmsConfi in LoadSupportSCBCrashRebootConfig() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | bms_json_util.cpp | 5 * You may obtain a copy of the License at 27 if (!jsonObject.at(key).is_string()) { in GetStrValueIfFindKey() 32 data = jsonObject.at(key).get<std::string>(); in GetStrValueIfFindKey() 33 if (jsonObject.at(key).get<std::string>().length() > Constants::MAX_JSON_STRING_LENGTH) { in GetStrValueIfFindKey() 51 if (!jsonObject.at(key).is_boolean()) { in GetBoolValueIfFindKey() 56 data = jsonObject.at(key).get<bool>(); in GetBoolValueIfFindKey()
|
/foundation/ability/ability_runtime/test/unittest/want_agent_info_test/ |
H A D | want_agent_info_test.cpp | 5 * You may obtain a copy of the License at 93 EXPECT_EQ(wantAgentInfo->GetFlags().at(0), flag); in HWTEST_F() 94 EXPECT_NE(wantAgentInfo->GetWants().at(0), want); in HWTEST_F() 95 EXPECT_EQ(wantAgentInfo->GetWants().at(0)->GetElement().GetBundleName(), want->GetElement().GetBundleName()); in HWTEST_F() 96 EXPECT_EQ(wantAgentInfo->GetWants().at(0)->GetElement().GetAbilityName(), want->GetElement().GetAbilityName()); in HWTEST_F() 127 EXPECT_EQ(wantAgentInfo->GetFlags().at(0), flag); in HWTEST_F() 128 EXPECT_NE(wantAgentInfo->GetWants().at(0), want); in HWTEST_F() 129 EXPECT_EQ(wantAgentInfo->GetWants().at(0)->GetElement().GetBundleName(), want->GetElement().GetBundleName()); in HWTEST_F() 130 EXPECT_EQ(wantAgentInfo->GetWants().at(0)->GetElement().GetAbilityName(), want->GetElement().GetAbilityName()); in HWTEST_F() 161 EXPECT_EQ(wantAgentInfo->GetFlags().at( in HWTEST_F() [all...] |