Lines Matching refs:pool

40 void printStringPool(const ResStringPool* pool)  in printStringPool()  argument
42 if (pool->getError() == NO_INIT) { in printStringPool()
45 } else if (pool->getError() != NO_ERROR) { in printStringPool()
51 const size_t N = pool->size(); in printStringPool()
54 if (pool->isUTF8()) { in printStringPool()
55 uniqueStrings.add(pool->string8At(i, &len)); in printStringPool()
57 uniqueStrings.add(pool->stringAt(i, &len)); in printStringPool()
63 (ZD_TYPE)uniqueStrings.size(), pool->isUTF8() ? "UTF-8" : "UTF-16", in printStringPool()
64 pool->isSorted() ? "sorted" : "non-sorted", in printStringPool()
65 (ZD_TYPE)N, (ZD_TYPE)pool->styleCount(), (ZD_TYPE)pool->bytes()); in printStringPool()
67 const size_t NS = pool->size(); in printStringPool()
69 String8 str = pool->string8ObjectAt(s); in printStringPool()
239 StringPool::ConfigSorter::ConfigSorter(const StringPool& pool) : pool(pool) in ConfigSorter() argument
245 const StringPool::entry& lhe = pool.mEntries[pool.mEntryArray[l]]; in operator ()()
246 const StringPool::entry& rhe = pool.mEntries[pool.mEntryArray[r]]; in operator ()()
374 sp<AaptFile> pool = new AaptFile(String8(), AaptGroupEntry(), in createStringBlock() local
376 status_t err = writeStringBlock(pool); in createStringBlock()
377 return err == NO_ERROR ? pool : NULL; in createStringBlock()
390 status_t StringPool::writeStringBlock(const sp<AaptFile>& pool) in writeStringBlock() argument
393 if (pool->getSize() > 0) { in writeStringBlock()
398 ssize_t res = pool->writeData(block->getData(), block->getSize()); in writeStringBlock()
433 if (pool->editData(preSize) == NULL) { in writeStringBlock()
462 void* dat = (void*)pool->editData(preSize + strPos + totalSize); in writeStringBlock()
491 uint8_t* dat = (uint8_t*)pool->editData(preSize + padPos); in writeStringBlock()
510 uint8_t* dat = (uint8_t*)pool->editData(preSize + styPos + totalSize); in writeStringBlock()
532 uint8_t* dat = (uint8_t*)pool->editData(preSize + styPos + extra); in writeStringBlock()
548 (ResStringPool_header*)pool->padData(sizeof(uint32_t)); in writeStringBlock()
556 header->header.size = htodl(pool->getSize()); in writeStringBlock()