/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 | 835 public int screenWidthDp; field in Configuration 1086 screenWidthDp = o.screenWidthDp; in setTo() 1144 if (screenWidthDp != SCREEN_WIDTH_DP_UNDEFINED) { in toString() 1145 sb.append(" w"); sb.append(screenWidthDp); sb.append("dp"); in toString() 1309 protoOutputStream.write(SCREEN_WIDTH_DP, screenWidthDp); in dumpDebug() 1449 screenWidthDp = protoInputStream.readInt(SCREEN_WIDTH_DP); in readFromProto() 1565 screenWidthDp = compatScreenWidthDp = SCREEN_WIDTH_DP_UNDEFINED; in setToDefaults() 1731 if (delta.screenWidthDp != SCREEN_WIDTH_DP_UNDEFINED in updateFrom() 1732 && screenWidthDp != delta.screenWidthDp) { in updateFrom() 1734 screenWidthDp = delta.screenWidthDp; in updateFrom() [all …]
|
D | AssetManager.java | 1478 int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, in setConfiguration() argument 1485 smallestScreenWidthDp, screenWidthDp, screenHeightDp, screenLayout, uiMode, in setConfiguration() 1575 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, 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 | 378 config.screenWidthDp = hardwareConfig.getScreenWidth() * 160 / density.getDpiValue(); in getConfiguration() 380 if (config.screenHeightDp < config.screenWidthDp) { in getConfiguration() 384 config.smallestScreenWidthDp = config.screenWidthDp; in getConfiguration() 389 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | SystemUIDialog.java | 133 mLastConfigurationWidthDp = config.screenWidthDp; in onCreate() 168 if (mLastConfigurationWidthDp != configuration.screenWidthDp in onConfigurationChanged() 170 mLastConfigurationWidthDp = configuration.screenWidthDp; in onConfigurationChanged()
|
/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 | 2049 screenWidthDp = dtohs(screenWidthDp); in copyFromDtoH() 2063 screenWidthDp = htods(screenWidthDp); in swapHtoD() 2168 if (screenWidthDp != o.screenWidthDp) { in compareLogical() 2169 return screenWidthDp < o.screenWidthDp ? -1 : 1; in compareLogical() 2320 if (screenWidthDp != o.screenWidthDp) { in isMoreSpecificThan() 2321 if (!screenWidthDp) return false; in isMoreSpecificThan() 2322 if (!o.screenWidthDp) return true; in isMoreSpecificThan() 2606 if (requested->screenWidthDp) { in isBetterThan() 2607 myDelta += requested->screenWidthDp - screenWidthDp; in isBetterThan() 2608 otherDelta += requested->screenWidthDp - o.screenWidthDp; in isBetterThan() [all …]
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.h | 289 ConfigDescriptionBuilder& setScreenWidthDp(uint16_t screenWidthDp) { in setScreenWidthDp() argument 290 config_.screenWidthDp = screenWidthDp; in setScreenWidthDp()
|
/frameworks/base/native/android/ |
D | configuration.cpp | 124 return config->screenWidthDp; in AConfiguration_getScreenWidthDp() 221 config->screenWidthDp = value; in AConfiguration_setScreenWidthDp()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/dialog/ |
D | SettingsAlertDialog.kt | 104 return configuration.screenWidthDp.dp * when (configuration.orientation) { in getDialogWidth()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskTests.java | 748 parentConfig.screenWidthDp = (parentBounds.right * 160) / parentConfig.densityDpi; // 100 in testComputeConfigResourceOverrides() 755 assertEquals(parentConfig.screenWidthDp, inOutConfig.screenWidthDp); in testComputeConfigResourceOverrides() 772 assertEquals(450, inOutConfig.screenWidthDp); // 540/(192/160) = 450 in testComputeConfigResourceOverrides() 799 assertEquals(expectedWidthDp, inOutConfig.screenWidthDp); in testComputeConfigResourceOverrides() 816 parentConfig.screenWidthDp = (fullScreenBounds.right * 160) / parentConfig.densityDpi; in testComputeConfigResourceLayoutOverrides() 820 inOutConfig.screenWidthDp = nonLongBounds.width() * 160 / parentConfig.densityDpi; in testComputeConfigResourceLayoutOverrides() 876 parentConfig.screenWidthDp = 100; // 100 * 400 / 160 = 250px in testInsetDisregardedWhenFreeformOverlapsNavBar() 899 inOutConfig.screenWidthDp); in testInsetDisregardedWhenFreeformOverlapsNavBar() 916 inOutConfig.screenWidthDp); in testInsetDisregardedWhenFreeformOverlapsNavBar()
|
D | ActivityRecordTests.java | 564 final int shortSide = Math.min(newConfig.screenWidthDp, newConfig.screenHeightDp); in testSetRequestedOrientationUpdatesConfiguration() 565 final int longSide = Math.max(newConfig.screenWidthDp, newConfig.screenHeightDp); in testSetRequestedOrientationUpdatesConfiguration() 568 newConfig.screenWidthDp = longSide; in testSetRequestedOrientationUpdatesConfiguration() 572 newConfig.screenWidthDp = shortSide; in testSetRequestedOrientationUpdatesConfiguration() 800 final int shortSide = Math.min(newConfig.screenWidthDp, newConfig.screenHeightDp); in testPushConfigurationWhenLaunchTaskBehind() 801 final int longSide = Math.max(newConfig.screenWidthDp, newConfig.screenHeightDp); in testPushConfigurationWhenLaunchTaskBehind() 804 newConfig.screenWidthDp = longSide; in testPushConfigurationWhenLaunchTaskBehind() 808 newConfig.screenWidthDp = shortSide; in testPushConfigurationWhenLaunchTaskBehind()
|
/frameworks/base/libs/androidfw/tests/ |
D | AttributeResolution_bench.cpp | 105 device_config.screenWidthDp = 700; in BM_ApplyStyleFramework()
|
/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/core/tests/coretests/src/android/app/servertransaction/ |
D | TestUtils.java | 53 overrideConfig.screenWidthDp = 40; in mergedConfig()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskFragment.java | 2130 inOutConfig.screenWidthDp = Configuration.SCREEN_WIDTH_DP_UNDEFINED; in invalidateAppBoundsConfig() 2198 if (inOutConfig.screenWidthDp == Configuration.SCREEN_WIDTH_DP_UNDEFINED in computeConfigResourceOverrides() 2237 if (inOutConfig.screenWidthDp == Configuration.SCREEN_WIDTH_DP_UNDEFINED) { in computeConfigResourceOverrides() 2239 inOutConfig.screenWidthDp = (insideParentBounds && !customContainerPolicy) in computeConfigResourceOverrides() 2240 ? Math.min(overrideScreenWidthDp, parentConfig.screenWidthDp) in computeConfigResourceOverrides() 2272 Math.min(inOutConfig.screenWidthDp, inOutConfig.screenHeightDp); in computeConfigResourceOverrides() 2279 inOutConfig.orientation = (inOutConfig.screenWidthDp <= inOutConfig.screenHeightDp) in computeConfigResourceOverrides() 2290 if (inOutConfig.screenWidthDp != Configuration.SCREEN_WIDTH_DP_UNDEFINED) { in computeConfigResourceOverrides() 2291 compatScreenWidthDp = inOutConfig.screenWidthDp; in computeConfigResourceOverrides()
|
D | ContentRecorder.java | 515 mDisplayContent.getConfiguration().screenWidthDp, in updateMirroredSurface()
|
/frameworks/base/tools/aapt/ |
D | AaptConfig.cpp | 278 || config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY in applyVersionForCompatibility() 817 out->screenWidthDp = out->SCREENWIDTH_ANY; in parseScreenWidthDp() 830 out->screenWidthDp = (uint16_t)atoi(xName.string()); in parseScreenWidthDp()
|
/frameworks/base/core/java/android/app/ |
D | ResourcesManager.java | 374 config.screenWidthDp = (int) (dm.widthPixels / dm.density + 0.5f); in applyDisplayMetricsToConfiguration() 380 config.screenWidthDp, config.screenHeightDp); in applyDisplayMetricsToConfiguration() 384 config.screenHeightDp, config.screenWidthDp); in applyDisplayMetricsToConfiguration() 386 config.smallestScreenWidthDp = Math.min(config.screenWidthDp, config.screenHeightDp); in applyDisplayMetricsToConfiguration() 387 config.compatScreenWidthDp = config.screenWidthDp; in applyDisplayMetricsToConfiguration()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenuItemView.java | 108 final int width = configuration.screenWidthDp; in shouldAllowTextWithIcon()
|