Home
last modified time | relevance | path

Searched refs:screenWidthDp (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/core/jni/
Dandroid_content_res_Configuration.cpp43 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/
DAccessibilityUtils.java120 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/
DConfiguration.java835 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 …]
DAssetManager.java1478 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/
DControlsActivityTest.kt101 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/
DActionBarPolicy.java54 final int width = config.screenWidthDp; in getMaxActionButtons()
90 final int width = configuration.screenWidthDp; in hasEmbeddedTabs()
/frameworks/base/core/java/android/window/
DSizeConfigurationBuckets.java82 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/
DRenderAction.java378 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/
DSizeConfigurationBucketsTest.java298 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/
DSystemUIDialog.java133 mLastConfigurationWidthDp = config.screenWidthDp; in onCreate()
168 if (mLastConfigurationWidthDp != configuration.screenWidthDp in onConfigurationChanged()
170 mLastConfigurationWidthDp = configuration.screenWidthDp; in onConfigurationChanged()
/frameworks/base/libs/androidfw/
DConfigDescription.cpp590 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()
DResourceTypes.cpp2049 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/
DBuilders.h289 ConfigDescriptionBuilder& setScreenWidthDp(uint16_t screenWidthDp) { in setScreenWidthDp() argument
290 config_.screenWidthDp = screenWidthDp; in setScreenWidthDp()
/frameworks/base/native/android/
Dconfiguration.cpp124 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/
DSettingsAlertDialog.kt104 return configuration.screenWidthDp.dp * when (configuration.orientation) { in getDialogWidth()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskTests.java748 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()
DActivityRecordTests.java564 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/
DAttributeResolution_bench.cpp105 device_config.screenWidthDp = 700; in BM_ApplyStyleFramework()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlAdapter.kt82 config.screenWidthDp != Configuration.SCREEN_WIDTH_DP_UNDEFINED && in <lambda>()
83 config.screenWidthDp <= maxColumnsAdjustWidth && in <lambda>()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTestUtils.java53 overrideConfig.screenWidthDp = 40; in mergedConfig()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskFragment.java2130 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()
DContentRecorder.java515 mDisplayContent.getConfiguration().screenWidthDp, in updateMirroredSurface()
/frameworks/base/tools/aapt/
DAaptConfig.cpp278 || 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/
DResourcesManager.java374 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/
DActionMenuItemView.java108 final int width = configuration.screenWidthDp; in shouldAllowTextWithIcon()

123