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.cpp139 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo"); in TEST_F()
207 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo"); in TEST_F()
285 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo"); in TEST_F()
DResources.proto253 StyledString styled_str = 4;
321 message StyledString { message
409 STRING = 0x02; // Allows String/StyledString values.
DResourceParser.cpp741 std::unique_ptr<StyledString> styled_string = in ParseXml()
742 util::make_unique<StyledString>(table_->string_pool.MakeRef( in ParseXml()
838 } else if (StyledString* string_value = ValueCast<StyledString>(out_resource->value.get())) { in ParseString()
DResourceUtils.cpp764 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.cpp492 void Visit(const StyledString* str) override { in Visit()
493 pb::StyledString* pb_str = out_value_->mutable_item()->mutable_styled_str(); in Visit()
496 pb::StyledString::Span* pb_span = pb_str->add_span(); in Visit()
DProtoSerialize_test.cpp76 util::make_unique<StyledString>(table->string_pool.MakeRef(style_string)), in TEST()
157 StyledString* actual_styled_str = in TEST()
158 test::GetValue<StyledString>(&new_table, "com.app.a:string/styled"); in TEST()
DProtoDeserialize.cpp920 const pb::StyledString& pb_str = pb_item.styled_str(); in DeserializeItemFromPb()
922 for (const pb::StyledString::Span& pb_span : pb_str.span()) { in DeserializeItemFromPb()
925 return util::make_unique<StyledString>(value_pool->MakeRef( in DeserializeItemFromPb()