| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
#ifndef __AAPT_CONFIG_H |
| 18 |
#define __AAPT_CONFIG_H |
| 19 |
|
| 20 |
#include <set> |
| 21 |
#include <utils/String8.h> |
| 22 |
|
| 23 |
#include "ConfigDescription.h" |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
namespace AaptConfig { |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
bool parse(const android::String8& str, ConfigDescription* out = NULL); |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
bool parseCommaSeparatedList(const android::String8& str, std::set<ConfigDescription>* outSet); |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
void applyVersionForCompatibility(ConfigDescription* config); |
| 53 |
|
| 54 |
|
| 55 |
bool parseMcc(const char* str, android::ResTable_config* out = NULL); |
| 56 |
bool parseMnc(const char* str, android::ResTable_config* out = NULL); |
| 57 |
bool parseLayoutDirection(const char* str, android::ResTable_config* out = NULL); |
| 58 |
bool parseSmallestScreenWidthDp(const char* str, android::ResTable_config* out = NULL); |
| 59 |
bool parseScreenWidthDp(const char* str, android::ResTable_config* out = NULL); |
| 60 |
bool parseScreenHeightDp(const char* str, android::ResTable_config* out = NULL); |
| 61 |
bool parseScreenLayoutSize(const char* str, android::ResTable_config* out = NULL); |
| 62 |
bool parseScreenLayoutLong(const char* str, android::ResTable_config* out = NULL); |
| 63 |
bool parseScreenRound(const char* name, android::ResTable_config* out = NULL); |
| 64 |
bool parseWideColorGamut(const char* name, android::ResTable_config* out = NULL); |
| 65 |
bool parseHdr(const char* name, android::ResTable_config* out = NULL); |
| 66 |
bool parseOrientation(const char* str, android::ResTable_config* out = NULL); |
| 67 |
bool parseUiModeType(const char* str, android::ResTable_config* out = NULL); |
| 68 |
bool parseUiModeNight(const char* str, android::ResTable_config* out = NULL); |
| 69 |
bool parseDensity(const char* str, android::ResTable_config* out = NULL); |
| 70 |
bool parseTouchscreen(const char* str, android::ResTable_config* out = NULL); |
| 71 |
bool parseKeysHidden(const char* str, android::ResTable_config* out = NULL); |
| 72 |
bool parseKeyboard(const char* str, android::ResTable_config* out = NULL); |
| 73 |
bool parseNavHidden(const char* str, android::ResTable_config* out = NULL); |
| 74 |
bool parseNavigation(const char* str, android::ResTable_config* out = NULL); |
| 75 |
bool parseScreenSize(const char* str, android::ResTable_config* out = NULL); |
| 76 |
bool parseVersion(const char* str, android::ResTable_config* out = NULL); |
| 77 |
|
| 78 |
android::String8 getVersion(const android::ResTable_config& config); |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
bool isSameExcept(const android::ResTable_config& a, const android::ResTable_config& b, int configMask); |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
bool isDensityOnly(const android::ResTable_config& config); |
| 91 |
|
| 92 |
} |
| 93 |
|
| 94 |
#endif |