Home | History | Annotate | Download | only in aapt2

Lines Matching refs:ref

29 StringPool::Ref::Ref() : mEntry(nullptr) {
32 StringPool::Ref::Ref(const StringPool::Ref& rhs) : mEntry(rhs.mEntry) {
34 mEntry->ref++;
38 StringPool::Ref::Ref(StringPool::Entry* entry) : mEntry(entry) {
40 mEntry->ref++;
44 StringPool::Ref::~Ref() {
46 mEntry->ref--;
50 StringPool::Ref& StringPool::Ref::operator=(const StringPool::Ref& rhs) {
52 rhs.mEntry->ref++;
56 mEntry->ref--;
62 const std::u16string* StringPool::Ref::operator->() const {
66 const std::u16string& StringPool::Ref::operator*() const {
70 size_t StringPool::Ref::getIndex() const {
74 const StringPool::Context& StringPool::Ref::getContext() const {
83 mEntry->ref++;
89 mEntry->ref++;
95 mEntry->ref--;
101 rhs.mEntry->ref++;
105 mEntry->ref--;
127 StringPool::Ref StringPool::makeRef(const StringPiece16& str) {
131 StringPool::Ref StringPool::makeRef(const StringPiece16& str, const Context& context) {
135 StringPool::Ref StringPool::makeRefImpl(const StringPiece16& str, const Context& context,
140 return Ref(iter->second);
148 entry->ref = 0;
151 return Ref(entry);
163 entry->ref = 0;
168 styleEntry->str = Ref(entry);
173 styleEntry->ref = 0;
178 StringPool::StyleRef StringPool::makeRef(const StyleRef& ref) {
180 entry->value = *ref.mEntry->str;
181 entry->context = ref.mEntry->str.mEntry->context;
183 entry->ref = 0;
188 styleEntry->str = Ref(entry);
189 for (const Span& span : ref.mEntry->spans) {
192 styleEntry->ref = 0;
221 if (indexIter->second->ref <= 0) {
230 return entry->ref <= 0;
236 return entry->ref <= 0;