/frameworks/base/libs/androidfw/tests/ |
D | Config_test.cpp | 27 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 …]
|
D | Split_test.cpp | 59 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 …]
|
D | TestHelpers.h | 23 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) {
|
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() 179 ResTable_config test; in TEST() [all …]
|
/frameworks/base/tools/aapt2/ |
D | ConfigDescription.cpp | 29 using android::ResTable_config; 38 static bool parseMcc(const char* name, ResTable_config* out) { in parseMcc() 68 static bool parseMnc(const char* name, ResTable_config* out) { in parseMnc() 99 static bool parseLayoutDirection(const char* name, ResTable_config* out) { in parseLayoutDirection() 102 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection() 103 | ResTable_config::LAYOUTDIR_ANY; in parseLayoutDirection() 107 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection() 108 | ResTable_config::LAYOUTDIR_LTR; in parseLayoutDirection() 112 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection() 113 | ResTable_config::LAYOUTDIR_RTL; in parseLayoutDirection() [all …]
|
D | ConfigDescription.h | 31 struct ConfigDescription : public android::ResTable_config { 54 ConfigDescription(const android::ResTable_config& o); 58 ConfigDescription& operator=(const android::ResTable_config& o); 72 size = sizeof(android::ResTable_config); in ConfigDescription() 75 inline ConfigDescription::ConfigDescription(const android::ResTable_config& o) { in ConfigDescription() 76 *static_cast<android::ResTable_config*>(this) = o; in ConfigDescription() 77 size = sizeof(android::ResTable_config); in ConfigDescription() 81 *static_cast<android::ResTable_config*>(this) = o; in ConfigDescription() 88 inline ConfigDescription& ConfigDescription::operator=(const android::ResTable_config& o) { 89 *static_cast<android::ResTable_config*>(this) = o; [all …]
|
D | ConfigDescription_test.cpp | 81 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); in TEST() 87 EXPECT_EQ(android::ResTable_config::SCREENROUND_YES, in TEST() 88 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST() 93 EXPECT_EQ(android::ResTable_config::SCREENROUND_NO, in TEST() 94 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST()
|
D | Locale.h | 53 void initFromResTable(const android::ResTable_config& config); 58 void writeTo(android::ResTable_config* out) const;
|
/frameworks/base/tools/aapt/ |
D | AaptConfig.cpp | 28 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 …]
|
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 parseOrientation(const char* str, 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) { 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;
|
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 | 54 Vector<ResTable_config> configs; 97 const String8* configTypeName = NULL, const ResTable_config* config = NULL); 100 const String8* configTypeName = NULL, const ResTable_config* config = NULL);
|
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; 430 void addEntry(const ResTable_config& config, const sp<Entry>& entry) { in addEntry() 486 const ResTable_config* config = NULL, 598 const ResTable_config* config = NULL, 601 const ResTable_config* config = NULL) const;
|
/frameworks/base/native/android/ |
D | configuration.cpp | 83 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/aapt2/filter/ |
D | ConfigFilter.cpp | 28 diffMask &= ~android::ResTable_config::CONFIG_VERSION; in addConfig() 31 if ((diffMask & android::ResTable_config::CONFIG_DENSITY) != 0) { in addConfig() 33 diffMask &= ~android::ResTable_config::CONFIG_DENSITY; in addConfig() 55 } else if ((diff & diffMask) == android::ResTable_config::CONFIG_LOCALE) { in match() 62 matchedAxis |= android::ResTable_config::CONFIG_LOCALE; in match() 65 } else if ((diff & diffMask) == android::ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { in match() 70 matchedAxis |= android::ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE; in match()
|
/frameworks/base/tools/aapt/tests/ |
D | AaptConfig_test.cpp | 84 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()
|
D | ResourceTable_test.cpp | 32 landConfig.orientation = ResTable_config::ORIENTATION_LAND; in TEST() 35 sw600dpLandConfig.orientation = ResTable_config::ORIENTATION_LAND; in TEST()
|
/frameworks/base/include/androidfw/ |
D | ResourceTypes.h | 903 struct ResTable_config struct 1167 void copyFromDeviceNoSwap(const ResTable_config& o); argument 1169 void copyFromDtoH(const ResTable_config& o); 1173 int compare(const ResTable_config& o) const; 1174 int compareLogical(const ResTable_config& o) const; 1200 int diff(const ResTable_config& o) const; argument 1203 bool isMoreSpecificThan(const ResTable_config& o) const; 1215 bool isBetterThan(const ResTable_config& o, const ResTable_config* requested) const; 1223 bool match(const ResTable_config& settings) const; 1275 int isLocaleMoreSpecificThan(const ResTable_config &o) const; [all …]
|
D | AssetManager.h | 55 struct ResTable_config; 147 void setConfiguration(const ResTable_config& config, const char* locale = NULL); 149 void getConfiguration(ResTable_config* outConfig) const; 387 ResTable_config* mConfig;
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 1760 void ResTable_config::copyFromDeviceNoSwap(const ResTable_config& o) { in copyFromDeviceNoSwap() 1762 if (size >= sizeof(ResTable_config)) { in copyFromDeviceNoSwap() 1766 memset(((uint8_t*)this)+size, 0, sizeof(ResTable_config)-size); in copyFromDeviceNoSwap() 1818 void ResTable_config::packLanguage(const char* language) { in packLanguage() 1822 void ResTable_config::packRegion(const char* region) { in packRegion() 1826 size_t ResTable_config::unpackLanguage(char language[4]) const { in unpackLanguage() 1830 size_t ResTable_config::unpackRegion(char region[4]) const { in unpackRegion() 1835 void ResTable_config::copyFromDtoH(const ResTable_config& o) { in copyFromDtoH() 1837 size = sizeof(ResTable_config); in copyFromDtoH() 1850 void ResTable_config::swapHtoD() { in swapHtoD() [all …]
|
/frameworks/base/tools/aapt2/proto/ |
D | ProtoHelpers.cpp | 73 android::ResTable_config flatConfig = config; in serializeConfig() 85 const android::ResTable_config* config; in deserializeConfigDescriptionFromPb() 90 config = reinterpret_cast<const android::ResTable_config*>(pbConfig.data().data()); in deserializeConfigDescriptionFromPb()
|
/frameworks/base/tools/split-select/ |
D | Main.cpp | 110 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()
|
D | SplitSelector_test.cpp | 62 ASSERT_GT(ResTable_config::DENSITY_HIGH, 180); in TEST() 63 ASSERT_LT(ResTable_config::DENSITY_HIGH, 263); in TEST()
|