Home
last modified time | relevance | path

Searched refs:ConfigDescription (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/base/libs/androidfw/include/androidfw/
DConfigDescription.h68 struct ConfigDescription : public ResTable_config { struct
72 static const ConfigDescription& DefaultConfig();
81 static bool Parse(android::StringPiece str, ConfigDescription* out = nullptr);
88 static void ApplyVersionForCompatibility(ConfigDescription* config);
90 ConfigDescription();
91 ConfigDescription(const android::ResTable_config& o); // NOLINT(google-explicit-constructor)
92 ConfigDescription(const ConfigDescription& o);
93 ConfigDescription(ConfigDescription&& o) noexcept;
95 ConfigDescription& operator=(const android::ResTable_config& o); argument
96 ConfigDescription& operator=(const ConfigDescription& o); argument
[all …]
DIdmap.h97 explicit Result(std::map<ConfigDescription, Res_value> value) : data_(std::move(value)) { in Result() argument
117 const std::map<ConfigDescription, Res_value>& GetInlineValue() const { in GetInlineValue()
123 std::map<ConfigDescription, Res_value> > data_;
138 const ConfigDescription* configs,
146 const ConfigDescription* configurations_;
198 const ConfigDescription* configurations_;
216 const ConfigDescription* configs,
/frameworks/base/tools/aapt/
DConfigDescription.h26 struct ConfigDescription : public android::ResTable_config { struct
27 ConfigDescription() { in ConfigDescription() function
32 ConfigDescription(const android::ResTable_config&o) { // NOLINT(google-explicit-constructor) in ConfigDescription() function
37 ConfigDescription(const ConfigDescription&o) in ConfigDescription() argument
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; }
54 inline bool operator==(const ConfigDescription& o) const { return compare(o) == 0; }
55 inline bool operator!=(const ConfigDescription& o) const { return compare(o) != 0; }
[all …]
DResourceFilter.h52 ConfigDescription mDefault;
54 android::Vector<std::pair<ConfigDescription, uint32_t> > mConfigs;
81 explicit StrongResourceFilter(const std::set<ConfigDescription>& configs) in StrongResourceFilter()
87 std::set<ConfigDescription>::const_iterator iter = mConfigs.begin(); in match()
96 inline const std::set<ConfigDescription>& getConfigs() const { in getConfigs()
101 std::set<ConfigDescription> mConfigs;
DApkBuilder.cpp27 mSplits.add(new ApkSplit(std::set<ConfigDescription>(), mDefaultFilter, true)); in ApkBuilder()
30 status_t ApkBuilder::createSplitForConfigs(const std::set<ConfigDescription>& configs) { in createSplitForConfigs()
33 const std::set<ConfigDescription>& splitConfigs = mSplits[i]->getConfigs(); in createSplitForConfigs()
34 std::set<ConfigDescription>::const_iterator iter = configs.begin(); in createSplitForConfigs()
81 ApkSplit::ApkSplit(const std::set<ConfigDescription>& configs, const sp<ResourceFilter>& filter, bo… in ApkSplit()
83 std::set<ConfigDescription>::const_iterator iter = configs.begin(); in ApkSplit()
DApkBuilder.h44 android::status_t createSplitForConfigs(const std::set<ConfigDescription>& configs);
78 const std::set<ConfigDescription>& getConfigs() const { in getConfigs()
111 …ApkSplit(const std::set<ConfigDescription>& configs, const android::sp<ResourceFilter>& filter, bo…
113 std::set<ConfigDescription> mConfigs;
/frameworks/base/tools/aapt2/
DDominatorTree_test.cpp26 using ::android::ConfigDescription;
71 const ConfigDescription default_config = {}; in TEST()
72 const ConfigDescription land_config = test::ParseConfigOrDie("land"); in TEST()
73 const ConfigDescription sw600dp_land_config = test::ParseConfigOrDie("sw600dp-land-v13"); in TEST()
91 const ConfigDescription default_config = {}; in TEST()
92 const ConfigDescription land_config = test::ParseConfigOrDie("land"); in TEST()
93 const ConfigDescription sw600dp_land_config = test::ParseConfigOrDie("sw600dp-land-v13"); in TEST()
113 const ConfigDescription default_config = {}; in TEST()
114 const ConfigDescription en_config = test::ParseConfigOrDie("en"); in TEST()
115 const ConfigDescription en_v21_config = test::ParseConfigOrDie("en-v21"); in TEST()
[all …]
/frameworks/base/tools/aapt2/optimize/
DResourceDeduper_test.cpp23 using ::android::ConfigDescription;
30 const ConfigDescription default_config = {}; in TEST()
31 const ConfigDescription ldrtl_config = test::ParseConfigOrDie("ldrtl"); in TEST()
32 const ConfigDescription ldrtl_v21_config = test::ParseConfigOrDie("ldrtl-v21"); in TEST()
33 const ConfigDescription en_config = test::ParseConfigOrDie("en"); in TEST()
34 const ConfigDescription en_v21_config = test::ParseConfigOrDie("en-v21"); in TEST()
36 const ConfigDescription land_config = test::ParseConfigOrDie("land"); in TEST()
70 const ConfigDescription default_config = {}; in TEST()
71 const ConfigDescription ldrtl_config = test::ParseConfigOrDie("ldrtl"); in TEST()
72 const ConfigDescription ldrtl_v21_config = test::ParseConfigOrDie("ldrtl-v21"); in TEST()
[all …]
DMultiApkGenerator_test.cpp34 using ::android::ConfigDescription;
86 inline FileReference* ValueForConfig(ResourceTable* table, const ConfigDescription& config) { in ValueForConfig()
96 ConfigDescription default_ = ParseConfigOrDie("").CopyWithoutSdkVersion();
97 ConfigDescription mdpi_ = ParseConfigOrDie("mdpi").CopyWithoutSdkVersion();
98 ConfigDescription hdpi_ = ParseConfigOrDie("hdpi").CopyWithoutSdkVersion();
99 ConfigDescription xhdpi_ = ParseConfigOrDie("xhdpi").CopyWithoutSdkVersion();
100 ConfigDescription xxhdpi_ = ParseConfigOrDie("xxhdpi").CopyWithoutSdkVersion();
101 ConfigDescription xxxhdpi_ = ParseConfigOrDie("xxxhdpi").CopyWithoutSdkVersion();
102 ConfigDescription v19_ = ParseConfigOrDie("v19");
103 ConfigDescription v21_ = ParseConfigOrDie("v21");
/frameworks/base/tools/aapt/tests/
DResourceFilter_test.cpp34 ConfigDescription config; in TEST()
49 ConfigDescription config; in TEST()
59 ConfigDescription config; in TEST()
70 ConfigDescription config; in TEST()
82 ConfigDescription config; in TEST()
93 ConfigDescription config; in TEST()
104 ConfigDescription config; in TEST()
117 ConfigDescription config; in TEST()
130 ConfigDescription config; in TEST()
146 ConfigDescription config; in TEST()
[all …]
DAaptConfig_test.cpp26 static ::testing::AssertionResult TestParse(const String8& input, ConfigDescription* config=NULL) { in TestParse()
33 static ::testing::AssertionResult TestParse(const char* input, ConfigDescription* config=NULL) { in TestParse()
52 ConfigDescription config; in TEST()
66 ConfigDescription config; in TEST()
72 ConfigDescription config; in TEST()
81 ConfigDescription config; in TEST()
87 ConfigDescription config; in TEST()
102 ConfigDescription config; in TEST()
117 ConfigDescription config; in TEST()
DResourceTable_test.cpp28 ConfigDescription defaultConfig = {}; in TEST()
30 ConfigDescription landConfig = {}; in TEST()
33 ConfigDescription sw600dpLandConfig = {}; in TEST()
48 ConfigDescription defaultConfig = {}; in TEST()
50 ConfigDescription v21Config = {}; in TEST()
53 ConfigDescription sw600dpV13Config = {}; in TEST()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp29 using ::android::ConfigDescription;
68 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, ConfigDescription* out_config, in DeserializeConfigFromPb()
86 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_LAYOUTDIR) | in DeserializeConfigFromPb()
87 ConfigDescription::LAYOUTDIR_LTR; in DeserializeConfigFromPb()
91 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_LAYOUTDIR) | in DeserializeConfigFromPb()
92 ConfigDescription::LAYOUTDIR_RTL; in DeserializeConfigFromPb()
105 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) | in DeserializeConfigFromPb()
106 ConfigDescription::SCREENSIZE_SMALL; in DeserializeConfigFromPb()
110 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) | in DeserializeConfigFromPb()
111 ConfigDescription::SCREENSIZE_NORMAL; in DeserializeConfigFromPb()
[all …]
DProtoSerialize.cpp23 using android::ConfigDescription;
65 void SerializeConfig(const ConfigDescription& config, pb::Configuration* out_pb_config) { in SerializeConfig()
70 switch (config.screenLayout & ConfigDescription::MASK_LAYOUTDIR) { in SerializeConfig()
71 case ConfigDescription::LAYOUTDIR_LTR: in SerializeConfig()
75 case ConfigDescription::LAYOUTDIR_RTL: in SerializeConfig()
86 switch (config.screenLayout & ConfigDescription::MASK_SCREENSIZE) { in SerializeConfig()
87 case ConfigDescription::SCREENSIZE_SMALL: in SerializeConfig()
92 case ConfigDescription::SCREENSIZE_NORMAL: in SerializeConfig()
97 case ConfigDescription::SCREENSIZE_LARGE: in SerializeConfig()
102 case ConfigDescription::SCREENSIZE_XLARGE: in SerializeConfig()
[all …]
/frameworks/base/tools/split-select/
DRuleGenerator_test.cpp50 EXPECT_LT(263, (int) ConfigDescription::DENSITY_XHIGH); in TEST()
51 EXPECT_GT(262, (int) ConfigDescription::DENSITY_HIGH); in TEST()
52 EXPECT_LT(363, (int) ConfigDescription::DENSITY_XXHIGH); in TEST()
53 EXPECT_GT(362, (int) ConfigDescription::DENSITY_XHIGH); in TEST()
58 const ssize_t highIndex = densities.add(ConfigDescription::DENSITY_HIGH); in TEST()
59 const ssize_t xhighIndex = densities.add(ConfigDescription::DENSITY_XHIGH); in TEST()
60 const ssize_t xxhighIndex = densities.add(ConfigDescription::DENSITY_XXHIGH); in TEST()
81 const ssize_t highIndex = densities.add(ConfigDescription::DENSITY_HIGH); in TEST()
82 const ssize_t xhighIndex = densities.add(ConfigDescription::DENSITY_XHIGH); in TEST()
83 const ssize_t xxhighIndex = densities.add(ConfigDescription::DENSITY_XXHIGH); in TEST()
[all …]
/frameworks/base/libs/androidfw/tests/
DConfigDescription_test.cpp29 ConfigDescription* config = nullptr) { in TestParse()
30 if (ConfigDescription::Parse(input, config)) { in TestParse()
51 ConfigDescription config; in TEST()
68 ConfigDescription config; in TEST()
74 ConfigDescription config; in TEST()
83 ConfigDescription config; in TEST()
89 ConfigDescription config; in TEST()
104 ConfigDescription config; in TEST()
119 ConfigDescription config; in TEST()
134 ConfigDescription config; in TEST()
[all …]
/frameworks/base/tools/aapt2/filter/
DConfigFilter.cpp22 using ::android::ConfigDescription;
26 void AxisConfigFilter::AddConfig(ConfigDescription config) { in AddConfig()
27 uint32_t diff_mask = ConfigDescription::DefaultConfig().diff(config); in AddConfig()
55 static bool ScriptsMatch(const ConfigDescription& config, const ConfigDescription& entry) { in ScriptsMatch()
79 bool AxisConfigFilter::Match(const ConfigDescription& config) const { in Match()
80 const uint32_t mask = ConfigDescription::DefaultConfig().diff(config); in Match()
88 const ConfigDescription& target = entry.first; in Match()
DConfigFilter.h37 virtual bool Match(const android::ConfigDescription& config) const = 0;
49 void AddConfig(android::ConfigDescription config);
51 bool Match(const android::ConfigDescription& config) const override;
54 std::set<std::pair<android::ConfigDescription, uint32_t>> configs_;
/frameworks/base/tools/aapt2/link/
DResourceExcluder_test.cpp23 using ::android::ConfigDescription;
28 ConfigDescription BuildArg(const std::string arg) { in BuildArg()
29 ConfigDescription config_description; in BuildArg()
30 ConfigDescription::Parse(arg, &config_description); in BuildArg()
34 std::vector<ConfigDescription> BuildArgList(const std::string arg) { in BuildArgList()
35 ConfigDescription config_description; in BuildArgList()
36 ConfigDescription::Parse(arg, &config_description); in BuildArgList()
46 ConfigDescription default_config; in TEST()
64 ConfigDescription default_config; in TEST()
82 ConfigDescription default_config; in TEST()
[all …]
DNoDefaultResourceRemover.cpp25 using android::ConfigDescription;
43 const int config = ConfigDescription::DefaultConfig().diff(config_value->config); in KeepResource()
46 if (config == ConfigDescription::CONFIG_LOCALE) { in KeepResource()
51 else if (config == ConfigDescription::CONFIG_VERSION in KeepResource()
57 else if (config == ConfigDescription::CONFIG_DENSITY in KeepResource()
58 || (config == (ConfigDescription::CONFIG_DENSITY | ConfigDescription::CONFIG_VERSION) in KeepResource()
DAutoVersioner_test.cpp23 using ::android::ConfigDescription;
29 const ConfigDescription land_config = test::ParseConfigOrDie("land"); in TEST()
30 const ConfigDescription sw600dp_land_config = test::ParseConfigOrDie("sw600dp-land"); in TEST()
33 …entry.values.push_back(util::make_unique<ResourceConfigValue>(ConfigDescription::DefaultConfig(), … in TEST()
37 EXPECT_TRUE(ShouldGenerateVersionedResource(&entry, ConfigDescription::DefaultConfig(), 17)); in TEST()
42 const ConfigDescription sw600dp_v13_config = test::ParseConfigOrDie("sw600dp-v13"); in TEST()
43 const ConfigDescription v21_config = test::ParseConfigOrDie("v21"); in TEST()
46 …entry.values.push_back(util::make_unique<ResourceConfigValue>(ConfigDescription::DefaultConfig(), … in TEST()
50 EXPECT_TRUE(ShouldGenerateVersionedResource(&entry, ConfigDescription::DefaultConfig(), 17)); in TEST()
51 EXPECT_FALSE(ShouldGenerateVersionedResource(&entry, ConfigDescription::DefaultConfig(), 22)); in TEST()
DResourceExcluder.h24 using android::ConfigDescription;
31 explicit ResourceExcluder(std::vector<ConfigDescription>& excluded_configs) { in ResourceExcluder()
33 int diff_from_default = config.diff(ConfigDescription::DefaultConfig()); in ResourceExcluder()
43 std::set<std::pair<ConfigDescription, int>> excluded_configs_;
DResourceExcluder.cpp25 using android::ConfigDescription;
31 void RemoveIfExcluded(std::set<std::pair<ConfigDescription, int>>& excluded_configs_, in RemoveIfExcluded() argument
35 const ConfigDescription& config = value->config; in RemoveIfExcluded()
38 if (config == ConfigDescription::DefaultConfig()) { in RemoveIfExcluded()
44 const ConfigDescription& excluded_config = excluded_pair.first; in RemoveIfExcluded()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp33 using ::android::ConfigDescription;
38 using ConfigDensityGroups = std::map<ConfigDescription, std::vector<ResourceConfigValue*>>;
40 static ConfigDescription CopyWithoutDensity(const ConfigDescription& config) { in CopyWithoutDensity()
41 ConfigDescription without_density = config; in CopyWithoutDensity()
52 for (const ConfigDescription& config : constraints.configs) { in SplitValueSelector()
86 const ConfigDescription& config = entry.first; in SelectValues()
93 ConfigDescription target_density = config; in SelectValues()
116 std::set<ConfigDescription> density_independent_configs_;
117 std::map<ConfigDescription, uint16_t>
129 const ConfigDescription& config = entry.first; in MarkNonPreferredDensitiesAsClaimed()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.h64 const android::ConfigDescription& config,
68 const android::ConfigDescription& config,
72 const android::ConfigDescription& config,
76 const android::ConfigDescription& config,
80 const android::ConfigDescription& config,
84 const android::ConfigDescription& config,

1234