/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() 89 virtual void Visit(const Plural* value) { in Visit() 133 void VisitSubValues(Plural* plural) { in VisitSubValues() 150 DECL_VISIT_COMPOUND_VALUE(Plural);
|
D | ResourceValues.cpp | 1014 bool Plural::Equals(const Value* value) const { in Equals() 1015 const Plural* other = ValueCast<Plural>(value); in Equals() 1037 Plural* Plural::Clone(StringPool* new_pool) const { in Clone() 1038 Plural* p = new Plural(); in Clone() 1050 void Plural::Print(std::ostream* out) const { in Print()
|
D | ResourceValues.h | 351 struct Plural : public BaseValue<Plural> { struct 357 Plural* Clone(StringPool* new_pool) const override; argument
|
D | Debug.cpp | 95 void Visit(const Plural* plural) override { in Visit() 196 void Visit(const Plural* plural) override { in Visit() 197 constexpr std::array<const char*, Plural::Count> kPluralNames = { in Visit() 200 for (size_t i = 0; i < Plural::Count; i++) { in Visit()
|
D | ResourceParser_test.cpp | 720 Plural* plural = test::GetValue<Plural>(&table_, "plurals/foo"); 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()
|
D | ResourceParser.cpp | 1566 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in ParsePlural() 1594 index = Plural::Zero; in ParsePlural() 1596 index = Plural::One; in ParsePlural() 1598 index = Plural::Two; in ParsePlural() 1600 index = Plural::Few; in ParsePlural() 1602 index = Plural::Many; in ParsePlural() 1604 index = Plural::Other; in ParsePlural()
|
D | Resources.proto | 269 Plural plural = 5; 493 message Plural { message
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.cpp | 636 std::unique_ptr<Plural> BinaryResourceParser::ParsePlural(const ResourceNameRef& name, in ParsePlural() 639 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in ParsePlural() 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()
|
D | TableFlattener.cpp | 145 void Visit(Plural* plural) override { in Visit() 154 case Plural::Zero: in Visit() 158 case Plural::One: in Visit() 162 case Plural::Two: in Visit() 166 case Plural::Few: in Visit() 170 case Plural::Many: in Visit() 174 case Plural::Other: in Visit()
|
D | BinaryResourceParser.h | 79 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() 246 std::unique_ptr<Plural> expected = util::make_unique<Plural>(); in TEST() 253 const auto* actual = test::GetValueForConfig<Plural>(table.get(), "com.pkg:plurals/foo", in TEST()
|
D | PseudolocaleGenerator.cpp | 228 void Visit(Plural* plural) override { in Visit() 229 std::unique_ptr<Plural> localized = util::make_unique<Plural>(); in Visit()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize.cpp | 420 case Plural::Zero: in SerializePluralEnumToPb() 422 case Plural::One: in SerializePluralEnumToPb() 424 case Plural::Two: in SerializePluralEnumToPb() 426 case Plural::Few: in SerializePluralEnumToPb() 428 case Plural::Many: in SerializePluralEnumToPb() 594 void Visit(const Plural* plural) override { in Visit() 595 pb::Plural* pb_plural = out_value_->mutable_compound_value()->mutable_plural(); in Visit()
|
D | ProtoDeserialize.cpp | 669 return Plural::Zero; in DeserializePluralEnumFromPb() 671 return Plural::One; in DeserializePluralEnumFromPb() 673 return Plural::Two; in DeserializePluralEnumFromPb() 675 return Plural::Few; in DeserializePluralEnumFromPb() 677 return Plural::Many; in DeserializePluralEnumFromPb() 681 return Plural::Other; in DeserializePluralEnumFromPb() 780 const pb::Plural& pb_plural = pb_compound_value.plural(); in DeserializeValueFromPb() 781 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in DeserializeValueFromPb()
|
D | ProtoSerialize_test.cpp | 63 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in TEST() 64 plural->values[Plural::One] = util::make_unique<String>(table->string_pool.MakeRef("one")); in TEST()
|
/frameworks/base/tools/aapt2/test/ |
D | Common.h | 129 template std::ostream& operator<<<Plural>(std::ostream&, const Plural&);
|