/frameworks/base/tools/aapt2/ |
D | ResourceValues_test.cpp | 42 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 …]
|
D | ValueVisitor.h | 44 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);
|
D | ValueTransformer.h | 38 struct Plural; 99 AAPT_TRANSFORM_VALUE(Plural);
|
D | ResourceValues.h | 351 struct Plural : public TransformableValue<Plural, BaseValue<Plural>> { struct 414 std::unique_ptr<Plural> TransformDerived(const Plural* value) override;
|
D | ValueTransformer.cpp | 47 VALUE_CREATE_VALUE_DECL(Plural);
|
D | ResourceValues.cpp | 974 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()
|
D | ResourceParser_test.cpp | 809 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()
|
D | Debug.cpp | 105 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()
|
D | ResourceParser.cpp | 1663 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()
|
D | Resources.proto | 293 Plural plural = 5; 536 message Plural { message
|
/frameworks/base/tools/aapt2/format/binary/ |
D | ResEntryWriter.cpp | 110 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()
|
D | BinaryResourceParser.cpp | 686 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()
|
D | BinaryResourceParser.h | 83 std::unique_ptr<Plural> ParsePlural(const ResourceNameRef& name,
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator_test.cpp | 241 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 …]
|
D | PseudolocaleGenerator.cpp | 236 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/ |
D | ProtoDeserialize.cpp | 724 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()
|
D | ProtoSerialize.cpp | 505 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()
|
D | ProtoSerialize_test.cpp | 122 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/ |
D | Common.h | 133 template std::ostream& operator<<<Plural>(std::ostream&, const Plural&);
|