Home
last modified time | relevance | path

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

12

/external/icing/icing/file/
Dfile-backed-vector_test.cc107 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F()
117 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(good_crc)); in TEST_F()
163 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F()
175 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F()
203 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(2620640643U))); in TEST_F()
213 vector->ComputeChecksum()); in TEST_F()
242 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(2620640643U))); in TEST_F()
252 vector->ComputeChecksum()); in TEST_F()
281 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F()
292 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(good_crc)); in TEST_F()
[all …]
Dfile-backed-proto-log_test.cc477 TEST_F(FileBackedProtoLogTest, ComputeChecksum) { in TEST_F() argument
493 ICING_ASSERT_OK_AND_ASSIGN(checksum, proto_log->ComputeChecksum()); in TEST_F()
496 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Eq(checksum))); in TEST_F()
510 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Eq(checksum))); in TEST_F()
514 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Eq(checksum))); in TEST_F()
518 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Not(Eq(checksum)))); in TEST_F()
622 EXPECT_THAT(proto_log->ComputeChecksum(), in TEST_F()
642 EXPECT_THAT(proto_log->ComputeChecksum(), in TEST_F()
665 EXPECT_THAT(proto_log->ComputeChecksum(), in TEST_F()
Dfile-backed-proto-log.h348 libtextclassifier3::StatusOr<Crc32> ComputeChecksum();
384 static libtextclassifier3::StatusOr<Crc32> ComputeChecksum(
570 ComputeChecksum(filesystem, file_path, Crc32(), in InitializeExistingFile()
586 ComputeChecksum(filesystem, file_path, Crc32(), sizeof(Header), in InitializeExistingFile()
619 libtextclassifier3::StatusOr<Crc32> FileBackedProtoLog<ProtoT>::ComputeChecksum( in ComputeChecksum() function
980 crc, ComputeChecksum(filesystem_, file_path_, Crc32(), sizeof(Header), in PersistToDisk()
986 ComputeChecksum(filesystem_, file_path_, Crc32(header_->log_checksum), in PersistToDisk()
1006 FileBackedProtoLog<ProtoT>::ComputeChecksum() { in ComputeChecksum() function
1007 return FileBackedProtoLog<ProtoT>::ComputeChecksum( in ComputeChecksum()
Dportable-file-backed-proto-log.h467 libtextclassifier3::StatusOr<Crc32> ComputeChecksum();
504 static libtextclassifier3::StatusOr<Crc32> ComputeChecksum(
749 ComputeChecksum(filesystem, file_path, Crc32(), in InitializeExistingFile()
791 PortableFileBackedProtoLog<ProtoT>::ComputeChecksum( in ComputeChecksum() function
1195 ComputeChecksum(filesystem_, file_path_, Crc32(), in PersistToDisk()
1200 crc, ComputeChecksum(filesystem_, file_path_, in PersistToDisk()
1221 PortableFileBackedProtoLog<ProtoT>::ComputeChecksum() { in ComputeChecksum() function
1222 return PortableFileBackedProtoLog<ProtoT>::ComputeChecksum( in ComputeChecksum()
Dportable-file-backed-proto-log_test.cc864 TEST_F(PortableFileBackedProtoLogTest, ComputeChecksum) { in TEST_F() argument
880 ICING_ASSERT_OK_AND_ASSIGN(checksum, proto_log->ComputeChecksum()); in TEST_F()
883 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Eq(checksum))); in TEST_F()
897 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Eq(checksum))); in TEST_F()
901 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Eq(checksum))); in TEST_F()
905 EXPECT_THAT(proto_log->ComputeChecksum(), IsOkAndHolds(Not(Eq(checksum)))); in TEST_F()
1009 EXPECT_THAT(proto_log->ComputeChecksum(), in TEST_F()
1029 EXPECT_THAT(proto_log->ComputeChecksum(), in TEST_F()
1052 EXPECT_THAT(proto_log->ComputeChecksum(), in TEST_F()
Dfile-backed-bitmap.cc146 if (header().checksum != ComputeChecksum()) { in Initialize()
316 mutable_header()->checksum = ComputeChecksum(); in PersistToDisk()
321 uint32_t FileBackedBitmap::ComputeChecksum() const { in ComputeChecksum() function in icing::lib::FileBackedBitmap
Dfile-backed-bitmap.h209 uint32_t ComputeChecksum() const;
Dfile-backed-vector.h262 libtextclassifier3::StatusOr<Crc32> ComputeChecksum();
654 libtextclassifier3::StatusOr<Crc32> FileBackedVector<T>::ComputeChecksum() { in ComputeChecksum() function
757 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in PersistToDisk()
/external/skqp/src/core/
DSkDescriptor.h38 SkASSERT(SkDescriptor::ComputeChecksum(this) == fChecksum); in assertChecksum()
66 static uint32_t ComputeChecksum(const SkDescriptor* desc);
DSkDescriptor.cpp41 fChecksum = SkDescriptor::ComputeChecksum(this); in computeChecksum()
82 uint32_t SkDescriptor::ComputeChecksum(const SkDescriptor* desc) { in ComputeChecksum() function in SkDescriptor
/external/skia/src/core/
DSkDescriptor.h42 SkASSERT(SkDescriptor::ComputeChecksum(this) == fChecksum); in assertChecksum()
73 static uint32_t ComputeChecksum(const SkDescriptor* desc);
DSkDescriptor.cpp45 fChecksum = SkDescriptor::ComputeChecksum(this); in computeChecksum()
98 uint32_t SkDescriptor::ComputeChecksum(const SkDescriptor* desc) { in ComputeChecksum() function in SkDescriptor
/external/scudo/standalone/tests/
Dchecksum_test.cpp31 typedef scudo::u16 (*ComputeChecksum)(scudo::u32, scudo::uptr *, scudo::uptr); typedef
35 template <ComputeChecksum F> void verifyChecksumFunctionBitFlip() { in verifyChecksumFunctionBitFlip()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dchecksum_test.cpp31 typedef scudo::u16 (*ComputeChecksum)(scudo::u32, scudo::uptr *, scudo::uptr); typedef
35 template <ComputeChecksum F> void verifyChecksumFunctionBitFlip() { in verifyChecksumFunctionBitFlip()
/external/icing/icing/schema/
Dschema-store.cc192 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in InitializeDerivedFiles()
232 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in RegenerateDerivedFiles()
289 libtextclassifier3::StatusOr<Crc32> SchemaStore::ComputeChecksum() const { in ComputeChecksum() function in icing::lib::SchemaStore
299 Crc32 schema_type_mapper_checksum = schema_type_mapper_->ComputeChecksum(); in ComputeChecksum()
452 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in PersistToDisk()
Dschema-store_test.cc238 EXPECT_THAT(store->ComputeChecksum(), IsOkAndHolds(Crc32())); in TEST_F()
687 EXPECT_THAT(schema_store->ComputeChecksum(), IsOkAndHolds(default_checksum)); in TEST_F()
700 ICING_ASSERT_OK_AND_ASSIGN(Crc32 checksum, schema_store->ComputeChecksum()); in TEST_F()
703 EXPECT_THAT(schema_store->ComputeChecksum(), IsOkAndHolds(checksum)); in TEST_F()
716 ICING_ASSERT_OK_AND_ASSIGN(Crc32 checksum, schema_store->ComputeChecksum()); in TEST_F()
723 EXPECT_THAT(schema_store->ComputeChecksum(), IsOkAndHolds(checksum)); in TEST_F()
736 ICING_ASSERT_OK_AND_ASSIGN(Crc32 checksum, schema_store->ComputeChecksum()); in TEST_F()
747 EXPECT_THAT(schema_store->ComputeChecksum(), IsOkAndHolds(Not(Eq(checksum)))); in TEST_F()
Dschema-store.h235 libtextclassifier3::StatusOr<Crc32> ComputeChecksum() const;
/external/icing/icing/legacy/index/
Dicing-mock-filesystem.h156 ON_CALL(*this, ComputeChecksum) in IcingMockFilesystem()
159 return real_icing_filesystem_.ComputeChecksum(fd, checksum, offset, in IcingMockFilesystem()
235 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.cc390 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in InitializeExistingDerivedFiles()
524 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in RegenerateDerivedFiles()
657 libtextclassifier3::StatusOr<Crc32> DocumentStore::ComputeChecksum() const { in ComputeChecksum() function in icing::lib::DocumentStore
662 auto checksum_or = document_log_->ComputeChecksum(); in ComputeChecksum()
670 Crc32 document_key_mapper_checksum = document_key_mapper_->ComputeChecksum(); in ComputeChecksum()
674 checksum_or = document_id_mapper_->ComputeChecksum(); in ComputeChecksum()
684 checksum_or = score_cache_->ComputeChecksum(); in ComputeChecksum()
694 checksum_or = filter_cache_->ComputeChecksum(); in ComputeChecksum()
702 Crc32 namespace_mapper_checksum = namespace_mapper_->ComputeChecksum(); in ComputeChecksum()
704 Crc32 corpus_mapper_checksum = 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.h126 Crc32 ComputeChecksum();
310 Crc32 KeyMapper<T>::ComputeChecksum() { in ComputeChecksum() function
Dusage-store.h149 libtextclassifier3::StatusOr<Crc32> ComputeChecksum();
/external/icing/icing/index/lite/
Dlite-index.cc192 Crc32 crc = ComputeChecksum(); in Initialize()
219 Crc32 LiteIndex::ComputeChecksum() { in ComputeChecksum() function in icing::lib::LiteIndex
276 header_->set_lite_index_crc(ComputeChecksum().Get()); in UpdateChecksum()
/external/sfntly/cpp/src/sfntly/data/
Dreadable_font_data.h292 void ComputeChecksum();

12