Home
last modified time | relevance | path

Searched refs:plural (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp228 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()
DPseudolocaleGenerator_test.cpp241 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/
DBinaryResourceParser.cpp639 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in ParsePlural() local
648 plural->values[Plural::Zero] = std::move(item); in ParsePlural()
651 plural->values[Plural::One] = std::move(item); in ParsePlural()
654 plural->values[Plural::Two] = std::move(item); in ParsePlural()
657 plural->values[Plural::Few] = std::move(item); in ParsePlural()
660 plural->values[Plural::Many] = std::move(item); in ParsePlural()
663 plural->values[Plural::Other] = std::move(item); in ParsePlural()
667 return plural; in ParsePlural()
DTableFlattener.cpp145 void Visit(Plural* plural) override { in Visit() argument
146 const size_t count = plural->values.size(); in Visit()
148 if (!plural->values[i]) { in Visit()
184 FlattenEntry(&key, plural->values[i].get()); in Visit()
/frameworks/base/tools/aapt2/
DDebug.cpp95 void Visit(const Plural* plural) override { in Visit() argument
96 size_t count = std::count_if(plural->values.begin(), plural->values.end(), in Visit()
196 void Visit(const Plural* plural) override { in Visit() argument
201 if (plural->values[i] != nullptr) { in Visit()
203 PrintItem(*plural->values[i]); in Visit()
DValueVisitor.h133 void VisitSubValues(Plural* plural) { in VisitSubValues()
134 for (std::unique_ptr<Item>& item : plural->values) { in VisitSubValues()
DResources.proto269 Plural plural = 5; field
494 // The arity of the plural.
504 // The plural value for a given arity.
506 // Where the plural was defined.
509 // Any comments associated with the plural.
512 // The arity of the plural.
515 // The value assigned to this plural.
519 // The set of arity/plural mappings.
DResourceParser_test.cpp720 Plural* plural = test::GetValue<Plural>(&table_, "plurals/foo"); in TEST_F() local
721 ASSERT_THAT(plural, NotNull()); in TEST_F()
722 EXPECT_THAT(plural->values[Plural::Zero], IsNull()); in TEST_F()
723 EXPECT_THAT(plural->values[Plural::Two], IsNull()); in TEST_F()
724 EXPECT_THAT(plural->values[Plural::Few], IsNull()); in TEST_F()
725 EXPECT_THAT(plural->values[Plural::Many], IsNull()); in TEST_F()
727 EXPECT_THAT(plural->values[Plural::One], NotNull()); in TEST_F()
728 EXPECT_THAT(plural->values[Plural::Other], NotNull()); in TEST_F()
DResourceParser.cpp1566 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in ParsePlural() local
1613 if (plural->values[index]) { in ParsePlural()
1620 if (!(plural->values[index] = ParseXml( in ParsePlural()
1626 plural->values[index]->SetSource(item_source); in ParsePlural()
1640 out_resource->value = std::move(plural); in ParsePlural()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp594 void Visit(const Plural* plural) override { in Visit() argument
596 const size_t count = plural->values.size(); in Visit()
598 if (!plural->values[i]) { in Visit()
605 SerializeItemMetaDataToPb(*plural->values[i], pb_entry, src_pool_); in Visit()
606 SerializeItemToPb(*plural->values[i], pb_entry->mutable_item()); in Visit()
DProtoDeserialize.cpp780 const pb::Plural& pb_plural = pb_compound_value.plural(); in DeserializeValueFromPb()
781 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in DeserializeValueFromPb() local
784 plural->values[plural_idx] = DeserializeItemFromPb(pb_entry.item(), src_pool, config, in DeserializeValueFromPb()
786 if (!plural->values[plural_idx]) { in DeserializeValueFromPb()
790 DeserializeItemMetaDataFromPb(pb_entry, src_pool, plural->values[plural_idx].get()); in DeserializeValueFromPb()
792 value = std::move(plural); in DeserializeValueFromPb()
DProtoSerialize_test.cpp63 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in TEST() local
64 plural->values[Plural::One] = util::make_unique<String>(table->string_pool.MakeRef("one")); in TEST()
66 {}, std::move(plural), context->GetDiagnostics())); in TEST()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt30811 field public static final java.lang.String MULTIPLICITY_PLURAL = "android.plural";
/frameworks/base/non-updatable-api/
Dcurrent.txt48431 field public static final String MULTIPLICITY_PLURAL = "android.plural";
/frameworks/base/api/
Dcurrent.txt48575 field public static final String MULTIPLICITY_PLURAL = "android.plural";
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt26169 Landroid/icu/impl/number/MutablePatternModifier;->plural:Landroid/icu/impl/StandardPlural;