/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 228 void Visit(Plural* plural) override { in Visit() argument 230 for (size_t i = 0; i < plural->values.size(); i++) { in Visit() 232 if (plural->values[i]) { in Visit() 233 plural->values[i]->Accept(&sub_visitor); in Visit() 237 localized->values[i] = std::unique_ptr<Item>(plural->values[i]->Clone(pool_)); in Visit() 241 localized->SetSource(plural->GetSource()); in Visit()
|
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 {}, std::move(plural), context->GetDiagnostics())); in TEST()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.cpp | 611 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in ParsePlural() local 620 plural->values[Plural::Zero] = std::move(item); in ParsePlural() 623 plural->values[Plural::One] = std::move(item); in ParsePlural() 626 plural->values[Plural::Two] = std::move(item); in ParsePlural() 629 plural->values[Plural::Few] = std::move(item); in ParsePlural() 632 plural->values[Plural::Many] = std::move(item); in ParsePlural() 635 plural->values[Plural::Other] = std::move(item); in ParsePlural() 639 return plural; in ParsePlural()
|
D | TableFlattener.cpp | 157 void Visit(Plural* plural) override { in Visit() argument 158 const size_t count = plural->values.size(); in Visit() 160 if (!plural->values[i]) { in Visit() 196 FlattenEntry(&key, plural->values[i].get()); in Visit()
|
/frameworks/base/tools/aapt2/ |
D | Debug.cpp | 101 void Visit(const Plural* plural) override { in Visit() argument 102 size_t count = std::count_if(plural->values.begin(), plural->values.end(), in Visit() 200 void Visit(const Plural* plural) override { in Visit() argument 205 if (plural->values[i] != nullptr) { in Visit() 207 PrintItem(*plural->values[i]); in Visit()
|
D | ValueVisitor.h | 133 void VisitSubValues(Plural* plural) { in VisitSubValues() 134 for (std::unique_ptr<Item>& item : plural->values) { in VisitSubValues()
|
D | Resources.proto | 269 Plural plural = 5; field 505 // The arity of the plural. 515 // The plural value for a given arity. 517 // Where the plural was defined. 520 // Any comments associated with the plural. 523 // The arity of the plural. 526 // The value assigned to this plural. 530 // The set of arity/plural mappings.
|
D | ResourceParser_test.cpp | 725 Plural* plural = test::GetValue<Plural>(&table_, "plurals/foo"); in TEST_F() local 726 ASSERT_THAT(plural, NotNull()); in TEST_F() 727 EXPECT_THAT(plural->values[Plural::Zero], IsNull()); in TEST_F() 728 EXPECT_THAT(plural->values[Plural::Two], IsNull()); in TEST_F() 729 EXPECT_THAT(plural->values[Plural::Few], IsNull()); in TEST_F() 730 EXPECT_THAT(plural->values[Plural::Many], IsNull()); in TEST_F() 732 EXPECT_THAT(plural->values[Plural::One], NotNull()); in TEST_F() 733 EXPECT_THAT(plural->values[Plural::Other], NotNull()); in TEST_F()
|
D | ResourceParser.cpp | 1559 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in ParsePlural() local 1606 if (plural->values[index]) { in ParsePlural() 1613 if (!(plural->values[index] = ParseXml( in ParsePlural() 1619 plural->values[index]->SetSource(item_source); in ParsePlural() 1633 out_resource->value = std::move(plural); in ParsePlural()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize.cpp | 616 void Visit(const Plural* plural) override { in Visit() argument 618 const size_t count = plural->values.size(); in Visit() 620 if (!plural->values[i]) { in Visit() 627 SerializeItemMetaDataToPb(*plural->values[i], pb_entry, src_pool_); in Visit() 628 SerializeItemToPb(*plural->values[i], pb_entry->mutable_item()); in Visit()
|
D | ProtoDeserialize.cpp | 788 const pb::Plural& pb_plural = pb_compound_value.plural(); in DeserializeValueFromPb() 789 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in DeserializeValueFromPb() local 792 plural->values[plural_idx] = DeserializeItemFromPb(pb_entry.item(), src_pool, config, in DeserializeValueFromPb() 794 if (!plural->values[plural_idx]) { in DeserializeValueFromPb() 798 DeserializeItemMetaDataFromPb(pb_entry, src_pool, plural->values[plural_idx].get()); in DeserializeValueFromPb() 800 value = std::move(plural); in DeserializeValueFromPb()
|
D | ProtoSerialize_test.cpp | 65 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in TEST() local 66 plural->values[Plural::One] = util::make_unique<String>(table->string_pool.MakeRef("one")); in TEST() 68 {}, std::move(plural), context->GetDiagnostics())); 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/api/ |
D | current.txt | 50676 field public static final String MULTIPLICITY_PLURAL = "android.plural";
|