/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/ |
D | DeviceConfig.java | 116 if (resTab.screenWidthDp == 0) { in applyToConfiguration() 117 configuration.screenWidthDp = 0; in applyToConfiguration() 169 if (resTab.screenWidthDp != 0) { in applyToConfiguration() 170 configuration.screenWidthDp = resTab.screenWidthDp; in applyToConfiguration() 270 && configuration.screenWidthDp != 0 && configuration.screenHeightDp != 0) { in applyRules() 271 configuration.orientation = (configuration.screenWidthDp > configuration.screenHeightDp) in applyRules() 276 if (configuration.screenWidthDp == 0) { in applyRules() 277 configuration.screenWidthDp = requestedScreenSize.width; in applyRules() 289 int lesserDimenPx = Math.min(configuration.screenWidthDp, configuration.screenHeightDp); in applyRules() 290 int greaterDimenPx = Math.max(configuration.screenWidthDp, configuration.screenHeightDp); in applyRules() [all …]
|
D | ConfigurationV25.java | 107 if (config.screenWidthDp != 0) { in resourceQualifierString() 108 parts.add("w" + config.screenWidthDp + "dp"); in resourceQualifierString()
|
D | Bootstrap.java | 57 int widthPx = (int) (configuration.screenWidthDp * displayMetrics.density); in fixJellyBean()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | ResTable_config.java | 145 int screenWidthDp = 0; in createConfig() local 160 screenWidthDp = buffer.getShort() & 0xFFFF; in createConfig() 182 sdkVersion, minorVersion, screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp, in createConfig() 638 smallestScreenWidthDp, screenWidthDp, screenHeightDp, localeScript, localeVariant, in withSdkVersion() 645 int uiMode, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in ResTable_config() argument 666 this.screenWidthDp = screenWidthDp; in ResTable_config() 737 public int screenWidthDp; field in ResTable_config 886 dtohs((short) o.screenWidthDp), in fromDtoH() 1085 && screenWidthDp == 0 in isDefault() 1131 result.put(Type.SCREEN_WIDTH_DP, screenWidthDp != 0 ? "w" + screenWidthDp + "dp" : ""); in toStringParts() [all …]
|
D | ConfigDescription.java | 431 out.screenWidthDp = ResTable_config.SCREENWIDTH_ANY; in parseScreenWidthDp() 438 out.screenWidthDp = Integer.parseInt(matcher.group(1)); in parseScreenWidthDp() 999 || config.screenWidthDp != ResTable_config.SCREENWIDTH_ANY in applyVersionForCompatibility()
|
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/ |
D | ResTableConfigTest.java | 134 int screenWidthDp; field in ResTableConfigTest.ResTableConfigBuilder 144 …dkVersion, minorVersion, screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp, screenHeightD… in build()
|
D | ConfigDescriptionTest.java | 136 assertThat(config.screenWidthDp).isEqualTo(480); in getScreenWidth()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowDisplayManager.java | 50 int widthPx = (int) (configuration.screenWidthDp * displayMetrics.density); in createDisplayInfo() 107 configuration.screenWidthDp = baseDisplayInfo.logicalWidth * DisplayMetrics.DENSITY_DEFAULT in createDisplayInfo()
|
D | ShadowArscAssetManager.java | 135 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in setConfiguration() argument 140 smallestScreenWidthDp, screenWidthDp, screenHeightDp, in setConfiguration() 148 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in setConfiguration() argument 175 config.screenWidthDp = screenWidthDp; in setConfiguration()
|
D | ShadowLegacyAssetManager.java | 673 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in setConfiguration() argument 678 smallestScreenWidthDp, screenWidthDp, screenHeightDp, in setConfiguration() 686 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in setConfiguration() argument 707 config.screenWidthDp = screenWidthDp; in setConfiguration()
|
D | ShadowDisplay.java | 400 int widthPx = (int) (configuration.screenWidthDp * displayMetrics.density); in configureForJBOnly()
|
D | ShadowArscAssetManager10.java | 583 configuration.screenWidthDp = (short) (screen_width_dp); in nativeSetConfiguration() 1291 result.screenWidthDp = config.screenWidthDp; in ConstructConfigurationObject()
|
D | ShadowArscAssetManager9.java | 579 configuration.screenWidthDp = (short) (screen_width_dp); in nativeSetConfiguration() 1287 result.screenWidthDp = config.screenWidthDp; in ConstructConfigurationObject()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
D | BootstrapTest.java | 160 assertThat(configuration.screenWidthDp).isEqualTo(320); in applyQualifiers_shouldAddDefaults() 229 assertThat(configuration.screenWidthDp).isEqualTo(480); in applyQualifiers_shouldHonorSpecifiedQualifiers() 255 assertThat(configuration.screenWidthDp).isEqualTo(320); in applyQualifiers_longShouldMakeScreenTaller() 265 assertThat(configuration.screenWidthDp).isEqualTo(400); in whenScreenRationGreatherThan175Percent_applyQualifiers_ShouldSetLong()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
D | QualifiersTest.java | 106 assertThat(resources.getConfiguration().screenWidthDp).isEqualTo(320); in defaultScreenWidth()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/ |
D | ParallelUniverseTest.java | 228 assertThat(configuration.screenWidthDp).isEqualTo(ScreenSize.xlarge.width); in whenDimensAndSizeSpecified_setQualifiers_should()
|