Home
last modified time | relevance | path

Searched refs:StyledString (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp32 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( in TEST()
33 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
54 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
79 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( in TEST()
80 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
101 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( in TEST()
102 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
124 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( in TEST()
125 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
161 std::unique_ptr<StyledString> original_string = in TEST()
[all …]
DPseudolocaleGenerator.h26 std::unique_ptr<StyledString> PseudolocalizeStyledString(
27 StyledString* string, Pseudolocalizer::Method method, StringPool* pool);
DPseudolocaleGenerator.cpp67 static std::vector<UnifiedSpan> MergeSpans(const StyledString& string) { in MergeSpans()
112 std::unique_ptr<StyledString> PseudolocalizeStyledString(StyledString* string, in PseudolocalizeStyledString()
214 return util::make_unique<StyledString>(pool->MakeRef(localized)); in PseudolocalizeStyledString()
277 void Visit(StyledString* string) override { in Visit()
/frameworks/base/tools/aapt2/
DResourceValues.cpp287 StyledString::StyledString(const StringPool::StyleRef& ref) : value(ref) { in StyledString() function in aapt::StyledString
290 bool StyledString::Equals(const Value* value) const { in Equals()
291 const StyledString* other = ValueCast<StyledString>(value); in Equals()
314 bool StyledString::Flatten(android::Res_value* out_value) const { in Flatten()
324 StyledString* StyledString::Clone(StringPool* new_pool) const { in Clone()
325 StyledString* str = new StyledString(new_pool->MakeRef(value)); in Clone()
332 void StyledString::Print(std::ostream* out) const { in Print()
DResourceValues.h240 struct StyledString : public BaseItem<StyledString> { struct
248 explicit StyledString(const StringPool::StyleRef& ref); argument
252 StyledString* Clone(StringPool* new_pool) const override;
DValueVisitor.h36 virtual void Visit(StyledString* value) { VisitItem(value); } in Visit()
67 virtual void Visit(const StyledString* value) { in Visit()
DResourceParser_test.cpp137 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo"); in TEST_F()
205 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo"); in TEST_F()
283 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo"); in TEST_F()
DResources.proto253 StyledString styled_str = 4;
313 message StyledString { message
398 STRING = 0x02; // Allows String/StyledString values.
DResourceParser.cpp738 std::unique_ptr<StyledString> styled_string = in ParseXml()
739 util::make_unique<StyledString>(table_->string_pool.MakeRef( in ParseXml()
837 } else if (StyledString* string_value = ValueCast<StyledString>(out_resource->value.get())) { in ParseString()
DResourceUtils.cpp758 return util::make_unique<StyledString>(dst_pool->MakeRef( in ParseBinaryResValue()
/frameworks/base/tools/aapt2/test/
DCommon.h123 template std::ostream& operator<<<StyledString>(std::ostream&, const StyledString&);
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp471 void Visit(const StyledString* str) override { in Visit()
472 pb::StyledString* pb_str = out_value_->mutable_item()->mutable_styled_str(); in Visit()
475 pb::StyledString::Span* pb_span = pb_str->add_span(); in Visit()
DProtoSerialize_test.cpp74 util::make_unique<StyledString>(table->string_pool.MakeRef(style_string)), in TEST()
153 StyledString* actual_styled_str = in TEST()
154 test::GetValue<StyledString>(&new_table, "com.app.a:string/styled"); in TEST()
DProtoDeserialize.cpp912 const pb::StyledString& pb_str = pb_item.styled_str(); in DeserializeItemFromPb()
914 for (const pb::StyledString::Span& pb_span : pb_str.span()) { in DeserializeItemFromPb()
917 return util::make_unique<StyledString>(value_pool->MakeRef( in DeserializeItemFromPb()