Home
last modified time | relevance | path

Searched refs:screenLayout (Results 1 – 25 of 37) sorted by relevance

12

/aosp12/frameworks/base/core/tests/mockingcoretests/src/android/window/
H A DSizeConfigurationBucketsTest.java107 newConfig.screenLayout |= SCREENLAYOUT_ROUND_YES; in testNullSizeConfigurationBuckets()
171 oldConfig.screenLayout |= SCREENLAYOUT_SIZE_SMALL;
173 newConfig.screenLayout |= SCREENLAYOUT_SIZE_NORMAL;
180 newConfig.screenLayout |= SCREENLAYOUT_ROUND_YES;
204 oldConfig.screenLayout |= SCREENLAYOUT_SIZE_SMALL;
235 newConfig.screenLayout),
256 oldConfig.screenLayout |= SCREENLAYOUT_LONG_NO; in testScreenLayoutFilteredIfLongDidNotCrossThreshold()
258 newConfig.screenLayout |= SCREENLAYOUT_LONG_YES; in testScreenLayoutFilteredIfLongDidNotCrossThreshold()
265 newConfig.screenLayout |= SCREENLAYOUT_ROUND_YES; in testScreenLayoutFilteredIfLongDidNotCrossThreshold()
287 oldConfig.screenLayout |= SCREENLAYOUT_LONG_NO; in testScreenLayoutNotFilteredIfLongCrossedThreshold()
[all …]
/aosp12/frameworks/base/core/java/android/content/res/
H A DConfiguration.java970 screenLayout = o.screenLayout; in setTo()
1551 screenLayout = (screenLayout & ~SCREENLAYOUT_SIZE_MASK) in updateFrom()
1558 screenLayout = (screenLayout & ~SCREENLAYOUT_LONG_MASK) in updateFrom()
1565 screenLayout = (screenLayout & ~SCREENLAYOUT_ROUND_MASK) in updateFrom()
1572 screenLayout = (screenLayout & ~SCREENLAYOUT_COMPAT_NEEDED) in updateFrom()
1705 screenLayout = screenLayout | (delta.screenLayout & ~SCREENLAYOUT_LAYOUTDIR_MASK); in setTo()
2101 n = this.screenLayout - that.screenLayout; in compareTo()
2243 screenLayout = (screenLayout&~SCREENLAYOUT_LAYOUTDIR_MASK)| in setLayoutDirection()
2673 delta.screenLayout |= change.screenLayout & SCREENLAYOUT_SIZE_MASK; in generateDelta()
2683 delta.screenLayout |= change.screenLayout & SCREENLAYOUT_LONG_MASK; in generateDelta()
[all …]
H A DCompatibilityInfo.java116 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument
118 this(appInfo, screenLayout, sw, forceCompat, 1f); in CompatibilityInfo()
121 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument
227 switch (screenLayout&Configuration.SCREENLAYOUT_SIZE_MASK) { in CompatibilityInfo()
246 if ((screenLayout&Configuration.SCREENLAYOUT_COMPAT_NEEDED) != 0) { in CompatibilityInfo()
540 inoutConfig.screenLayout = in applyToConfiguration()
541 (inoutConfig.screenLayout&~Configuration.SCREENLAYOUT_SIZE_MASK) in applyToConfiguration()
H A DAssetManager.java1441 int screenHeightDp, int screenLayout, int uiMode, int colorMode, int majorVersion) { in setConfiguration() argument
1446 smallestScreenWidthDp, screenWidthDp, screenHeightDp, screenLayout, uiMode, in setConfiguration()
1527 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, in nativeSetConfiguration() argument
/aosp12/frameworks/base/libs/androidfw/
H A DConfigDescription.cpp99 out->screenLayout = in parseLayoutDirection()
105 out->screenLayout = in parseLayoutDirection()
111 out->screenLayout = in parseLayoutDirection()
123 out->screenLayout = in parseScreenLayoutSize()
129 out->screenLayout = in parseScreenLayoutSize()
135 out->screenLayout = in parseScreenLayoutSize()
141 out->screenLayout = in parseScreenLayoutSize()
147 out->screenLayout = in parseScreenLayoutSize()
916 if ((screenLayout | o.screenLayout) & MASK_LAYOUTDIR) { in HasHigherPrecedenceThan()
923 if ((screenLayout | o.screenLayout) & MASK_SCREENSIZE) { in HasHigherPrecedenceThan()
[all …]
H A DResourceTypes.cpp2107 if (screenLayout != o.screenLayout) { in compare()
2108 return (screenLayout > o.screenLayout) ? 1 : -1; in compare()
2174 if (screenLayout != o.screenLayout) { in compareLogical()
2175 return screenLayout < o.screenLayout ? -1 : 1; in compareLogical()
2279 if (screenLayout || o.screenLayout) { in isMoreSpecificThan()
2280 if (((screenLayout^o.screenLayout) & MASK_LAYOUTDIR) != 0) { in isMoreSpecificThan()
2305 if (screenLayout || o.screenLayout) { in isMoreSpecificThan()
2306 if (((screenLayout^o.screenLayout) & MASK_SCREENSIZE) != 0) { in isMoreSpecificThan()
2310 if (((screenLayout^o.screenLayout) & MASK_SCREENLONG) != 0) { in isMoreSpecificThan()
2545 if (screenLayout || o.screenLayout) { in isBetterThan()
[all …]
/aosp12/frameworks/base/tools/aapt/
H A DAaptConfig.cpp362 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 …]
/aosp12/frameworks/base/native/android/
H A Dconfiguration.cpp101 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()
/aosp12/frameworks/base/core/java/android/window/
H A DSizeConfigurationBuckets.java88 if ((curScreenLayoutSize = config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) in SizeConfigurationBuckets()
92 if (!screenLayoutLongSet && (config.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK) in SizeConfigurationBuckets()
114 areNonSizeLayoutFieldsUnchanged(oldConfig.screenLayout, newConfig.screenLayout); in filterDiff()
143 && !buckets.crossesScreenLayoutLongThreshold(oldConfig.screenLayout, in filterDiff()
144 newConfig.screenLayout)) { in filterDiff()
171 if ((firstConfig.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) in crossesScreenLayoutSizeThreshold()
172 == (secondConfig.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK)) { in crossesScreenLayoutSizeThreshold()
178 if (!secondConfig.isLayoutSizeAtLeast(firstConfig.screenLayout in crossesScreenLayoutSizeThreshold()
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java345 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL; in getConfiguration()
348 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL; in getConfiguration()
351 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE; in getConfiguration()
354 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE; in getConfiguration()
400 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES; in getConfiguration()
403 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_NO; in getConfiguration()
406 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_UNDEFINED; in getConfiguration()
/aosp12/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp34 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 Dandroid_util_AssetManager.cpp344 configuration.screenLayout = static_cast<uint8_t>(screen_layout); in NativeSetConfiguration()
1023 env->SetIntField(result, gConfigurationOffsets.mScreenLayoutOffset, config.screenLayout); in ConstructConfigurationObject()
/aosp12/frameworks/base/core/tests/coretests/src/android/content/res/
H A DConfigurationTest.java64 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 DResourcesManagerTest.java246 config2.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
267 expectedConfig2.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
/aosp12/frameworks/base/tools/aapt2/format/proto/
H A DProtoDeserialize.cpp86 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 DProtoSerialize.cpp67 switch (config.screenLayout & ConfigDescription::MASK_LAYOUTDIR) { in SerializeConfig()
83 switch (config.screenLayout & ConfigDescription::MASK_SCREENSIZE) { in SerializeConfig()
105 switch (config.screenLayout & ConfigDescription::MASK_SCREENLONG) { in SerializeConfig()
/aosp12/frameworks/base/libs/androidfw/tests/
H A DConfig_test.cpp136 longConfig.screenLayout = ResTable_config::SCREENLONG_YES; in TEST()
170 deviceConfig.screenLayout = ResTable_config::SCREENLONG_YES; in TEST()
176 targetConfigB.screenLayout = ResTable_config::SCREENLONG_YES; in TEST()
/aosp12/frameworks/base/tools/aapt2/test/
H A DBuilders.h279 ConfigDescriptionBuilder& setScreenLayout(uint8_t screenLayout) { in setScreenLayout() argument
280 config_.screenLayout = screenLayout; in setScreenLayout()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskTests.java719 assertTrue((inOutConfig.screenLayout & Configuration.SCREENLAYOUT_LONG_NO) != 0); in testComputeConfigResourceLayoutOverrides()
775 final int screenLayout = parentConfig.screenLayout in testInsetDisregardedWhenFreeformOverlapsNavBar() local
778 Configuration.reduceScreenLayout(screenLayout, longSideDp, shortSideDp); in testInsetDisregardedWhenFreeformOverlapsNavBar()
796 assertEquals(reducedScreenLayout, inOutConfig.screenLayout); in testInsetDisregardedWhenFreeformOverlapsNavBar()
813 assertEquals(reducedScreenLayout, inOutConfig.screenLayout); in testInsetDisregardedWhenFreeformOverlapsNavBar()
H A DSizeCompatTests.java510 c.screenLayout = fixedScreenLayout | Configuration.SCREENLAYOUT_LAYOUTDIR_LTR; in testFixedScreenLayoutSizeBits()
516 mActivity.getConfiguration().screenLayout & layoutMask); in testFixedScreenLayoutSizeBits()
518 mTask.getConfiguration().screenLayout = Configuration.SCREENLAYOUT_LAYOUTDIR_RTL in testFixedScreenLayoutSizeBits()
524 mActivity.getConfiguration().screenLayout & layoutMask); in testFixedScreenLayoutSizeBits()
/aosp12/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java66 getResources().getConfiguration().screenLayout, in init()
/aosp12/frameworks/base/core/java/android/app/
H A DResourcesManager.java352 int sl = Configuration.resetScreenLayout(config.screenLayout); in applyDisplayMetricsToConfiguration()
355 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyDisplayMetricsToConfiguration()
359 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyDisplayMetricsToConfiguration()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskFragment.java1824 inOutConfig.screenLayout = Configuration.SCREENLAYOUT_UNDEFINED; in computeConfigResourceOverrides()
1995 if (inOutConfig.screenLayout == Configuration.SCREENLAYOUT_UNDEFINED) { in computeConfigResourceOverrides()
2010 inOutConfig.screenLayout = computeScreenLayoutOverride(parentConfig.screenLayout, in computeConfigResourceOverrides()
H A DCompatModePackages.java372 return new CompatibilityInfo(ai, config.screenLayout, config.smallestScreenWidthDp, in compatibilityInfoForPackageLocked()
/aosp12/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceTypes.h1161 uint8_t screenLayout; member

12