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;
215 Configuration config;
219 config = new Configuration(getConfiguration());
221 applyNonDefaultDisplayMetricsToConfigurationLocked(dm, config);
224 config.updateFrom(key.mOverrideConfiguration);
227 config = getConfiguration();
229 r = new Resources(assets, dm, config, compatInfo, token);
252 public final boolean applyConfigurationToResourcesLocked(Configuration config,
257 if (!mResConfiguration.isOtherSeqNewer(config) && compat == null) {
258 if (DEBUG_CONFIGURATION) Slog.v(TAG, "Skipping new config: curSeq="
259 + mResConfiguration.seq + ", newSeq=" + config.seq);
262 int changes = mResConfiguration.updateFrom(config);
275 if (config.locale != null) {
276 Locale.setDefault(config.locale);
279 Resources.updateSystemConfiguration(config, defaultDisplayMetrics, compat);
291 + r + " config to: " + config);
300 tmpConfig.setTo(config);
310 r.updateConfiguration(config, dm, compat);