/frameworks/base/core/tests/mockingcoretests/src/android/window/ |
D | SizeConfigurationBucketsTest.java | 151 sizeConfigs[0].screenLayout |= SCREENLAYOUT_SIZE_SMALL; 153 sizeConfigs[1].screenLayout |= SCREENLAYOUT_SIZE_LARGE; 160 oldConfig.screenLayout |= SCREENLAYOUT_SIZE_SMALL; 162 newConfig.screenLayout |= SCREENLAYOUT_SIZE_NORMAL; 169 newConfig.screenLayout |= SCREENLAYOUT_ROUND_YES; 184 sizeConfigs[0].screenLayout |= SCREENLAYOUT_SIZE_SMALL; 186 sizeConfigs[1].screenLayout |= SCREENLAYOUT_SIZE_NORMAL; 193 oldConfig.screenLayout |= SCREENLAYOUT_SIZE_SMALL; 195 newConfig.screenLayout |= SCREENLAYOUT_SIZE_NORMAL; 220 oldConfig.screenLayout |= sizeValuesInOrder[larger]; [all …]
|
/frameworks/base/libs/androidfw/ |
D | ConfigDescription.cpp | 117 out->screenLayout = in parseLayoutDirection() 118 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection() 123 out->screenLayout = in parseLayoutDirection() 124 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection() 129 out->screenLayout = in parseLayoutDirection() 130 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection() 141 out->screenLayout = in parseScreenLayoutSize() 142 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize() 147 out->screenLayout = in parseScreenLayoutSize() 148 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize() [all …]
|
D | ResourceTypes.cpp | 2194 if (screenLayout != o.screenLayout) { in compare() 2195 return (screenLayout > o.screenLayout) ? 1 : -1; in compare() 2233 if ((screenLayout & MASK_LAYOUTDIR) != (o.screenLayout & MASK_LAYOUTDIR)) { in compareLogical() 2234 return (screenLayout & MASK_LAYOUTDIR) < (o.screenLayout & MASK_LAYOUTDIR) ? -1 : 1; in compareLogical() 2263 if (screenLayout != o.screenLayout) { in compareLogical() 2264 return screenLayout < o.screenLayout ? -1 : 1; in compareLogical() 2294 …if ((screenLayout & MASK_LAYOUTDIR) != (o.screenLayout & MASK_LAYOUTDIR)) diffs |= CONFIG_LAYOUTDI… in diff() 2295 …if ((screenLayout & ~MASK_LAYOUTDIR) != (o.screenLayout & ~MASK_LAYOUTDIR)) diffs |= CONFIG_SCREEN… in diff() 2376 if (screenLayout || o.screenLayout) { in isMoreSpecificThan() 2377 if (((screenLayout^o.screenLayout) & MASK_LAYOUTDIR) != 0) { in isMoreSpecificThan() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 389 public int screenLayout; field in Configuration 565 int cur = screenLayout&SCREENLAYOUT_SIZE_MASK; in isLayoutSizeAtLeast() 1104 screenLayout = o.screenLayout; in setTo() 1152 int layoutDir = (screenLayout&SCREENLAYOUT_LAYOUTDIR_MASK); in toString() 1180 switch ((screenLayout&SCREENLAYOUT_SIZE_MASK)) { in toString() 1187 sb.append(screenLayout&SCREENLAYOUT_SIZE_MASK); break; in toString() 1189 switch ((screenLayout&SCREENLAYOUT_LONG_MASK)) { in toString() 1194 sb.append(screenLayout&SCREENLAYOUT_LONG_MASK); break; in toString() 1312 protoOutputStream.write(SCREEN_LAYOUT, screenLayout); in dumpDebug() 1440 screenLayout = protoInputStream.readInt(SCREEN_LAYOUT); in readFromProto() [all …]
|
D | CompatibilityInfo.java | 138 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 140 this(appInfo, screenLayout, sw, forceCompat, 1f); in CompatibilityInfo() 143 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 145 this(appInfo, screenLayout, sw, forceCompat, scaleFactor, scaleFactor); in CompatibilityInfo() 148 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 266 switch (screenLayout&Configuration.SCREENLAYOUT_SIZE_MASK) { in CompatibilityInfo() 285 if ((screenLayout&Configuration.SCREENLAYOUT_COMPAT_NEEDED) != 0) { in CompatibilityInfo() 624 inoutConfig.screenLayout = in applyToConfiguration() 625 (inoutConfig.screenLayout&~Configuration.SCREENLAYOUT_SIZE_MASK) in applyToConfiguration()
|
D | AssetManager.java | 1556 int screenHeightDp, int screenLayout, int uiMode, int colorMode, int grammaticalGender, in setConfiguration() argument 1561 smallestScreenWidthDp, screenWidthDp, screenHeightDp, screenLayout, uiMode, in setConfiguration() 1566 smallestScreenWidthDp, screenWidthDp, screenHeightDp, screenLayout, uiMode, in setConfiguration() 1579 int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int colorMode, in setConfiguration() argument 1584 screenLayout, uiMode, colorMode, grammaticalGender, majorVersion, false); in setConfiguration() 1595 int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int colorMode, in setConfigurationInternal() argument 1602 screenLayout, uiMode, colorMode, grammaticalGender, majorVersion, in setConfigurationInternal() 1693 int screenHeightDp, int screenLayout, int uiMode, int colorMode, int grammaticalGender, in nativeSetConfiguration() argument
|
/frameworks/base/tools/aapt/ |
D | AaptConfig.cpp | 286 } else if ((config->screenLayout & ResTable_config::MASK_SCREENSIZE) in applyVersionForCompatibility() 288 || (config->screenLayout & ResTable_config::MASK_SCREENLONG) in applyVersionForCompatibility() 362 if (out) out->screenLayout = in parseLayoutDirection() 363 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection() 367 if (out) out->screenLayout = in parseLayoutDirection() 368 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection() 372 if (out) out->screenLayout = in parseLayoutDirection() 373 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection() 383 if (out) out->screenLayout = in parseScreenLayoutSize() 384 (out->screenLayout&~ResTable_config::MASK_SCREENSIZE) in parseScreenLayoutSize() [all …]
|
/frameworks/base/native/android/ |
D | configuration.cpp | 101 return config->screenLayout&ResTable_config::MASK_SCREENSIZE; in AConfiguration_getScreenSize() 105 return (config->screenLayout&ResTable_config::MASK_SCREENLONG) in AConfiguration_getScreenLong() 136 return (config->screenLayout&ResTable_config::MASK_LAYOUTDIR) in AConfiguration_getLayoutDirection() 195 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_SCREENSIZE) in AConfiguration_setScreenSize() 200 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_SCREENLONG) in AConfiguration_setScreenLong() 233 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in AConfiguration_setLayoutDirection()
|
/frameworks/base/core/java/android/window/ |
D | SizeConfigurationBuckets.java | 88 if ((curScreenLayoutSize = config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) in SizeConfigurationBuckets() 92 if (!screenLayoutLongSet && (config.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK) in SizeConfigurationBuckets() 115 areNonSizeLayoutFieldsUnchanged(oldConfig.screenLayout, newConfig.screenLayout); in filterDiff() 134 && !buckets.crossesScreenLayoutLongThreshold(oldConfig.screenLayout, in filterDiff() 135 newConfig.screenLayout)) { in filterDiff() 162 if ((firstConfig.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) in crossesScreenLayoutSizeThreshold() 163 == (secondConfig.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK)) { in crossesScreenLayoutSizeThreshold() 169 if (!secondConfig.isLayoutSizeAtLeast(firstConfig.screenLayout in crossesScreenLayoutSizeThreshold()
|
/frameworks/base/core/jni/ |
D | android_content_res_Configuration.cpp | 34 jfieldID screenLayout; member 52 out->screenLayout = env->GetIntField(clazz, gConfigurationClassInfo.screenLayout); in android_Configuration_getFromJava() 82 gConfigurationClassInfo.screenLayout = GetFieldIDOrDie(env, clazz, "screenLayout", "I"); in register_android_content_res_Configuration()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSPanelControllerBaseSceneContainerTest.kt | 135 configuration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES in configurationChange_onlySplitShadeConfigChanges_horizontalInSceneUpdated() 161 configuration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES in configurationChange_shouldUseHorizontalInSceneInLongDevices() 170 configuration.screenLayout = Configuration.SCREENLAYOUT_LONG_NO in configurationChange_shouldUseHorizontalInSceneInLongDevices() 191 configuration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES in configurationChange_horizontalInScene_onlyInLandscape() 217 configuration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES in changeMediaVisible_changesHorizontalInScene() 239 configuration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES in startFromMediaHorizontalLong_shouldUseHorizontal()
|
D | QSPanelControllerBaseTest.java | 327 mConfiguration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES; in testShouldUseHorizontalLayout_falseForSplitShade() 357 mConfiguration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES; in testChangeConfiguration_shouldUseHorizontalLayoutInLandscape_true() 381 mConfiguration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES; in testChangeConfiguration_shouldUseHorizontalLayoutInLongDevices_true() 389 mConfiguration.screenLayout = Configuration.SCREENLAYOUT_LONG_NO; in testChangeConfiguration_shouldUseHorizontalLayoutInLongDevices_true() 417 mConfiguration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES; in configurationChange_onlySplitShadeConfigChanges_horizontalLayoutStatusUpdated()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 372 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL; in getConfiguration() 375 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL; in getConfiguration() 378 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE; in getConfiguration() 381 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE; in getConfiguration() 427 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES; in getConfiguration() 430 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_NO; in getConfiguration() 433 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_UNDEFINED; in getConfiguration()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationTest.java | 64 config.screenLayout = Configuration.SCREENLAYOUT_ROUND_YES; in testUpdateFromPreservesRoundBit() 68 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_ROUND_YES); in testUpdateFromPreservesRoundBit() 74 config.screenLayout = Configuration.SCREENLAYOUT_COMPAT_NEEDED; in testUpdateFromPreservesCompatNeededBit() 77 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_COMPAT_NEEDED); in testUpdateFromPreservesCompatNeededBit() 80 assertEquals(config2.screenLayout, Configuration.SCREENLAYOUT_COMPAT_NEEDED); in testUpdateFromPreservesCompatNeededBit()
|
D | ResourcesManagerTest.java | 283 config2.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 304 expectedConfig2.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 86 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_LAYOUTDIR) | in DeserializeConfigFromPb() 91 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_LAYOUTDIR) | in DeserializeConfigFromPb() 105 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) | in DeserializeConfigFromPb() 110 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) | in DeserializeConfigFromPb() 115 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) | in DeserializeConfigFromPb() 120 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) | in DeserializeConfigFromPb() 130 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENLONG) | in DeserializeConfigFromPb() 135 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENLONG) | in DeserializeConfigFromPb()
|
D | ProtoSerialize.cpp | 70 switch (config.screenLayout & ConfigDescription::MASK_LAYOUTDIR) { in SerializeConfig() 86 switch (config.screenLayout & ConfigDescription::MASK_SCREENSIZE) { in SerializeConfig() 108 switch (config.screenLayout & ConfigDescription::MASK_SCREENLONG) { in SerializeConfig()
|
/frameworks/base/libs/androidfw/tests/ |
D | Config_test.cpp | 139 longConfig.screenLayout = ResTable_config::SCREENLONG_YES; in TEST() 173 deviceConfig.screenLayout = ResTable_config::SCREENLONG_YES; in TEST() 179 targetConfigB.screenLayout = ResTable_config::SCREENLONG_YES; in TEST()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | RoundedCornersTest.java | 233 mConfiguration.screenLayout = SCREENLAYOUT_ROUND_YES; in testGetRoundedCornerRadius_withRoundDevice_usesDisplayRadiusAsDefault() 254 mConfiguration.screenLayout = SCREENLAYOUT_ROUND_YES; in testGetRoundedCornerRadius_withRoundDevice_usesOverlayIfProvided() 273 mConfiguration.screenLayout = SCREENLAYOUT_ROUND_NO; in testGetRoundedCornerRadius_withNonRoundDevice_noDisplayDefault()
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.h | 280 ConfigDescriptionBuilder& setScreenLayout(uint8_t screenLayout) { in setScreenLayout() argument 281 config_.screenLayout = screenLayout; in setScreenLayout()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImplTest.kt | 247 config.screenLayout = SCREENLAYOUT_LAYOUTDIR_LTR in layoutDirectionUpdated_listenerNotified() 253 config.screenLayout = SCREENLAYOUT_LAYOUTDIR_RTL in layoutDirectionUpdated_listenerNotified()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/logging/ |
D | QSLogger.kt | 386 private inline fun toScreenLayoutString(screenLayout: Int): String { in toScreenLayoutString() 387 return when (screenLayout) { in toScreenLayoutString()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSPanelControllerBase.java | 121 mLastScreenLayout = newConfig.screenLayout; 237 mLastScreenLayout = getResources().getConfiguration().screenLayout; in onViewAttached()
|
/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | ParcelableUsageEventListTest.java | 119 event.mConfiguration.screenLayout = Configuration.SCREENLAYOUT_ROUND_YES; in generateUsageEvent()
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 66 getResources().getConfiguration().screenLayout, in init()
|