/aosp14/frameworks/base/core/tests/mockingcoretests/src/android/window/ |
H A D | SizeConfigurationBucketsTest.java | 160 oldConfig.screenLayout |= SCREENLAYOUT_SIZE_SMALL; 162 newConfig.screenLayout |= SCREENLAYOUT_SIZE_NORMAL; 169 newConfig.screenLayout |= SCREENLAYOUT_ROUND_YES; 193 oldConfig.screenLayout |= SCREENLAYOUT_SIZE_SMALL; 195 newConfig.screenLayout |= SCREENLAYOUT_SIZE_NORMAL; 224 newConfig.screenLayout), 245 oldConfig.screenLayout |= SCREENLAYOUT_LONG_NO; in testScreenLayoutFilteredIfLongDidNotCrossThreshold() 247 newConfig.screenLayout |= SCREENLAYOUT_LONG_YES; in testScreenLayoutFilteredIfLongDidNotCrossThreshold() 254 newConfig.screenLayout |= SCREENLAYOUT_ROUND_YES; in testScreenLayoutFilteredIfLongDidNotCrossThreshold() 276 oldConfig.screenLayout |= SCREENLAYOUT_LONG_NO; in testScreenLayoutNotFilteredIfLongCrossedThreshold() [all …]
|
/aosp14/frameworks/base/libs/androidfw/ |
H A D | ConfigDescription.cpp | 117 out->screenLayout = in parseLayoutDirection() 123 out->screenLayout = in parseLayoutDirection() 129 out->screenLayout = in parseLayoutDirection() 141 out->screenLayout = in parseScreenLayoutSize() 147 out->screenLayout = in parseScreenLayoutSize() 153 out->screenLayout = in parseScreenLayoutSize() 159 out->screenLayout = in parseScreenLayoutSize() 165 out->screenLayout = in parseScreenLayoutSize() 944 if ((screenLayout | o.screenLayout) & MASK_LAYOUTDIR) { in HasHigherPrecedenceThan() 951 if ((screenLayout | o.screenLayout) & MASK_SCREENSIZE) { in HasHigherPrecedenceThan() [all …]
|
H A D | ResourceTypes.cpp | 2123 if (screenLayout != o.screenLayout) { in compare() 2124 return (screenLayout > o.screenLayout) ? 1 : -1; in compare() 2192 if (screenLayout != o.screenLayout) { in compareLogical() 2193 return screenLayout < o.screenLayout ? -1 : 1; in compareLogical() 2305 if (screenLayout || o.screenLayout) { in isMoreSpecificThan() 2306 if (((screenLayout^o.screenLayout) & MASK_LAYOUTDIR) != 0) { in isMoreSpecificThan() 2331 if (screenLayout || o.screenLayout) { in isMoreSpecificThan() 2332 if (((screenLayout^o.screenLayout) & MASK_SCREENSIZE) != 0) { in isMoreSpecificThan() 2336 if (((screenLayout^o.screenLayout) & MASK_SCREENLONG) != 0) { in isMoreSpecificThan() 2578 if (screenLayout || o.screenLayout) { in isBetterThan() [all …]
|
/aosp14/frameworks/base/core/java/android/content/res/ |
H A D | Configuration.java | 1083 screenLayout = o.screenLayout; in setTo() 1677 screenLayout = (screenLayout & ~SCREENLAYOUT_SIZE_MASK) in updateFrom() 1684 screenLayout = (screenLayout & ~SCREENLAYOUT_LONG_MASK) in updateFrom() 1691 screenLayout = (screenLayout & ~SCREENLAYOUT_ROUND_MASK) in updateFrom() 1698 screenLayout = (screenLayout & ~SCREENLAYOUT_COMPAT_NEEDED) in updateFrom() 1835 screenLayout = screenLayout | (delta.screenLayout & ~SCREENLAYOUT_LAYOUTDIR_MASK); in setTo() 2216 n = this.screenLayout - that.screenLayout; in compareTo() 2382 screenLayout = (screenLayout&~SCREENLAYOUT_LAYOUTDIR_MASK)| in setLayoutDirection() 2835 delta.screenLayout |= change.screenLayout & SCREENLAYOUT_SIZE_MASK; in generateDelta() 2845 delta.screenLayout |= change.screenLayout & SCREENLAYOUT_LONG_MASK; in generateDelta() [all …]
|
H A D | CompatibilityInfo.java | 120 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 122 this(appInfo, screenLayout, sw, forceCompat, 1f); in CompatibilityInfo() 125 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 240 switch (screenLayout&Configuration.SCREENLAYOUT_SIZE_MASK) { in CompatibilityInfo() 259 if ((screenLayout&Configuration.SCREENLAYOUT_COMPAT_NEEDED) != 0) { in CompatibilityInfo() 588 inoutConfig.screenLayout = in applyToConfiguration() 589 (inoutConfig.screenLayout&~Configuration.SCREENLAYOUT_SIZE_MASK) in applyToConfiguration()
|
H A D | AssetManager.java | 1479 int screenHeightDp, int screenLayout, int uiMode, int colorMode, int grammaticalGender, in setConfiguration() argument 1485 smallestScreenWidthDp, screenWidthDp, screenHeightDp, screenLayout, uiMode, in setConfiguration() 1575 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, in nativeSetConfiguration() argument
|
/aosp14/frameworks/base/tools/aapt/ |
H A D | AaptConfig.cpp | 362 if (out) out->screenLayout = in parseLayoutDirection() 367 if (out) out->screenLayout = in parseLayoutDirection() 372 if (out) out->screenLayout = in parseLayoutDirection() 383 if (out) out->screenLayout = in parseScreenLayoutSize() 388 if (out) out->screenLayout = in parseScreenLayoutSize() 393 if (out) out->screenLayout = in parseScreenLayoutSize() 398 if (out) out->screenLayout = in parseScreenLayoutSize() 403 if (out) out->screenLayout = in parseScreenLayoutSize() 414 if (out) out->screenLayout = in parseScreenLayoutLong() 419 if (out) out->screenLayout = in parseScreenLayoutLong() [all …]
|
/aosp14/frameworks/base/native/android/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/window/ |
H A 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()
|
/aosp14/frameworks/base/core/jni/ |
H A 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()
|
H A D | android_util_AssetManager.cpp | 373 configuration.screenLayout = static_cast<uint8_t>(screen_layout); in NativeSetConfiguration() 1073 env->SetIntField(result, gConfigurationOffsets.mScreenLayoutOffset, config.screenLayout); in ConstructConfigurationObject()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A 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()
|
H A D | ResourcesManagerTest.java | 248 config2.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 269 expectedConfig2.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
|
/aosp14/frameworks/base/tools/aapt2/format/proto/ |
H A 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()
|
H A 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()
|
/aosp14/frameworks/base/libs/androidfw/tests/ |
H A 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()
|
/aosp14/frameworks/base/tools/aapt2/test/ |
H A D | Builders.h | 277 ConfigDescriptionBuilder& setScreenLayout(uint8_t screenLayout) { in setScreenLayout() argument 278 config_.screenLayout = screenLayout; in setScreenLayout()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | ConfigurationControllerImplTest.kt | 247 config.screenLayout = SCREENLAYOUT_LAYOUTDIR_LTR 253 config.screenLayout = SCREENLAYOUT_LAYOUTDIR_RTL
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | TaskTests.java | 825 assertTrue((inOutConfig.screenLayout & Configuration.SCREENLAYOUT_LONG_NO) != 0); in testComputeConfigResourceLayoutOverrides() 881 final int screenLayout = parentConfig.screenLayout in testInsetDisregardedWhenFreeformOverlapsNavBar() local 884 Configuration.reduceScreenLayout(screenLayout, longSideDp, shortSideDp); in testInsetDisregardedWhenFreeformOverlapsNavBar() 902 assertEquals(reducedScreenLayout, inOutConfig.screenLayout); in testInsetDisregardedWhenFreeformOverlapsNavBar() 919 assertEquals(reducedScreenLayout, inOutConfig.screenLayout); in testInsetDisregardedWhenFreeformOverlapsNavBar()
|
H A D | SizeCompatTests.java | 1046 c.screenLayout = fixedScreenLayout | Configuration.SCREENLAYOUT_LAYOUTDIR_LTR; in testFixedScreenLayoutSizeBits() 1052 mActivity.getConfiguration().screenLayout & layoutMask); in testFixedScreenLayoutSizeBits() 1054 mTask.getConfiguration().screenLayout = Configuration.SCREENLAYOUT_LAYOUTDIR_RTL in testFixedScreenLayoutSizeBits() 1060 mActivity.getConfiguration().screenLayout & layoutMask); in testFixedScreenLayoutSizeBits()
|
/aosp14/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
H A D | DpiTestActivity.java | 66 getResources().getConfiguration().screenLayout, in init()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | ResourcesManager.java | 376 int sl = Configuration.resetScreenLayout(config.screenLayout); in applyDisplayMetricsToConfiguration() 379 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyDisplayMetricsToConfiguration() 383 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyDisplayMetricsToConfiguration()
|
/aosp14/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
H A D | SplitPresenterTest.java | 374 taskProperties.getConfiguration().screenLayout |= Configuration.SCREENLAYOUT_LAYOUTDIR_RTL; in testGetRelBoundsForPosition_splitVertically() 440 taskProperties.getConfiguration().screenLayout |= Configuration.SCREENLAYOUT_LAYOUTDIR_RTL; in testGetRelBoundsForPosition_splitVertically_isRelativeToParent()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskFragment.java | 2102 inOutConfig.screenLayout = Configuration.SCREENLAYOUT_UNDEFINED; in computeConfigResourceOverrides() 2282 if (inOutConfig.screenLayout == Configuration.SCREENLAYOUT_UNDEFINED) { in computeConfigResourceOverrides() 2297 inOutConfig.screenLayout = computeScreenLayout(parentConfig.screenLayout, in computeConfigResourceOverrides()
|
H A D | CompatModePackages.java | 446 return new CompatibilityInfo(ai, config.screenLayout, config.smallestScreenWidthDp, in compatibilityInfoForPackageLocked()
|