Home
last modified time | relevance | path

Searched refs:screenHeightDp (Results 1 – 15 of 15) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DDeviceConfig.java120 if (resTab.screenHeightDp == 0) { in applyToConfiguration()
121 configuration.screenHeightDp = 0; in applyToConfiguration()
173 if (resTab.screenHeightDp != 0) { in applyToConfiguration()
174 configuration.screenHeightDp = resTab.screenHeightDp; in applyToConfiguration()
270 && configuration.screenWidthDp != 0 && configuration.screenHeightDp != 0) { in applyRules()
271 configuration.orientation = (configuration.screenWidthDp > configuration.screenHeightDp) in applyRules()
280 if (configuration.screenHeightDp == 0) { in applyRules()
281 configuration.screenHeightDp = requestedScreenSize.height; in applyRules()
285 configuration.screenHeightDp = (int) (configuration.screenHeightDp * 1.25f); in applyRules()
289 int lesserDimenPx = Math.min(configuration.screenWidthDp, configuration.screenHeightDp); in applyRules()
[all …]
DConfigurationV25.java111 if (config.screenHeightDp != 0) { in resourceQualifierString()
112 parts.add("h" + config.screenHeightDp + "dp"); in resourceQualifierString()
DBootstrap.java58 int heightPx = (int) (configuration.screenHeightDp * displayMetrics.density); in fixJellyBean()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResTable_config.java146 int screenHeightDp = 0; in createConfig() local
161 screenHeightDp = buffer.getShort() & 0xFFFF; in createConfig()
183screenHeightDp, localeScript, localeVariant, screenLayout2, screenConfigPad1, screenConfigPad2, un… in createConfig()
638 smallestScreenWidthDp, screenWidthDp, screenHeightDp, localeScript, localeVariant, in withSdkVersion()
645 int uiMode, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in ResTable_config() argument
667 this.screenHeightDp = screenHeightDp; in ResTable_config()
738 public int screenHeightDp; field in ResTable_config
887 dtohs((short) o.screenHeightDp), in fromDtoH()
1086 && screenHeightDp == 0 in isDefault()
1132 result.put(Type.SCREEN_HEIGHT_DP, screenHeightDp != 0 ? "h" + screenHeightDp + "dp" : ""); in toStringParts()
[all …]
DConfigDescription.java447 out.screenHeightDp = ResTable_config.SCREENWIDTH_ANY; in parseScreenHeightDp()
454 out.screenHeightDp = Integer.parseInt(matcher.group(1)); in parseScreenHeightDp()
1000 || config.screenHeightDp != ResTable_config.SCREENHEIGHT_ANY) { in applyVersionForCompatibility()
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/
DResTableConfigTest.java135 int screenHeightDp; field in ResTableConfigTest.ResTableConfigBuilder
144 …Version, screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp, screenHeightDp, localeScript,… in build()
DConfigDescriptionTest.java142 assertThat(config.screenHeightDp).isEqualTo(1024); in getScreenHeight()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowDisplayManager.java51 int heightPx = (int) (configuration.screenHeightDp * displayMetrics.density); in createDisplayInfo()
109 configuration.screenHeightDp = baseDisplayInfo.logicalHeight * DisplayMetrics.DENSITY_DEFAULT in createDisplayInfo()
DShadowArscAssetManager.java135 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
176 config.screenHeightDp = screenHeightDp; in setConfiguration()
DShadowLegacyAssetManager.java673 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
708 config.screenHeightDp = screenHeightDp; in setConfiguration()
DShadowDisplay.java401 int heightPx = (int) (configuration.screenHeightDp * displayMetrics.density); in configureForJBOnly()
DShadowArscAssetManager10.java584 configuration.screenHeightDp = (short) (screen_height_dp); in nativeSetConfiguration()
1292 result.screenHeightDp = config.screenHeightDp; in ConstructConfigurationObject()
DShadowArscAssetManager9.java580 configuration.screenHeightDp = (short) (screen_height_dp); in nativeSetConfiguration()
1288 result.screenHeightDp = config.screenHeightDp; in ConstructConfigurationObject()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DBootstrapTest.java161 assertThat(configuration.screenHeightDp).isEqualTo(470); in applyQualifiers_shouldAddDefaults()
230 assertThat(configuration.screenHeightDp).isEqualTo(456); in applyQualifiers_shouldHonorSpecifiedQualifiers()
256 assertThat(configuration.screenHeightDp).isEqualTo(587); in applyQualifiers_longShouldMakeScreenTaller()
266 assertThat(configuration.screenHeightDp).isEqualTo(200); in whenScreenRationGreatherThan175Percent_applyQualifiers_ShouldSetLong()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseTest.java229 assertThat(configuration.screenHeightDp).isEqualTo(ScreenSize.xlarge.height); in whenDimensAndSizeSpecified_setQualifiers_should()