Home
last modified time | relevance | path

Searched refs:uiMode (Results 1 – 11 of 11) sorted by relevance

/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResTable_config.java143 int uiMode = 0; in createConfig() local
155 uiMode = UnsignedBytes.toInt(buffer.get()); in createConfig()
182 sdkVersion, minorVersion, screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp, in createConfig()
637 screenWidth, screenHeight, sdkVersion, minorVersion, screenLayout, uiMode, in withSdkVersion()
645 int uiMode, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in ResTable_config() argument
664 this.uiMode = uiMode; in ResTable_config()
718 public int uiMode; field in ResTable_config
721 return uiMode & UI_MODE_TYPE_MASK; in uiModeType()
725 uiMode = (uiMode & ~UI_MODE_TYPE_MASK) | value; in uiModeType()
729 return uiMode & UI_MODE_NIGHT_MASK; in uiModeNight()
[all …]
DConfigDescription.java624 out.uiMode = (out.uiMode & ~ResTable_config.MASK_UI_MODE_TYPE) | in parseUiModeType()
630 out.uiMode = (out.uiMode & ~ResTable_config.MASK_UI_MODE_TYPE) | in parseUiModeType()
636 out.uiMode = (out.uiMode & ~ResTable_config.MASK_UI_MODE_TYPE) | in parseUiModeType()
642 out.uiMode = (out.uiMode & ~ResTable_config.MASK_UI_MODE_TYPE) | in parseUiModeType()
648 out.uiMode = (out.uiMode & ~ResTable_config.MASK_UI_MODE_TYPE) | in parseUiModeType()
654 out.uiMode = (out.uiMode & ~ResTable_config.MASK_UI_MODE_TYPE) | in parseUiModeType()
660 out.uiMode = (out.uiMode & ~ResTable_config.MASK_UI_MODE_TYPE) | in parseUiModeType()
672 out.uiMode = (out.uiMode & ~ResTable_config.MASK_UI_MODE_NIGHT) | in parseUiModeNight()
678 out.uiMode = (out.uiMode & ~ResTable_config.MASK_UI_MODE_NIGHT) | in parseUiModeNight()
684 out.uiMode = (out.uiMode & ~ResTable_config.MASK_UI_MODE_NIGHT) | in parseUiModeNight()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DDeviceConfig.java193 configuration.uiMode = uiModeType | uiModeNight; in applyToConfiguration()
445 return configuration.uiMode & Configuration.UI_MODE_TYPE_MASK; in getUiModeType()
449 configuration.uiMode = (configuration.uiMode & ~Configuration.UI_MODE_TYPE_MASK) | value; in setUiModeType()
453 return configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK; in getUiModeNight()
457 configuration.uiMode = (configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) | value; in setUiModeNight()
DConfigurationV25.java189 switch (config.uiMode & Configuration.UI_MODE_TYPE_MASK) { in resourceQualifierString()
213 switch (config.uiMode & Configuration.UI_MODE_NIGHT_MASK) { in resourceQualifierString()
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/
DConfigDescriptionTest.java184 assertThat(config.uiMode).isEqualTo(UI_MODE_TYPE_CAR); in parse_uiModeType_car()
190 assertThat(config.uiMode).isEqualTo(UI_MODE_TYPE_TELEVISION); in parse_uiModeType_television()
196 assertThat(config.uiMode).isEqualTo(UI_MODE_TYPE_APPLIANCE); in parse_uiModeType_appliance()
202 assertThat(config.uiMode).isEqualTo(UI_MODE_TYPE_WATCH); in parse_uiModeType_watch()
208 assertThat(config.uiMode).isEqualTo(UI_MODE_NIGHT_YES); in parse_uiModeNight_night()
214 assertThat(config.uiMode).isEqualTo(UI_MODE_NIGHT_NO); in parse_uiModeNight_notnight()
DResTableConfigTest.java132 int uiMode; field in ResTableConfigTest.ResTableConfigBuilder
144 …screenHeight, sdkVersion, minorVersion, screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp… in build()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DBootstrapTest.java166 assertThat(configuration.uiMode & UI_MODE_TYPE_MASK).isEqualTo(UI_MODE_TYPE_NORMAL); in applyQualifiers_shouldAddDefaults()
167 assertThat(configuration.uiMode & UI_MODE_NIGHT_MASK).isEqualTo(UI_MODE_NIGHT_NO); in applyQualifiers_shouldAddDefaults()
235 assertThat(configuration.uiMode & UI_MODE_TYPE_MASK).isEqualTo(UI_MODE_TYPE_APPLIANCE); in applyQualifiers_shouldHonorSpecifiedQualifiers()
236 assertThat(configuration.uiMode & UI_MODE_NIGHT_MASK).isEqualTo(UI_MODE_NIGHT_YES); in applyQualifiers_shouldHonorSpecifiedQualifiers()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowArscAssetManager.java136 int screenLayout, int uiMode, int sdkVersion) { in setConfiguration() argument
141 screenLayout, uiMode, 0, sdkVersion); in setConfiguration()
149 int screenLayout, int uiMode, int colorMode, int sdkVersion) { in setConfiguration() argument
178 config.uiMode = uiMode; in setConfiguration()
DShadowLegacyAssetManager.java674 int screenLayout, int uiMode, int sdkVersion) { in setConfiguration() argument
679 screenLayout, uiMode, 0, sdkVersion); in setConfiguration()
687 int screenLayout, int uiMode, int colorMode, int majorVersion) { in setConfiguration() argument
710 config.uiMode = uiMode; in setConfiguration()
DShadowArscAssetManager10.java586 configuration.uiMode = (byte) (ui_mode); in nativeSetConfiguration()
DShadowArscAssetManager9.java582 configuration.uiMode = (byte) (ui_mode); in nativeSetConfiguration()