/frameworks/base/libs/androidfw/tests/ |
D | Config_test.cpp | 28 static ResTable_config selectBest(const ResTable_config& target, in selectBest() 29 const Vector<ResTable_config>& configs) { in selectBest() 30 ResTable_config bestConfig; in selectBest() 34 const ResTable_config& thisConfig = configs[i]; in selectBest() 46 static ResTable_config buildDensityConfig(int density) { in buildDensityConfig() 47 ResTable_config config; in buildDensityConfig() 55 ResTable_config deviceConfig; in TEST() 57 deviceConfig.density = ResTable_config::DENSITY_XHIGH; in TEST() 60 Vector<ResTable_config> configs; in TEST() 62 ResTable_config expectedBest = in TEST() [all …]
|
D | ConfigDescription_test.cpp | 85 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); in TEST() 91 EXPECT_EQ(android::ResTable_config::SCREENROUND_YES, in TEST() 92 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST() 97 EXPECT_EQ(android::ResTable_config::SCREENROUND_NO, in TEST() 98 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST() 106 EXPECT_EQ(android::ResTable_config::WIDE_COLOR_GAMUT_YES, in TEST() 107 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST() 112 EXPECT_EQ(android::ResTable_config::WIDE_COLOR_GAMUT_NO, in TEST() 113 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST() 121 EXPECT_EQ(android::ResTable_config::HDR_YES, in TEST() [all …]
|
D | Split_test.cpp | 29 static void makeConfigFrench(ResTable_config* config) { in makeConfigFrench() 73 ResTable_config frenchConfig; in TEST_F() 82 ResTable_config expectedConfig; in TEST_F() 86 ResTable_config config; in TEST_F() 102 ResTable_config expectedConfig; in TEST_F() 114 ResTable_config config; in TEST_F() 126 ResTable_config expectedConfig; in TEST_F() 155 ResTable_config defaultConfig; in TEST_F() 178 EXPECT_EQ(static_cast<uint32_t>(ResTable_config::CONFIG_LOCALE | ResTable_typeSpec::SPEC_PUBLIC), in TEST_F() 183 ResTable_config baseConfig; in TEST_F() [all …]
|
D | CommonHelpers.h | 37 static inline bool operator==(const ResTable_config& a, const ResTable_config& b) { 41 static inline ::std::ostream& operator<<(::std::ostream& out, const ResTable_config& c) {
|
D | BenchmarkHelpers.cpp | 25 void GetResourceBenchmarkOld(const std::vector<std::string>& paths, const ResTable_config* config, in GetResourceBenchmarkOld() 43 ResTable_config selected_config; in GetResourceBenchmarkOld() 54 void GetResourceBenchmark(const std::vector<std::string>& paths, const ResTable_config* config, in GetResourceBenchmark()
|
D | BenchmarkHelpers.h | 30 void GetResourceBenchmarkOld(const std::vector<std::string>& paths, const ResTable_config* config, 33 void GetResourceBenchmark(const std::vector<std::string>& paths, const ResTable_config* config,
|
D | ConfigLocale_test.cpp | 26 ResTable_config config; in TEST() 49 ResTable_config config; in TEST() 64 ResTable_config config; in TEST() 80 ResTable_config config; in TEST() 104 ResTable_config config; in TEST() 116 const char* script, const char* variant, ResTable_config* out) { in fillIn() 117 memset(out, 0, sizeof(ResTable_config)); in fillIn() 140 ResTable_config l; in TEST() 141 ResTable_config r; in TEST() 191 ResTable_config test; in TEST() [all …]
|
D | AssetManager2_bench.cpp | 116 ResTable_config config; in BM_AssetManagerGetResourceFrameworkLocale() 124 ResTable_config config; in BM_AssetManagerGetResourceFrameworkLocaleOld() 229 ResTable_config config; in BM_AssetManagerSetConfigurationFramework() 231 std::vector<ResTable_config> configs; in BM_AssetManagerSetConfigurationFramework() 251 ResTable_config config; in BM_AssetManagerSetConfigurationFrameworkOld()
|
D | AssetManager2_test.cpp | 110 ResTable_config desired_config; in TEST_F() 134 ResTable_config desired_config; in TEST_F() 249 EXPECT_EQ(ResTable_typeSpec::SPEC_PUBLIC | ResTable_config::CONFIG_LOCALE, *value); in TEST_F() 470 .density = ResTable_config::DENSITY_XHIGH, in TEST_F() 481 ResTable_config::DENSITY_XXHIGH); in TEST_F() 511 value.flags = ResTable_config::CONFIG_KEYBOARD; in TEST_F() 518 EXPECT_EQ(ResTable_typeSpec::SPEC_PUBLIC | ResTable_config::CONFIG_KEYBOARD, value.flags); in TEST_F() 524 value.flags = ResTable_config::CONFIG_COLOR_MODE; in TEST_F() 531 EXPECT_EQ(ResTable_typeSpec::SPEC_PUBLIC | ResTable_config::CONFIG_COLOR_MODE, value.flags); in TEST_F() 570 static bool IsConfigurationPresent(const std::set<ResTable_config>& configurations, in IsConfigurationPresent() [all …]
|
D | SparseEntry_bench.cpp | 30 const std::vector<std::string>&, const ResTable_config*, in BM_SparseEntryGetResourceHelper() argument 32 ResTable_config config; in BM_SparseEntryGetResourceHelper() 34 config.orientation = ResTable_config::ORIENTATION_LAND; in BM_SparseEntryGetResourceHelper()
|
/frameworks/base/tools/aapt/ |
D | AaptConfig.cpp | 28 using android::ResTable_config; 268 if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) in applyVersionForCompatibility() 269 == ResTable_config::UI_MODE_TYPE_VR_HEADSET in applyVersionForCompatibility() 270 || config->colorMode & ResTable_config::MASK_WIDE_COLOR_GAMUT in applyVersionForCompatibility() 271 || config->colorMode & ResTable_config::MASK_HDR) { in applyVersionForCompatibility() 273 } else if (config->screenLayout2 & ResTable_config::MASK_SCREENROUND) { in applyVersionForCompatibility() 275 } else if (config->density == ResTable_config::DENSITY_ANY) { in applyVersionForCompatibility() 277 } else if (config->smallestScreenWidthDp != ResTable_config::SCREENWIDTH_ANY in applyVersionForCompatibility() 278 || config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY in applyVersionForCompatibility() 279 || config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) { in applyVersionForCompatibility() [all …]
|
D | AaptConfig.h | 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); [all …]
|
D | ConfigDescription.h | 26 struct ConfigDescription : public android::ResTable_config { 29 size = sizeof(android::ResTable_config); in ConfigDescription() 32 ConfigDescription(const android::ResTable_config&o) { // NOLINT(google-explicit-constructor) in ConfigDescription() 33 *static_cast<android::ResTable_config*>(this) = o; in ConfigDescription() 34 size = sizeof(android::ResTable_config); in ConfigDescription() 38 : android::ResTable_config(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;
|
D | ResourceFilter.cpp | 42 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() 71 scriptsMatch(const ResTable_config& config, const ResTable_config& entry) { in scriptsMatch() 98 WeakResourceFilter::match(const ResTable_config& config) const in match() 114 } else if ((diff & entry.second) == ResTable_config::CONFIG_LOCALE) { in match() 130 matchedAxis |= ResTable_config::CONFIG_LOCALE; in match() 132 } else if ((diff & entry.second) == ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { in match() 137 matchedAxis |= ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE; in match()
|
D | ResourceFilter.h | 23 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()
|
D | StringPool.h | 53 Vector<ResTable_config> configs; 96 const String8* configTypeName = NULL, const ResTable_config* config = NULL); 99 const String8* configTypeName = NULL, const ResTable_config* config = NULL);
|
/frameworks/base/libs/androidfw/ |
D | ConfigDescription.cpp | 36 static bool parseMcc(const char* name, ResTable_config* out) { in parseMcc() 66 static bool parseMnc(const char* name, ResTable_config* out) { in parseMnc() 97 static bool parseGrammaticalInflection(const std::string& name, ResTable_config* out) { in parseGrammaticalInflection() 100 if (out) out->grammaticalInflection = ResTable_config::GRAMMATICAL_GENDER_FEMININE; in parseGrammaticalInflection() 104 if (out) out->grammaticalInflection = ResTable_config::GRAMMATICAL_GENDER_MASCULINE; in parseGrammaticalInflection() 108 if (out) out->grammaticalInflection = ResTable_config::GRAMMATICAL_GENDER_NEUTER; in parseGrammaticalInflection() 114 static bool parseLayoutDirection(const char* name, ResTable_config* out) { in parseLayoutDirection() 118 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection() 119 ResTable_config::LAYOUTDIR_ANY; in parseLayoutDirection() 124 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection() [all …]
|
D | ResourceTypes.cpp | 2034 void ResTable_config::copyFromDeviceNoSwap(const ResTable_config& o) { in copyFromDeviceNoSwap() 2036 if (size >= sizeof(ResTable_config)) { in copyFromDeviceNoSwap() 2040 memset(((uint8_t*)this)+size, 0, sizeof(ResTable_config)-size); in copyFromDeviceNoSwap() 2092 void ResTable_config::packLanguage(const char* language) { in packLanguage() 2096 void ResTable_config::packRegion(const char* region) { in packRegion() 2100 size_t ResTable_config::unpackLanguage(char language[4]) const { in unpackLanguage() 2104 size_t ResTable_config::unpackRegion(char region[4]) const { in unpackRegion() 2109 void ResTable_config::copyFromDtoH(const ResTable_config& o) { in copyFromDtoH() 2111 size = sizeof(ResTable_config); in copyFromDtoH() 2124 void ResTable_config::swapHtoD() { in swapHtoD() [all …]
|
D | Locale.cpp | 27 using ::android::ResTable_config; 231 static_assert(sizeof(ResTable_config::localeScript) == sizeof(LocaleValue::script)); 232 static_assert(sizeof(ResTable_config::localeVariant) == sizeof(LocaleValue::variant)); 234 void LocaleValue::InitFromResTable(const ResTable_config& config) { in InitFromResTable() 246 void LocaleValue::WriteTo(ResTable_config* out) const { in WriteTo()
|
/frameworks/base/native/android/ |
D | configuration.cpp | 39 ResTable_config config = locked_mgr->GetConfigurations()[0]; in AConfiguration_fromAssetManager() 88 return config->inputFlags&ResTable_config::MASK_KEYSHIDDEN; in AConfiguration_getKeysHidden() 92 return (config->inputFlags&ResTable_config::MASK_NAVHIDDEN) in AConfiguration_getNavHidden() 93 >> ResTable_config::SHIFT_NAVHIDDEN; in AConfiguration_getNavHidden() 101 return config->screenLayout&ResTable_config::MASK_SCREENSIZE; in AConfiguration_getScreenSize() 105 return (config->screenLayout&ResTable_config::MASK_SCREENLONG) in AConfiguration_getScreenLong() 106 >> ResTable_config::SHIFT_SCREENLONG; in AConfiguration_getScreenLong() 110 return (config->screenLayout2&ResTable_config::MASK_SCREENROUND); in AConfiguration_getScreenRound() 114 return config->uiMode&ResTable_config::MASK_UI_MODE_TYPE; in AConfiguration_getUiModeType() 118 return (config->uiMode&ResTable_config::MASK_UI_MODE_NIGHT) in AConfiguration_getUiModeNight() [all …]
|
/frameworks/base/tools/aapt/tests/ |
D | AaptConfig_test.cpp | 83 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); in TEST() 89 EXPECT_EQ(android::ResTable_config::SCREENROUND_YES, in TEST() 90 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST() 95 EXPECT_EQ(android::ResTable_config::SCREENROUND_NO, in TEST() 96 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST() 104 EXPECT_EQ(android::ResTable_config::WIDE_COLOR_GAMUT_YES, in TEST() 105 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST() 110 EXPECT_EQ(android::ResTable_config::WIDE_COLOR_GAMUT_NO, in TEST() 111 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST() 119 EXPECT_EQ(android::ResTable_config::HDR_YES, in TEST() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ConfigDescription.h | 68 struct ConfigDescription : public ResTable_config { 91 ConfigDescription(const android::ResTable_config& o); // NOLINT(google-explicit-constructor) 95 ConfigDescription& operator=(const android::ResTable_config& o); 152 size = sizeof(android::ResTable_config); in ConfigDescription() 155 inline ConfigDescription::ConfigDescription(const android::ResTable_config& o) { in ConfigDescription() 156 *static_cast<android::ResTable_config*>(this) = o; in ConfigDescription() 157 size = sizeof(android::ResTable_config); in ConfigDescription() 161 : android::ResTable_config(o) { in ConfigDescription() 169 const android::ResTable_config& o) { 170 *static_cast<android::ResTable_config*>(this) = o; [all …]
|
D | ResourceTypes.h | 956 struct ResTable_config struct 1257 void copyFromDeviceNoSwap(const ResTable_config& o); argument 1259 void copyFromDtoH(const ResTable_config& o); 1263 int compare(const ResTable_config& o) const; 1264 int compareLogical(const ResTable_config& o) const; 1266 inline bool operator<(const ResTable_config& o) const { return compare(o) < 0; } 1294 int diff(const ResTable_config& o) const; argument 1297 bool isMoreSpecificThan(const ResTable_config& o) const; 1309 bool isBetterThan(const ResTable_config& o, const ResTable_config* requested) const; 1317 bool match(const ResTable_config& settings) const; [all …]
|
D | AssetManager2.h | 105 AssetManager2(ApkAssetsList apk_assets, const ResTable_config& configuration); 162 void SetConfigurations(std::vector<ResTable_config> configurations, bool force_refresh = false); 164 inline const std::vector<ResTable_config>& GetConfigurations() const { in GetConfigurations() 180 base::expected<std::set<ResTable_config>, IOError> GetResourceConfigurations( 279 ResTable_config config; 283 uint32_t type_flags, uint32_t resid, const ResTable_config& config) : in SelectedValue() 431 const ResTable_config& desired_config, bool stop_at_first_match, 479 std::vector<ResTable_config> configurations_;
|
/frameworks/base/tools/aapt2/filter/ |
D | ConfigFilter.cpp | 30 diff_mask &= ~android::ResTable_config::CONFIG_VERSION; in AddConfig() 33 if ((diff_mask & android::ResTable_config::CONFIG_DENSITY) != 0) { in AddConfig() 35 diff_mask &= ~android::ResTable_config::CONFIG_DENSITY; in AddConfig() 94 } else if ((diff & diff_mask) == android::ResTable_config::CONFIG_LOCALE) { in Match() 107 matched_axis |= android::ResTable_config::CONFIG_LOCALE; in Match() 110 android::ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { in Match() 117 matched_axis |= android::ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE; in Match()
|