Home
last modified time | relevance | path

Searched refs:stringPool (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/tools/aapt2/test/
DBuilders.h40 return &mTable->stringPool; in getStringPool()
68 return addValue(name, id, util::make_unique<String>(mTable->stringPool.makeRef(str))); in addString()
74 util::make_unique<String>(mTable->stringPool.makeRef(str))); in addString()
84 util::make_unique<FileReference>(mTable->stringPool.makeRef(path))); in addFileReference()
90 util::make_unique<FileReference>(mTable->stringPool.makeRef(path))); in addFileReference()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp257 &mMasterTable->stringPool)); in doMerge()
270 &mMasterTable->stringPool)); in doMerge()
286 mMasterTable->stringPool.makeRef(newPath)); in cloneAndMangleFile()
291 return std::unique_ptr<FileReference>(fileRef.clone(&mMasterTable->stringPool)); in cloneAndMangleFile()
299 table.stringPool.makeRef(path)); in mergeFileImpl()
DReferenceLinker.cpp48 ReferenceLinkerVisitor(IAaptContext* context, SymbolTable* symbols, StringPool* stringPool, in ReferenceLinkerVisitor() argument
50 mContext(context), mSymbols(symbols), mPackageDecls(decl), mStringPool(stringPool), in ReferenceLinkerVisitor()
319 &table->stringPool, &declStack, &callSite); in consume()
DAutoVersioner.cpp117 std::unique_ptr<Style> newStyle(style->clone(&table->stringPool)); in consume()
DReferenceLinker_test.cpp82 table->stringPool.makeRef(u"one|two")); in TEST()
/frameworks/base/core/java/android/util/
DJsonReader.java181 private final StringPool stringPool = new StringPool(); field in JsonReader
891 return stringPool.get(buffer, start, pos - start - 1); in nextString()
989 result = stringPool.get(buffer, pos, i); in nextLiteral()
1023 String hex = stringPool.get(buffer, pos, 4); in readEscapeCharacter()
1095 value = stringPool.get(buffer, valuePos, valueLength); in decodeLiteral()
/frameworks/base/core/java/android/app/usage/
DUsageEvents.java197 public UsageEvents(List<Event> events, String[] stringPool) { in UsageEvents() argument
198 mStringPool = stringPool; in UsageEvents()
/frameworks/base/tools/aapt2/proto/
DTableProtoSerializer.cpp202 table->stringPool.sort([](const StringPool::Entry& a, const StringPool::Entry& b) -> bool { in serializeTableToPb()
211 table->stringPool.prune(); in serializeTableToPb()
214 serializeStringPoolToPb(table->stringPool, pbTable->mutable_string_pool()); in serializeTableToPb()
DTableProtoSerializer_test.cpp50 plural->values[Plural::One] = util::make_unique<String>(table->stringPool.makeRef(u"one")); in TEST()
DTableProtoDeserializer.cpp145 config, &table->stringPool); in deserializeFromPb()
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp128 mTable->stringPool.hintWillAdd(mValuePool.size(), mValuePool.styleCount()); in parseTable()
406 return util::make_unique<StyledString>(mTable->stringPool.makeRef( in parseValue()
412 return util::make_unique<FileReference>(mTable->stringPool.makeRef( in parseValue()
418 return util::make_unique<String>(mTable->stringPool.makeRef( in parseValue()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp251 &table->stringPool, entry.get()); in consume()
253 &table->stringPool, entry.get()); in consume()
/frameworks/base/tools/aapt2/flatten/
DTableFlattener.cpp469 table->stringPool.sort([](const StringPool::Entry& a, const StringPool::Entry& b) -> bool { in consume()
478 table->stringPool.prune(); in consume()
486 StringPool::flattenUtf8(tableWriter.getBuffer(), table->stringPool); in consume()
/frameworks/base/tools/aapt2/
DResourceTable.h263 StringPool stringPool; variable
DResourceParser.cpp492 mTable->stringPool.makeRef(styleString, StringPool::Context{ 1, mConfig })); in parseXml()
517 mTable->stringPool.makeRef(styleString.str, StringPool::Context{ 1, mConfig })); in parseXml()
523 mTable->stringPool.makeRef(rawValue, StringPool::Context{ 1, mConfig })); in parseXml()
DResourceTable.cpp300 stringPool.makeRef(path)); in addFileReferenceImpl()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp236 configValue->value->clone(&splitTable->stringPool)); in splitTable()
/frameworks/base/tools/aapt/
DXMLNode.cpp1107 sp<AaptFile> stringPool = strings.createStringBlock(); in flatten() local
1116 dest->writeData(stringPool->getData(), stringPool->getSize()); in flatten()
1142 dest->getSize(), (stringPool->getSize()*100)/dest->getSize(), in flatten()