The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright 2006 The Android Open Source Project |
| 3 | // |
| 4 | // Some global defines that don't really merit their own header. |
| 5 | // |
| 6 | #ifndef __MAIN_H |
| 7 | #define __MAIN_H |
| 8 | |
| 9 | #include <utils.h> |
| 10 | #include "Bundle.h" |
| 11 | #include "AaptAssets.h" |
| 12 | #include <utils/ZipFile.h> |
| 13 | |
| 14 | extern int doVersion(Bundle* bundle); |
| 15 | extern int doList(Bundle* bundle); |
| 16 | extern int doDump(Bundle* bundle); |
| 17 | extern int doAdd(Bundle* bundle); |
| 18 | extern int doRemove(Bundle* bundle); |
| 19 | extern int doPackage(Bundle* bundle); |
| 20 | |
| 21 | extern int calcPercent(long uncompressedLen, long compressedLen); |
| 22 | |
| 23 | extern android::status_t writeAPK(Bundle* bundle, |
| 24 | const sp<AaptAssets>& assets, |
| 25 | const android::String8& outputFile); |
| 26 | |
| 27 | extern android::status_t buildResources(Bundle* bundle, |
| 28 | const sp<AaptAssets>& assets); |
| 29 | |
| 30 | extern android::status_t writeResourceSymbols(Bundle* bundle, |
| 31 | const sp<AaptAssets>& assets, const String8& pkgName, bool includePrivate); |
| 32 | |
| 33 | extern bool isValidResourceType(const String8& type); |
| 34 | |
| 35 | ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<AaptAssets>& assets); |
| 36 | |
| 37 | extern status_t filterResources(Bundle* bundle, const sp<AaptAssets>& assets); |
| 38 | |
| 39 | int dumpResources(Bundle* bundle); |
| 40 | |
| 41 | #endif // __MAIN_H |