Home
last modified time | relevance | path

Searched refs:ComputeChecksum (Results 1 – 25 of 45) sorted by relevance

12

/external/icing/icing/file/
Dfile-backed-vector_test.cc201 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F()
211 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(good_crc)); in TEST_F()
257 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F()
269 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F()
294 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F()
314 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F()
353 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(2620640643U))); in TEST_F()
373 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(2620640643U))); in TEST_F()
387 ICING_ASSERT_OK_AND_ASSIGN(Crc32 crc1, vector->ComputeChecksum()); in TEST_F()
395 ICING_ASSERT_OK_AND_ASSIGN(Crc32 crc2, vector->ComputeChecksum()); in TEST_F()
[all …]
Dpersistent-storage.h107 Crc32 ComputeChecksum() const { in ComputeChecksum() function
304 crcs_ref.all_crc = crcs_ref.component_crcs.ComputeChecksum().Get(); in UpdateChecksumsInternal()
317 if (crcs_ref.all_crc != crcs_ref.component_crcs.ComputeChecksum().Get()) { in ValidateChecksums()
Dportable-file-backed-proto-log.h496 libtextclassifier3::StatusOr<Crc32> ComputeChecksum();
534 static libtextclassifier3::StatusOr<Crc32> ComputeChecksum(
774 ComputeChecksum(filesystem, file_path, Crc32(), in InitializeExistingFile()
817 PortableFileBackedProtoLog<ProtoT>::ComputeChecksum( in ComputeChecksum() function
1219 ICING_ASSIGN_OR_RETURN(Crc32 crc, ComputeChecksum()); in PersistToDisk()
1237 PortableFileBackedProtoLog<ProtoT>::ComputeChecksum() { in ComputeChecksum() function
1248 ComputeChecksum(filesystem_, file_path_, Crc32(), in ComputeChecksum()
1253 crc, ComputeChecksum( in ComputeChecksum()
Dportable-file-backed-proto-log_benchmark.cc241 testing::DoNotOptimize(proto_log->ComputeChecksum()); in BM_ComputeChecksum()
285 testing::DoNotOptimize(proto_log->ComputeChecksum()); in BM_ComputeChecksumWithCachedChecksum()
333 testing::DoNotOptimize(proto_log->ComputeChecksum()); in BM_ComputeChecksumOnlyForTail()
Dportable-file-backed-proto-log_test.cc1055 TEST_F(PortableFileBackedProtoLogTest, ComputeChecksum) { in TEST_F() argument
1071 ICING_ASSERT_OK_AND_ASSIGN(checksum, proto_log->ComputeChecksum()); in TEST_F()
1074 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Eq(checksum))); in TEST_F()
1088 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Eq(checksum))); in TEST_F()
1092 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Eq(checksum))); in TEST_F()
1096 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Not(Eq(checksum)))); in TEST_F()
1202 EXPECT_THAT(proto_log->ComputeChecksum(), in TEST_F()
1222 EXPECT_THAT(proto_log->ComputeChecksum(), in TEST_F()
1245 EXPECT_THAT(proto_log->ComputeChecksum(), in TEST_F()
Dfile-backed-bitmap.cc150 if (header().checksum != ComputeChecksum()) { in Initialize()
320 mutable_header()->checksum = ComputeChecksum(); in PersistToDisk()
325 uint32_t FileBackedBitmap::ComputeChecksum() const { in ComputeChecksum() function in icing::lib::FileBackedBitmap
Dfile-backed-proto-log.h253 static libtextclassifier3::StatusOr<Crc32> ComputeChecksum(
424 ComputeChecksum(filesystem, file_path, Crc32(), in InitializeExistingFile()
440 ComputeChecksum(filesystem, file_path, Crc32(), sizeof(Header), in InitializeExistingFile()
473 libtextclassifier3::StatusOr<Crc32> FileBackedProtoLog<ProtoT>::ComputeChecksum( in ComputeChecksum() function
Dfile-backed-proto.h83 libtextclassifier3::StatusOr<Crc32> ComputeChecksum() const
143 libtextclassifier3::StatusOr<Crc32> FileBackedProto<ProtoT>::ComputeChecksum() in ComputeChecksum() function
Dpersistent-hash-map.cc543 return info().ComputeChecksum(); in ComputeInfoChecksum()
550 bucket_storage_->ComputeChecksum()); in ComputeStoragesChecksum()
552 entry_storage_->ComputeChecksum()); in ComputeStoragesChecksum()
553 ICING_ASSIGN_OR_RETURN(Crc32 kv_storage_crc, kv_storage_->ComputeChecksum()); in ComputeStoragesChecksum()
Dfile-backed-bitmap.h210 uint32_t ComputeChecksum() const;
Dpersistent-hash-map_test.cc463 crcs.component_crcs.info_crc = info.ComputeChecksum().Get(); in TEST_P()
464 crcs.all_crc = crcs.component_crcs.ComputeChecksum().Get(); in TEST_P()
670 bucket_storage->ComputeChecksum()); in TEST_P()
674 bucket_storage->ComputeChecksum()); in TEST_P()
715 ICING_ASSERT_OK_AND_ASSIGN(Crc32 old_crc, entry_storage->ComputeChecksum()); in TEST_P()
719 ICING_ASSERT_OK_AND_ASSIGN(Crc32 new_crc, entry_storage->ComputeChecksum()); in TEST_P()
760 ICING_ASSERT_OK_AND_ASSIGN(Crc32 old_crc, kv_storage->ComputeChecksum()); in TEST_P()
763 ICING_ASSERT_OK_AND_ASSIGN(Crc32 new_crc, kv_storage->ComputeChecksum()); in TEST_P()
/external/skia/src/core/
DSkDescriptor.cpp53 fChecksum = SkDescriptor::ComputeChecksum(this); in computeChecksum()
105 uint32_t SkDescriptor::ComputeChecksum(const SkDescriptor* desc) { in ComputeChecksum() function in SkDescriptor
199 SkDescriptor::ComputeChecksum(ad.getDesc()); in MakeFromBuffer()
201 if (SkDescriptor::ComputeChecksum(ad.getDesc()) != ad.getDesc()->fChecksum) { return {}; } in MakeFromBuffer()
DSkDescriptor.h46 SkASSERT(SkDescriptor::ComputeChecksum(this) == fChecksum); in assertChecksum()
75 static uint32_t ComputeChecksum(const SkDescriptor* desc);
/external/scudo/standalone/tests/
Dchecksum_test.cpp31 typedef scudo::u16 (*ComputeChecksum)(scudo::u32, scudo::uptr *, scudo::uptr); typedef
35 template <ComputeChecksum F> static void verifyChecksumFunctionBitFlip() { in verifyChecksumFunctionBitFlip()
/external/icing/proto/icing/proto/
Ddebug.proto72 // LiteIndex::ComputeChecksum()
86 // DocumentStore::ComputeChecksum().
109 // SchemaStore::ComputeChecksum().
/external/icing/icing/legacy/index/
Dicing-mock-filesystem.h155 ON_CALL(*this, ComputeChecksum) in IcingMockFilesystem()
158 return real_icing_filesystem_.ComputeChecksum(fd, checksum, offset, in IcingMockFilesystem()
234 MOCK_METHOD(bool, ComputeChecksum,
/external/icing/icing/store/
Dusage-store_test.cc337 TEST_F(UsageStoreTest, ComputeChecksum) { in TEST_F() argument
340 ICING_ASSERT_OK_AND_ASSIGN(Crc32 checksum1, usage_store->ComputeChecksum()); in TEST_F()
347 ICING_ASSERT_OK_AND_ASSIGN(Crc32 checksum2, usage_store->ComputeChecksum()); in TEST_F()
350 ICING_ASSERT_OK_AND_ASSIGN(Crc32 checksum3, usage_store->ComputeChecksum()); in TEST_F()
357 ICING_ASSERT_OK_AND_ASSIGN(Crc32 checksum4, usage_store->ComputeChecksum()); in TEST_F()
Ddocument-store.cc495 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in InitializeExistingDerivedFiles()
642 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in RegenerateDerivedFiles()
783 libtextclassifier3::StatusOr<Crc32> DocumentStore::ComputeChecksum() const { in ComputeChecksum() function in icing::lib::DocumentStore
788 auto checksum_or = document_log_->ComputeChecksum(); in ComputeChecksum()
798 checksum_or = document_key_mapper_->ComputeChecksum(); in ComputeChecksum()
808 checksum_or = document_id_mapper_->ComputeChecksum(); in ComputeChecksum()
818 checksum_or = score_cache_->ComputeChecksum(); in ComputeChecksum()
828 checksum_or = filter_cache_->ComputeChecksum(); in ComputeChecksum()
838 checksum_or = namespace_mapper_->ComputeChecksum(); in ComputeChecksum()
848 checksum_or = corpus_mapper_->ComputeChecksum(); in ComputeChecksum()
[all …]
Dusage-store.cc216 libtextclassifier3::StatusOr<Crc32> UsageStore::ComputeChecksum() { in ComputeChecksum() function in icing::lib::UsageStore
217 return usage_score_cache_->ComputeChecksum(); in ComputeChecksum()
Dkey-mapper.h128 virtual libtextclassifier3::StatusOr<Crc32> ComputeChecksum() = 0;
Dusage-store.h149 libtextclassifier3::StatusOr<Crc32> ComputeChecksum();
/external/icing/icing/join/
Dqualified-id-type-joinable-index_test.cc316 crcs->component_crcs.info_crc = info->ComputeChecksum().Get(); in TEST_P()
317 crcs->all_crc = crcs->component_crcs.ComputeChecksum().Get(); in TEST_P()
474 ICING_ASSERT_OK_AND_ASSIGN(Crc32 old_crc, mapper->ComputeChecksum()); in TEST_P()
477 ICING_ASSERT_OK_AND_ASSIGN(Crc32 new_crc, mapper->ComputeChecksum()); in TEST_P()
518 qualified_id_storage->ComputeChecksum()); in TEST_P()
523 qualified_id_storage->ComputeChecksum()); in TEST_P()
Dqualified-id-type-joinable-index.cc427 return info().ComputeChecksum(); in ComputeInfoChecksum()
433 doc_join_info_mapper_->ComputeChecksum()); in ComputeStoragesChecksum()
435 qualified_id_storage_->ComputeChecksum()); in ComputeStoragesChecksum()
/external/icing/icing/index/lite/
Dlite-index.cc196 Crc32 crc = ComputeChecksum(); in Initialize()
222 Crc32 LiteIndex::ComputeChecksum() { in ComputeChecksum() function in icing::lib::LiteIndex
281 header_->set_lite_index_crc(ComputeChecksum().Get()); in UpdateChecksum()
484 ComputeChecksum().Get(), lexicon_info.c_str()); in GetDebugInfo()
/external/icing/icing/schema/
Dschema-store.cc445 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in InitializeDerivedFiles()
498 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in RegenerateDerivedFiles()
570 libtextclassifier3::StatusOr<Crc32> SchemaStore::ComputeChecksum() const { in ComputeChecksum() function in icing::lib::SchemaStore
590 schema_type_mapper_->ComputeChecksum()); in ComputeChecksum()
827 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in PersistToDisk()
916 ICING_ASSIGN_OR_RETURN(Crc32 crc, ComputeChecksum()); in GetDebugInfo()

12