Home
last modified time | relevance | path

Searched refs:Plural (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceValues_test.cpp42 Plural a; in TEST()
43 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
44 a.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
46 Plural b; in TEST()
47 b.values[Plural::One] = util::make_unique<String>(pool.MakeRef("une")); in TEST()
48 b.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("autre")); in TEST()
50 Plural c; in TEST()
51 c.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
52 c.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
61 Plural a; in TEST()
[all …]
DValueVisitor.h44 virtual void Visit(Plural* value) { VisitAny(value); } in Visit()
92 virtual void Visit(const Plural* value) { in Visit()
139 void VisitSubValues(Plural* plural) { in VisitSubValues()
156 DECL_VISIT_COMPOUND_VALUE(Plural);
DValueTransformer.h38 struct Plural;
99 AAPT_TRANSFORM_VALUE(Plural);
DResourceValues.h351 struct Plural : public TransformableValue<Plural, BaseValue<Plural>> { struct
414 std::unique_ptr<Plural> TransformDerived(const Plural* value) override;
DValueTransformer.cpp47 VALUE_CREATE_VALUE_DECL(Plural);
DResourceValues.cpp974 bool Plural::Equals(const Value* value) const { in Equals()
975 const Plural* other = ValueCast<Plural>(value); in Equals()
997 void Plural::Print(std::ostream* out) const { in Print()
1173 std::unique_ptr<Plural> CloningValueTransformer::TransformDerived(const Plural* value) { in TransformDerived()
1174 auto new_value = std::make_unique<Plural>(); in TransformDerived()
DResourceParser_test.cpp809 Plural* plural = test::GetValue<Plural>(&table_, "plurals/foo"); 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()
DDebug.cpp105 void Visit(const Plural* plural) override { in Visit()
204 void Visit(const Plural* plural) override { in Visit()
205 constexpr std::array<const char*, Plural::Count> kPluralNames = { in Visit()
208 for (size_t i = 0; i < Plural::Count; i++) { in Visit()
DResourceParser.cpp1663 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in ParsePlural()
1689 index = Plural::Zero; in ParsePlural()
1691 index = Plural::One; in ParsePlural()
1693 index = Plural::Two; in ParsePlural()
1695 index = Plural::Few; in ParsePlural()
1697 index = Plural::Many; in ParsePlural()
1699 index = Plural::Other; in ParsePlural()
DResources.proto293 Plural plural = 5;
536 message Plural { message
/frameworks/base/tools/aapt2/format/binary/
DResEntryWriter.cpp110 void Visit(const Plural* plural) override { in Visit()
119 case Plural::Zero: in Visit()
123 case Plural::One: in Visit()
127 case Plural::Two: in Visit()
131 case Plural::Few: in Visit()
135 case Plural::Many: in Visit()
139 case Plural::Other: in Visit()
DBinaryResourceParser.cpp686 std::unique_ptr<Plural> BinaryResourceParser::ParsePlural(const ResourceNameRef& name, in ParsePlural()
689 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in ParsePlural()
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()
DBinaryResourceParser.h83 std::unique_ptr<Plural> ParsePlural(const ResourceNameRef& name,
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp241 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in TEST()
248 std::unique_ptr<Plural> expected = util::make_unique<Plural>(); in TEST()
255 const auto* actual = test::GetValueForConfig<Plural>(table.get(), "com.pkg:plurals/foo", in TEST()
346 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in TEST()
356 Plural* actual = test::GetValueForConfig<Plural>(table.get(), "com.pkg:plurals/foo", in TEST()
363 Plural* actual_feminine = in TEST()
364 test::GetValueForConfig<Plural>(table.get(), "com.pkg:plurals/foo", config_feminine); in TEST()
375 Plural* actual_masculine = in TEST()
376 test::GetValueForConfig<Plural>(table.get(), "com.pkg:plurals/foo", config_masculine); in TEST()
388 Plural* actual_neuter = in TEST()
[all …]
DPseudolocaleGenerator.cpp236 void Visit(Plural* plural) override { in Visit()
238 std::unique_ptr<Plural> localized = util::make_unique<Plural>(); in Visit()
309 void Visit(Plural* plural) override { in Visit()
311 std::unique_ptr<Plural> grammatical_gendered = util::make_unique<Plural>(); in Visit()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp724 return Plural::Zero; in DeserializePluralEnumFromPb()
726 return Plural::One; in DeserializePluralEnumFromPb()
728 return Plural::Two; in DeserializePluralEnumFromPb()
730 return Plural::Few; in DeserializePluralEnumFromPb()
732 return Plural::Many; in DeserializePluralEnumFromPb()
736 return Plural::Other; in DeserializePluralEnumFromPb()
837 const pb::Plural& pb_plural = pb_compound_value.plural(); in DeserializeValueFromPb()
838 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in DeserializeValueFromPb()
DProtoSerialize.cpp505 case Plural::Zero: in SerializePluralEnumToPb()
507 case Plural::One: in SerializePluralEnumToPb()
509 case Plural::Two: in SerializePluralEnumToPb()
511 case Plural::Few: in SerializePluralEnumToPb()
513 case Plural::Many: in SerializePluralEnumToPb()
680 void Visit(const Plural* plural) override { in Visit()
681 pb::Plural* pb_plural = out_value_->mutable_compound_value()->mutable_plural(); in Visit()
DProtoSerialize_test.cpp122 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in TEST()
123 plural->values[Plural::One] = util::make_unique<String>(table->string_pool.MakeRef("one")); in TEST()
/frameworks/base/tools/aapt2/test/
DCommon.h133 template std::ostream& operator<<<Plural>(std::ostream&, const Plural&);