Lines Matching refs:bundle

123 int doList(Bundle* bundle)  in doList()  argument
131 if (bundle->getFileSpecCount() != 1) { in doList()
135 zipFileName = bundle->getFileSpecEntry(0); in doList()
144 if (bundle->getVerbose()) { in doList()
157 if (bundle->getVerbose()) { in doList()
183 if (bundle->getVerbose()) { in doList()
193 if (bundle->getAndroidList()) { in doList()
725 int doDump(Bundle* bundle) in doDump() argument
729 if (bundle->getFileSpecCount() < 1) { in doDump()
734 if (bundle->getFileSpecCount() < 2) { in doDump()
739 const char* option = bundle->getFileSpecEntry(0); in doDump()
740 const char* filename = bundle->getFileSpecEntry(1); in doDump()
746 for (size_t i = 0; i < bundle->getPackageIncludes().size(); i++) { in doDump()
747 const String8& assetPath = bundle->getPackageIncludes()[i]; in doDump()
796 res.print(bundle->getValues()); in doDump()
804 if (bundle->getFileSpecCount() < 3) { in doDump()
809 for (int i=2; i<bundle->getFileSpecCount(); i++) { in doDump()
810 const char* resname = bundle->getFileSpecEntry(i); in doDump()
831 if (bundle->getFileSpecCount() < 3) { in doDump()
836 for (int i=2; i<bundle->getFileSpecCount(); i++) { in doDump()
837 const char* resname = bundle->getFileSpecEntry(i); in doDump()
1853 } else if (bundle->getIncludeMetaData() && tag == "meta-data") { in doDump()
2383 int doAdd(Bundle* bundle) in doAdd() argument
2389 if (bundle->getUpdate()) { in doAdd()
2395 if (bundle->getFileSpecCount() < 1) { in doAdd()
2399 zipFileName = bundle->getFileSpecEntry(0); in doAdd()
2401 if (bundle->getFileSpecCount() < 2) { in doAdd()
2412 for (int i = 1; i < bundle->getFileSpecCount(); i++) { in doAdd()
2413 const char* fileName = bundle->getFileSpecEntry(i); in doAdd()
2419 if (bundle->getJunkPath()) { in doAdd()
2424 bundle->getCompressionMethod(), NULL); in doAdd()
2427 result = zip->add(fileName, bundle->getCompressionMethod(), NULL); in doAdd()
2431 fprintf(stderr, "Unable to add '%s' to '%s'", bundle->getFileSpecEntry(i), zipFileName); in doAdd()
2454 int doRemove(Bundle* bundle) in doRemove() argument
2460 if (bundle->getFileSpecCount() < 1) { in doRemove()
2464 zipFileName = bundle->getFileSpecEntry(0); in doRemove()
2466 if (bundle->getFileSpecCount() < 2) { in doRemove()
2478 for (int i = 1; i < bundle->getFileSpecCount(); i++) { in doRemove()
2479 const char* fileName = bundle->getFileSpecEntry(i); in doRemove()
2492 bundle->getFileSpecEntry(i), zipFileName); in doRemove()
2561 int doPackage(Bundle* bundle) in doPackage() argument
2574 err = configFilter->parse(bundle->getConfigurations()); in doPackage()
2579 bundle->setPseudolocalize(bundle->getPseudolocalize() | PSEUDO_ACCENTED); in doPackage()
2582 bundle->setPseudolocalize(bundle->getPseudolocalize() | PSEUDO_BIDI); in doPackage()
2585 N = bundle->getFileSpecCount(); in doPackage()
2586 if (N < 1 && bundle->getResourceSourceDirs().size() == 0 && bundle->getJarFiles().size() == 0 in doPackage()
2587 … && bundle->getAndroidManifestFile() == NULL && bundle->getAssetSourceDirs().size() == 0) { in doPackage()
2592 outputAPKFile = bundle->getOutputAPKFile(); in doPackage()
2613 if (bundle->getGenDependencies()) { in doPackage()
2620 err = assets->slurpFromArgs(bundle); in doPackage()
2625 if (bundle->getVerbose()) { in doPackage()
2635 if (bundle->getSplitConfigurations().size() > 0) { in doPackage()
2636 const Vector<String8>& splitStrs = bundle->getSplitConfigurations(); in doPackage()
2653 if (bundle->getResourceSourceDirs().size() || bundle->getAndroidManifestFile()) { in doPackage()
2654 err = buildResources(bundle, assets, builder); in doPackage()
2673 if (bundle->getGenDependencies()) { in doPackage()
2684 dependencyFile = String8(bundle->getRClassDir()); in doPackage()
2694 if (bundle->getCustomPackage() == NULL) { in doPackage()
2697 err = writeResourceSymbols(bundle, assets, assets->getPackage(), true, in doPackage()
2698 bundle->getBuildSharedLibrary() || bundle->getBuildAppAsSharedLibrary()); in doPackage()
2700 const String8 customPkg(bundle->getCustomPackage()); in doPackage()
2701 err = writeResourceSymbols(bundle, assets, customPkg, true, in doPackage()
2702 bundle->getBuildSharedLibrary() || bundle->getBuildAppAsSharedLibrary()); in doPackage()
2710 if (bundle->getExtraPackages() != NULL) { in doPackage()
2712 String8 libs(bundle->getExtraPackages()); in doPackage()
2716 err = writeResourceSymbols(bundle, assets, String8(packageString), true, in doPackage()
2717 bundle->getBuildSharedLibrary() || bundle->getBuildAppAsSharedLibrary()); in doPackage()
2726 err = writeResourceSymbols(bundle, assets, assets->getPackage(), false, false); in doPackage()
2730 err = writeResourceSymbols(bundle, assets, assets->getSymbolsPrivatePackage(), true, false); in doPackage()
2737 err = writeProguardFile(bundle, assets); in doPackage()
2743 err = writeMainDexProguardFile(bundle, assets); in doPackage()
2762 err = writeAPK(bundle, outputPath, split); in doPackage()
2774 if (bundle->getGenDependencies()) { in doPackage()
2780 err = writeDependencyPreReqs(bundle, assets, fp, includeRaw); in doPackage()
2783 fprintf(fp, "%s \\\n", bundle->getAndroidManifestFile()); in doPackage()
2806 int doCrunch(Bundle* bundle) in doCrunch() argument
2809 fprintf(stdout, "source dir: %s\n", bundle->getResourceSourceDirs()[0]); in doCrunch()
2810 fprintf(stdout, "To destination dir: %s\n", bundle->getCrunchedOutputDir()); in doCrunch()
2812 updatePreProcessedCache(bundle); in doCrunch()
2822 int doSingleCrunch(Bundle* bundle) in doSingleCrunch() argument
2824 fprintf(stdout, "Crunching single PNG file: %s\n", bundle->getSingleCrunchInputFile()); in doSingleCrunch()
2825 fprintf(stdout, "\tOutput file: %s\n", bundle->getSingleCrunchOutputFile()); in doSingleCrunch()
2827 String8 input(bundle->getSingleCrunchInputFile()); in doSingleCrunch()
2828 String8 output(bundle->getSingleCrunchOutputFile()); in doSingleCrunch()
2830 if (preProcessImageToCache(bundle, input, output) != NO_ERROR) { in doSingleCrunch()
2838 int runInDaemonMode(Bundle* bundle) { in runInDaemonMode() argument
2848 bundle->setSingleCrunchInputFile(inputFile.c_str()); in runInDaemonMode()
2849 bundle->setSingleCrunchOutputFile(outputFile.c_str()); in runInDaemonMode()
2851 if (doSingleCrunch(bundle) != NO_ERROR) { in runInDaemonMode()