Lines Matching refs:bean
152 PdpProfile bean; in ParserPdpProfileInfos() local
153 bean.profileName = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_OPERATOR_NAME)); in ParserPdpProfileInfos()
154 bean.authUser = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_AUTH_USER)); in ParserPdpProfileInfos()
155 bean.authPwd = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_AUTH_PWD)); in ParserPdpProfileInfos()
157 bean.authType = authTypeStr.empty() ? 0 : atoi(authTypeStr.c_str()); in ParserPdpProfileInfos()
158 bean.mcc = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_MCC)); in ParserPdpProfileInfos()
159 bean.mnc = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_MNC)); in ParserPdpProfileInfos()
160 bean.apn = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_APN)); in ParserPdpProfileInfos()
161 bean.apnTypes = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_APN_TYPES)); in ParserPdpProfileInfos()
162 bean.mmsIpAddress = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_MMS_IP_ADDRESS)); in ParserPdpProfileInfos()
163 bean.proxyIpAddress = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_IP_ADDRESS)); in ParserPdpProfileInfos()
164 bean.homeUrl = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_HOME_URL)); in ParserPdpProfileInfos()
165 bean.mvnoType = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_MVNO_TYPE)); in ParserPdpProfileInfos()
166 bean.mvnoMatchData = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_MVNO_MATCH_DATA)); in ParserPdpProfileInfos()
167 bean.server = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_SERVER)); in ParserPdpProfileInfos()
169 bean.edited = editedStr.empty() ? 0 : atoi(editedStr.c_str()); in ParserPdpProfileInfos()
171 bean.bearingSystemType = bearingStr.empty() ? 0 : atoi(bearingStr.c_str()); in ParserPdpProfileInfos()
173 bean.isRoamingApn = isRoamingApnStr.empty() ? 0 : atoi(isRoamingApnStr.c_str()); in ParserPdpProfileInfos()
175 bean.pdpProtocol = pdpProtocolStr.empty() ? "IP" : pdpProtocolStr; in ParserPdpProfileInfos()
177 bean.roamPdpProtocol = roamPdpProtocolStr.empty() ? "IP" : roamPdpProtocolStr; in ParserPdpProfileInfos()
178 vec.push_back(bean); in ParserPdpProfileInfos()
191 … ParserUtil::ParserPdpProfileToValuesBucket(NativeRdb::ValuesBucket &value, const PdpProfile &bean) in ParserPdpProfileToValuesBucket() argument
193 value.PutString(PdpProfileData::PROFILE_NAME, bean.profileName); in ParserPdpProfileToValuesBucket()
194 value.PutString(PdpProfileData::MCC, bean.mcc); in ParserPdpProfileToValuesBucket()
195 value.PutString(PdpProfileData::MNC, bean.mnc); in ParserPdpProfileToValuesBucket()
196 std::string mccmnc(bean.mcc); in ParserPdpProfileToValuesBucket()
197 mccmnc.append(bean.mnc); in ParserPdpProfileToValuesBucket()
199 value.PutString(PdpProfileData::APN, bean.apn); in ParserPdpProfileToValuesBucket()
200 value.PutInt(PdpProfileData::AUTH_TYPE, bean.authType); in ParserPdpProfileToValuesBucket()
201 value.PutString(PdpProfileData::AUTH_USER, bean.authUser); in ParserPdpProfileToValuesBucket()
202 value.PutString(PdpProfileData::AUTH_PWD, bean.authPwd); in ParserPdpProfileToValuesBucket()
203 value.PutString(PdpProfileData::APN_TYPES, bean.apnTypes); in ParserPdpProfileToValuesBucket()
204 value.PutBool(PdpProfileData::IS_ROAMING_APN, bean.isRoamingApn); in ParserPdpProfileToValuesBucket()
205 value.PutString(PdpProfileData::HOME_URL, bean.homeUrl); in ParserPdpProfileToValuesBucket()
206 value.PutString(PdpProfileData::PROXY_IP_ADDRESS, bean.proxyIpAddress); in ParserPdpProfileToValuesBucket()
207 value.PutString(PdpProfileData::MMS_IP_ADDRESS, bean.mmsIpAddress); in ParserPdpProfileToValuesBucket()
208 value.PutString(PdpProfileData::APN_PROTOCOL, bean.pdpProtocol); in ParserPdpProfileToValuesBucket()
209 value.PutString(PdpProfileData::APN_ROAM_PROTOCOL, bean.roamPdpProtocol); in ParserPdpProfileToValuesBucket()
210 value.PutString(PdpProfileData::MVNO_TYPE, bean.mvnoType); in ParserPdpProfileToValuesBucket()
211 value.PutString(PdpProfileData::MVNO_MATCH_DATA, bean.mvnoMatchData); in ParserPdpProfileToValuesBucket()
212 value.PutInt(PdpProfileData::EDITED_STATUS, bean.edited); in ParserPdpProfileToValuesBucket()
213 value.PutString(PdpProfileData::SERVER, bean.server); in ParserPdpProfileToValuesBucket()
214 value.PutInt(PdpProfileData::BEARING_SYSTEM_TYPE, bean.bearingSystemType); in ParserPdpProfileToValuesBucket()
274 OpKey bean; in ParserOpKeyInfos() local
277 bean.mccmnc = ParseString(cJSON_GetObjectItem(ruleRoot, ITEM_MCCMNC)); in ParserOpKeyInfos()
278 bean.gid1 = ParseString(cJSON_GetObjectItem(ruleRoot, ITEM_GID_ONE)); in ParserOpKeyInfos()
279 bean.gid2 = ParseString(cJSON_GetObjectItem(ruleRoot, ITEM_GID_TWO)); in ParserOpKeyInfos()
280 bean.imsi = ParseString(cJSON_GetObjectItem(ruleRoot, ITEM_IMSI)); in ParserOpKeyInfos()
281 bean.spn = ParseString(cJSON_GetObjectItem(ruleRoot, ITEM_SPN)); in ParserOpKeyInfos()
282 bean.iccid = ParseString(cJSON_GetObjectItem(ruleRoot, ITEM_ICCID)); in ParserOpKeyInfos()
284 bean.operatorName = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_OPERATOR_NAME_OPKEY)); in ParserOpKeyInfos()
285 if (bean.operatorName.empty()) { in ParserOpKeyInfos()
286 bean.operatorName = "COMMON"; in ParserOpKeyInfos()
288 bean.operatorKey = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_OPERATOR_KEY)); in ParserOpKeyInfos()
289 bean.operatorKeyExt = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_OPERATOR_KEY_EXT)); in ParserOpKeyInfos()
290 bean.ruleId = GetRuleId(bean); in ParserOpKeyInfos()
291 vec.push_back(bean); in ParserOpKeyInfos()
297 int ParserUtil::GetRuleId(OpKey &bean) in GetRuleId() argument
300 if (!bean.mccmnc.empty()) { in GetRuleId()
303 if (!bean.iccid.empty()) { in GetRuleId()
306 if (!bean.imsi.empty()) { in GetRuleId()
309 if (!bean.spn.empty()) { in GetRuleId()
312 if (!bean.gid1.empty()) { in GetRuleId()
315 if (!bean.gid2.empty()) { in GetRuleId()
321 void ParserUtil::ParserOpKeyToValuesBucket(NativeRdb::ValuesBucket &value, const OpKey &bean) in ParserOpKeyToValuesBucket() argument
323 value.PutString(OpKeyData::MCCMNC, bean.mccmnc); in ParserOpKeyToValuesBucket()
324 value.PutString(OpKeyData::GID1, bean.gid1); in ParserOpKeyToValuesBucket()
325 value.PutString(OpKeyData::GID2, bean.gid2); in ParserOpKeyToValuesBucket()
326 value.PutString(OpKeyData::IMSI, bean.imsi); in ParserOpKeyToValuesBucket()
327 value.PutString(OpKeyData::SPN, bean.spn); in ParserOpKeyToValuesBucket()
328 value.PutString(OpKeyData::ICCID, bean.iccid); in ParserOpKeyToValuesBucket()
329 value.PutString(OpKeyData::OPERATOR_NAME, bean.operatorName); in ParserOpKeyToValuesBucket()
330 value.PutString(OpKeyData::OPERATOR_KEY, bean.operatorKey); in ParserOpKeyToValuesBucket()
331 value.PutString(OpKeyData::OPERATOR_KEY_EXT, bean.operatorKeyExt); in ParserOpKeyToValuesBucket()
332 value.PutInt(OpKeyData::RULE_ID, bean.ruleId); in ParserOpKeyToValuesBucket()
388 NumMatch bean; in ParserNumMatchInfos() local
389 bean.name = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_NAME)); in ParserNumMatchInfos()
390 bean.mcc = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_MCC)); in ParserNumMatchInfos()
391 bean.mnc = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_MNC)); in ParserNumMatchInfos()
392 bean.numMatch = ParseInt(cJSON_GetObjectItem(itemRoot, ITEM_NUM_MATCH)); in ParserNumMatchInfos()
393 bean.numMatchShort = ParseInt(cJSON_GetObjectItem(itemRoot, ITEM_NUM_MATCH_SHORT)); in ParserNumMatchInfos()
394 vec.push_back(bean); in ParserNumMatchInfos()
417 void ParserUtil::ParserNumMatchToValuesBucket(NativeRdb::ValuesBucket &value, const NumMatch &bean) in ParserNumMatchToValuesBucket() argument
419 value.PutString(NumMatchData::NAME, bean.name); in ParserNumMatchToValuesBucket()
420 value.PutString(NumMatchData::MCC, bean.mcc); in ParserNumMatchToValuesBucket()
421 value.PutString(NumMatchData::MNC, bean.mnc); in ParserNumMatchToValuesBucket()
422 std::string mccmnc(bean.mcc); in ParserNumMatchToValuesBucket()
423 mccmnc.append(bean.mnc); in ParserNumMatchToValuesBucket()
425 value.PutInt(NumMatchData::NUM_MATCH, bean.numMatch); in ParserNumMatchToValuesBucket()
426 value.PutInt(NumMatchData::NUM_MATCH_SHORT, bean.numMatchShort); in ParserNumMatchToValuesBucket()
482 EccNum bean; in ParserEccDataInfos() local
483 bean.name = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_NAME)); in ParserEccDataInfos()
484 bean.mcc = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_MCC)); in ParserEccDataInfos()
485 bean.mnc = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_MNC)); in ParserEccDataInfos()
486 bean.numeric = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_NUMERIC)); in ParserEccDataInfos()
487 bean.ecc_withcard = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_ECC_WITH_CARD)); in ParserEccDataInfos()
488 bean.ecc_nocard = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_ECC_NO_CARD)); in ParserEccDataInfos()
489 bean.ecc_fake = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_ECC_FAKE)); in ParserEccDataInfos()
490 vec.push_back(bean); in ParserEccDataInfos()
495 void ParserUtil::ParserEccDataToValuesBucket(NativeRdb::ValuesBucket &value, const EccNum &bean) in ParserEccDataToValuesBucket() argument
497 value.PutString(EccData::NAME, bean.name); in ParserEccDataToValuesBucket()
498 value.PutString(EccData::MCC, bean.mcc); in ParserEccDataToValuesBucket()
499 value.PutString(EccData::MNC, bean.mnc); in ParserEccDataToValuesBucket()
500 value.PutString(EccData::NUMERIC, bean.numeric); in ParserEccDataToValuesBucket()
501 value.PutString(EccData::ECC_WITH_CARD, bean.ecc_withcard); in ParserEccDataToValuesBucket()
502 value.PutString(EccData::ECC_NO_CARD, bean.ecc_nocard); in ParserEccDataToValuesBucket()
503 value.PutString(EccData::ECC_FAKE, bean.ecc_fake); in ParserEccDataToValuesBucket()