/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 236 void Visit(Plural* plural) override { in Visit() argument 239 for (size_t i = 0; i < plural->values.size(); i++) { in Visit() 241 if (plural->values[i]) { in Visit() 242 plural->values[i]->Accept(&sub_visitor); in Visit() 246 localized->values[i] = plural->values[i]->Transform(cloner); in Visit() 250 localized->SetSource(plural->GetSource()); in Visit() 309 void Visit(Plural* plural) override { in Visit() argument 312 for (size_t i = 0; i < plural->values.size(); i++) { in Visit() 313 if (plural->values[i]) { in Visit() 315 plural->values[i]->Accept(&sub_visitor); in Visit() [all …]
|
D | PseudolocaleGenerator_test.cpp | 241 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in TEST() local 242 plural->values = {util::make_unique<String>(table->string_pool.MakeRef("zero")), in TEST() 245 .SetValue(std::move(plural)) in TEST() 346 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in TEST() local 347 plural->values = {util::make_unique<String>(table->string_pool.MakeRef("zero")), in TEST() 350 .SetValue(std::move(plural)) in TEST()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | ResEntryWriter.cpp | 110 void Visit(const Plural* plural) override { in Visit() argument 111 const size_t count = plural->values.size(); in Visit() 113 if (!plural->values[i]) { in Visit() 149 FlattenEntry(&key, plural->values[i].get()); in Visit()
|
D | BinaryResourceParser.cpp | 689 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in ParsePlural() local 698 plural->values[Plural::Zero] = std::move(item); in ParsePlural() 701 plural->values[Plural::One] = std::move(item); in ParsePlural() 704 plural->values[Plural::Two] = std::move(item); in ParsePlural() 707 plural->values[Plural::Few] = std::move(item); in ParsePlural() 710 plural->values[Plural::Many] = std::move(item); in ParsePlural() 713 plural->values[Plural::Other] = std::move(item); in ParsePlural() 717 return plural; in ParsePlural()
|
/frameworks/base/tools/aapt2/ |
D | ValueVisitor.h | 139 void VisitSubValues(Plural* plural) { in VisitSubValues() 140 for (std::unique_ptr<Item>& item : plural->values) { in VisitSubValues()
|
D | Resources.proto | 293 Plural plural = 5; field 537 // The arity of the plural. 547 // The plural value for a given arity. 549 // Where the plural was defined. 552 // Any comments associated with the plural. 555 // The arity of the plural. 558 // The value assigned to this plural. 562 // The set of arity/plural mappings.
|
D | Debug.cpp | 105 void Visit(const Plural* plural) override { in Visit() argument 106 size_t count = std::count_if(plural->values.begin(), plural->values.end(), in Visit() 204 void Visit(const Plural* plural) override { in Visit() argument 209 if (plural->values[i] != nullptr) { in Visit() 211 PrintItem(*plural->values[i]); in Visit()
|
D | ResourceParser_test.cpp | 809 Plural* plural = test::GetValue<Plural>(&table_, "plurals/foo"); in TEST_F() local 810 ASSERT_THAT(plural, NotNull()); in TEST_F() 811 EXPECT_THAT(plural->values[Plural::Zero], IsNull()); in TEST_F() 812 EXPECT_THAT(plural->values[Plural::Two], IsNull()); in TEST_F() 813 EXPECT_THAT(plural->values[Plural::Few], IsNull()); in TEST_F() 814 EXPECT_THAT(plural->values[Plural::Many], IsNull()); in TEST_F() 816 EXPECT_THAT(plural->values[Plural::One], NotNull()); in TEST_F() 817 EXPECT_THAT(plural->values[Plural::Other], NotNull()); in TEST_F()
|
D | ResourceParser.cpp | 1663 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in ParsePlural() local 1708 if (plural->values[index]) { in ParsePlural() 1715 if (!(plural->values[index] = ParseXml( in ParsePlural() 1721 plural->values[index]->SetSource(item_source); in ParsePlural() 1734 out_resource->value = std::move(plural); in ParsePlural()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize.cpp | 680 void Visit(const Plural* plural) override { in Visit() argument 682 const size_t count = plural->values.size(); in Visit() 684 if (!plural->values[i]) { in Visit() 691 SerializeItemMetaDataToPb(*plural->values[i], pb_entry, src_pool_); in Visit() 692 SerializeItemToPb(*plural->values[i], pb_entry->mutable_item()); in Visit()
|
D | ProtoDeserialize.cpp | 837 const pb::Plural& pb_plural = pb_compound_value.plural(); in DeserializeValueFromPb() 838 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in DeserializeValueFromPb() local 841 plural->values[plural_idx] = DeserializeItemFromPb(pb_entry.item(), src_pool, config, in DeserializeValueFromPb() 843 if (!plural->values[plural_idx]) { in DeserializeValueFromPb() 847 DeserializeItemMetaDataFromPb(pb_entry, src_pool, plural->values[plural_idx].get()); in DeserializeValueFromPb() 849 value = std::move(plural); in DeserializeValueFromPb()
|
D | ProtoSerialize_test.cpp | 122 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in TEST() local 123 plural->values[Plural::One] = util::make_unique<String>(table->string_pool.MakeRef("one")); in TEST() 125 .SetValue(std::move(plural)) in TEST()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 30811 field public static final java.lang.String MULTIPLICITY_PLURAL = "android.plural";
|
/frameworks/base/core/api/ |
D | current.txt | 49110 field public static final String MULTIPLICITY_PLURAL = "android.plural";
|