Home | History | Annotate | Download | only in aapt2

Lines Matching refs:Span

146   StyleString str{{"android"}, {Span{{"b"}, 2, 6}}};
154 const StringPool::Span& span = ref->spans.front();
155 EXPECT_EQ(*(span.name), "b");
156 EXPECT_EQ(2u, span.first_char);
157 EXPECT_EQ(6u, span.last_char);
218 StyleString{{"style"}, {Span{{"b"}, 0, 1}, Span{{"i"}, 2, 3}}});
253 const ResStringPool_span* span = test.styleAt(4);
254 ASSERT_NE(nullptr, span);
255 EXPECT_EQ(std::string("b"), util::GetString(test, span->name.index));
256 EXPECT_EQ(StringPiece16(u"b"), util::GetString16(test, span->name.index));
257 EXPECT_EQ(0u, span->firstChar);
258 EXPECT_EQ(1u, span->lastChar);
259 span++;
261 ASSERT_NE(ResStringPool_span::END, span->name.index);
262 EXPECT_EQ(std::string("i"), util::GetString(test, span->name.index));
263 EXPECT_EQ(StringPiece16(u"i"), util::GetString16(test, span->name.index));
264 EXPECT_EQ(2u, span->firstChar);
265 EXPECT_EQ(3u, span->lastChar);
266 span++;
268 EXPECT_EQ(ResStringPool_span::END, span->name.index);