Home
last modified time | relevance | path

Searched refs:ResTable_config (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/libs/androidfw/tests/
DConfig_test.cpp27 static ResTable_config selectBest(const ResTable_config& target, in selectBest()
28 const Vector<ResTable_config>& configs) { in selectBest()
29 ResTable_config bestConfig; in selectBest()
33 const ResTable_config& thisConfig = configs[i]; in selectBest()
45 static ResTable_config buildDensityConfig(int density) { in buildDensityConfig()
46 ResTable_config config; in buildDensityConfig()
54 ResTable_config deviceConfig; in TEST()
56 deviceConfig.density = ResTable_config::DENSITY_XHIGH; in TEST()
59 Vector<ResTable_config> configs; in TEST()
61 ResTable_config expectedBest = buildDensityConfig(ResTable_config::DENSITY_HIGH); in TEST()
[all …]
DConfigLocale_test.cpp25 ResTable_config config; in TEST()
48 ResTable_config config; in TEST()
63 ResTable_config config; in TEST()
79 ResTable_config config; in TEST()
103 ResTable_config config; in TEST()
115 const char* script, const char* variant, ResTable_config* out) { in fillIn()
116 memset(out, 0, sizeof(ResTable_config)); in fillIn()
135 ResTable_config l; in TEST()
136 ResTable_config r; in TEST()
174 ResTable_config test; in TEST()
DSplit_test.cpp59 void makeConfigFrench(ResTable_config* config) { in makeConfigFrench()
71 ResTable_config frenchConfig; in TEST()
79 ResTable_config expectedConfig; in TEST()
83 ResTable_config config; in TEST()
96 ResTable_config expectedConfig; in TEST()
106 ResTable_config config; in TEST()
117 ResTable_config expectedConfig; in TEST()
147 ResTable_config defaultConfig; in TEST()
166 EXPECT_EQ(ResTable_config::CONFIG_LOCALE, frSpecFlags); in TEST()
170 ResTable_config baseConfig; in TEST()
[all …]
DTestHelpers.h23 static inline bool operator==(const android::ResTable_config& a, const android::ResTable_config& b)…
27 static inline ::std::ostream& operator<<(::std::ostream& out, const android::ResTable_config& c) {
/frameworks/base/tools/aapt2/
DConfigDescription.cpp29 using android::ResTable_config;
33 static bool parseMcc(const char* name, ResTable_config* out) { in parseMcc()
63 static bool parseMnc(const char* name, ResTable_config* out) { in parseMnc()
94 static bool parseLayoutDirection(const char* name, ResTable_config* out) { in parseLayoutDirection()
97 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection()
98 | ResTable_config::LAYOUTDIR_ANY; in parseLayoutDirection()
102 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection()
103 | ResTable_config::LAYOUTDIR_LTR; in parseLayoutDirection()
107 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection()
108 | ResTable_config::LAYOUTDIR_RTL; in parseLayoutDirection()
[all …]
DConfigDescription.h31 struct ConfigDescription : public android::ResTable_config {
49 ConfigDescription(const android::ResTable_config& o);
53 ConfigDescription& operator=(const android::ResTable_config& o);
67 size = sizeof(android::ResTable_config); in ConfigDescription()
70 inline ConfigDescription::ConfigDescription(const android::ResTable_config& o) { in ConfigDescription()
71 *static_cast<android::ResTable_config*>(this) = o; in ConfigDescription()
72 size = sizeof(android::ResTable_config); in ConfigDescription()
76 *static_cast<android::ResTable_config*>(this) = o; in ConfigDescription()
83 inline ConfigDescription& ConfigDescription::operator=(const android::ResTable_config& o) {
84 *static_cast<android::ResTable_config*>(this) = o;
[all …]
DLocale.h51 void initFromResTable(const android::ResTable_config& config);
56 void writeTo(android::ResTable_config* out) const;
DLocale.cpp27 using android::ResTable_config;
249 void LocaleValue::initFromResTable(const ResTable_config& config) { in initFromResTable()
261 void LocaleValue::writeTo(ResTable_config* out) const { in writeTo()
/frameworks/base/tools/aapt/
DAaptConfig.cpp28 using android::ResTable_config;
252 if (config->screenLayout2 & ResTable_config::MASK_SCREENROUND) { in applyVersionForCompatibility()
254 } else if (config->density == ResTable_config::DENSITY_ANY) { in applyVersionForCompatibility()
256 } else if (config->smallestScreenWidthDp != ResTable_config::SCREENWIDTH_ANY in applyVersionForCompatibility()
257 || config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY in applyVersionForCompatibility()
258 || config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) { in applyVersionForCompatibility()
260 } else if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) in applyVersionForCompatibility()
261 != ResTable_config::UI_MODE_TYPE_ANY in applyVersionForCompatibility()
262 || (config->uiMode & ResTable_config::MASK_UI_MODE_NIGHT) in applyVersionForCompatibility()
263 != ResTable_config::UI_MODE_NIGHT_ANY) { in applyVersionForCompatibility()
[all …]
DAaptConfig.h55 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 parseOrientation(const char* str, android::ResTable_config* out = NULL);
[all …]
DConfigDescription.h26 struct ConfigDescription : public android::ResTable_config {
29 size = sizeof(android::ResTable_config); in ConfigDescription()
32 ConfigDescription(const android::ResTable_config&o) { in ConfigDescription()
33 *static_cast<android::ResTable_config*>(this) = o; in ConfigDescription()
34 size = sizeof(android::ResTable_config); in ConfigDescription()
38 *static_cast<android::ResTable_config*>(this) = o; in ConfigDescription()
41 ConfigDescription& operator=(const android::ResTable_config& o) {
42 *static_cast<android::ResTable_config*>(this) = o;
43 size = sizeof(android::ResTable_config);
48 *static_cast<android::ResTable_config*>(this) = o;
DResourceFilter.cpp42 entry.second &= ~ResTable_config::CONFIG_VERSION; in parse()
45 if ((entry.second & ResTable_config::CONFIG_DENSITY) != 0) { in parse()
48 entry.second &= ~ResTable_config::CONFIG_DENSITY; in parse()
58 WeakResourceFilter::match(const ResTable_config& config) const in match()
74 } else if ((diff & entry.second) == ResTable_config::CONFIG_LOCALE) { in match()
81 matchedAxis |= ResTable_config::CONFIG_LOCALE; in match()
84 } else if ((diff & entry.second) == ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { in match()
89 matchedAxis |= ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE; in match()
DResourceFilter.h23 virtual bool match(const android::ResTable_config& config) const = 0;
37 bool match(const android::ResTable_config& config) const;
86 bool match(const android::ResTable_config& config) const { in match()
112 bool match(const android::ResTable_config& config) const { in match()
129 bool match(const android::ResTable_config& config) const { in match()
DStringPool.h56 Vector<ResTable_config> configs;
99 const String8* configTypeName = NULL, const ResTable_config* config = NULL);
102 const String8* configTypeName = NULL, const ResTable_config* config = NULL);
DResourceTable.h62 const ResTable_config& defParams,
144 const ResTable_config* params = NULL,
154 const ResTable_config* params = NULL,
167 const ResTable_config* params = NULL,
179 const ResTable_config& config) const;
421 void addEntry(const ResTable_config& config, const sp<Entry>& entry) { in addEntry()
477 const ResTable_config* config = NULL,
577 const ResTable_config* config = NULL,
580 const ResTable_config* config = NULL) const;
/frameworks/base/native/android/
Dconfiguration.cpp83 return config->inputFlags&ResTable_config::MASK_KEYSHIDDEN; in AConfiguration_getKeysHidden()
87 return (config->inputFlags&ResTable_config::MASK_NAVHIDDEN) in AConfiguration_getNavHidden()
88 >> ResTable_config::SHIFT_NAVHIDDEN; in AConfiguration_getNavHidden()
96 return config->screenLayout&ResTable_config::MASK_SCREENSIZE; in AConfiguration_getScreenSize()
100 return (config->screenLayout&ResTable_config::MASK_SCREENLONG) in AConfiguration_getScreenLong()
101 >> ResTable_config::SHIFT_SCREENLONG; in AConfiguration_getScreenLong()
105 return (config->screenLayout2&ResTable_config::MASK_SCREENROUND); in AConfiguration_getScreenRound()
109 return config->uiMode&ResTable_config::MASK_UI_MODE_TYPE; in AConfiguration_getUiModeType()
113 return (config->uiMode&ResTable_config::MASK_UI_MODE_NIGHT) in AConfiguration_getUiModeNight()
114 >> ResTable_config::SHIFT_UI_MODE_NIGHT; in AConfiguration_getUiModeNight()
[all …]
/frameworks/base/tools/aapt/tests/
DAaptConfig_test.cpp84 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); in TEST()
90 EXPECT_EQ(android::ResTable_config::SCREENROUND_YES, in TEST()
91 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST()
96 EXPECT_EQ(android::ResTable_config::SCREENROUND_NO, in TEST()
97 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST()
DResourceTable_test.cpp32 landConfig.orientation = ResTable_config::ORIENTATION_LAND; in TEST()
35 sw600dpLandConfig.orientation = ResTable_config::ORIENTATION_LAND; in TEST()
/frameworks/base/include/androidfw/
DResourceTypes.h897 struct ResTable_config struct
1153 void copyFromDeviceNoSwap(const ResTable_config& o); argument
1155 void copyFromDtoH(const ResTable_config& o);
1159 int compare(const ResTable_config& o) const;
1160 int compareLogical(const ResTable_config& o) const;
1186 int diff(const ResTable_config& o) const; argument
1189 bool isMoreSpecificThan(const ResTable_config& o) const;
1201 bool isBetterThan(const ResTable_config& o, const ResTable_config* requested) const;
1209 bool match(const ResTable_config& settings) const;
1256 int isLocaleMoreSpecificThan(const ResTable_config &o) const;
[all …]
DAssetManager.h55 struct ResTable_config;
139 void setConfiguration(const ResTable_config& config, const char* locale = NULL);
141 void getConfiguration(ResTable_config* outConfig) const;
377 ResTable_config* mConfig;
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1758 void ResTable_config::copyFromDeviceNoSwap(const ResTable_config& o) { in copyFromDeviceNoSwap()
1760 if (size >= sizeof(ResTable_config)) { in copyFromDeviceNoSwap()
1764 memset(((uint8_t*)this)+size, 0, sizeof(ResTable_config)-size); in copyFromDeviceNoSwap()
1816 void ResTable_config::packLanguage(const char* language) { in packLanguage()
1820 void ResTable_config::packRegion(const char* region) { in packRegion()
1824 size_t ResTable_config::unpackLanguage(char language[4]) const { in unpackLanguage()
1828 size_t ResTable_config::unpackRegion(char region[4]) const { in unpackRegion()
1833 void ResTable_config::copyFromDtoH(const ResTable_config& o) { in copyFromDtoH()
1835 size = sizeof(ResTable_config); in copyFromDtoH()
1848 void ResTable_config::swapHtoD() { in swapHtoD()
[all …]
/frameworks/base/tools/split-select/
DSplitSelector_test.cpp62 ASSERT_GT(ResTable_config::DENSITY_HIGH, 180); in TEST()
63 ASSERT_LT(ResTable_config::DENSITY_HIGH, 263); in TEST()
DMain.cpp110 outConfig->orientation = ResTable_config::ORIENTATION_ANY; in removeRuntimeQualifiers()
111 outConfig->screenWidth = ResTable_config::SCREENWIDTH_ANY; in removeRuntimeQualifiers()
112 outConfig->screenHeight = ResTable_config::SCREENHEIGHT_ANY; in removeRuntimeQualifiers()
113 outConfig->uiMode &= ResTable_config::UI_MODE_NIGHT_ANY; in removeRuntimeQualifiers()
215 Vector<ResTable_config> configs; in extractSplitDescriptionsFromApk()
DRuleGenerator.cpp36 if (allDensities[index] != ResTable_config::DENSITY_ANY) { in generateDensity()
41 allDensities.end(), (int) ResTable_config::DENSITY_ANY) != allDensities.end(); in generateDensity()
59 … if (index + 1 < allDensities.size() && allDensities[index + 1] != ResTable_config::DENSITY_ANY) { in generateDensity()
/frameworks/base/include/android_runtime/
Dandroid_content_res_Configuration.h25 struct AConfiguration : android::ResTable_config {

12