/aosp12/frameworks/base/libs/androidfw/tests/ |
H A D | Config_test.cpp | 28 static ResTable_config selectBest(const ResTable_config& target, in selectBest() 30 ResTable_config bestConfig; in selectBest() 47 ResTable_config config; in buildDensityConfig() 55 ResTable_config deviceConfig; in TEST() 62 ResTable_config expectedBest = in TEST() 89 ResTable_config deviceConfig; in TEST() 96 ResTable_config expectedBest = in TEST() 107 ResTable_config deviceConfig; in TEST() 110 ResTable_config roundConfig; in TEST() 132 ResTable_config defaultConfig; in TEST() [all …]
|
H A 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() 112 EXPECT_EQ(android::ResTable_config::WIDE_COLOR_GAMUT_NO, in TEST() 121 EXPECT_EQ(android::ResTable_config::HDR_YES, in TEST() 122 config.colorMode & android::ResTable_config::MASK_HDR); in TEST() 127 EXPECT_EQ(android::ResTable_config::HDR_NO, in TEST() [all …]
|
H A 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() 183 ResTable_config baseConfig; in TEST_F() 185 baseConfig.density = ResTable_config::DENSITY_XHIGH; in TEST_F() [all …]
|
H A 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()
|
H A 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) {
|
H A 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() 140 ResTable_config l; in TEST() 141 ResTable_config r; in TEST() 191 ResTable_config test; in TEST() 295 ResTable_config config; in TEST() 323 ResTable_config config; in TEST() [all …]
|
H A D | AssetManager2_test.cpp | 110 ResTable_config desired_config; in TEST_F() 134 ResTable_config desired_config; in TEST_F() 476 .density = ResTable_config::DENSITY_XHIGH, in TEST_F() 517 value.flags = ResTable_config::CONFIG_KEYBOARD; in TEST_F() 592 ResTable_config expected_config; in TEST_F() 727 ResTable_config desired_config; in TEST_F() 742 ResTable_config desired_config; in TEST_F() 753 ResTable_config desired_config; in TEST_F() 773 ResTable_config desired_config; in TEST_F() 794 ResTable_config desired_config; in TEST_F() [all …]
|
H A 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()
|
H A 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,
|
/aosp12/frameworks/base/tools/aapt/ |
H A D | AaptConfig.cpp | 28 using android::ResTable_config; 476 | ResTable_config::HDR_ANY; in parseHdr() 481 | ResTable_config::HDR_YES; in parseHdr() 486 | ResTable_config::HDR_NO; in parseHdr() 678 value = ResTable_config::KEYSHIDDEN_NO; in parseKeysHidden() 717 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden() 718 value = ResTable_config::NAVHIDDEN_ANY; in parseNavHidden() 720 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden() 721 value = ResTable_config::NAVHIDDEN_NO; in parseNavHidden() 889 bool isSameExcept(const ResTable_config& a, const ResTable_config& b, int axisMask) { in isSameExcept() [all …]
|
H A 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); 65 bool parseHdr(const char* name, android::ResTable_config* out = NULL); 67 bool parseUiModeType(const char* str, android::ResTable_config* out = NULL); 69 bool parseDensity(const char* str, android::ResTable_config* out = NULL); 72 bool parseKeyboard(const char* str, android::ResTable_config* out = NULL); 73 bool parseNavHidden(const char* str, android::ResTable_config* out = NULL); 76 bool parseVersion(const char* str, android::ResTable_config* out = NULL); 78 android::String8 getVersion(const android::ResTable_config& config); 84 bool isSameExcept(const android::ResTable_config& a, const android::ResTable_config& b, int configM… [all …]
|
H A 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;
|
H A 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()
|
H A 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()
|
H A D | ResourceTable.h | 63 const ResTable_config& defParams, 147 const ResTable_config* params = NULL, 157 const ResTable_config* params = NULL, 170 const ResTable_config* params = NULL, 182 const ResTable_config& config) const; 433 void addEntry(const ResTable_config& config, const sp<Entry>& entry) { in addEntry() 437 void removeEntry(const ResTable_config& config) { in removeEntry() 493 const ResTable_config* config = NULL, 606 const ResTable_config* config = NULL, 609 const ResTable_config* config = NULL) const;
|
H A 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);
|
/aosp12/frameworks/base/libs/androidfw/ |
H A D | ConfigDescription.cpp | 101 ResTable_config::LAYOUTDIR_ANY; in parseLayoutDirection() 107 ResTable_config::LAYOUTDIR_LTR; in parseLayoutDirection() 113 ResTable_config::LAYOUTDIR_RTL; in parseLayoutDirection() 125 ResTable_config::SCREENSIZE_ANY; in parseScreenLayoutSize() 161 ResTable_config::SCREENLONG_ANY; in parseScreenLayoutLong() 167 ResTable_config::SCREENLONG_YES; in parseScreenLayoutLong() 173 ResTable_config::SCREENLONG_NO; in parseScreenLayoutLong() 197 ResTable_config::SCREENROUND_NO; in parseScreenRound() 231 ResTable_config::HDR_ANY; in parseHdr() 237 ResTable_config::HDR_YES; in parseHdr() [all …]
|
H A D | ResourceTypes.cpp | 1950 void ResTable_config::copyFromDeviceNoSwap(const ResTable_config& o) { in copyFromDeviceNoSwap() 2025 void ResTable_config::copyFromDtoH(const ResTable_config& o) { in copyFromDtoH() 2082 int ResTable_config::compare(const ResTable_config& o) const { in compare() 2128 int ResTable_config::compareLogical(const ResTable_config& o) const { in compareLogical() 2192 int ResTable_config::diff(const ResTable_config& o) const { in diff() 2236 int ResTable_config::isLocaleMoreSpecificThan(const ResTable_config& o) const { in isLocaleMoreSpecificThan() 2252 bool ResTable_config::isMoreSpecificThan(const ResTable_config& o) const { in isMoreSpecificThan() 2423 bool ResTable_config::isLocaleBetterThan(const ResTable_config& o, in isLocaleBetterThan() 2528 bool ResTable_config::isBetterThan(const ResTable_config& o, in isBetterThan() 2791 bool ResTable_config::match(const ResTable_config& settings) const { in match() [all …]
|
/aosp12/frameworks/base/native/android/ |
H A D | configuration.cpp | 39 ResTable_config config = locked_mgr->GetConfiguration(); in AConfiguration_fromAssetManager() 93 >> ResTable_config::SHIFT_NAVHIDDEN; in AConfiguration_getNavHidden() 106 >> ResTable_config::SHIFT_SCREENLONG; in AConfiguration_getScreenLong() 114 return config->uiMode&ResTable_config::MASK_UI_MODE_TYPE; in AConfiguration_getUiModeType() 119 >> ResTable_config::SHIFT_UI_MODE_NIGHT; in AConfiguration_getUiModeNight() 137 >> ResTable_config::SHIFT_LAYOUTDIR; in AConfiguration_getLayoutDirection() 182 | (keysHidden&ResTable_config::MASK_KEYSHIDDEN); in AConfiguration_setKeysHidden() 187 | ((navHidden<<ResTable_config::SHIFT_NAVHIDDEN)&ResTable_config::MASK_NAVHIDDEN); in AConfiguration_setNavHidden() 201 | ((screenLong<<ResTable_config::SHIFT_SCREENLONG)&ResTable_config::MASK_SCREENLONG); in AConfiguration_setScreenLong() 216 … | ((uiModeNight<<ResTable_config::SHIFT_UI_MODE_NIGHT)&ResTable_config::MASK_UI_MODE_NIGHT); in AConfiguration_setUiModeNight() [all …]
|
/aosp12/frameworks/base/tools/aapt/tests/ |
H A 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() 110 EXPECT_EQ(android::ResTable_config::WIDE_COLOR_GAMUT_NO, in TEST() 119 EXPECT_EQ(android::ResTable_config::HDR_YES, in TEST() 120 config.colorMode & android::ResTable_config::MASK_HDR); in TEST() 125 EXPECT_EQ(android::ResTable_config::HDR_NO, in TEST() [all …]
|
/aosp12/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | ConfigDescription.h | 62 struct ConfigDescription : public ResTable_config { 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; 165 size = sizeof(android::ResTable_config); [all …]
|
H A D | ResourceTypes.h | 946 struct ResTable_config struct 1232 void copyFromDtoH(const ResTable_config& o); 1236 int compare(const ResTable_config& o) const; 1266 int diff(const ResTable_config& o) const; argument 1281 bool isBetterThan(const ResTable_config& o, const ResTable_config* requested) const; 1289 bool match(const ResTable_config& settings) const; 1354 bool isLocaleBetterThan(const ResTable_config& o, const ResTable_config* requested) const; 1453 ResTable_config config; 1458 sizeof(ResTable_type) - sizeof(ResTable_config) + sizeof(ResTable_config::size); 2180 const ResTable_config* config, [all …]
|
H A 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_;
|
H A 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;
|
/aosp12/frameworks/base/tools/aapt2/filter/ |
H A 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()
|