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

Function postProcessImages

tools/aapt/Resource.cpp:361–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361status_t postProcessImages(const sp<AaptAssets>& assets,
362 ResourceTable* table,
363 const sp<ResourceTypeSet>& set)
364{
365 ResourceDirIterator it(set, String8("drawable"));
366 bool hasErrors = false;
367 ssize_t res;
368 while ((res=it.next()) == NO_ERROR) {
369 res = postProcessImage(assets, table, it.getFile());
370 if (res < NO_ERROR) {
371 hasErrors = true;
372 }
373 }
374
375 return (hasErrors || (res < NO_ERROR)) ? UNKNOWN_ERROR : NO_ERROR;
376}
377
378static void collect_files(const sp<AaptDir>& dir,
379 KeyedVector<String8, sp<ResourceTypeSet> >* resources)

Callers 1

buildResourcesFunction · 0.85

Calls 2

postProcessImageFunction · 0.85
nextMethod · 0.45

Tested by

no test coverage detected