/frameworks/base/core/jni/ |
D | android_content_res_Configuration.cpp | 44 jfieldID screenHeightDp; member 70 out->screenHeightDp = env->GetIntField(clazz, gConfigurationClassInfo.screenHeightDp); in android_Configuration_getFromJava() 93 gConfigurationClassInfo.screenHeightDp = GetFieldIDOrDie(env, clazz, "screenHeightDp", "I"); in register_android_content_res_Configuration()
|
/frameworks/base/core/java/android/accessibilityservice/util/ |
D | AccessibilityUtils.java | 134 final int screenHeightDp = resources.getConfiguration().screenHeightDp; in getScreenHeightPixels() local 136 return Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, screenHeightDp, in getScreenHeightPixels()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 904 public int screenHeightDp; field in Configuration 1108 screenHeightDp = o.screenHeightDp; in setTo() 1170 if (screenHeightDp != SCREEN_HEIGHT_DP_UNDEFINED) { in toString() 1171 sb.append(" h"); sb.append(screenHeightDp); sb.append("dp"); in toString() 1331 protoOutputStream.write(SCREEN_HEIGHT_DP, screenHeightDp); in dumpDebug() 1473 screenHeightDp = protoInputStream.readInt(SCREEN_HEIGHT_DP); in readFromProto() 1587 screenHeightDp = compatScreenHeightDp = SCREEN_HEIGHT_DP_UNDEFINED; in setToDefaults() 1757 if (delta.screenHeightDp != SCREEN_HEIGHT_DP_UNDEFINED in updateFrom() 1758 && screenHeightDp != delta.screenHeightDp) { in updateFrom() 1760 screenHeightDp = delta.screenHeightDp; in updateFrom() [all …]
|
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 1583 screenHeight, smallestScreenWidthDp, screenWidthDp, screenHeightDp, in setConfiguration() 1595 int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int colorMode, in setConfigurationInternal() argument 1601 screenHeight, smallestScreenWidthDp, screenWidthDp, screenHeightDp, in setConfigurationInternal() 1693 int screenHeightDp, int screenLayout, int uiMode, int colorMode, int grammaticalGender, in nativeSetConfiguration() argument
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 55 final int height = config.screenHeightDp; in getMaxActionButtons() 91 final int height = configuration.screenHeightDp; in hasEmbeddedTabs()
|
/frameworks/base/core/java/android/window/ |
D | SizeConfigurationBuckets.java | 79 if (config.screenHeightDp != Configuration.SCREEN_HEIGHT_DP_UNDEFINED) { in SizeConfigurationBuckets() 80 vertical.put(config.screenHeightDp, 0); in SizeConfigurationBuckets() 119 || buckets.crossesVerticalSizeThreshold(oldConfig.screenHeightDp, in filterDiff() 120 newConfig.screenHeightDp); in filterDiff()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlsActivityTest.kt | 128 val oldHeight = configuration.screenHeightDp in swapHeightWidth() 130 configuration.screenHeightDp = oldWidth in swapHeightWidth()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 392 config.screenHeightDp = hardwareConfig.getScreenHeight() * 160 / density.getDpiValue(); in getConfiguration() 393 if (config.screenHeightDp < config.screenWidthDp) { in getConfiguration() 395 config.smallestScreenWidthDp = config.screenHeightDp; in getConfiguration() 403 config.compatScreenHeightDp = config.screenHeightDp; in getConfiguration()
|
/frameworks/base/core/tests/mockingcoretests/src/android/window/ |
D | SizeConfigurationBucketsTest.java | 323 oldConfig.screenHeightDp = 480; in testVerticalSizeThresholds() 325 newConfig.screenHeightDp = 520; in testVerticalSizeThresholds() 329 newConfig.screenHeightDp = 640; in testVerticalSizeThresholds()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | DeviceConfig.kt | 53 val largestEdgeDp = max(config.screenWidthDp, config.screenHeightDp) in create()
|
/frameworks/base/libs/androidfw/ |
D | ConfigDescription.cpp | 612 out->screenHeightDp = out->SCREENWIDTH_ANY; in parseScreenHeightDp() 625 out->screenHeightDp = (uint16_t)atoi(xName.c_str()); in parseScreenHeightDp() 874 config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) { in ApplyVersionForCompatibility() 950 if (screenHeightDp || o.screenHeightDp) return (!o.screenHeightDp); in HasHigherPrecedenceThan()
|
D | ResourceTypes.cpp | 2121 screenHeightDp = dtohs(screenHeightDp); in copyFromDtoH() 2135 screenHeightDp = htods(screenHeightDp); in swapHtoD() 2242 if (screenHeightDp != o.screenHeightDp) { in compareLogical() 2243 return screenHeightDp < o.screenHeightDp ? -1 : 1; in compareLogical() 2396 if (screenHeightDp != o.screenHeightDp) { in isMoreSpecificThan() 2397 if (!screenHeightDp) return false; in isMoreSpecificThan() 2398 if (!o.screenHeightDp) return true; in isMoreSpecificThan() 2698 if (requested->screenHeightDp) { in isBetterThan() 2699 myDelta += requested->screenHeightDp - screenHeightDp; in isBetterThan() 2700 otherDelta += requested->screenHeightDp - o.screenHeightDp; in isBetterThan() [all …]
|
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
D | ActivityThreadClientTest.java | 221 currentConfig.screenHeightDp = 200; in testShouldReportChange() 222 newConfig.screenHeightDp = 300; in testShouldReportChange() 247 newConfig.screenHeightDp = 500; in testShouldReportChange()
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.h | 296 ConfigDescriptionBuilder& setScreenHeightDp(uint16_t screenHeightDp) { in setScreenHeightDp() argument 297 config_.screenHeightDp = screenHeightDp; in setScreenHeightDp()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/windowinsets/ |
D | ScreenDecorProvider.kt | 58 (LocalConfiguration.current.screenHeightDp.dp + in ScreenDecorProvider()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ConfigurationContainer.java | 238 inOutConfig.screenHeightDp = Configuration.SCREEN_HEIGHT_DP_UNDEFINED; in applySizeOverrideIfNeeded() 269 if (inOutConfig.screenHeightDp == Configuration.SCREEN_HEIGHT_DP_UNDEFINED) { in applySizeOverrideIfNeeded() 270 inOutConfig.screenHeightDp = (int) (outAppBounds.height() / density + 0.5f); in applySizeOverrideIfNeeded() 286 inOutConfig.orientation = (inOutConfig.screenWidthDp <= inOutConfig.screenHeightDp) in applySizeOverrideIfNeeded()
|
D | TaskFragment.java | 2297 inOutConfig.screenHeightDp = Configuration.SCREEN_HEIGHT_DP_UNDEFINED; in invalidateAppBoundsConfig() 2383 || inOutConfig.screenHeightDp == Configuration.SCREEN_HEIGHT_DP_UNDEFINED) { in computeConfigResourceOverrides() 2428 if (inOutConfig.screenHeightDp == Configuration.SCREEN_HEIGHT_DP_UNDEFINED) { in computeConfigResourceOverrides() 2431 inOutConfig.screenHeightDp = (insideParentBounds && !customContainerPolicy) in computeConfigResourceOverrides() 2432 ? Math.min(overrideScreenHeightDp, parentConfig.screenHeightDp) in computeConfigResourceOverrides() 2457 Math.min(inOutConfig.screenWidthDp, inOutConfig.screenHeightDp); in computeConfigResourceOverrides() 2464 inOutConfig.orientation = (inOutConfig.screenWidthDp <= inOutConfig.screenHeightDp) in computeConfigResourceOverrides() 2478 if (inOutConfig.screenHeightDp != Configuration.SCREEN_HEIGHT_DP_UNDEFINED) { in computeConfigResourceOverrides() 2479 compatScreenHeightDp = inOutConfig.screenHeightDp; in computeConfigResourceOverrides()
|
D | TransparentPolicy.java | 214 config.screenHeightDp = config.compatScreenHeightDp = SCREEN_HEIGHT_DP_UNDEFINED; in resetTranslucentOverrideConfig()
|
/frameworks/base/native/android/ |
D | configuration.cpp | 128 return config->screenHeightDp; in AConfiguration_getScreenHeightDp() 225 config->screenHeightDp = value; in AConfiguration_setScreenHeightDp()
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | PointerIconLoadingTest.kt | 73 screenHeightDp = SCREEN_HEIGHT_DP in setUp()
|
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/layout/ |
D | ScalingLazyColumnDefaults.kt | 65 with(density) { configuration.screenHeightDp.dp.roundToPx() } in belowTimeText()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskTests.java | 815 parentConfig.screenHeightDp = (parentBounds.bottom * 160) / parentConfig.densityDpi; // 200 in testComputeConfigResourceOverrides() 822 assertEquals(parentConfig.screenHeightDp, inOutConfig.screenHeightDp); in testComputeConfigResourceOverrides() 839 assertEquals(800, inOutConfig.screenHeightDp); // 960/(192/160) = 800 in testComputeConfigResourceOverrides() 868 assertEquals(expectedHeightDp, inOutConfig.screenHeightDp); in testComputeConfigResourceOverrides() 886 parentConfig.screenHeightDp = (fullScreenBounds.bottom * 160) / parentConfig.densityDpi; in testComputeConfigResourceLayoutOverrides() 892 inOutConfig.screenHeightDp = nonLongBounds.height() * 160 / parentConfig.densityDpi; in testComputeConfigResourceLayoutOverrides() 903 int origScreenH = task.getConfiguration().screenHeightDp; in testComputeNestedConfigResourceOverrides() 914 assertNotEquals(origScreenH, task.getConfiguration().screenHeightDp); in testComputeNestedConfigResourceOverrides() 946 parentConfig.screenHeightDp = 200; // 200 * 400 / 160 = 500px in testInsetDisregardedWhenFreeformOverlapsNavBar() 972 inOutConfig.screenHeightDp); in testInsetDisregardedWhenFreeformOverlapsNavBar() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | AttributeResolution_bench.cpp | 106 device_config.screenHeightDp = 1024; in BM_ApplyStyleFramework()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | SystemUIDialog.java | 265 mLastConfigurationHeightDp = config.screenHeightDp; in onCreate() 303 || mLastConfigurationHeightDp != configuration.screenHeightDp) { in onConfigurationChanged()
|
/frameworks/base/tools/aapt/ |
D | AaptConfig.cpp | 279 || config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) { in applyVersionForCompatibility() 839 out->screenHeightDp = out->SCREENWIDTH_ANY; in parseScreenHeightDp() 852 out->screenHeightDp = (uint16_t)atoi(xName.c_str()); in parseScreenHeightDp()
|