Home
last modified time | relevance | path

Searched refs:Put (Results 1 – 25 of 95) sorted by relevance

1234

/base/security/access_token/services/privacymanager/test/unittest/
Dpermission_record_db_test.cpp374 inGenericValues.Put(PrivacyFiledConst::FIELD_OP_CODE, opCode);
381 inGenericValues.Put(PrivacyFiledConst::FIELD_OP_CODE, opCode);
382 inGenericValues.Put(PrivacyFiledConst::FIELD_TIMESTAMP, 10);
383 inGenericValues.Put(PrivacyFiledConst::FIELD_REJECT_COUNT, 1);
384 inGenericValues.Put(PrivacyFiledConst::FIELD_FLAG, 1);
399 value1.Put(PrivacyFiledConst::FIELD_TOKEN_ID, 0);
400 value1.Put(PrivacyFiledConst::FIELD_OP_CODE, Constant::OP_MICROPHONE);
401 value1.Put(PrivacyFiledConst::FIELD_STATUS, ActiveChangeType::PERM_ACTIVE_IN_FOREGROUND);
402 value1.Put(PrivacyFiledConst::FIELD_TIMESTAMP, 123); // 123 is random input
403 value1.Put(PrivacyFiledConst::FIELD_REJECT_COUNT, 0);
[all …]
/base/telephony/call_manager/services/call/call_state_observer/src/
Dcall_records_handler.cpp89 bucket.Put(CALL_PHONE_NUMBER, std::string(info.phoneNumber)); in MakeCallLogInsertBucket()
90 bucket.Put(CALL_DISPLAY_NAME, displayName); in MakeCallLogInsertBucket()
91 bucket.Put(CALL_DIRECTION, static_cast<int32_t>(info.directionType)); in MakeCallLogInsertBucket()
92 bucket.Put(CALL_VOICEMAIL_URI, std::string("")); in MakeCallLogInsertBucket()
93 bucket.Put(CALL_SIM_TYPE, 0); in MakeCallLogInsertBucket()
94 bucket.Put(CALL_IS_HD, static_cast<int32_t>(info.callType)); in MakeCallLogInsertBucket()
95 bucket.Put(CALL_IS_READ, 0); in MakeCallLogInsertBucket()
96 bucket.Put(CALL_RING_DURATION, static_cast<int32_t>(info.ringDuration)); in MakeCallLogInsertBucket()
97 bucket.Put(CALL_TALK_DURATION, static_cast<int32_t>(info.callDuration)); in MakeCallLogInsertBucket()
98 bucket.Put(CALL_FORMAT_NUMBER, std::string(info.formattedPhoneNumber)); in MakeCallLogInsertBucket()
[all …]
/base/security/access_token/services/common/database/test/unittest/
Ddatabase_test.cpp66 genericValues.Put(key, data);
86 genericValues.Put(key, Test);
240 genericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, TEST_TOKEN_ID);
241 genericValues.Put(TokenFiledConst::FIELD_USER_ID, 100);
242 genericValues.Put(TokenFiledConst::FIELD_BUNDLE_NAME, "test_bundle_name");
243 genericValues.Put(TokenFiledConst::FIELD_API_VERSION, 9);
244 genericValues.Put(TokenFiledConst::FIELD_INST_INDEX, 0);
245 genericValues.Put(TokenFiledConst::FIELD_DLP_TYPE, 0);
246 genericValues.Put(TokenFiledConst::FIELD_APP_ID, "test_app_id");
247 genericValues.Put(TokenFiledConst::FIELD_DEVICE_ID, "test_device_id");
[all …]
/base/accesscontrol/sandbox_manager/services/sandbox_manager/test/unittest/
Dsandbox_manager_db_test.cpp70 g_value1.Put(PolicyFiledConst::FIELD_TOKENID, static_cast<int64_t>(1)); in SetUpTestCase()
71 g_value1.Put(PolicyFiledConst::FIELD_PATH, "/user_grant/a"); in SetUpTestCase()
72 g_value1.Put(PolicyFiledConst::FIELD_MODE, static_cast<int64_t>(0b01)); in SetUpTestCase()
73 …g_value1.Put(PolicyFiledConst::FIELD_DEPTH, static_cast<int64_t>(2)); // 2 means '/' included in p… in SetUpTestCase()
74 g_value1.Put(PolicyFiledConst::FIELD_FLAG, static_cast<int64_t>(0)); in SetUpTestCase()
76 g_value2.Put(PolicyFiledConst::FIELD_TOKENID, static_cast<int64_t>(1)); in SetUpTestCase()
77 g_value2.Put(PolicyFiledConst::FIELD_PATH, "/user_grant/a/b"); in SetUpTestCase()
78 g_value2.Put(PolicyFiledConst::FIELD_MODE, static_cast<int64_t>(0b11)); in SetUpTestCase()
79 …g_value2.Put(PolicyFiledConst::FIELD_DEPTH, static_cast<int64_t>(3)); // 3 means '/' included in p… in SetUpTestCase()
80 g_value2.Put(PolicyFiledConst::FIELD_FLAG, static_cast<int64_t>(0)); in SetUpTestCase()
[all …]
/base/security/access_token/services/privacymanager/src/record/
Dpermission_record.cpp25 values.Put(PrivacyFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(record.tokenId)); in TranslationIntoGenericValues()
26 values.Put(PrivacyFiledConst::FIELD_OP_CODE, record.opCode); in TranslationIntoGenericValues()
27 values.Put(PrivacyFiledConst::FIELD_STATUS, record.status); in TranslationIntoGenericValues()
28 values.Put(PrivacyFiledConst::FIELD_TIMESTAMP, record.timestamp); in TranslationIntoGenericValues()
29 values.Put(PrivacyFiledConst::FIELD_ACCESS_DURATION, record.accessDuration); in TranslationIntoGenericValues()
30 values.Put(PrivacyFiledConst::FIELD_USED_TYPE, record.type); in TranslationIntoGenericValues()
31 values.Put(PrivacyFiledConst::FIELD_ACCESS_COUNT, record.accessCount); in TranslationIntoGenericValues()
32 values.Put(PrivacyFiledConst::FIELD_REJECT_COUNT, record.rejectCount); in TranslationIntoGenericValues()
33 values.Put(PrivacyFiledConst::FIELD_LOCKSCREEN_STATUS, record.lockScreenStatus); in TranslationIntoGenericValues()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/database/
Ddata_translator.cpp36 outGenericValues.Put(TokenFiledConst::FIELD_PERMISSION_NAME, inPermissionDef.permissionName); in TranslationIntoGenericValues()
37 outGenericValues.Put(TokenFiledConst::FIELD_BUNDLE_NAME, inPermissionDef.bundleName); in TranslationIntoGenericValues()
38 outGenericValues.Put(TokenFiledConst::FIELD_GRANT_MODE, inPermissionDef.grantMode); in TranslationIntoGenericValues()
39 outGenericValues.Put(TokenFiledConst::FIELD_AVAILABLE_LEVEL, inPermissionDef.availableLevel); in TranslationIntoGenericValues()
40 …outGenericValues.Put(TokenFiledConst::FIELD_PROVISION_ENABLE, inPermissionDef.provisionEnable ? 1 … in TranslationIntoGenericValues()
41 outGenericValues.Put(TokenFiledConst::FIELD_DISTRIBUTED_SCENE_ENABLE, in TranslationIntoGenericValues()
43 outGenericValues.Put(TokenFiledConst::FIELD_LABEL, inPermissionDef.label); in TranslationIntoGenericValues()
44 outGenericValues.Put(TokenFiledConst::FIELD_LABEL_ID, inPermissionDef.labelId); in TranslationIntoGenericValues()
45 outGenericValues.Put(TokenFiledConst::FIELD_DESCRIPTION, inPermissionDef.description); in TranslationIntoGenericValues()
46 outGenericValues.Put(TokenFiledConst::FIELD_DESCRIPTION_ID, inPermissionDef.descriptionId); in TranslationIntoGenericValues()
[all …]
/base/telephony/core_service/utils/vcard/src/contact_data/
Dvcard_name_data.cpp24 valuesBucket.Put(ContactData::TYPE_ID, TypeId::NAME); in BuildValuesBucket()
26 valuesBucket.Put(ContactData::GIVEN_NAME, given_); in BuildValuesBucket()
29 valuesBucket.Put(ContactData::FAMILY_NAME, family_); in BuildValuesBucket()
32 valuesBucket.Put(ContactData::MIDDLE_NAME, middle_); in BuildValuesBucket()
35 valuesBucket.Put(ContactData::NAME_PREFIX, prefix_); in BuildValuesBucket()
38 valuesBucket.Put(ContactData::NAME_SUFFIX, suffix_); in BuildValuesBucket()
42 valuesBucket.Put(ContactData::GIVEN_NAME_PHONETIC, phoneticGiven_); in BuildValuesBucket()
46 valuesBucket.Put(ContactData::FAMILY_NAME_PHONETIC, phoneticFamily_); in BuildValuesBucket()
50 valuesBucket.Put(ContactData::MIDDLE_NAME_PHONETIC, phoneticMiddle_); in BuildValuesBucket()
54 valuesBucket.Put(ContactData::GIVEN_NAME_PHONETIC, sort_); in BuildValuesBucket()
[all …]
Dvcard_postal_data.cpp28 valuesBucket.Put(ContactData::TYPE_ID, TypeId::POSTAL_ADDRESS); in BuildValuesBucket()
29 valuesBucket.Put(ContactData::POBOX, pobox_); in BuildValuesBucket()
30 valuesBucket.Put(ContactData::POSTCODE, postCode_); in BuildValuesBucket()
31 valuesBucket.Put(ContactData::REGION, region_); in BuildValuesBucket()
32 valuesBucket.Put(ContactData::STREET, street_); in BuildValuesBucket()
33 valuesBucket.Put(ContactData::COUNTRY, country_); in BuildValuesBucket()
34 valuesBucket.Put(ContactData::CITY, city_); in BuildValuesBucket()
35 valuesBucket.Put(ContactData::LABEL_ID, labelId_); in BuildValuesBucket()
36 valuesBucket.Put(ContactData::LABEL_NAME, labelName_); in BuildValuesBucket()
37 valuesBucket.Put(ContactData::DETAIL_INFO, postalAddress_); in BuildValuesBucket()
Dvcard_birthday_data.cpp24 valuesBucket.Put(ContactData::TYPE_ID, TypeId::CONTACT_EVENT); in BuildValuesBucket()
25 valuesBucket.Put(ContactData::DETAIL_INFO, birthday_); in BuildValuesBucket()
26 valuesBucket.Put(ContactData::LABEL_ID, static_cast<int32_t>(EventType::EVENT_BIRTHDAY)); in BuildValuesBucket()
Dvcard_anniversary_data.cpp24 valuesBucket.Put(ContactData::TYPE_ID, TypeId::CONTACT_EVENT); in BuildValuesBucket()
25 valuesBucket.Put(ContactData::DETAIL_INFO, anniversary_); in BuildValuesBucket()
26 valuesBucket.Put(ContactData::LABEL_ID, static_cast<int32_t>(EventType::EVENT_ANNIVERSARY)); in BuildValuesBucket()
Dvcard_email_data.cpp24 valuesBucket.Put(ContactData::TYPE_ID, TypeId::EMAIL); in BuildValuesBucket()
25 valuesBucket.Put(ContactData::DETAIL_INFO, address_); in BuildValuesBucket()
26 valuesBucket.Put(ContactData::LABEL_ID, labelId_); in BuildValuesBucket()
27 valuesBucket.Put(ContactData::LABEL_NAME, labelName_); in BuildValuesBucket()
28 valuesBucket.Put(ContactData::ALIAS_DETAIL_INFO_KEY, displayName_); in BuildValuesBucket()
Dvcard_event_data.cpp24 valuesBucket.Put(ContactData::TYPE_ID, TypeId::CONTACT_EVENT); in BuildValuesBucket()
25 valuesBucket.Put(ContactData::LABEL_ID, labelId_); in BuildValuesBucket()
26 valuesBucket.Put(ContactData::LABEL_NAME, labelName_); in BuildValuesBucket()
27 valuesBucket.Put(ContactData::DETAIL_INFO, eventDate_); in BuildValuesBucket()
Dvcard_relation_data.cpp24 valuesBucket.Put(ContactData::TYPE_ID, TypeId::RELATION); in BuildValuesBucket()
25 valuesBucket.Put(ContactData::LABEL_ID, labelId_); in BuildValuesBucket()
26 valuesBucket.Put(ContactData::LABEL_NAME, labelName_); in BuildValuesBucket()
27 valuesBucket.Put(ContactData::DETAIL_INFO, relationName_); in BuildValuesBucket()
Dvcard_website_data.cpp24 valuesBucket.Put(ContactData::TYPE_ID, TypeId::WEBSITE); in BuildValuesBucket()
25 valuesBucket.Put(ContactData::DETAIL_INFO, website_); in BuildValuesBucket()
26 valuesBucket.Put(ContactData::LABEL_ID, labelId_); in BuildValuesBucket()
27 valuesBucket.Put(ContactData::LABEL_NAME, labelName_); in BuildValuesBucket()
Dvcard_sip_data.cpp26 valuesBucket.Put(ContactData::TYPE_ID, TypeId::SIP_ADDRESS); in BuildValuesBucket()
27 valuesBucket.Put(ContactData::DETAIL_INFO, address_); in BuildValuesBucket()
28 valuesBucket.Put(ContactData::LABEL_ID, labelId_); in BuildValuesBucket()
29 valuesBucket.Put(ContactData::LABEL_NAME, labelName_); in BuildValuesBucket()
Dvcard_phone_data.cpp24 valuesBucket.Put(ContactData::TYPE_ID, TypeId::PHONE); in BuildValuesBucket()
25 valuesBucket.Put(ContactData::DETAIL_INFO, number_); in BuildValuesBucket()
26 valuesBucket.Put(ContactData::LABEL_ID, labelId_); in BuildValuesBucket()
27 valuesBucket.Put(ContactData::LABEL_NAME, labelName_); in BuildValuesBucket()
Dvcard_im_data.cpp24 valuesBucket.Put(ContactData::TYPE_ID, TypeId::IM); in BuildValuesBucket()
25 valuesBucket.Put(ContactData::DETAIL_INFO, address_); in BuildValuesBucket()
26 valuesBucket.Put(ContactData::LABEL_ID, labelId_); in BuildValuesBucket()
/base/telephony/telephony_data/test/unittest/data_test/
Ddata_storage_test.cpp168 value.Put(SimData::SIM_ID, 1); in SimSetCardByType()
169 value.Put(SimData::CARD_TYPE, 1); in SimSetCardByType()
178 value.Put(OpKeyData::ID, 1); in OpKeyInsert()
179 value.Put(OpKeyData::MCCMNC, "46000"); in OpKeyInsert()
180 value.Put(OpKeyData::GID1, "gid1"); in OpKeyInsert()
181 value.Put(OpKeyData::OPERATOR_NAME, "Mobile"); in OpKeyInsert()
182 value.Put(OpKeyData::OPERATOR_KEY, opkey); in OpKeyInsert()
190 values.Put(OpKeyData::GID1, "gidd1"); in OpKeyUpdate()
224 value.Put(SimData::SIM_ID, 1); in SimInsert()
225 value.Put(SimData::PHONE_NUMBER, "134xxxxxxxx"); in SimInsert()
[all …]
/base/telephony/telephony_data/test/unittest/data_gtest/
Ddata_storage_gtest.cpp176 value.Put(OpKeyData::ID, 1); in OpKeyInsert()
177 value.Put(OpKeyData::MCCMNC, "460"); in OpKeyInsert()
178 value.Put(OpKeyData::GID1, "gid1"); in OpKeyInsert()
179 value.Put(OpKeyData::OPERATOR_NAME, "name"); in OpKeyInsert()
180 value.Put(OpKeyData::OPERATOR_KEY, opkey); in OpKeyInsert()
190 values.Put(OpKeyData::OPERATOR_NAME, "name2"); in OpKeyUpdate()
224 value.Put(SimData::SLOT_INDEX, 1); in SimInsert()
225 value.Put(SimData::PHONE_NUMBER, "134xxxxxxxx"); in SimInsert()
226 value.Put(SimData::ICC_ID, "icc_id"); in SimInsert()
227 value.Put(SimData::CARD_ID, "card_id"); in SimInsert()
[all …]
/base/accesscontrol/sandbox_manager/services/common/database/include/
Dgeneric_values.h32 void Put(const std::string &key, int32_t value);
34 void Put(const std::string &key, int64_t value);
36 void Put(const std::string &key, const std::string &value);
38 void Put(const std::string &key, const VariantValue &value);
/base/security/access_token/services/common/database/include/
Dgeneric_values.h33 void Put(const std::string& key, int32_t value);
35 void Put(const std::string& key, int64_t value);
37 void Put(const std::string& key, const std::string& value);
39 void Put(const std::string& key, const VariantValue& value);
/base/telephony/sms_mms/services/sms/
Dsms_service.cpp201 smsMmsInfoBucket.Put(SmsMmsInfo::SLOT_ID, std::to_string(slotId)); in InsertSmsMmsInfo()
202 smsMmsInfoBucket.Put(SmsMmsInfo::RECEIVER_NUMBER, number); in InsertSmsMmsInfo()
203 smsMmsInfoBucket.Put(SmsMmsInfo::SENDER_NUMBER, ""); in InsertSmsMmsInfo()
204 smsMmsInfoBucket.Put(SmsMmsInfo::IS_SENDER, "0"); in InsertSmsMmsInfo()
205 smsMmsInfoBucket.Put(SmsMmsInfo::START_TIME, std::to_string(duration.count())); in InsertSmsMmsInfo()
206 smsMmsInfoBucket.Put(SmsMmsInfo::END_TIME, std::to_string(duration.count())); in InsertSmsMmsInfo()
207 smsMmsInfoBucket.Put(SmsMmsInfo::MSG_TYPE, "0"); in InsertSmsMmsInfo()
208 smsMmsInfoBucket.Put(SmsMmsInfo::SMS_TYPE, "0"); in InsertSmsMmsInfo()
209 smsMmsInfoBucket.Put(SmsMmsInfo::MSG_TITLE, text); in InsertSmsMmsInfo()
210 smsMmsInfoBucket.Put(SmsMmsInfo::MSG_CONTENT, text); in InsertSmsMmsInfo()
[all …]
Dsms_receive_handler.cpp215 bucket.Put(SmsSubsection::SLOT_ID, std::to_string(slotId_)); in AddMsgToDB()
216 bucket.Put(SmsSubsection::RECEIVER_NUMBER, indexer->GetOriginatingAddress()); in AddMsgToDB()
217 bucket.Put(SmsSubsection::SENDER_NUMBER, indexer->GetOriginatingAddress()); in AddMsgToDB()
218 bucket.Put(SmsSubsection::START_TIME, std::to_string(indexer->GetTimestamp())); in AddMsgToDB()
219 bucket.Put(SmsSubsection::END_TIME, std::to_string(indexer->GetTimestamp())); in AddMsgToDB()
220 bucket.Put(SmsSubsection::REW_PUD, StringUtils::StringToHex(indexer->GetPdu())); in AddMsgToDB()
222 bucket.Put(SmsSubsection::FORMAT, indexer->GetIsCdma() ? SMS_TYPE_CDMA : SMS_TYPE_GSM); in AddMsgToDB()
223 bucket.Put(SmsSubsection::DEST_PORT, indexer->GetDestPort()); in AddMsgToDB()
224 bucket.Put(SmsSubsection::SMS_SUBSECTION_ID, indexer->GetMsgRefId()); in AddMsgToDB()
225 bucket.Put(SmsSubsection::SIZE, indexer->GetMsgCount()); in AddMsgToDB()
[all …]
/base/security/access_token/services/privacymanager/src/database/
Ddata_translator.cpp48 andGenericValues.Put(PrivacyFiledConst::FIELD_TIMESTAMP_BEGIN, begin); in TranslationIntoGenericValues()
51 andGenericValues.Put(PrivacyFiledConst::FIELD_TIMESTAMP_END, end); in TranslationIntoGenericValues()
61 …andGenericValues.Put(PrivacyFiledConst::FIELD_LOCKSCREEN_STATUS, static_cast<int32_t>(PERM_ACTIVE_… in TranslationIntoGenericValues()
63 …andGenericValues.Put(PrivacyFiledConst::FIELD_LOCKSCREEN_STATUS, static_cast<int32_t>(PERM_ACTIVE_… in TranslationIntoGenericValues()
65 …andGenericValues.Put(PrivacyFiledConst::FIELD_STATUS, static_cast<int32_t>(PERM_ACTIVE_IN_BACKGROU… in TranslationIntoGenericValues()
67 …andGenericValues.Put(PrivacyFiledConst::FIELD_STATUS, static_cast<int32_t>(PERM_ACTIVE_IN_FOREGROU… in TranslationIntoGenericValues()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_database_test.cpp79 inGenericValues.Put(TokenFiledConst::FIELD_DEVICE_ID, ""); // empty device id
82 inGenericValues.Put(TokenFiledConst::FIELD_DEVICE_ID, "test dev id");
83 inGenericValues.Put(TokenFiledConst::FIELD_GRANT_FLAG, 0xffff); // 0xffff is test input

1234