Home
last modified time | relevance | path

Searched refs:SectionId (Results 1 – 25 of 75) sorted by relevance

123

/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DPathHeader.java101 private static EnumNames<SectionId> SectionIdNames = new EnumNames<>();
108 public enum SectionId { enum in PathHeader
112 private SectionId(String... alternateNames) { in SectionId() method in PathHeader.SectionId
116 public static SectionId forString(String name) { in forString()
127 …private static Relation<SectionId, PageId> SectionIdToPageIds = Relation.of(new TreeMap<SectionId,…
165 Alphabetic_Information(SectionId.Core_Data, "Alphabetic Information"),
166 Numbering_Systems(SectionId.Core_Data, "Numbering Systems"),
167 LinguisticElements(SectionId.Core_Data, "Linguistic Elements"),
169 Locale_Name_Patterns(SectionId.Locale_Display_Names, "Locale Name Patterns"),
170 Languages_A_D(SectionId.Locale_Display_Names, "Languages (A-D)"),
[all …]
/external/icing/icing/schema/
Dsection.h30 using SectionId = int8_t; variable
33 inline constexpr SectionId kTotalNumSections = (1 << kSectionIdBits);
34 inline constexpr SectionId kInvalidSectionId = kTotalNumSections;
35 inline constexpr SectionId kMaxSectionId = kTotalNumSections - 1;
37 inline constexpr SectionId kOldTotalNumSections = 16;
38 inline constexpr SectionId kMinSectionId = 0;
39 constexpr bool IsSectionIdValid(SectionId section_id) { in IsSectionIdValid()
47 static_assert(kSectionIdBits < 8 * sizeof(SectionId),
61 SectionId id;
93 SectionId id_in, PropertyConfigProto::DataType::Code data_type_in, in SectionMetadata()
Dsection-manager.cc56 SectionId new_section_id = static_cast<SectionId>(metadata_list->size()); in AppendNewSectionMetadata()
113 SectionId section_id) const { in GetSectionMetadata()
/external/icing/icing/index/
Dindex_test.cc122 constexpr SectionId kSectionId2 = 2;
123 constexpr SectionId kSectionId3 = 3;
128 for (SectionId section : sections) {
209 EqualsDocHitInfo(kInvalidDocumentId, std::vector<SectionId>())); in TEST_F()
219 EqualsDocHitInfo(kInvalidDocumentId, std::vector<SectionId>())); in TEST_F()
238 EqualsDocHitInfo(kInvalidDocumentId, std::vector<SectionId>())); in TEST_F()
248 EqualsDocHitInfo(kInvalidDocumentId, std::vector<SectionId>())); in TEST_F()
264 kDocumentId0, std::vector<SectionId>{kSectionId2}))); in TEST_F()
282 kDocumentId0, std::vector<SectionId>{kSectionId2}))); in TEST_F()
298 kDocumentId2, std::vector<SectionId>{kSectionId2})))); in TEST_F()
[all …]
Dindex-processor_test.cc113 constexpr SectionId kExactSectionId = 0;
114 constexpr SectionId kIndexableIntegerSectionId = 1;
115 constexpr SectionId kPrefixedSectionId = 2;
116 constexpr SectionId kRepeatedSectionId = 3;
117 constexpr SectionId kRfc822SectionId = 4;
118 constexpr SectionId kNestedSectionId = 5; // submessage.nested
120 constexpr SectionId kUrlExactSectionId = 6;
121 constexpr SectionId kUrlPrefixedSectionId = 7;
122 constexpr SectionId kVerbatimExactSectionId = 8;
123 constexpr SectionId kVerbatimPrefixedSectionId = 9;
[all …]
Dinteger-section-indexing-handler_test.cc72 static constexpr SectionId kSectionIdTimestamp = 1;
85 static constexpr SectionId kSectionIdNestedTimestamp = 2;
86 static constexpr SectionId kSectionIdPrice = 4;
256 document_id, std::vector<SectionId>{kSectionIdTimestamp}))); in TEST_F()
306 document_id, std::vector<SectionId>{kSectionIdNestedTimestamp}))); in TEST_F()
317 document_id, std::vector<SectionId>{kSectionIdPrice}))); in TEST_F()
547 document_id1, std::vector<SectionId>{kSectionIdTimestamp}))); in TEST_F()
570 document_id1, std::vector<SectionId>{kSectionIdTimestamp}))); in TEST_F()
592 document_id1, std::vector<SectionId>{kSectionIdTimestamp}))); in TEST_F()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/tool/
DShowPathHeaderDescriptions.java16 import org.unicode.cldr.util.PathHeader.SectionId;
48 if (pathHeader.getSectionId() == SectionId.Characters) { in main()
81 Multimap<SectionId, String> sv = TreeMultimap.create(); in showDescriptions()
85 Multimap<R2<SectionId, PageId>, String> spv = TreeMultimap.create(); in showDescriptions()
86 Multimap<R2<SectionId, String>, String> shv = TreeMultimap.create(); in showDescriptions()
89 Multimap<R3<SectionId, PageId, String>, String> sphv = TreeMultimap.create(); in showDescriptions()
90 Multimap<String, R3<SectionId, PageId, String>> valueToKey = TreeMultimap.create(); in showDescriptions()
105 SectionId sectionId = pathHeader.getSectionId(); in showDescriptions()
123 R3<SectionId, PageId, String> full = Row.of(sectionId, pageId, header); in showDescriptions()
145 …private static void showProgress(Set<String> done, Multimap<String, R3<SectionId, PageId, String>>… in showProgress() argument
DFindWidths.java15 import org.unicode.cldr.util.PathHeader.SectionId;
56 SectionId sectionId = ph.getSectionId(); in main()
58 || sectionId == SectionId.Special) { in main()
79 SectionId sectionId = ph.getSectionId(); in main()
81 || sectionId == SectionId.Special) { in main()
DGenerateChangeChart.java27 import org.unicode.cldr.util.PathHeader.SectionId;
58 EnumSet<SectionId> sections = EnumSet.noneOf(SectionId.class); in main()
63 Counter<SectionId> counter = new Counter<>(); in main()
74 for (SectionId s : SectionId.values()) { in main()
112 SectionId lastSectionId = null; in main()
118 SectionId sectionId = pathHeader.getSectionId(); in main()
/external/icing/icing/index/numeric/
Dinteger-index_test.cc64 constexpr SectionId kDefaultSectionId = 0;
192 DocumentId document_id, SectionId section_id, in Index()
259 std::vector<SectionId> expected_sections = {kDefaultSectionId}; in TYPED_TEST()
285 std::vector<SectionId> expected_sections = {kDefaultSectionId}; in TYPED_TEST()
452 SectionId typea_desired_prop_id = 0; in TYPED_TEST()
453 SectionId typea_undesired_prop_id = 33; in TYPED_TEST()
454 SectionId typeb_another_prop_id = 0; in TYPED_TEST()
455 SectionId typeb_desired_prop_id = 1; in TYPED_TEST()
526 std::vector<SectionId> expected_sections_typea = {typea_desired_prop_id}; in TYPED_TEST()
527 std::vector<SectionId> expected_sections_typeb = {typeb_desired_prop_id}; in TYPED_TEST()
[all …]
Dnumeric-index.h53 SectionId section_id) in Editor()
77 SectionId section_id_;
114 SectionId section_id) = 0;
/external/icing/icing/index/main/
Dmain-index_test.cc296 std::vector<SectionId>{doc1_hit.section_id()}), in TEST_F()
298 std::vector<SectionId>{doc0_hit.section_id()}))); in TEST_F()
308 std::vector<SectionId>{doc1_hit.section_id()}))); in TEST_F()
409 std::vector<SectionId>{doc3_hit.section_id()}), in TEST_F()
411 std::vector<SectionId>{doc1_hit.section_id()}), in TEST_F()
413 std::vector<SectionId>{doc0_hit.section_id()}))); in TEST_F()
425 std::vector<SectionId>{doc4_hit.section_id()}), in TEST_F()
427 std::vector<SectionId>{doc1_hit.section_id()}))); in TEST_F()
477 std::vector<SectionId>{doc1_hit.section_id()}), in TEST_F()
479 std::vector<SectionId>{doc0_hit.section_id()}))); in TEST_F()
[all …]
/external/icing/icing/query/
Dquery-processor_test.cc140 DocumentId document_id, SectionId section_id, in AddTokenToIndex()
150 SectionId section_id, in AddToNumericIndex()
327 SectionId section_id = 0; in TEST_P()
354 std::unordered_map<SectionId, Hit::TermFrequency> in TEST_P()
388 SectionId section_id = 0; in TEST_P()
412 std::unordered_map<SectionId, Hit::TermFrequency> in TEST_P()
444 SectionId section_id = kMaxSectionId; in TEST_P()
470 std::unordered_map<SectionId, Hit::TermFrequency> in TEST_P()
502 SectionId section_id = 0; in TEST_P()
526 std::unordered_map<SectionId, Hit::TermFrequency> in TEST_P()
[all …]
/external/icing/icing/index/iterator/
Ddoc-hit-info-iterator-section-restrict_test.cc51 constexpr SectionId kIndexedSectionId0 = 0;
52 constexpr SectionId kIndexedSectionId1 = 1;
174 std::unordered_map<SectionId, Hit::TermFrequency> in TEST_F()
244 std::vector<SectionId> expected_section_ids = {kIndexedSectionId0, in TEST_F()
275 std::vector<SectionId> expected_section_ids = {kIndexedSectionId1}; in TEST_F()
304 std::vector<SectionId> expected_section_ids = {kIndexedSectionId1}; in TEST_F()
388 SectionId not_matching_section_id = 2; in TEST_F()
442 SectionId matching_section_id = 0; in TEST_F()
444 SectionId not_matching_section_id = 2; in TEST_F()
493 SectionId matching_section_id = 0; in TEST_F()
[all …]
Ddoc-hit-info-iterator-or_test.cc188 std::unordered_map<SectionId, Hit::TermFrequency> in TEST()
195 std::unordered_map<SectionId, Hit::TermFrequency> in TEST()
233 std::unordered_map<SectionId, Hit::TermFrequency> in TEST()
269 std::unordered_map<SectionId, Hit::TermFrequency> in TEST()
276 std::unordered_map<SectionId, Hit::TermFrequency> in TEST()
505 std::unordered_map<SectionId, Hit::TermFrequency> in TEST()
511 std::unordered_map<SectionId, Hit::TermFrequency> in TEST()
518 std::unordered_map<SectionId, Hit::TermFrequency> in TEST()
524 std::unordered_map<SectionId, Hit::TermFrequency> in TEST()
531 std::unordered_map<SectionId, Hit::TermFrequency> in TEST()
[all …]
Ddoc-hit-info-iterator-test-util.h42 void UpdateSection(SectionId section_id, in UpdateSection()
52 SectionId section_id = __builtin_ctzll(other_mask); in MergeSectionsFrom()
60 Hit::TermFrequency hit_term_frequency(SectionId section_id) const { in hit_term_frequency()
125 SectionId section_id = __builtin_ctzll(section_mask_copy);
/external/icing/icing/index/hit/
Dhit.h59 explicit BasicHit(SectionId section_id, DocumentId document_id);
66 SectionId section_id() const;
137 Hit(SectionId section_id, DocumentId document_id,
144 SectionId section_id() const;
Dhit.cc66 BasicHit::BasicHit(SectionId section_id, DocumentId document_id) { in BasicHit()
86 SectionId BasicHit::section_id() const { in section_id()
91 Hit::Hit(SectionId section_id, DocumentId document_id, in Hit()
120 SectionId Hit::section_id() const { in section_id()
/external/icing/icing/index/lite/
Dlite-index_thread-safety_test.cc82 constexpr SectionId kSectionId0 = 1;
83 constexpr SectionId kSectionId1 = 0b11;
143 EqualsDocHitInfo(kDocumentId1, std::vector<SectionId>{kSectionId0}), in TEST_F()
145 std::vector<SectionId>{kSectionId0}))); in TEST_F()
197 EqualsDocHitInfo(kDocumentId1, std::vector<SectionId>{kSectionId0}), in TEST_F()
199 std::vector<SectionId>{kSectionId0}))); in TEST_F()
324 kDocumentId0, std::vector<SectionId>{kSectionId0}))); in TEST_F()
/external/icing/icing/result/
Dresult-retriever-v2_test.cc163 SectionId GetSectionId(const std::string& type, const std::string& property) { in GetSectionId()
169 for (SectionId section_id = 0; section_id <= kMaxSectionId; ++section_id) { in GetSectionId()
201 SectionIdMask CreateSectionIdMask(const std::vector<SectionId>& section_ids) { in CreateSectionIdMask()
203 for (SectionId section_id : section_ids) { in CreateSectionIdMask()
274 std::vector<SectionId> hit_section_ids = {GetSectionId("Email", "name"), in TEST_F()
362 std::vector<SectionId> hit_section_ids = {GetSectionId("Email", "name"), in TEST_F()
494 std::vector<SectionId> person_hit_section_ids = { in TEST_F()
496 std::vector<SectionId> email_hit_section_ids = { in TEST_F()
592 std::vector<SectionId> hit_section_ids = {GetSectionId("Email", "name"), in TEST_F()
646 std::vector<SectionId> hit_section_ids = {GetSectionId("Email", "name"), in TEST_F()
[all …]
Dresult-retriever-v2_snippet_test.cc126 SectionId GetSectionId(const std::string& type, const std::string& property) { in GetSectionId()
132 for (SectionId section_id = 0; section_id <= kMaxSectionId; ++section_id) { in GetSectionId()
181 SectionIdMask CreateSectionIdMask(const std::vector<SectionId>& section_ids) { in CreateSectionIdMask()
183 for (SectionId section_id : section_ids) { in CreateSectionIdMask()
220 std::vector<SectionId> hit_section_ids = {GetSectionId("Email", "subject"), in TEST_F()
270 std::vector<SectionId> hit_section_ids = {GetSectionId("Email", "subject"), in TEST_F()
380 std::vector<SectionId> hit_section_ids = {GetSectionId("Email", "subject"), in TEST_F()
459 std::vector<SectionId> hit_section_ids = {GetSectionId("Email", "subject"), in TEST_F()
515 std::vector<SectionId> hit_section_ids = {GetSectionId("Email", "subject"), in TEST_F()
574 std::vector<SectionId> hit_section_ids = {GetSectionId("Email", "subject"), in TEST_F()
[all …]
/external/icing/icing/scoring/
Dsection-weights.cc34 double max_weight, std::unordered_map<SectionId, double>& section_weights) { in NormalizeSectionWeights() argument
102 SectionId section_id) const { in GetNormalizedSectionWeight()
124 std::unordered_map<SectionId, double> section_weights; in ExtractNormalizedSectionWeights()
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/
DTestPathHeader.java45 import org.unicode.cldr.util.PathHeader.SectionId;
158 Multimap<PathHeader.PageId, PathHeader.SectionId> pageUniqueness = TreeMultimap.create(); in TestCompleteness()
159 …Multimap<String, Pair<PathHeader.SectionId, PathHeader.PageId>> headerUniqueness = TreeMultimap.cr… in TestCompleteness()
206 final SectionId sectionId = ph.getSectionId(); in TestCompleteness()
207 if (sectionId != SectionId.Special) { in TestCompleteness()
228 for (Entry<PageId, Collection<SectionId>> e : pageUniqueness.asMap().entrySet()) { in TestCompleteness()
229 Collection<SectionId> values = e.getValue(); in TestCompleteness()
235 … for (Entry<String, Collection<Pair<SectionId, PageId>>> e : headerUniqueness.asMap().entrySet()) { in TestCompleteness()
236 Collection<Pair<SectionId, PageId>> values = e.getValue(); in TestCompleteness()
461 Map<Row.R2<SectionId, PageId>, Counter<Level>> data = new TreeMap<>(); in TestCoverage()
[all …]
/external/icing/icing/store/
Dsuggestion-result-checker-impl.h74 SectionId section_id) const { in MatchesTargetSection()
94 SectionId section_id) const { in MatchesPropertyFilter()
104 SectionId section_id) const override { in BelongsToTargetResults()
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/util/
DTestVettingViewer.java12 import org.unicode.cldr.util.PathHeader.SectionId;
66 Relation<R2<SectionId, PageId>, VettingViewer<Organization>.WritingInfo> sorted; in testDashboardEnglishChanged()
72 …for (Entry<R2<SectionId, PageId>, VettingViewer<Organization>.WritingInfo> e : dd.sorted.entrySet(… in testDashboardEnglishChanged()

123