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

Function handleCommand

tools/aapt/Main.cpp:205–225  ·  view source on GitHub ↗

* Dispatch the command. */

Source from the content-addressed store, hash-verified

203 * Dispatch the command.
204 */
205int handleCommand(Bundle* bundle)
206{
207 //printf("--- command %d (verbose=%d force=%d):\n",
208 // bundle->getCommand(), bundle->getVerbose(), bundle->getForce());
209 //for (int i = 0; i < bundle->getFileSpecCount(); i++)
210 // printf(" %d: '%s'\n", i, bundle->getFileSpecEntry(i));
211
212 switch (bundle->getCommand()) {
213 case kCommandVersion: return doVersion(bundle);
214 case kCommandList: return doList(bundle);
215 case kCommandDump: return doDump(bundle);
216 case kCommandAdd: return doAdd(bundle);
217 case kCommandRemove: return doRemove(bundle);
218 case kCommandPackage: return doPackage(bundle);
219 case kCommandCrunch: return doCrunch(bundle);
220 case kCommandSingleCrunch: return doSingleCrunch(bundle);
221 default:
222 fprintf(stderr, "%s: requested command not yet supported\n", gProgName);
223 return 1;
224 }
225}
226
227/*
228 * Parse args.

Callers 1

mainFunction · 0.85

Calls 9

doVersionFunction · 0.85
doListFunction · 0.85
doDumpFunction · 0.85
doPackageFunction · 0.85
doCrunchFunction · 0.85
doSingleCrunchFunction · 0.85
getCommandMethod · 0.80
doAddFunction · 0.70
doRemoveFunction · 0.70

Tested by

no test coverage detected