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

/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator.h26 std::unique_ptr<StyledString> PseudolocalizeStyledString(
27 StyledString* string, Pseudolocalizer::Method method, StringPool* pool);
H A DPseudolocaleGenerator_test.cpp30 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString(
31 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(),
52 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(),
77 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString(
78 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(),
99 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString(
100 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(),
122 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString(
123 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(),
159 std::unique_ptr<StyledString> original_strin
[all...]
H A DPseudolocaleGenerator.cpp64 // Merges the Span and UntranslatableSections of this StyledString into a single vector of
66 static std::vector<UnifiedSpan> MergeSpans(const StyledString& string) {
111 std::unique_ptr<StyledString> PseudolocalizeStyledString(StyledString* string,
213 return util::make_unique<StyledString>(pool->MakeRef(localized));
276 void Visit(StyledString* string) override {
/frameworks/base/tools/aapt2/
H A DResourceValues.h240 struct StyledString : public BaseItem<StyledString> { struct in namespace:aapt
248 explicit StyledString(const StringPool::StyleRef& ref);
252 StyledString* Clone(StringPool* new_pool) const override;
H A DResources.proto211 StyledString styled_str = 4;
271 message StyledString {
356 STRING = 0x02; // Allows String/StyledString values.
H A DResourceValues.cpp287 StyledString::StyledString(const StringPool::StyleRef& ref) : value(ref) { function in class:aapt::StyledString
290 bool StyledString::Equals(const Value* value) const {
291 const StyledString* other = ValueCast<StyledString>(value);
314 bool StyledString::Flatten(android::Res_value* out_value) const {
324 StyledString* StyledString::Clone(StringPool* new_pool) const {
325 StyledString* str = new StyledString(new_poo
[all...]
H A DValueVisitor.h36 virtual void Visit(StyledString* value) { VisitItem(value); }
67 virtual void Visit(const StyledString* value) {
H A DResourceParser_test.cpp136 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo");
204 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo");
259 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo");
H A DResourceParser.cpp733 // This can only be a StyledString.
734 std::unique_ptr<StyledString> styled_string =
735 util::make_unique<StyledString>(table_->string_pool.MakeRef(
832 } else if (StyledString* string_value = ValueCast<StyledString>(out_resource->value.get())) {
H A DResourceUtils.cpp711 return util::make_unique<StyledString>(dst_pool->MakeRef(
/frameworks/base/tools/aapt2/test/
H A DCommon.h123 template std::ostream& operator<<<StyledString>(std::ostream&, const StyledString&);
/frameworks/base/tools/aapt2/format/proto/
H A DProtoSerialize_test.cpp72 util::make_unique<StyledString>(table->string_pool.MakeRef(style_string)),
148 StyledString* actual_styled_str =
149 test::GetValue<StyledString>(&new_table, "com.app.a:string/styled");
H A DProtoSerialize.cpp414 void Visit(const StyledString* str) override {
415 pb::StyledString* pb_str = out_value_->mutable_item()->mutable_styled_str();
418 pb::StyledString::Span* pb_span = pb_str->add_span();
H A DProtoDeserialize.cpp851 const pb::StyledString& pb_str = pb_item.styled_str();
853 for (const pb::StyledString::Span& pb_span : pb_str.span()) {
856 return util::make_unique<StyledString>(value_pool->MakeRef(

Completed in 445 milliseconds