/frameworks/base/core/jni/ |
D | android_content_res_Configuration.cpp | 43 jfieldID screenWidthDp; member 69 out->screenWidthDp = env->GetIntField(clazz, gConfigurationClassInfo.screenWidthDp); in android_Configuration_getFromJava() 92 gConfigurationClassInfo.screenWidthDp = GetFieldIDOrDie(env, clazz, "screenWidthDp", "I"); in register_android_content_res_Configuration()
|
/frameworks/base/core/java/android/accessibilityservice/util/ |
D | AccessibilityUtils.java | 120 final int screenWidthDp = resources.getConfiguration().screenWidthDp; in getScreenWidthPixels() local 122 return Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, screenWidthDp, in getScreenWidthPixels()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 850 public int screenWidthDp; field in Configuration 1107 screenWidthDp = o.screenWidthDp; in setTo() 1165 if (screenWidthDp != SCREEN_WIDTH_DP_UNDEFINED) { in toString() 1166 sb.append(" w"); sb.append(screenWidthDp); sb.append("dp"); in toString() 1330 protoOutputStream.write(SCREEN_WIDTH_DP, screenWidthDp); in dumpDebug() 1470 screenWidthDp = protoInputStream.readInt(SCREEN_WIDTH_DP); in readFromProto() 1586 screenWidthDp = compatScreenWidthDp = SCREEN_WIDTH_DP_UNDEFINED; in setToDefaults() 1752 if (delta.screenWidthDp != SCREEN_WIDTH_DP_UNDEFINED in updateFrom() 1753 && screenWidthDp != delta.screenWidthDp) { in updateFrom() 1755 screenWidthDp = delta.screenWidthDp; in updateFrom() [all …]
|
D | AssetManager.java | 1555 int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, 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() 1692 int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, in nativeSetConfiguration() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlsActivityTest.kt | 101 newConfig.screenWidthDp *= 2 in testChangeSmallestScreenSizeForwardsToUiController() 129 val oldWidth = configuration.screenWidthDp in swapHeightWidth() 131 configuration.screenWidthDp = oldHeight in swapHeightWidth()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 54 final int width = config.screenWidthDp; in getMaxActionButtons() 90 final int width = configuration.screenWidthDp; in hasEmbeddedTabs()
|
/frameworks/base/core/java/android/window/ |
D | SizeConfigurationBuckets.java | 82 if (config.screenWidthDp != Configuration.SCREEN_WIDTH_DP_UNDEFINED) { in SizeConfigurationBuckets() 83 horizontal.put(config.screenWidthDp, 0); in SizeConfigurationBuckets() 117 final boolean crosses = buckets.crossesHorizontalSizeThreshold(oldConfig.screenWidthDp, in filterDiff() 118 newConfig.screenWidthDp) in filterDiff()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 391 config.screenWidthDp = hardwareConfig.getScreenWidth() * 160 / density.getDpiValue(); in getConfiguration() 393 if (config.screenHeightDp < config.screenWidthDp) { in getConfiguration() 397 config.smallestScreenWidthDp = config.screenWidthDp; in getConfiguration() 402 config.compatScreenWidthDp = config.screenWidthDp; in getConfiguration()
|
/frameworks/base/core/tests/mockingcoretests/src/android/window/ |
D | SizeConfigurationBucketsTest.java | 298 oldConfig.screenWidthDp = 480; in testHorizontalSizeThresholds() 300 newConfig.screenWidthDp = 520; in testHorizontalSizeThresholds() 304 newConfig.screenWidthDp = 640; in testHorizontalSizeThresholds()
|
/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 | 590 out->screenWidthDp = out->SCREENWIDTH_ANY; in parseScreenWidthDp() 603 out->screenWidthDp = (uint16_t)atoi(xName.c_str()); in parseScreenWidthDp() 873 config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY || in ApplyVersionForCompatibility() 949 if (screenWidthDp || o.screenWidthDp) return (!o.screenWidthDp); in HasHigherPrecedenceThan()
|
D | ResourceTypes.cpp | 2120 screenWidthDp = dtohs(screenWidthDp); in copyFromDtoH() 2134 screenWidthDp = htods(screenWidthDp); in swapHtoD() 2239 if (screenWidthDp != o.screenWidthDp) { in compareLogical() 2240 return screenWidthDp < o.screenWidthDp ? -1 : 1; in compareLogical() 2391 if (screenWidthDp != o.screenWidthDp) { in isMoreSpecificThan() 2392 if (!screenWidthDp) return false; in isMoreSpecificThan() 2393 if (!o.screenWidthDp) return true; in isMoreSpecificThan() 2694 if (requested->screenWidthDp) { in isBetterThan() 2695 myDelta += requested->screenWidthDp - screenWidthDp; in isBetterThan() 2696 otherDelta += requested->screenWidthDp - o.screenWidthDp; in isBetterThan() [all …]
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.h | 292 ConfigDescriptionBuilder& setScreenWidthDp(uint16_t screenWidthDp) { in setScreenWidthDp() argument 293 config_.screenWidthDp = screenWidthDp; in setScreenWidthDp()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ConfigurationContainer.java | 237 inOutConfig.screenWidthDp = Configuration.SCREEN_WIDTH_DP_UNDEFINED; in applySizeOverrideIfNeeded() 266 if (inOutConfig.screenWidthDp == Configuration.SCREEN_WIDTH_DP_UNDEFINED) { in applySizeOverrideIfNeeded() 267 inOutConfig.screenWidthDp = (int) (outAppBounds.width() / density + 0.5f); in applySizeOverrideIfNeeded() 286 inOutConfig.orientation = (inOutConfig.screenWidthDp <= inOutConfig.screenHeightDp) in applySizeOverrideIfNeeded()
|
D | TaskFragment.java | 2296 inOutConfig.screenWidthDp = Configuration.SCREEN_WIDTH_DP_UNDEFINED; in invalidateAppBoundsConfig() 2382 if (inOutConfig.screenWidthDp == Configuration.SCREEN_WIDTH_DP_UNDEFINED in computeConfigResourceOverrides() 2422 if (inOutConfig.screenWidthDp == Configuration.SCREEN_WIDTH_DP_UNDEFINED) { in computeConfigResourceOverrides() 2424 inOutConfig.screenWidthDp = (insideParentBounds && !customContainerPolicy) in computeConfigResourceOverrides() 2425 ? Math.min(overrideScreenWidthDp, parentConfig.screenWidthDp) in computeConfigResourceOverrides() 2457 Math.min(inOutConfig.screenWidthDp, inOutConfig.screenHeightDp); in computeConfigResourceOverrides() 2464 inOutConfig.orientation = (inOutConfig.screenWidthDp <= inOutConfig.screenHeightDp) in computeConfigResourceOverrides() 2475 if (inOutConfig.screenWidthDp != Configuration.SCREEN_WIDTH_DP_UNDEFINED) { in computeConfigResourceOverrides() 2476 compatScreenWidthDp = inOutConfig.screenWidthDp; in computeConfigResourceOverrides()
|
/frameworks/base/native/android/ |
D | configuration.cpp | 124 return config->screenWidthDp; in AConfiguration_getScreenWidthDp() 221 config->screenWidthDp = value; in AConfiguration_setScreenWidthDp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | SystemUIDialog.java | 264 mLastConfigurationWidthDp = config.screenWidthDp; in onCreate() 302 if (mLastConfigurationWidthDp != configuration.screenWidthDp in onConfigurationChanged() 304 mLastConfigurationWidthDp = configuration.screenWidthDp; in onConfigurationChanged()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/dialog/ |
D | SettingsAlertDialog.kt | 105 return configuration.screenWidthDp.dp * when (configuration.orientation) { in getDialogWidth()
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | PointerIconLoadingTest.kt | 72 screenWidthDp = SCREEN_WIDTH_DP in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/ |
D | MediaRecommendationsViewBinder.kt | 276 config.screenWidthDp / 2 in <lambda>() 278 config.screenWidthDp in <lambda>()
|
/frameworks/base/libs/androidfw/tests/ |
D | AttributeResolution_bench.cpp | 105 device_config.screenWidthDp = 700; in BM_ApplyStyleFramework()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/anc/ui/composable/ |
D | AncButtonComponent.kt | 69 with(LocalDensity.current) { LocalConfiguration.current.screenWidthDp.dp.toPx() } in Content()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlAdapter.kt | 82 config.screenWidthDp != Configuration.SCREEN_WIDTH_DP_UNDEFINED && in <lambda>() 83 config.screenWidthDp <= maxColumnsAdjustWidth && in <lambda>()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/ |
D | ButtonComponent.kt | 69 with(LocalDensity.current) { LocalConfiguration.current.screenWidthDp.dp.toPx() } in Content()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskTests.java | 816 parentConfig.screenWidthDp = (parentBounds.right * 160) / parentConfig.densityDpi; // 100 in testComputeConfigResourceOverrides() 823 assertEquals(parentConfig.screenWidthDp, inOutConfig.screenWidthDp); in testComputeConfigResourceOverrides() 840 assertEquals(450, inOutConfig.screenWidthDp); // 540/(192/160) = 450 in testComputeConfigResourceOverrides() 870 assertEquals(expectedWidthDp, inOutConfig.screenWidthDp); in testComputeConfigResourceOverrides() 887 parentConfig.screenWidthDp = (fullScreenBounds.right * 160) / parentConfig.densityDpi; in testComputeConfigResourceLayoutOverrides() 891 inOutConfig.screenWidthDp = nonLongBounds.width() * 160 / parentConfig.densityDpi; in testComputeConfigResourceLayoutOverrides() 947 parentConfig.screenWidthDp = 100; // 100 * 400 / 160 = 250px in testInsetDisregardedWhenFreeformOverlapsNavBar() 970 inOutConfig.screenWidthDp); in testInsetDisregardedWhenFreeformOverlapsNavBar() 987 inOutConfig.screenWidthDp); in testInsetDisregardedWhenFreeformOverlapsNavBar()
|