Home
last modified time | relevance | path

Searched refs:records (Results 1 - 25 of 93) sorted by relevance

1234

/foundation/distributeddatamgr/udmf/framework/ndkimpl/data/
H A Dudmf.cpp67 static void DestroyUnifiedRecordArray(OH_UdmfRecord**& records, unsigned int& count) in DestroyUnifiedRecordArray() argument
69 if (records == nullptr) { in DestroyUnifiedRecordArray()
73 if (records[i] != nullptr) { in DestroyUnifiedRecordArray()
74 delete records[i]; in DestroyUnifiedRecordArray()
75 records[i] = nullptr; in DestroyUnifiedRecordArray()
78 delete[] records; in DestroyUnifiedRecordArray()
79 records = nullptr; in DestroyUnifiedRecordArray()
109 std::vector<std::shared_ptr<UnifiedRecord>>& records) in CreateUnifiedDataRecordsArray()
111 unsigned int size = static_cast<unsigned int>(records.size()); in CreateUnifiedDataRecordsArray()
125 result[i]->record_ = records[ in CreateUnifiedDataRecordsArray()
108 CreateUnifiedDataRecordsArray(OH_UdmfData* unifiedData, std::vector<std::shared_ptr<UnifiedRecord>>& records) CreateUnifiedDataRecordsArray() argument
245 std::vector<std::shared_ptr<UnifiedRecord>> records = unifiedData->unifiedData_->GetRecords(); OH_UdmfData_GetRecords() local
251 GetFirstPlainText(OH_UdmfRecord **records, unsigned int recordCount, OH_UdsPlainText* plainText) GetFirstPlainText() argument
270 GetFirstHtml(OH_UdmfRecord **records, unsigned int recordCount, OH_UdsHtml* html) GetFirstHtml() argument
297 std::vector<std::shared_ptr<UnifiedRecord>> records = data->unifiedData_->GetRecords(); OH_UdmfData_GetPrimaryPlainText() local
312 std::vector<std::shared_ptr<UnifiedRecord>> records = data->unifiedData_->GetRecords(); OH_UdmfData_GetPrimaryHtml() local
327 std::vector<std::shared_ptr<UnifiedRecord>> records = data->unifiedData_->GetRecords(); OH_UdmfData_GetRecordCount() local
341 std::vector<std::shared_ptr<UnifiedRecord>> records = data->unifiedData_->GetRecords(); OH_UdmfData_GetRecord() local
[all...]
/foundation/communication/nfc/services/src/tag/
H A Dndef_har_data_parser.cpp57 std::vector<std::shared_ptr<NdefRecord>> records = ndef->GetNdefRecords(); in TryNdef() local
59 std::vector<std::string> harPackages = ExtractHarPackages(records); in TryNdef()
61 std::string mimeType = ToMimeType(records[0]); in TryNdef()
66 std::string uri = GetUriPayload(records[0]); in TryNdef()
83 if (ParseWebLink(records)) { in TryNdef()
88 if (ParseUriLink(records)) { in TryNdef()
92 if (ParseOtherType(records, tagInfo)) { in TryNdef()
119 std::vector<std::shared_ptr<NdefRecord>> records, std::shared_ptr<KITS::TagInfo> tagInfo) in ParseOtherType()
122 if (records.size() <= 0 || records[ in ParseOtherType()
118 ParseOtherType( std::vector<std::shared_ptr<NdefRecord>> records, std::shared_ptr<KITS::TagInfo> tagInfo) ParseOtherType() argument
152 ParseUriLink(std::vector<std::shared_ptr<NdefRecord>> records) ParseUriLink() argument
196 ParseWebLink(std::vector<std::shared_ptr<NdefRecord>> records) ParseWebLink() argument
325 ExtractHarPackages(std::vector<std::shared_ptr<NdefRecord>> records) ExtractHarPackages() argument
[all...]
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/data/
H A Dunified_data_helper.cpp62 auto records = data.GetRecords(); in IsTempUData() local
63 if (records.size() != 1) { in IsTempUData()
66 if (records[0] == nullptr || records[0]->GetType() != UDType::FILE) { in IsTempUData()
69 auto file = static_cast<File*>(records[0].get()); in IsTempUData()
136 std::vector<std::shared_ptr<UnifiedRecord>> records {}; in Pack()
137 records.emplace_back(fileRecord); in Pack()
138 data.SetRecords(records); in Pack()
144 auto records = data.GetRecords(); in Unpack() local
145 if (records in Unpack()
[all...]
H A Dunified_data.cpp68 void UnifiedData::AddRecords(const std::vector<std::shared_ptr<UnifiedRecord>> &records) in AddRecords() argument
70 for (auto &record :records) { in AddRecords()
88 void UnifiedData::SetRecords(std::vector<std::shared_ptr<UnifiedRecord>> records) in SetRecords() argument
90 this->records_ = std::move(records); in SetRecords()
168 "The records of unifiedData is incomplete, expected recordsNum is %{public}u, not %{public}zu.", in IsComplete()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_relational_tracker_table_test.cpp1255 std::vector<VBucket> records; in HWTEST_F() local
1256 EXPECT_EQ(g_delegate->ExecuteSql(condition, records), INVALID_ARGS); in HWTEST_F()
1265 EXPECT_EQ(g_delegate->ExecuteSql(condition, records), INVALID_ARGS); in HWTEST_F()
1274 EXPECT_EQ(g_delegate->ExecuteSql(condition, records), INVALID_ARGS); in HWTEST_F()
1282 EXPECT_EQ(g_delegate->ExecuteSql(condition, records), INVALID_ARGS); in HWTEST_F()
1310 std::vector<VBucket> records; in HWTEST_F() local
1314 EXPECT_EQ(g_delegate->ExecuteSql(condition, records), OK); in HWTEST_F()
1315 EXPECT_EQ(records.size(), static_cast<size_t>(num - beginId)); in HWTEST_F()
1316 for (const VBucket &item: records) { in HWTEST_F()
1370 std::vector<VBucket> records; in HWTEST_F() local
1426 std::vector<VBucket> records; HWTEST_F() local
1481 std::vector<VBucket> records; HWTEST_F() local
1535 std::vector<VBucket> records; HWTEST_F() local
1608 std::vector<VBucket> records; HWTEST_F() local
1670 std::vector<VBucket> records; HWTEST_F() local
1699 std::vector<VBucket> records; HWTEST_F() local
1833 std::vector<VBucket> records; HWTEST_F() local
[all...]
/foundation/communication/nfc/services/include/
H A Dndef_har_data_parser.h39 bool ParseWebLink(std::vector<std::shared_ptr<NdefRecord>> records);
43 bool ParseUriLink(std::vector<std::shared_ptr<NdefRecord>> records);
44 bool ParseOtherType(std::vector<std::shared_ptr<NdefRecord>> records, std::shared_ptr<KITS::TagInfo> tagInfo);
46 std::vector<std::string> ExtractHarPackages(std::vector<std::shared_ptr<NdefRecord>> records);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/cloud/
H A Dcloud_upload_recorder.cpp50 auto &records = uploadRecord_[currentUser_][table][type]; in ReleaseUploadRecord() local
51 for (auto it = records.begin(); it != records.end();) { in ReleaseUploadRecord()
53 it = records.erase(it); in ReleaseUploadRecord()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Dcloud_db_data_utils.cpp22 std::vector<VBucket> records; in GenerateRecords() local
23 records.resize(recordCounts); in GenerateRecords()
25 records.push_back(GenerateRecord(schema, i)); in GenerateRecords()
27 return records; in GenerateRecords()
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/
H A Dnapi_preferences_observer.cpp38 void JSPreferencesObserver::OnChange(const std::map<std::string, PreferencesValue> &records) in OnChange() argument
40 AsyncCall([records](napi_env env, bool sendable, int &argc, napi_value *argv) { in OnChange()
43 for (const auto &[key, value] : records) { in OnChange()
52 LOG_DEBUG("OnChange records end"); in OnChange()
/foundation/arkui/ace_engine/adapter/ohos/capability/udmf/
H A Dudmf_impl.cpp231 auto records = udData->GetUnifiedData()->GetRecords(); in GetLinkRecord() local
232 for (auto record : records) { in GetLinkRecord()
262 auto records = udData->GetUnifiedData()->GetRecords(); in GetHtmlRecord() local
263 for (auto record : records) { in GetHtmlRecord()
316 auto records = udData->GetUnifiedData()->GetRecords(); in GetSinglePlainTextRecord() local
317 if (records.size() >= 1 && records[0]->GetType() == UDMF::UDType::PLAIN_TEXT) { in GetSinglePlainTextRecord()
318 UDMF::PlainText* plainText = reinterpret_cast<UDMF::PlainText*>(records[0].get()); in GetSinglePlainTextRecord()
344 auto records = udData->GetUnifiedData()->GetRecords(); in GetFileUriRecord() local
346 for (auto record : records) { in GetFileUriRecord()
368 auto records = udData->GetUnifiedData()->GetRecords(); GetPlainTextRecords() local
385 auto records = udData->GetUnifiedData()->GetRecords(); GetVideoRecordUri() local
420 auto records = udData->GetUnifiedData()->GetRecords(); GetSpanStringRecord() local
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/
H A Drdb_cloud.cpp39 VBuckets records = ValueProxy::Convert(std::move(record)); in BatchInsert() local
41 PostEvent(records, skipAssets, extends, DistributedData::AssetEvent::UPLOAD); in BatchInsert()
42 VBuckets temp = records; in BatchInsert()
43 auto error = cloudDB_->BatchInsert(tableName, std::move(records), extends); in BatchInsert()
55 VBuckets records = ValueProxy::Convert(std::move(record)); in BatchUpdate() local
57 PostEvent(records, skipAssets, extends, DistributedData::AssetEvent::UPLOAD); in BatchUpdate()
58 VBuckets temp = records; in BatchUpdate()
59 auto error = cloudDB_->BatchUpdate(tableName, std::move(records), extends); in BatchUpdate()
269 void RdbCloud::PostEvent(VBuckets& records, std::set<std::string>& skipAssets, VBuckets& extend, in PostEvent() argument
273 for (auto& record : records) { in PostEvent()
[all...]
H A Dcache_cursor.cpp23 CacheCursor::CacheCursor(std::vector<DistributedData::VBucket> &&records) in CacheCursor() argument
24 : row_(0), maxCol_(0), records_(std::move(records)) in CacheCursor()
/foundation/ability/form_fwk/test/fuzztest/formdatamgrtwo_fuzzer/
H A Dformdatamgrtwo_fuzzer.cpp59 FormRecord records; in DoSomethingInterestingWithMyAPI() local
63 formDataMgr.GetUpdatedForm(records, targetForms, updatedForm); in DoSomethingInterestingWithMyAPI()
70 formDataMgr.IsSameForm(records, updatedForm); in DoSomethingInterestingWithMyAPI()
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/convert/
H A Dudmf_conversion.cpp126 std::vector<std::shared_ptr<UnifiedRecord>> records; in ConvertRecordToSubclass() local
129 records.push_back(std::move(record)); in ConvertRecordToSubclass()
131 data.SetRecords(records); in ConvertRecordToSubclass()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_relational_store.h98 int ExecuteSql(const SqlCondition &condition, std::vector<VBucket> &records);
106 int UpsertData(RecordStatus status, const std::string &tableName, const std::vector<VBucket> &records);
173 int CheckParamForUpsertData(RecordStatus status, const std::string &tableName, const std::vector<VBucket> &records);
175 int CheckSchemaForUpsertData(const std::string &tableName, const std::vector<VBucket> &records);
/foundation/ability/form_fwk/test/fuzztest/formdatamgr_fuzzer/
H A Dformdatamgr_fuzzer.cpp52 FormRecord records; in DoSomethingInterestingWithMyAPI() local
54 formDataMgr.CreateFormJsInfo(formId, records, formInfos); in DoSomethingInterestingWithMyAPI()
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/utils/
H A Dduration_statistic.h38 virtual void CalculateAllEvent(uint32_t requestId, std::map<std::string, uint64_t> records) = 0;
51 void CalculateAllEvent(uint32_t requestId, std::map<std::string, uint64_t> records) override;
/foundation/distributeddatamgr/pasteboard/framework/innerkits/include/
H A Dconvert_utils.h34 const std::vector<std::shared_ptr<UnifiedRecord>> &records);
36 const std::vector<std::shared_ptr<PasteDataRecord>> &records);
/foundation/distributeddatamgr/udmf/interfaces/innerkits/data/
H A Dunified_data.h36 void AddRecords(const std::vector<std::shared_ptr<UnifiedRecord>> &records);
38 void SetRecords(std::vector<std::shared_ptr<UnifiedRecord>> records);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/relationalstoredelegate_fuzzer/
H A Drelationalstoredelegate_fuzzer.cpp114 VBucket records; in MultiCombineTest() local
115 records[extendColName] = extendColName; in MultiCombineTest()
117 g_delegate->UpsertData(tableName, { records }, recordStatus); in MultiCombineTest()
/foundation/distributeddatamgr/preferences/interfaces/inner_api/include/
H A Dpreferences_observer.h45 virtual void OnChange(const std::map<std::string, NativePreferences::PreferencesValue> &records) {}; in OnChange() argument
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/
H A Dnapi_preferences_observer.h32 void OnChange(const std::map<std::string, NativePreferences::PreferencesValue> &records) override;
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/
H A Dndk_data_conversion_test.cpp312 std::vector<std::shared_ptr<UnifiedRecord>> records = { systemDefinedPixelMap }; in HWTEST_F() local
313 data.SetRecords(records); in HWTEST_F()
373 std::vector<std::shared_ptr<UnifiedRecord>> records = { systemDefinedPixelMap }; in HWTEST_F() local
374 data.SetRecords(records); in HWTEST_F()
427 std::vector<std::shared_ptr<UnifiedRecord>> records = { systemDefinedPixelMap }; in HWTEST_F() local
428 data.SetRecords(records); in HWTEST_F()
475 std::vector<std::shared_ptr<UnifiedRecord>> records = { systemDefinedPixelMap }; in HWTEST_F() local
476 data.SetRecords(records); in HWTEST_F()
620 std::vector<std::shared_ptr<UnifiedRecord>> records = { html, contentForm }; in HWTEST_F() local
621 data.SetRecords(records); in HWTEST_F()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formdbcacheannex_fuzzer/
H A Dformdbcacheannex_fuzzer.cpp45 FormDBInfo records; in DoSomethingInterestingWithMyAPI() local
46 formDbCache.GetDBRecord(formId, records); in DoSomethingInterestingWithMyAPI()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/relational/
H A Drelational_store_delegate_impl.h72 DBStatus ExecuteSql(const SqlCondition &condition, std::vector<VBucket> &records) override;
80 DBStatus UpsertData(const std::string &tableName, const std::vector<VBucket> &records,

Completed in 16 milliseconds

1234