Home
last modified time | relevance | path

Searched refs:contactId (Results 1 - 10 of 10) sorted by relevance

/applications/standard/contacts_data/dataBusiness/contacts/src/
H A Dcontacts_update_helper.cpp179 int contactId = 0; in UpdateCallLogByPhoneNum() local
184 rawContactResultSet->GetInt(columnIndex, contactId); in UpdateCallLogByPhoneNum()
188 if (contactId <= 0) { in UpdateCallLogByPhoneNum()
191 auto resultSet = QueryDataForCallLog(rdbStore, contactId); in UpdateCallLogByPhoneNum()
192 DataToUpdateCallLog(isDelete, contactId, resultSet); in UpdateCallLogByPhoneNum()
197 bool isDelete, int contactId, std::shared_ptr<OHOS::NativeRdb::ResultSet> &resultSet) in DataToUpdateCallLog()
219 std::string quickSearch = std::to_string(contactId); in DataToUpdateCallLog()
227 std::shared_ptr<OHOS::NativeRdb::RdbStore> &rdbStore, int contactId) in QueryDataForCallLog()
249 .append(std::to_string(contactId)) in QueryDataForCallLog()
196 DataToUpdateCallLog( bool isDelete, int contactId, std::shared_ptr<OHOS::NativeRdb::ResultSet> &resultSet) DataToUpdateCallLog() argument
226 QueryDataForCallLog( std::shared_ptr<OHOS::NativeRdb::RdbStore> &rdbStore, int contactId) QueryDataForCallLog() argument
H A Dcontacts_database.cpp161 int64_t contactId = 0; in InsertRawContact() local
162 int rowContactRet = contactsContact.InsertContact(store_, outRawContactId, rawContactValues, contactId); in InsertRawContact()
167 // update contactId to rawContacts in InsertRawContact()
170 upRawContactValues.PutInt(contactIdKey, contactId); in InsertRawContact()
177 HILOG_ERROR("insertRawContact Update contactId to rawContacts failed:%{public}d", rowContactRet); in InsertRawContact()
184 contactsSearch.Insert(store_, contactId, outRawContactId, rawContactValues, searchContactId); in InsertRawContact()
693 int contactId = 0; in DeleteRecordInsert() local
694 contactIdValue.GetInt(contactId); in DeleteRecordInsert()
704 int deleteRet = DeleteRawContactLocal(contactId, rawContactId, backupData, disPlayName); in DeleteRecordInsert()
710 whereArgs.push_back(std::to_string(contactId)); in DeleteRecordInsert()
777 int contactId; DeleteContactQuery() local
811 DeleteRawContactLocal( int contactId, int rawContactId, std::string backupData, std::string disPlayName) DeleteRawContactLocal() argument
847 int contactId; CompletelyDelete() local
895 DeleteLocal(int rawContactId, std::string contactId) DeleteLocal() argument
[all...]
H A Dcontacts.cpp38 * @param contactId contact_id address
43 OHOS::NativeRdb::ValuesBucket rawContactValues, int64_t &contactId) in InsertContact()
47 int rowContactRet = rdbStore->Insert(contactId, ContactTableName::CONTACT, contactValues); in InsertContact()
42 InsertContact(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore, const int64_t &outRawContactId, OHOS::NativeRdb::ValuesBucket rawContactValues, int64_t &contactId) InsertContact() argument
/applications/standard/contacts_data/dataBusiness/contacts/include/
H A Dcontacts_update_helper.h44 std::shared_ptr<OHOS::NativeRdb::RdbStore> &rdbStore, int contactId);
46 bool isDelete, int contactId, std::shared_ptr<OHOS::NativeRdb::ResultSet> &resultSet);
H A Dcontacts_database.h90 int DeleteRawContactLocal(int contactId, int rawContactId, std::string backupData, std::string disPlayName);
93 int DeleteLocal(int rawContactId, std::string contactId);
H A Dcontacts.h31 OHOS::NativeRdb::ValuesBucket rawContactValues, int64_t &contactId);
/applications/standard/contacts_data/dataBusiness/quicksearch/src/
H A Dcontacts_search.cpp36 int64_t ContactsSearch::Insert(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore, int64_t contactId, in Insert() argument
44 searchContactValues.PutInt(SearchContactColumns::CONTACT_ID, contactId); in Insert()
/applications/standard/contacts_data/contacts/src/
H A Dresult_convert.cpp264 napi_value ResultConvert::GetResultMapValue(napi_env env, std::map<int, napi_value> &resultSetMap, int &contactId) in GetResultMapValue() argument
267 if (resultSetMap.count(contactId) > 0) { in GetResultMapValue()
268 std::map<int, napi_value>::iterator it = resultSetMap.find(contactId); in GetResultMapValue()
272 resultSetMap.insert(std::pair<int, napi_value>(contactId, napiObject)); in GetResultMapValue()
273 std::map<int, napi_value>::iterator it = resultSetMap.find(contactId); in GetResultMapValue()
/applications/standard/contacts_data/dataBusiness/quicksearch/include/
H A Dcontacts_search.h27 int64_t Insert(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore, int64_t contactId, int64_t rawContactId,
/applications/standard/contacts_data/test/unittest/src/
H A Dmergecontact_test.cpp57 int64_t contactId = resultIdVector[0]; in CheckMergeResultId() local
60 EXPECT_EQ(contactId, resultIdVector[i]); in CheckMergeResultId()
61 HILOG_INFO("merge contact_id = %{public}ld, contact_idTwo %{public}ld", contactId, resultIdVector[i]); in CheckMergeResultId()
63 EXPECT_NE(contactId, resultIdVector[i]); in CheckMergeResultId()

Completed in 10 milliseconds