HomeSort by relevance Sort by last modified time
    Searched refs:ConfigDescription (Results 1 - 25 of 78) sorted by null

1 2 3 4

  /frameworks/base/tools/aapt2/
ConfigDescription.h 31 struct ConfigDescription : public android::ResTable_config {
35 static const ConfigDescription& DefaultConfig();
44 static bool Parse(const android::StringPiece& str, ConfigDescription* out = nullptr);
51 static void ApplyVersionForCompatibility(ConfigDescription* config);
53 ConfigDescription();
54 ConfigDescription(const android::ResTable_config& o); // NOLINT(implicit)
55 ConfigDescription(const ConfigDescription& o);
56 ConfigDescription(ConfigDescription&& o)
    [all...]
DominatorTree_test.cpp 70 const ConfigDescription default_config = {};
71 const ConfigDescription land_config = test::ParseConfigOrDie("land");
72 const ConfigDescription sw600dp_land_config = test::ParseConfigOrDie("sw600dp-land-v13");
90 const ConfigDescription default_config = {};
91 const ConfigDescription land_config = test::ParseConfigOrDie("land");
92 const ConfigDescription sw600dp_land_config = test::ParseConfigOrDie("sw600dp-land-v13");
112 const ConfigDescription default_config = {};
113 const ConfigDescription en_config = test::ParseConfigOrDie("en");
114 const ConfigDescription en_v21_config = test::ParseConfigOrDie("en-v21");
115 const ConfigDescription ldrtl_config = test::ParseConfigOrDie("ldrtl-v4")
    [all...]
ResourceTable.h 20 #include "ConfigDescription.h"
69 const ConfigDescription config;
77 ResourceConfigValue(const ConfigDescription& config, const android::StringPiece& product)
106 ResourceConfigValue* FindValue(const ConfigDescription& config);
108 ResourceConfigValue* FindValue(const ConfigDescription& config,
111 ResourceConfigValue* FindOrCreateValue(const ConfigDescription& config,
113 std::vector<ResourceConfigValue*> FindAllValues(const ConfigDescription& config);
185 bool AddResource(const ResourceNameRef& name, const ConfigDescription& config,
190 const ConfigDescription& config, const android::StringPiece& product,
193 bool AddFileReference(const ResourceNameRef& name, const ConfigDescription& config
    [all...]
ConfigDescription_test.cpp 17 #include "ConfigDescription.h"
31 const StringPiece& input, ConfigDescription* config = nullptr) {
32 if (ConfigDescription::Parse(input, config)) {
53 ConfigDescription config;
70 ConfigDescription config;
76 ConfigDescription config;
85 ConfigDescription config;
91 ConfigDescription config;
106 ConfigDescription config;
121 ConfigDescription config
    [all...]
  /frameworks/base/tools/aapt/
ConfigDescription.h 26 struct ConfigDescription : public android::ResTable_config {
27 ConfigDescription() {
32 ConfigDescription(const android::ResTable_config&o) { // NOLINT(implicit)
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 explicit 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();
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 23 #include "ConfigDescription.h"
37 virtual bool Match(const ConfigDescription& config) const = 0;
49 void AddConfig(ConfigDescription config);
51 bool Match(const ConfigDescription& config) const override;
54 std::set<std::pair<ConfigDescription, uint32_t>> configs_;
ConfigFilter.cpp 21 #include "ConfigDescription.h"
25 void AxisConfigFilter::AddConfig(ConfigDescription config) {
26 uint32_t diff_mask = ConfigDescription::DefaultConfig().diff(config);
54 static bool ScriptsMatch(const ConfigDescription& config, const ConfigDescription& entry) {
78 bool AxisConfigFilter::Match(const ConfigDescription& config) const {
79 const uint32_t mask = ConfigDescription::DefaultConfig().diff(config);
87 const ConfigDescription& target = entry.first;
  /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;
103 ConfigDescription config;
118 ConfigDescription config
    [all...]
  /frameworks/base/tools/aapt2/optimize/
ResourceDeduper_test.cpp 29 const ConfigDescription default_config = {};
30 const ConfigDescription ldrtl_config = test::ParseConfigOrDie("ldrtl");
31 const ConfigDescription ldrtl_v21_config = test::ParseConfigOrDie("ldrtl-v21");
32 const ConfigDescription en_config = test::ParseConfigOrDie("en");
33 const ConfigDescription en_v21_config = test::ParseConfigOrDie("en-v21");
35 const ConfigDescription land_config = test::ParseConfigOrDie("land");
67 const ConfigDescription default_config = {};
68 const ConfigDescription ldrtl_config = test::ParseConfigOrDie("ldrtl");
69 const ConfigDescription ldrtl_v21_config = test::ParseConfigOrDie("ldrtl-v21");
71 const ConfigDescription land_config = test::ParseConfigOrDie("land")
    [all...]
  /frameworks/base/tools/aapt2/link/
NoDefaultResourceRemover.cpp 25 static bool IsDefaultConfigRequired(const ConfigDescription& config) {
29 if (ConfigDescription::DefaultConfig().diff(config) == ConfigDescription::CONFIG_LOCALE) {
56 const ConfigDescription default_config = ConfigDescription::DefaultConfig();
ProductFilter_test.cpp 26 const ConfigDescription land = test::ParseConfigOrDie("land");
27 const ConfigDescription port = test::ParseConfigOrDie("port");
67 ConfigDescription::DefaultConfig(), "",
72 ConfigDescription::DefaultConfig(), "tablet",
81 ConfigDescription::DefaultConfig(), ""));
84 ConfigDescription::DefaultConfig(), "tablet"));
93 ConfigDescription::DefaultConfig(), "",
98 ConfigDescription::DefaultConfig(), "tablet",
103 ConfigDescription::DefaultConfig(), "no-sdcard",
117 ConfigDescription::DefaultConfig(), ""
    [all...]
AutoVersioner_test.cpp 19 #include "ConfigDescription.h"
27 const ConfigDescription land_config = test::ParseConfigOrDie("land");
28 const ConfigDescription sw600dp_land_config = test::ParseConfigOrDie("sw600dp-land");
31 entry.values.push_back(util::make_unique<ResourceConfigValue>(ConfigDescription::DefaultConfig(), ""));
35 EXPECT_TRUE(ShouldGenerateVersionedResource(&entry, ConfigDescription::DefaultConfig(), 17));
40 const ConfigDescription sw600dp_v13_config = test::ParseConfigOrDie("sw600dp-v13");
41 const ConfigDescription v21_config = test::ParseConfigOrDie("v21");
44 entry.values.push_back(util::make_unique<ResourceConfigValue>(ConfigDescription::DefaultConfig(), ""));
48 EXPECT_TRUE(ShouldGenerateVersionedResource(&entry, ConfigDescription::DefaultConfig(), 17));
49 EXPECT_FALSE(ShouldGenerateVersionedResource(&entry, ConfigDescription::DefaultConfig(), 22))
    [all...]
Linkers.h 35 struct ConfigDescription;
46 bool ShouldGenerateVersionedResource(const ResourceEntry* entry, const ConfigDescription& config,
51 ApiVersion FindNextApiVersionForConfig(const ResourceEntry* entry, const ConfigDescription& config);
  /frameworks/base/tools/aapt2/format/proto/
ProtoDeserialize.cpp 64 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, ConfigDescription* out_config,
82 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_LAYOUTDIR) |
83 ConfigDescription::LAYOUTDIR_LTR;
87 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_LAYOUTDIR) |
88 ConfigDescription::LAYOUTDIR_RTL;
101 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) |
102 ConfigDescription::SCREENSIZE_SMALL;
106 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) |
107 ConfigDescription::SCREENSIZE_NORMAL;
111 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE)
    [all...]
ProtoSerialize.cpp 58 void SerializeConfig(const ConfigDescription& config, pb::Configuration* out_pb_config) {
63 switch (config.screenLayout & ConfigDescription::MASK_LAYOUTDIR) {
64 case ConfigDescription::LAYOUTDIR_LTR:
68 case ConfigDescription::LAYOUTDIR_RTL:
79 switch (config.screenLayout & ConfigDescription::MASK_SCREENSIZE) {
80 case ConfigDescription::SCREENSIZE_SMALL:
85 case ConfigDescription::SCREENSIZE_NORMAL:
90 case ConfigDescription::SCREENSIZE_LARGE:
95 case ConfigDescription::SCREENSIZE_XLARGE:
101 switch (config.screenLayout & ConfigDescription::MASK_SCREENLONG)
    [all...]
ProtoDeserialize.h 23 #include "ConfigDescription.h"
37 const ConfigDescription& config,
43 const ConfigDescription& config, StringPool* value_pool,
52 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, ConfigDescription* out_config,
  /frameworks/base/tools/aapt2/format/binary/
BinaryResourceParser.h 57 std::unique_ptr<Item> ParseValue(const ResourceNameRef& name, const ConfigDescription& config,
60 std::unique_ptr<Value> ParseMapEntry(const ResourceNameRef& name, const ConfigDescription& config,
63 std::unique_ptr<Style> ParseStyle(const ResourceNameRef& name, const ConfigDescription& config,
66 std::unique_ptr<Attribute> ParseAttr(const ResourceNameRef& name, const ConfigDescription& config,
69 std::unique_ptr<Array> ParseArray(const ResourceNameRef& name, const ConfigDescription& config,
72 std::unique_ptr<Plural> ParsePlural(const ResourceNameRef& name, const ConfigDescription& config,
  /frameworks/base/tools/aapt2/split/
TableSplitter.cpp 28 #include "ConfigDescription.h"
35 using ConfigDensityGroups = std::map<ConfigDescription, std::vector<ResourceConfigValue*>>;
37 static ConfigDescription CopyWithoutDensity(const ConfigDescription& config) {
38 ConfigDescription without_density = config;
49 for (const ConfigDescription& config : constraints.configs) {
83 const ConfigDescription& config = entry.first;
90 ConfigDescription target_density = config;
113 std::set<ConfigDescription> density_independent_configs_;
114 std::map<ConfigDescription, uint16_t
    [all...]

Completed in 556 milliseconds

1 2 3 4