MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / setStrings

Method setStrings

tools/aapt/ResourceTable.cpp:3760–3780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3758}
3759
3760status_t ResourceTable::Package::setStrings(const sp<AaptFile>& data,
3761 ResStringPool* strings,
3762 DefaultKeyedVector<String16, uint32_t>* mappings)
3763{
3764 if (data->getData() == NULL) {
3765 return UNKNOWN_ERROR;
3766 }
3767
3768 NOISY(aout << "Setting restable string pool: "
3769 << HexDump(data->getData(), data->getSize()) << endl);
3770
3771 status_t err = strings->setTo(data->getData(), data->getSize());
3772 if (err == NO_ERROR) {
3773 const size_t N = strings->size();
3774 for (size_t i=0; i<N; i++) {
3775 size_t len;
3776 mappings->add(String16(strings->stringAt(i, &len)), i);
3777 }
3778 }
3779 return err;
3780}
3781
3782status_t ResourceTable::Package::applyPublicTypeOrder()
3783{

Callers

nothing calls this directly

Calls 8

HexDumpClass · 0.85
String16Class · 0.70
getSizeMethod · 0.65
sizeMethod · 0.65
addMethod · 0.65
getDataMethod · 0.45
setToMethod · 0.45
stringAtMethod · 0.45

Tested by

no test coverage detected