/frameworks/base/tools/aapt/ |
ConfigDescription.h | 23 * Subclass of ResTable_config that adds convenient 26 struct ConfigDescription : public android::ResTable_config { 29 size = sizeof(android::ResTable_config); 32 ConfigDescription(const android::ResTable_config&o) { // NOLINT(implicit) 33 *static_cast<android::ResTable_config*>(this) = o; 34 size = sizeof(android::ResTable_config); 38 *static_cast<android::ResTable_config*>(this) = o; 41 ConfigDescription& operator=(const android::ResTable_config& o) { 42 *static_cast<android::ResTable_config*>(this) = o; 43 size = sizeof(android::ResTable_config); [all...] |
AaptConfig.h | 32 * given ResTable_config with resulting configuration parameters. 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) [all...] |
AaptConfig.cpp | 28 using android::ResTable_config; 268 if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) 269 == ResTable_config::UI_MODE_TYPE_VR_HEADSET 270 || config->colorMode & ResTable_config::MASK_WIDE_COLOR_GAMUT 271 || config->colorMode & ResTable_config::MASK_HDR) { 273 } else if (config->screenLayout2 & ResTable_config::MASK_SCREENROUND) { 275 } else if (config->density == ResTable_config::DENSITY_ANY) { 277 } else if (config->smallestScreenWidthDp != ResTable_config::SCREENWIDTH_ANY 278 || config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY 279 || config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) [all...] |
ResourceFilter.cpp | 42 entry.second &= ~ResTable_config::CONFIG_VERSION; 45 if ((entry.second & ResTable_config::CONFIG_DENSITY) != 0) { 48 entry.second &= ~ResTable_config::CONFIG_DENSITY; 71 scriptsMatch(const ResTable_config& config, const ResTable_config& entry) { 98 WeakResourceFilter::match(const ResTable_config& config) const 114 } else if ((diff & entry.second) == ResTable_config::CONFIG_LOCALE) { 130 matchedAxis |= ResTable_config::CONFIG_LOCALE; 132 } else if ((diff & entry.second) == ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { 137 matchedAxis |= ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE [all...] |
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 { 112 bool match(const android::ResTable_config& config) const { 129 bool match(const android::ResTable_config& config) const {
|
/frameworks/base/libs/androidfw/tests/ |
Config_test.cpp | 28 static ResTable_config selectBest(const ResTable_config& target, 29 const Vector<ResTable_config>& configs) { 30 ResTable_config bestConfig; 34 const ResTable_config& thisConfig = configs[i]; 46 static ResTable_config buildDensityConfig(int density) { 47 ResTable_config config; 55 ResTable_config deviceConfig; 57 deviceConfig.density = ResTable_config::DENSITY_XHIGH; 60 Vector<ResTable_config> configs [all...] |
BenchmarkHelpers.h | 29 void GetResourceBenchmarkOld(const std::vector<std::string>& paths, const ResTable_config* config,
|
SparseEntry_bench.cpp | 29 ResTable_config config; 38 ResTable_config config; 47 ResTable_config config; 56 ResTable_config config;
|
BenchmarkHelpers.cpp | 24 void GetResourceBenchmarkOld(const std::vector<std::string>& paths, const ResTable_config* config, 42 ResTable_config selected_config;
|
TestHelpers.h | 51 static inline bool operator==(const ResTable_config& a, const ResTable_config& b) { 55 static inline ::std::ostream& operator<<(::std::ostream& out, const ResTable_config& c) {
|
Split_test.cpp | 29 static void makeConfigFrench(ResTable_config* config) { 73 ResTable_config frenchConfig; 82 ResTable_config expectedConfig; 86 ResTable_config config; 102 ResTable_config expectedConfig; 114 ResTable_config config; 126 ResTable_config expectedConfig; 155 ResTable_config defaultConfig; 178 EXPECT_EQ(static_cast<uint32_t>(ResTable_config::CONFIG_LOCALE | ResTable_typeSpec::SPEC_PUBLIC), 183 ResTable_config baseConfig [all...] |
LoadedArsc_test.cpp | 44 ResTable_config config; 49 ResTable_config selected_config; 66 ResTable_config desired_config; 72 ResTable_config selected_config; 154 ResTable_config desired_config; 158 ResTable_config selected_config;
|
/frameworks/base/native/android/ |
configuration.cpp | 83 return config->inputFlags&ResTable_config::MASK_KEYSHIDDEN; 87 return (config->inputFlags&ResTable_config::MASK_NAVHIDDEN) 88 >> ResTable_config::SHIFT_NAVHIDDEN; 96 return config->screenLayout&ResTable_config::MASK_SCREENSIZE; 100 return (config->screenLayout&ResTable_config::MASK_SCREENLONG) 101 >> ResTable_config::SHIFT_SCREENLONG; 105 return (config->screenLayout2&ResTable_config::MASK_SCREENROUND); 109 return config->uiMode&ResTable_config::MASK_UI_MODE_TYPE; 113 return (config->uiMode&ResTable_config::MASK_UI_MODE_NIGHT) 114 >> ResTable_config::SHIFT_UI_MODE_NIGHT [all...] |
/frameworks/base/tools/aapt2/ |
ConfigDescription.cpp | 29 using android::ResTable_config; 41 static bool parseMcc(const char* name, ResTable_config* out) { 71 static bool parseMnc(const char* name, ResTable_config* out) { 102 static bool parseLayoutDirection(const char* name, ResTable_config* out) { 106 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | 107 ResTable_config::LAYOUTDIR_ANY; 112 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | 113 ResTable_config::LAYOUTDIR_LTR; 118 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | 119 ResTable_config::LAYOUTDIR_RTL [all...] |
ConfigDescription.h | 28 * Subclass of ResTable_config that adds convenient 31 struct ConfigDescription : public android::ResTable_config { 39 * given ResTable_config with resulting configuration parameters. 54 ConfigDescription(const android::ResTable_config& o); // NOLINT(implicit) 58 ConfigDescription& operator=(const android::ResTable_config& o); 110 size = sizeof(android::ResTable_config); 113 inline ConfigDescription::ConfigDescription(const android::ResTable_config& o) { 114 *static_cast<android::ResTable_config*>(this) = o; 115 size = sizeof(android::ResTable_config); 119 *static_cast<android::ResTable_config*>(this) = o [all...] |
ConfigDescription_test.cpp | 87 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); 93 EXPECT_EQ(android::ResTable_config::SCREENROUND_YES, 94 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); 99 EXPECT_EQ(android::ResTable_config::SCREENROUND_NO, 100 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); 108 EXPECT_EQ(android::ResTable_config::WIDE_COLOR_GAMUT_YES, 109 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); 114 EXPECT_EQ(android::ResTable_config::WIDE_COLOR_GAMUT_NO, 115 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); 123 EXPECT_EQ(android::ResTable_config::HDR_YES [all...] |
Locale.h | 51 * Initialize this LocaleValue from a ResTable_config. 53 void InitFromResTable(const android::ResTable_config& config); 56 * Set the locale in a ResTable_config from this LocaleValue. 58 void WriteTo(android::ResTable_config* out) const;
|
/frameworks/base/core/jni/include/android_runtime/ |
android_content_res_Configuration.h | 25 struct AConfiguration : android::ResTable_config {
|
/frameworks/base/tools/aapt2/filter/ |
ConfigFilter.cpp | 29 diff_mask &= ~android::ResTable_config::CONFIG_VERSION; 32 if ((diff_mask & android::ResTable_config::CONFIG_DENSITY) != 0) { 34 diff_mask &= ~android::ResTable_config::CONFIG_DENSITY; 93 } else if ((diff & diff_mask) == android::ResTable_config::CONFIG_LOCALE) { 106 matched_axis |= android::ResTable_config::CONFIG_LOCALE; 109 android::ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { 116 matched_axis |= android::ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE;
|
/frameworks/base/tools/aapt/tests/ |
AaptConfig_test.cpp | 84 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); 90 EXPECT_EQ(android::ResTable_config::SCREENROUND_YES, 91 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); 96 EXPECT_EQ(android::ResTable_config::SCREENROUND_NO, 97 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); 105 EXPECT_EQ(android::ResTable_config::WIDE_COLOR_GAMUT_YES, 106 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); 111 EXPECT_EQ(android::ResTable_config::WIDE_COLOR_GAMUT_NO, 112 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); 120 EXPECT_EQ(android::ResTable_config::HDR_YES [all...] |
ResourceTable_test.cpp | 32 landConfig.orientation = ResTable_config::ORIENTATION_LAND; 35 sw600dpLandConfig.orientation = ResTable_config::ORIENTATION_LAND;
|
/frameworks/base/libs/androidfw/include/androidfw/ |
LoadedArsc.h | 68 bool FindEntry(uint8_t type_idx, uint16_t entry_idx, const ResTable_config& config, 69 LoadedArscEntry* out_entry, ResTable_config* out_selected_config, 95 // Populates a set of ResTable_config structs, possibly excluding configurations defined for 97 void CollectConfigurations(bool exclude_mipmap, std::set<ResTable_config>* out_configs) const; 153 bool FindEntry(uint32_t resid, const ResTable_config& config, LoadedArscEntry* out_entry, 154 ResTable_config* selected_config, uint32_t* out_flags) const;
|
AssetManager2.h | 115 void SetConfiguration(const ResTable_config& configuration); 117 inline const ResTable_config& GetConfiguration() const { return configuration_; } 125 std::set<ResTable_config> GetResourceConfigurations(bool exclude_system = false, 175 // See ResTable_config for the list of configuration axis. 197 Res_value* out_value, ResTable_config* out_selected_config, 213 ResTable_config* in_out_selected_config, uint32_t* in_out_flags, 249 LoadedArscEntry* out_entry, ResTable_config* out_selected_config, 282 ResTable_config configuration_; 332 ResTable_config* in_out_selected_config = nullptr,
|
ResourceTypes.h | 902 struct ResTable_config [all...] |
/frameworks/base/tools/split-select/ |
SplitSelector_test.cpp | 62 ASSERT_GT(ResTable_config::DENSITY_HIGH, 180); 63 ASSERT_LT(ResTable_config::DENSITY_HIGH, 263);
|