/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 | SparseEntry_bench.cpp | 28 ResTable_config config; in BM_SparseEntryGetResourceOldSparse() 37 ResTable_config config; in BM_SparseEntryGetResourceOldNotSparse() 46 ResTable_config config; in BM_SparseEntryGetResourceSparse() 55 ResTable_config config; in BM_SparseEntryGetResourceNotSparse()
|
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 | 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 | 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_test.cpp | 110 ResTable_config desired_config; in TEST_F() 134 ResTable_config desired_config; in TEST_F() 251 EXPECT_EQ(ResTable_typeSpec::SPEC_PUBLIC | ResTable_config::CONFIG_LOCALE, *value); in TEST_F() 476 .density = ResTable_config::DENSITY_XHIGH, in TEST_F() 487 ResTable_config::DENSITY_XXHIGH); in TEST_F() 517 value.flags = ResTable_config::CONFIG_KEYBOARD; in TEST_F() 524 EXPECT_EQ(ResTable_typeSpec::SPEC_PUBLIC | ResTable_config::CONFIG_KEYBOARD, value.flags); in TEST_F() 530 value.flags = ResTable_config::CONFIG_COLOR_MODE; in TEST_F() 537 EXPECT_EQ(ResTable_typeSpec::SPEC_PUBLIC | ResTable_config::CONFIG_COLOR_MODE, value.flags); in TEST_F() 576 static bool IsConfigurationPresent(const std::set<ResTable_config>& configurations, in IsConfigurationPresent() [all …]
|
/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 | 35 static bool parseMcc(const char* name, ResTable_config* out) { in parseMcc() 65 static bool parseMnc(const char* name, ResTable_config* out) { in parseMnc() 96 static bool parseLayoutDirection(const char* name, ResTable_config* out) { in parseLayoutDirection() 100 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection() 101 ResTable_config::LAYOUTDIR_ANY; in parseLayoutDirection() 106 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection() 107 ResTable_config::LAYOUTDIR_LTR; in parseLayoutDirection() 112 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection() 113 ResTable_config::LAYOUTDIR_RTL; in parseLayoutDirection() 120 static bool parseScreenLayoutSize(const char* name, ResTable_config* out) { in parseScreenLayoutSize() [all …]
|
D | ResourceTypes.cpp | 1950 void ResTable_config::copyFromDeviceNoSwap(const ResTable_config& o) { in copyFromDeviceNoSwap() 1952 if (size >= sizeof(ResTable_config)) { in copyFromDeviceNoSwap() 1956 memset(((uint8_t*)this)+size, 0, sizeof(ResTable_config)-size); in copyFromDeviceNoSwap() 2008 void ResTable_config::packLanguage(const char* language) { in packLanguage() 2012 void ResTable_config::packRegion(const char* region) { in packRegion() 2016 size_t ResTable_config::unpackLanguage(char language[4]) const { in unpackLanguage() 2020 size_t ResTable_config::unpackRegion(char region[4]) const { in unpackRegion() 2025 void ResTable_config::copyFromDtoH(const ResTable_config& o) { in copyFromDtoH() 2027 size = sizeof(ResTable_config); in copyFromDtoH() 2040 void ResTable_config::swapHtoD() { in swapHtoD() [all …]
|
/frameworks/base/native/android/ |
D | configuration.cpp | 39 ResTable_config config = locked_mgr->GetConfiguration(); 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 …]
|
D | ResourceTable_test.cpp | 31 landConfig.orientation = ResTable_config::ORIENTATION_LAND; in TEST() 34 sw600dpLandConfig.orientation = ResTable_config::ORIENTATION_LAND; in TEST()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ConfigDescription.h | 62 struct ConfigDescription : public ResTable_config { 85 ConfigDescription(const android::ResTable_config& o); // NOLINT(google-explicit-constructor) 89 ConfigDescription& operator=(const android::ResTable_config& o); 146 size = sizeof(android::ResTable_config); in ConfigDescription() 149 inline ConfigDescription::ConfigDescription(const android::ResTable_config& o) { in ConfigDescription() 150 *static_cast<android::ResTable_config*>(this) = o; in ConfigDescription() 151 size = sizeof(android::ResTable_config); in ConfigDescription() 155 : android::ResTable_config(o) { in ConfigDescription() 163 const android::ResTable_config& o) { 164 *static_cast<android::ResTable_config*>(this) = o; [all …]
|
D | ResourceTypes.h | 946 struct ResTable_config struct 1230 void copyFromDeviceNoSwap(const ResTable_config& o); argument 1232 void copyFromDtoH(const ResTable_config& o); 1236 int compare(const ResTable_config& o) const; 1237 int compareLogical(const ResTable_config& o) const; 1239 inline bool operator<(const ResTable_config& o) const { return compare(o) < 0; } 1266 int diff(const ResTable_config& o) const; argument 1269 bool isMoreSpecificThan(const ResTable_config& o) const; 1281 bool isBetterThan(const ResTable_config& o, const ResTable_config* requested) const; 1289 bool match(const ResTable_config& settings) const; [all …]
|
D | AssetManager2.h | 138 void SetConfiguration(const ResTable_config& configuration); 140 inline const ResTable_config& GetConfiguration() const { in GetConfiguration() 152 base::expected<std::set<ResTable_config>, IOError> GetResourceConfigurations( 240 ResTable_config config; 244 uint32_t type_flags, uint32_t resid, const ResTable_config& config) : in SelectedValue() 400 const ResTable_config& desired_config, bool stop_at_first_match, 439 ResTable_config configuration_;
|
D | AssetManager.h | 46 struct ResTable_config; 139 void setConfiguration(const ResTable_config& config, const char* locale = NULL); 141 void getConfiguration(ResTable_config* outConfig) const; 351 ResTable_config* mConfig;
|
/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()
|