HomeSort by relevance Sort by last modified time
    Searched refs:ResTable_config (Results 1 - 25 of 29) sorted by null

1 2

  /frameworks/base/tools/aapt/
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 parseOrientation(const char* str, android::ResTable_config* out = NULL)
    [all...]
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) {
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.cpp 28 using android::ResTable_config;
244 if (config->density == ResTable_config::DENSITY_ANY) {
246 } else if (config->smallestScreenWidthDp != ResTable_config::SCREENWIDTH_ANY
247 || config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY
248 || config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) {
250 } else if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE)
251 != ResTable_config::UI_MODE_TYPE_ANY
252 || (config->uiMode & ResTable_config::MASK_UI_MODE_NIGHT)
253 != ResTable_config::UI_MODE_NIGHT_ANY) {
255 } else if ((config->screenLayout & ResTable_config::MASK_SCREENSIZE
    [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;
58 WeakResourceFilter::match(const ResTable_config& config) const
74 } else if ((diff & entry.second) == ResTable_config::CONFIG_LOCALE) {
81 matchedAxis |= ResTable_config::CONFIG_LOCALE;
84 } else if ((diff & entry.second) == ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) {
89 matchedAxis |= ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE;
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 {
StringPool.h 56 Vector<ResTable_config> configs;
99 const String8* configTypeName = NULL, const ResTable_config* config = NULL);
102 const String8* configTypeName = NULL, const ResTable_config* config = NULL);
ResourceTable.h 64 const ResTable_config& defParams,
137 const ResTable_config* params = NULL,
147 const ResTable_config* params = NULL,
160 const ResTable_config* params = NULL,
172 const ResTable_config& config) const;
412 void addEntry(const ResTable_config& config, const sp<Entry>& entry) {
468 const ResTable_config* config = NULL,
568 const ResTable_config* config = NULL,
571 const ResTable_config* config = NULL) const;
AaptAssets.cpp 397 void AaptLocaleValue::initFromResTable(const ResTable_config& config) {
409 void AaptLocaleValue::writeTo(ResTable_config* out) const {
    [all...]
AaptAssets.h 76 // Initialize this AaptLocaleValue from a ResTable_config.
77 void initFromResTable(const ResTable_config& config);
79 void writeTo(ResTable_config* out) const;
Command.cpp 607 ResTable_config config;
608 memset(&config, 0, sizeof(ResTable_config));
613 config.orientation = ResTable_config::ORIENTATION_PORT;
614 config.density = ResTable_config::DENSITY_MEDIUM;
619 config.screenLayout |= ResTable_config::SCREENSIZE_NORMAL;
765 Vector<ResTable_config> configs;
    [all...]
  /frameworks/base/libs/androidfw/tests/
Config_test.cpp 27 static ResTable_config selectBest(const ResTable_config& target,
28 const Vector<ResTable_config>& configs) {
29 ResTable_config bestConfig;
33 const ResTable_config& thisConfig = configs[i];
45 static ResTable_config buildDensityConfig(int density) {
46 ResTable_config config;
54 ResTable_config deviceConfig;
56 deviceConfig.density = ResTable_config::DENSITY_XHIGH;
59 Vector<ResTable_config> configs
    [all...]
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) {
Split_test.cpp 59 void makeConfigFrench(ResTable_config* config) {
71 ResTable_config frenchConfig;
79 ResTable_config expectedConfig;
83 ResTable_config config;
96 ResTable_config expectedConfig;
106 ResTable_config config;
117 ResTable_config expectedConfig;
147 ResTable_config defaultConfig;
166 EXPECT_EQ(ResTable_config::CONFIG_LOCALE, frSpecFlags);
170 ResTable_config baseConfig
    [all...]
ConfigLocale_test.cpp 25 ResTable_config config;
48 ResTable_config config;
63 ResTable_config config;
79 ResTable_config config;
103 ResTable_config config;
115 const char* script, const char* variant, ResTable_config* out) {
116 memset(out, 0, sizeof(ResTable_config));
135 ResTable_config l;
136 ResTable_config r;
174 ResTable_config test
    [all...]
ResTable_test.cpp 150 ResTable_config param;
174 ResTable_config param;
  /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->uiMode&ResTable_config::MASK_UI_MODE_TYPE;
109 return (config->uiMode&ResTable_config::MASK_UI_MODE_NIGHT)
110 >> ResTable_config::SHIFT_UI_MODE_NIGHT;
127 return (config->screenLayout&ResTable_config::MASK_LAYOUTDIR
    [all...]
  /frameworks/base/include/android_runtime/
android_content_res_Configuration.h 25 struct AConfiguration : android::ResTable_config {
  /frameworks/base/tools/split-select/
SplitSelector_test.cpp 62 ASSERT_GT(ResTable_config::DENSITY_HIGH, 180);
63 ASSERT_LT(ResTable_config::DENSITY_HIGH, 263);
Main.cpp 110 outConfig->orientation = ResTable_config::ORIENTATION_ANY;
111 outConfig->screenWidth = ResTable_config::SCREENWIDTH_ANY;
112 outConfig->screenHeight = ResTable_config::SCREENHEIGHT_ANY;
113 outConfig->uiMode &= ResTable_config::UI_MODE_NIGHT_ANY;
215 Vector<ResTable_config> configs;
RuleGenerator.cpp 36 if (allDensities[index] != ResTable_config::DENSITY_ANY) {
41 allDensities.end(), (int) ResTable_config::DENSITY_ANY) != allDensities.end();
59 if (index + 1 < allDensities.size() && allDensities[index + 1] != ResTable_config::DENSITY_ANY) {
  /frameworks/base/include/androidfw/
ResourceTypes.h 896 struct ResTable_config
    [all...]
AssetManager.h 55 struct ResTable_config;
139 void setConfiguration(const ResTable_config& config, const char* locale = NULL);
141 void getConfiguration(ResTable_config* outConfig) const;
375 ResTable_config* mConfig;
  /frameworks/base/libs/androidfw/
ResourceTypes.cpp     [all...]
  /frameworks/base/core/jni/
android_content_res_Configuration.cpp 62 << ResTable_config::SHIFT_NAVHIDDEN;
android_util_AssetManager.cpp 100 uint32_t typeSpecFlags, ResTable_config* config = NULL);
104 uint32_t typeSpecFlags, ResTable_config* config)
612 ResTable_config config;
804 ResTable_config config;
    [all...]

Completed in 62 milliseconds

1 2