Home
last modified time | relevance | path

Searched refs:sectors_ (Results 1 – 4 of 4) sorted by relevance

/external/pigweed/pw_kvs/
Dsectors_test.cc27 sectors_(sector_descriptors_, partition_, nullptr) { in SectorsTest()
28 EXPECT_EQ(0u, sectors_.size()); in SectorsTest()
29 sectors_.Reset(); in SectorsTest()
35 Sectors sectors_; member in pw::kvs::internal::__anonddb40b0b0111::SectorsTest
40 EXPECT_EQ(partition_.sector_count(), sectors_.size()); in TEST_F()
41 EXPECT_EQ(32u, sectors_.max_size()); in TEST_F()
42 EXPECT_EQ(sectors_.begin(), sectors_.last_new()); in TEST_F()
46 sectors_.set_last_new_sector(130); in TEST_F()
47 EXPECT_EQ(128u, sectors_.BaseAddress(*sectors_.last_new())); in TEST_F()
51 SectorDescriptor& sector = sectors_.FromAddress(128); in TEST_F()
[all …]
Dkey_value_store.cc51 sectors_(sector_descriptor_list, *partition, temp_sectors_to_skip), in KeyValueStore()
65 if (partition_.sector_count() > sectors_.max_size()) { in Init()
68 unsigned(sectors_.max_size()), in Init()
126 unsigned(sectors_.size()), in Init()
142 sectors_.Reset(); in InitializeMetadata()
153 for (SectorDescriptor& sector : sectors_) { in InitializeMetadata()
164 if (!sectors_.AddressInSector(sector, entry_address)) { in InitializeMetadata()
214 sectors_.Index(sector), in InitializeMetadata()
247 SectorDescriptor& sector = sectors_.FromAddress(address); in InitializeMetadata()
271 sectors_.set_last_new_sector(newest_key); in InitializeMetadata()
[all …]
Dentry_cache_test.cc261 sectors_(sector_descriptors_, partition_, nullptr), in InitializedEntryCache()
263 sectors_.Reset(); in InitializedEntryCache()
285 for (const auto& sector : sectors_) { in CheckForCorruptSectors()
297 Sectors sectors_; member in pw::kvs::internal::__anona4a3f82d0111::InitializedEntryCache
320 entries_.Find(partition_, sectors_, format_, kTheKey, &metadata); in TEST_F()
337 entries_.Find(partition_, sectors_, format_, kTheKey, &metadata); in TEST_F()
343 CheckForCorruptSectors(&sectors_.FromAddress(0)); in TEST_F()
352 entries_.Find(partition_, sectors_, format_, kTheKey, &metadata); in TEST_F()
356 CheckForCorruptSectors(&sectors_.FromAddress(0), in TEST_F()
357 &sectors_.FromAddress(kSize1)); in TEST_F()
[all …]
/external/pigweed/pw_kvs/public/pw_kvs/
Dkey_value_store.h523 internal::Sectors sectors_; variable
594 sectors_, in KeyValueStore() argument
607 Vector<SectorDescriptor, kMaxUsableSectors> sectors_; variable