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

Function doCrunch

tools/aapt/Command.cpp:2123–2132  ·  view source on GitHub ↗

* Do PNG Crunching * PRECONDITIONS * -S flag points to a source directory containing drawable* folders * -C flag points to destination directory. The folder structure in the * source directory will be mirrored to the destination (cache) directory * * POSTCONDITIONS * Destination directory will be updated to match the PNG files in * the source directory. */

Source from the content-addressed store, hash-verified

2121 * the source directory.
2122 */
2123int doCrunch(Bundle* bundle)
2124{
2125 fprintf(stdout, "Crunching PNG Files in ");
2126 fprintf(stdout, "source dir: %s\n", bundle->getResourceSourceDirs()[0]);
2127 fprintf(stdout, "To destination dir: %s\n", bundle->getCrunchedOutputDir());
2128
2129 updatePreProcessedCache(bundle);
2130
2131 return NO_ERROR;
2132}
2133
2134/*
2135 * Do PNG Crunching on a single flag

Callers 1

handleCommandFunction · 0.85

Calls 2

updatePreProcessedCacheFunction · 0.85
getCrunchedOutputDirMethod · 0.80

Tested by

no test coverage detected