/frameworks/base/tools/aapt2/ |
ConfigDescription.h | 31 struct ConfigDescription : public android::ResTable_config { 35 static const ConfigDescription& defaultConfig(); 44 static bool parse(const StringPiece& str, ConfigDescription* out = nullptr); 51 static void applyVersionForCompatibility(ConfigDescription* config); 53 ConfigDescription(); 54 ConfigDescription(const android::ResTable_config& o); 55 ConfigDescription(const ConfigDescription& o); 56 ConfigDescription(ConfigDescription&& o) [all...] |
ConfigDescription_test.cpp | 17 #include "ConfigDescription.h" 28 ConfigDescription* config = nullptr) { 29 if (ConfigDescription::parse(input, config)) { 50 ConfigDescription config; 64 ConfigDescription config; 70 ConfigDescription config; 79 ConfigDescription config; 85 ConfigDescription config;
|
ResourceTable.h | 20 #include "ConfigDescription.h" 59 const ConfigDescription config; 71 ResourceConfigValue(const ConfigDescription& config, const StringPiece& product) : 108 ResourceConfigValue* findValue(const ConfigDescription& config); 109 ResourceConfigValue* findValue(const ConfigDescription& config, const StringPiece& product); 110 ResourceConfigValue* findOrCreateValue(const ConfigDescription& config, 112 std::vector<ResourceConfigValue*> findAllValues(const ConfigDescription& config); 197 const ConfigDescription& config, 204 const ConfigDescription& config, 210 const ConfigDescription& config [all...] |
ResourceTable_test.cpp | 36 ConfigDescription{}, "", 42 ConfigDescription{}, "", 51 ConfigDescription{}, 63 ConfigDescription config; 64 ConfigDescription languageConfig; 107 ASSERT_TRUE(table.addResource(test::parseNameOrDie(u"@android:attr/foo"), ConfigDescription{}, 114 ASSERT_TRUE(table.addResource(test::parseNameOrDie(u"@android:attr/foo"), ConfigDescription{},
|
/frameworks/base/tools/aapt/ |
ConfigDescription.h | 26 struct ConfigDescription : public android::ResTable_config { 27 ConfigDescription() { 32 ConfigDescription(const android::ResTable_config&o) { 37 ConfigDescription(const ConfigDescription&o) { 41 ConfigDescription& operator=(const android::ResTable_config& o) { 47 ConfigDescription& operator=(const ConfigDescription& o) { 52 inline bool operator<(const ConfigDescription& o) const { return compare(o) < 0; } 53 inline bool operator<=(const ConfigDescription& o) const { return compare(o) <= 0; [all...] |
ResourceFilter.h | 19 #include "ConfigDescription.h" 52 ConfigDescription mDefault; 54 android::Vector<std::pair<ConfigDescription, uint32_t> > mConfigs; 81 StrongResourceFilter(const std::set<ConfigDescription>& configs) 87 std::set<ConfigDescription>::const_iterator iter = mConfigs.begin(); 96 inline const std::set<ConfigDescription>& getConfigs() const { 101 std::set<ConfigDescription> mConfigs;
|
ApkBuilder.h | 26 #include "ConfigDescription.h" 44 android::status_t createSplitForConfigs(const std::set<ConfigDescription>& configs); 78 const std::set<ConfigDescription>& getConfigs() const { 111 ApkSplit(const std::set<ConfigDescription>& configs, const android::sp<ResourceFilter>& filter, bool isBase=false); 113 std::set<ConfigDescription> mConfigs;
|
ApkBuilder.cpp | 27 mSplits.add(new ApkSplit(std::set<ConfigDescription>(), mDefaultFilter, true)); 30 status_t ApkBuilder::createSplitForConfigs(const std::set<ConfigDescription>& configs) { 33 const std::set<ConfigDescription>& splitConfigs = mSplits[i]->getConfigs(); 34 std::set<ConfigDescription>::const_iterator iter = configs.begin(); 81 ApkSplit::ApkSplit(const std::set<ConfigDescription>& configs, const sp<ResourceFilter>& filter, bool isBase) 83 std::set<ConfigDescription>::const_iterator iter = configs.begin();
|
AaptConfig.h | 23 #include "ConfigDescription.h" 37 bool parse(const android::String8& str, ConfigDescription* out = NULL); 45 bool parseCommaSeparatedList(const android::String8& str, std::set<ConfigDescription>* outSet); 52 void applyVersionForCompatibility(ConfigDescription* config);
|
Symbol.h | 23 #include "ConfigDescription.h" 47 inline SymbolDefinition(const Symbol& s, const ConfigDescription& c, const SourcePos& src); 51 ConfigDescription config; 84 SymbolDefinition::SymbolDefinition(const Symbol& s, const ConfigDescription& c, const SourcePos& src)
|
/frameworks/base/tools/aapt2/filter/ |
ConfigFilter.h | 20 #include "ConfigDescription.h" 37 virtual bool match(const ConfigDescription& config) const = 0; 50 void addConfig(ConfigDescription config); 52 bool match(const ConfigDescription& config) const override; 55 std::set<std::pair<ConfigDescription, uint32_t>> mConfigs;
|
ConfigFilter.cpp | 17 #include "ConfigDescription.h" 24 void AxisConfigFilter::addConfig(ConfigDescription config) { 25 uint32_t diffMask = ConfigDescription::defaultConfig().diff(config); 40 bool AxisConfigFilter::match(const ConfigDescription& config) const { 41 const uint32_t mask = ConfigDescription::defaultConfig().diff(config); 49 const ConfigDescription& target = entry.first;
|
/frameworks/base/tools/aapt2/proto/ |
ProtoHelpers.h | 20 #include "ConfigDescription.h" 40 void serializeConfig(const ConfigDescription& config, pb::ConfigDescription* outPbConfig); 41 bool deserializeConfigDescriptionFromPb(const pb::ConfigDescription& pbConfig, 42 ConfigDescription* outConfig);
|
ProtoHelpers.cpp | 72 void serializeConfig(const ConfigDescription& config, pb::ConfigDescription* outPbConfig) { 79 bool deserializeConfigDescriptionFromPb(const pb::ConfigDescription& pbConfig, 80 ConfigDescription* outConfig) {
|
/frameworks/base/tools/split-select/ |
RuleGenerator_test.cpp | 50 EXPECT_LT(263, (int) ConfigDescription::DENSITY_XHIGH); 51 EXPECT_GT(262, (int) ConfigDescription::DENSITY_HIGH); 52 EXPECT_LT(363, (int) ConfigDescription::DENSITY_XXHIGH); 53 EXPECT_GT(362, (int) ConfigDescription::DENSITY_XHIGH); 58 const ssize_t highIndex = densities.add(ConfigDescription::DENSITY_HIGH); 59 const ssize_t xhighIndex = densities.add(ConfigDescription::DENSITY_XHIGH); 60 const ssize_t xxhighIndex = densities.add(ConfigDescription::DENSITY_XXHIGH); 81 const ssize_t highIndex = densities.add(ConfigDescription::DENSITY_HIGH); 82 const ssize_t xhighIndex = densities.add(ConfigDescription::DENSITY_XHIGH); 83 const ssize_t xxhighIndex = densities.add(ConfigDescription::DENSITY_XXHIGH) [all...] |
/frameworks/base/tools/aapt/tests/ |
ResourceTable_test.cpp | 20 #include "ConfigDescription.h" 29 ConfigDescription defaultConfig = {}; 31 ConfigDescription landConfig = {}; 34 ConfigDescription sw600dpLandConfig = {}; 49 ConfigDescription defaultConfig = {}; 51 ConfigDescription v21Config = {}; 54 ConfigDescription sw600dpV13Config = {};
|
ResourceFilter_test.cpp | 23 #include "ConfigDescription.h" 34 ConfigDescription config; 49 ConfigDescription config; 59 ConfigDescription config; 70 ConfigDescription config; 82 ConfigDescription config; 93 ConfigDescription config; 104 ConfigDescription config; 117 ConfigDescription config; 130 ConfigDescription config [all...] |
AaptConfig_test.cpp | 21 #include "ConfigDescription.h" 27 static ::testing::AssertionResult TestParse(const String8& input, ConfigDescription* config=NULL) { 34 static ::testing::AssertionResult TestParse(const char* input, ConfigDescription* config=NULL) { 53 ConfigDescription config; 67 ConfigDescription config; 73 ConfigDescription config; 82 ConfigDescription config; 88 ConfigDescription config;
|
/frameworks/base/tools/aapt2/unflatten/ |
BinaryResourceParser.h | 63 std::unique_ptr<Item> parseValue(const ResourceNameRef& name, const ConfigDescription& config, 67 const ConfigDescription& config, 70 std::unique_ptr<Style> parseStyle(const ResourceNameRef& name, const ConfigDescription& config, 74 const ConfigDescription& config, 77 std::unique_ptr<Array> parseArray(const ResourceNameRef& name, const ConfigDescription& config, 81 const ConfigDescription& config,
|
/frameworks/base/tools/aapt2/link/ |
ProductFilter_test.cpp | 28 const ConfigDescription land = test::parseConfigOrDie("land"); 29 const ConfigDescription port = test::parseConfigOrDie("port"); 72 ConfigDescription::defaultConfig(), "", 77 ConfigDescription::defaultConfig(), "tablet", 86 ConfigDescription::defaultConfig(), 89 ConfigDescription::defaultConfig(), 98 ConfigDescription::defaultConfig(), "", 103 ConfigDescription::defaultConfig(), "tablet", 108 ConfigDescription::defaultConfig(), "no-sdcard", 122 ConfigDescription::defaultConfig(), "" [all...] |
Linkers.h | 30 struct ConfigDescription; 44 bool shouldGenerateVersionedResource(const ResourceEntry* entry, const ConfigDescription& config,
|
AutoVersioner.cpp | 17 #include "ConfigDescription.h" 28 bool shouldGenerateVersionedResource(const ResourceEntry* entry, const ConfigDescription& config, 49 ConfigDescription tempConfig(config); 114 ConfigDescription newConfig(configValue->config);
|
/frameworks/base/tools/aapt2/split/ |
TableSplitter.cpp | 17 #include "ConfigDescription.h" 30 using ConfigDensityGroups = std::map<ConfigDescription, std::vector<ResourceConfigValue*>>; 32 static ConfigDescription copyWithoutDensity(const ConfigDescription& config) { 33 ConfigDescription withoutDensity = config; 44 for (const ConfigDescription& config : constraints.configs) { 77 const ConfigDescription& config = entry.first; 83 ConfigDescription targetDensity = config; 105 std::set<ConfigDescription> mDensityIndependentConfigs; 106 std::map<ConfigDescription, uint16_t> mDensityDependentConfigToDensityMap [all...] |
TableSplitter.h | 20 #include "ConfigDescription.h" 32 std::set<ConfigDescription> configs;
|
/frameworks/base/tools/aapt2/test/ |
Common.h | 20 #include "ConfigDescription.h" 72 inline ConfigDescription parseConfigOrDie(const StringPiece& str) { 73 ConfigDescription config; 74 bool result = ConfigDescription::parse(str, &config); 81 const ConfigDescription& config, 94 const ConfigDescription& config) {
|