Home | History | Annotate | Download | only in aapt2

Lines Matching refs:Span

151   StringPool::StyleRef ref = pool.MakeRef(StyleString{{"android"}, {Span{{"b"}, 2, 6}}});
156 const StringPool::Span& span = ref->spans.front();
157 EXPECT_THAT(*span.name, Eq("b"));
158 EXPECT_THAT(span.first_char, Eq(2u));
159 EXPECT_THAT(span.last_char, Eq(6u));
236 pool.MakeRef(StyleString{{"style"}, {Span{{"b"}, 0, 1}, Span{{"i"}, 2, 3}}});
272 const ResStringPool_span* span = test.styleAt(0);
273 ASSERT_THAT(span, NotNull());
274 EXPECT_THAT(util::GetString(test, span->name.index), Eq("b"));
275 EXPECT_THAT(util::GetString16(test, span->name.index), Eq(u"b"));
276 EXPECT_THAT(span->firstChar, Eq(0u));
277 EXPECT_THAT(span->lastChar, Eq(1u));
278 span++;
280 ASSERT_THAT(span->name.index, Ne(ResStringPool_span::END));
281 EXPECT_THAT(util::GetString(test, span->name.index), Eq("i"));
282 EXPECT_THAT(util::GetString16(test, span->name.index), Eq(u"i"));
283 EXPECT_THAT(span->firstChar, Eq(2u));
284 EXPECT_THAT(span->lastChar, Eq(3u));
285 span++;
287 EXPECT_THAT(span->name.index, Eq(ResStringPool_span::END));