Lines Matching refs:config
320 Configuration config = new Configuration();
328 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL;
331 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL;
334 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE;
337 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE;
347 config.screenWidthDp = hardwareConfig.getScreenWidth() / density.getDpiValue();
348 config.screenHeightDp = hardwareConfig.getScreenHeight() / density.getDpiValue();
349 if (config.screenHeightDp < config.screenWidthDp) {
350 config.smallestScreenWidthDp = config.screenHeightDp;
352 config.smallestScreenWidthDp = config.screenWidthDp;
354 config.densityDpi = density.getDpiValue();
357 config.compatScreenWidthDp = config.screenWidthDp;
358 config.compatScreenHeightDp = config.screenHeightDp;
364 config.orientation = Configuration.ORIENTATION_PORTRAIT;
367 config.orientation = Configuration.ORIENTATION_LANDSCAPE;
370 config.orientation = Configuration.ORIENTATION_SQUARE;
374 config.orientation = Configuration.ORIENTATION_UNDEFINED;
377 // TODO: fill in more config info.
379 return config;