Lines Matching refs:config

113             DisplayMetrics dm, Configuration config) {
114 config.touchscreen = Configuration.TOUCHSCREEN_NOTOUCH;
115 config.densityDpi = dm.densityDpi;
116 config.screenWidthDp = (int)(dm.widthPixels / dm.density);
117 config.screenHeightDp = (int)(dm.heightPixels / dm.density);
118 int sl = Configuration.resetScreenLayout(config.screenLayout);
120 config.orientation = Configuration.ORIENTATION_LANDSCAPE;
121 config.screenLayout = Configuration.reduceScreenLayout(sl,
122 config.screenWidthDp, config.screenHeightDp);
124 config.orientation = Configuration.ORIENTATION_PORTRAIT;
125 config.screenLayout = Configuration.reduceScreenLayout(sl,
126 config.screenHeightDp, config.screenWidthDp);
128 config.smallestScreenWidthDp = config.screenWidthDp; // assume screen does not rotate
129 config.compatScreenWidthDp = config.screenWidthDp;
130 config.compatScreenHeightDp = config.screenHeightDp;
131 config.compatSmallestScreenWidthDp = config.smallestScreenWidthDp;
185 Configuration config;
189 config = new Configuration(getConfiguration());
191 applyNonDefaultDisplayMetricsToConfigurationLocked(dm, config);
194 config.updateFrom(key.mOverrideConfiguration);
197 config = getConfiguration();
199 r = new Resources(assets, dm, config, compatInfo, token);
222 public final boolean applyConfigurationToResourcesLocked(Configuration config,
227 if (!mResConfiguration.isOtherSeqNewer(config) && compat == null) {
228 if (DEBUG_CONFIGURATION) Slog.v(TAG, "Skipping new config: curSeq="
229 + mResConfiguration.seq + ", newSeq=" + config.seq);
232 int changes = mResConfiguration.updateFrom(config);
245 if (config.locale != null) {
246 Locale.setDefault(config.locale);
249 Resources.updateSystemConfiguration(config, defaultDisplayMetrics, compat);
261 + r + " config to: " + config);
270 tmpConfig.setTo(config);
280 r.updateConfiguration(config, dm, compat);