Home
last modified time | relevance | path

Searched refs:storage_info (Results 1 – 14 of 14) sorted by relevance

/external/icing/icing/index/lite/
Dlite-index.cc395 IndexStorageInfoProto storage_info = GetStorageInfo(IndexStorageInfoProto()); in GetElementsSize() local
396 if (storage_info.lite_index_hit_buffer_size() == -1 || in GetElementsSize()
397 storage_info.lite_index_lexicon_size() == -1) { in GetElementsSize()
404 return storage_info.lite_index_hit_buffer_size() - header_padded_size + in GetElementsSize()
405 storage_info.lite_index_lexicon_size(); in GetElementsSize()
409 IndexStorageInfoProto storage_info) const { in GetStorageInfo()
413 storage_info.set_lite_index_hit_buffer_size( in GetStorageInfo()
416 storage_info.set_lite_index_hit_buffer_size(-1); in GetStorageInfo()
420 storage_info.set_lite_index_lexicon_size(lexicon_disk_usage); in GetStorageInfo()
422 storage_info.set_lite_index_lexicon_size(-1); in GetStorageInfo()
[all …]
Dlite-index.h253 IndexStorageInfoProto storage_info) const;
/external/icing/icing/index/main/
Dmain-index.cc124 IndexStorageInfoProto storage_info = GetStorageInfo(IndexStorageInfoProto()); in GetElementsSize() local
125 if (storage_info.main_index_storage_size() == -1 || in GetElementsSize()
126 storage_info.main_index_lexicon_size() == -1) { in GetElementsSize()
130 return storage_info.main_index_storage_size() + in GetElementsSize()
131 storage_info.main_index_lexicon_size(); in GetElementsSize()
135 IndexStorageInfoProto storage_info) const { in GetStorageInfo()
138 storage_info.set_main_index_lexicon_size(lexicon_elt_size); in GetStorageInfo()
140 storage_info.set_main_index_lexicon_size(-1); in GetStorageInfo()
144 storage_info.set_main_index_storage_size(index_elt_size); in GetStorageInfo()
146 storage_info.set_main_index_storage_size(-1); in GetStorageInfo()
[all …]
Dmain-index.h182 IndexStorageInfoProto storage_info) const;
/external/icing/icing/schema/
Dschema-store.cc459 SchemaStoreStorageInfoProto storage_info; in GetStorageInfo() local
462 storage_info.set_schema_store_size(directory_size); in GetStorageInfo()
464 storage_info.set_schema_store_size(-1); in GetStorageInfo()
466 ICING_ASSIGN_OR_RETURN(const SchemaProto* schema, GetSchema(), storage_info); in GetStorageInfo()
467 storage_info.set_num_schema_types(schema->types_size()); in GetStorageInfo()
482 storage_info.set_num_total_sections(total_sections); in GetStorageInfo()
483 storage_info.set_num_schema_types_sections_exhausted( in GetStorageInfo()
485 return storage_info; in GetStorageInfo()
Dschema-store_test.cc835 SchemaStoreStorageInfoProto storage_info = schema_store->GetStorageInfo(); in TEST_F() local
836 EXPECT_THAT(storage_info.schema_store_size(), Ge(0)); in TEST_F()
837 EXPECT_THAT(storage_info.num_schema_types(), Eq(2)); in TEST_F()
838 EXPECT_THAT(storage_info.num_total_sections(), Eq(17)); in TEST_F()
839 EXPECT_THAT(storage_info.num_schema_types_sections_exhausted(), Eq(1)); in TEST_F()
/external/icing/icing/index/
Dindex.cc281 IndexStorageInfoProto storage_info; in GetStorageInfo() local
284 storage_info.set_index_size(directory_size); in GetStorageInfo()
286 storage_info.set_index_size(-1); in GetStorageInfo()
288 storage_info = lite_index_->GetStorageInfo(std::move(storage_info)); in GetStorageInfo()
289 return main_index_->GetStorageInfo(std::move(storage_info)); in GetStorageInfo()
Dindex_test.cc1636 IndexStorageInfoProto storage_info = index_->GetStorageInfo(); in TEST_F() local
1637 EXPECT_THAT(storage_info.index_size(), Ge(0)); in TEST_F()
1638 EXPECT_THAT(storage_info.lite_index_lexicon_size(), Ge(0)); in TEST_F()
1639 EXPECT_THAT(storage_info.lite_index_hit_buffer_size(), Ge(0)); in TEST_F()
1640 EXPECT_THAT(storage_info.main_index_lexicon_size(), Ge(0)); in TEST_F()
1641 EXPECT_THAT(storage_info.main_index_storage_size(), Ge(0)); in TEST_F()
1642 EXPECT_THAT(storage_info.main_index_block_size(), Ge(0)); in TEST_F()
1644 EXPECT_THAT(storage_info.num_blocks(), Eq(2)); in TEST_F()
1645 EXPECT_THAT(storage_info.min_free_fraction(), Ge(0)); in TEST_F()
/external/icing/icing/store/
Ddocument-store.cc1317 DocumentStorageInfoProto storage_info; in GetMemberStorageInfo() local
1318 storage_info.set_document_log_size( in GetMemberStorageInfo()
1320 storage_info.set_key_mapper_size( in GetMemberStorageInfo()
1322 storage_info.set_document_id_mapper_size( in GetMemberStorageInfo()
1324 storage_info.set_score_cache_size( in GetMemberStorageInfo()
1326 storage_info.set_filter_cache_size( in GetMemberStorageInfo()
1328 storage_info.set_namespace_id_mapper_size( in GetMemberStorageInfo()
1330 storage_info.set_corpus_mapper_size( in GetMemberStorageInfo()
1332 storage_info.set_corpus_score_cache_size( in GetMemberStorageInfo()
1334 return storage_info; in GetMemberStorageInfo()
[all …]
Ddocument-store_test.cc74 const DocumentStorageInfoProto& storage_info, in GetNamespaceStorageInfo() argument
77 storage_info.namespace_storage_info()) { in GetNamespaceStorageInfo()
3300 DocumentStorageInfoProto storage_info = doc_store->GetStorageInfo(); in TEST_F() local
3301 EXPECT_THAT(storage_info.num_alive_documents(), Eq(2)); in TEST_F()
3302 EXPECT_THAT(storage_info.num_deleted_documents(), Eq(1)); in TEST_F()
3303 EXPECT_THAT(storage_info.num_expired_documents(), Eq(1)); in TEST_F()
3304 EXPECT_THAT(storage_info.document_store_size(), Ge(0)); in TEST_F()
3305 EXPECT_THAT(storage_info.document_log_size(), Ge(0)); in TEST_F()
3306 EXPECT_THAT(storage_info.key_mapper_size(), Ge(0)); in TEST_F()
3307 EXPECT_THAT(storage_info.document_id_mapper_size(), Ge(0)); in TEST_F()
[all …]
Ddocument-store.h720 DocumentStorageInfoProto storage_info) const;
/external/autotest/client/site_tests/hardware_StorageWearoutDetect/
Dcontrol.non_cache19 job.add_sysinfo_logfile('/var/log/storage_info.txt', on_every_test=True)
/external/icing/proto/icing/proto/
Dstorage.proto186 optional StorageInfoProto storage_info = 2; field
/external/icing/icing/
Dicing-search-engine_test.cc7429 EXPECT_THAT(result.storage_info().total_storage_size(), Ge(0)); in TEST_F()