Home
last modified time | relevance | path

Searched refs:screenWidth (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/view/
DBigCache.java43 final int screenWidth = windowBounds.width(); in onCreate() local
49 tiny.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, screenHeight)); in onCreate()
55 final int height = 2 * (cacheSize / 2) / screenWidth; in onCreate()
56 large.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, height)); in onCreate()
/frameworks/base/core/java/com/android/internal/widget/
DWeightedLinearLayout.java59 final int screenWidth = metrics.widthPixels; in onMeasure() local
60 final boolean isPortrait = screenWidth < metrics.heightPixels; in onMeasure()
74 final int weightedMin = (int) (screenWidth * widthWeightMin); in onMeasure()
75 final int weightedMax = (int) (screenWidth * widthWeightMin); in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DPerimeterPathGuide.java86 int edgeInset, int screenWidth, int screenHeight) { in PerimeterPathGuide() argument
88 mDeviceWidthPx = screenWidth; in PerimeterPathGuide()
205 int screenWidth = mDeviceWidthPx; in computeRegions() local
227 screenWidth = mDeviceHeightPx; in computeRegions()
258 bottomPath.lineTo(screenWidth - getPhysicalCornerRadius(screenBottomRight), in computeRegions()
263 topPath.moveTo(screenWidth - getPhysicalCornerRadius(screenTopRight), mEdgeInset); in computeRegions()
268 rightPath.moveTo(screenWidth - mEdgeInset, in computeRegions()
270 rightPath.lineTo(screenWidth - mEdgeInset, getPhysicalCornerRadius(screenTopRight)); in computeRegions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DMediaArtworkProcessorTest.kt40 private var screenWidth = 0 variable
51 screenWidth = point.x in setUp()
69 assertThat(background.width).isLessThan(screenWidth) in testProcessArtwork()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java124 int screenWidth = hardwareConfig.getScreenWidth(); in renderImage() local
129 w = screenWidth; in renderImage()
131 } else if (w > screenWidth || h > screenHeight) { in renderImage()
135 double scale = Math.min((double) screenWidth / w, (double) screenHeight / h); in renderImage()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/
DRegionSampler.kt189 val screenWidth = displaySize.x in convertBounds() constant
195 newBounds.left = ((originalBounds.left / screenWidth) + wallpaperPageNum) / numScreens in convertBounds()
196 newBounds.right = ((originalBounds.right / screenWidth) + wallpaperPageNum) / numScreens in convertBounds()
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
DRemoteHardwareConfig.java52 private RemoteHardwareConfig(int screenWidth, int screenHeight, Density density, float xdpi, in RemoteHardwareConfig() argument
55 mScreenWidth = screenWidth; in RemoteHardwareConfig()
/frameworks/base/services/core/jni/
Dcom_android_server_companion_virtual_InputController.cpp191 DeviceType deviceType, jint screenHeight, jint screenWidth) { in openUinput() argument
245 xAbsSetup.absinfo.maximum = screenWidth - 1; in openUinput()
261 majorAbsSetup.absinfo.maximum = screenWidth - 1; in openUinput()
300 fallback.absmax[ABS_MT_POSITION_X] = screenWidth - 1; in openUinput()
304 fallback.absmax[ABS_MT_TOUCH_MAJOR] = screenWidth - 1; in openUinput()
323 DeviceType deviceType, int screenHeight, int screenWidth) { in openUinputJni() argument
327 screenHeight, screenWidth); in openUinputJni()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/
DTvBottomSheetActivity.java63 int screenWidth = metrics.widthPixels; in onCreate() local
68 windowParams.width = screenWidth - marginPx * 2; in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenMediaRecorder.java208 private int[] getSupportedSize(final int screenWidth, final int screenHeight, int refreshRate) in getSupportedSize() argument
222 int screenWidthAligned = screenWidth; in getSupportedSize()
245 double scale = Math.min(((double) width / screenWidth), in getSupportedSize()
248 int scaledWidth = (int) (screenWidth * scale); in getSupportedSize()
/frameworks/base/packages/SettingsLib/IllustrationPreference/src/com/android/settingslib/widget/
DIllustrationPreference.java129 final int screenWidth = getContext().getResources().getDisplayMetrics().widthPixels; in onBindViewHolder() local
134 lp.width = screenWidth < screenHeight ? screenWidth : screenHeight; in onBindViewHolder()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DTransform.java113 public void setScreenWidth(double screenWidth) { in setScreenWidth() argument
114 mViewMatrix.setScreenWidth(screenWidth); in setScreenWidth()
DViewMatrix.java157 public void setScreenWidth(double screenWidth) { in setScreenWidth() argument
158 this.mScreenWidth = screenWidth; in setScreenWidth()
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java77 int screenWidth; field in SystemGesturesPointerEventListener
92 screenWidth = info.logicalWidth; in onDisplayInfoChanged()
310 if (fromX >= screenWidth - mSwipeStartThreshold.right in detectSwipe()
DAccessibilityController.java898 final int screenWidth = mScreenSize.x; in recomputeBounds() local
903 availableBounds.set(0, 0, screenWidth, screenHeight); in recomputeBounds()
977 accountedBounds.op(0, 0, screenWidth, screenHeight, Region.Op.INTERSECT); in recomputeBounds()
982 if (accountedFrame.width() == screenWidth in recomputeBounds()
991 screenWidth - mDrawBorderInset, screenHeight - mDrawBorderInset, in recomputeBounds()
1002 screenWidth - mDrawBorderInset, in recomputeBounds()
1543 final int screenWidth = mTempPoint.x; in computeChangedWindows() local
1547 unaccountedSpace.set(0, 0, screenWidth, screenHeight); in computeChangedWindows()
/frameworks/base/tools/aapt2/test/
DBuilders.h263 ConfigDescriptionBuilder& setScreenWidth(uint16_t screenWidth) { in setScreenWidth() argument
264 config_.screenWidth = screenWidth; in setScreenWidth()
/frameworks/base/libs/androidfw/
DConfigDescription.cpp514 out->screenWidth = out->SCREENWIDTH_ANY; in parseScreenSize()
538 out->screenWidth = w; in parseScreenSize()
955 if (screenWidth || o.screenWidth) return (!o.screenWidth); in HasHigherPrecedenceThan()
DResourceTypes.cpp2031 screenWidth = dtohs(screenWidth); in copyFromDtoH()
2045 screenWidth = htods(screenWidth); in swapHtoD()
2156 if (screenWidth != o.screenWidth) { in compareLogical()
2157 return screenWidth < o.screenWidth ? -1 : 1; in compareLogical()
2381 if (screenWidth != o.screenWidth) { in isMoreSpecificThan()
2382 if (!screenWidth) return false; in isMoreSpecificThan()
2383 if (!o.screenWidth) return true; in isMoreSpecificThan()
2759 if (requested->screenWidth) { in isBetterThan()
2760 myDelta += requested->screenWidth - screenWidth; in isBetterThan()
2761 otherDelta += requested->screenWidth - o.screenWidth; in isBetterThan()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipKeepClearAlgorithm.kt631 var screenWidth = screenSize.width in <lambda>() variable
647 p.y += screenWidth // shift back screen into positive quadrant in <lambda>()
649 screenWidth = screenSize.height in <lambda>()
655 if (shouldTransformFlipX()) it.x = screenWidth - it.x in <lambda>()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSizeCompatTests.java2063 int screenWidth = 1600;
2065 setUpDisplaySizeWithApp(screenWidth, screenHeight);
2089 organizer.mPrimary.setBounds(0, 0, getExpectedSplitSize(screenWidth), screenHeight);
2203 final int screenWidth = 1800;
2205 setUpDisplaySizeWithApp(screenWidth, screenHeight);
2217 .setAppBounds(0, topInset, screenWidth, screenHeight);
2223 organizer.mPrimary.setBounds(0, 0, getExpectedSplitSize(screenWidth), screenHeight);
2232 float expectedAspectRatio = 1f * screenHeight / getExpectedSplitSize(screenWidth);
2244 final int screenWidth = 1000;
2246 setUpDisplaySizeWithApp(screenWidth, screenHeight);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DWalletCardCarousel.java141 int screenWidth = Math.min(metrics.widthPixels, metrics.heightPixels); in setExpectedViewWidth() local
142 mCardWidthPx = Math.round(Math.min(width, screenWidth) * CARD_VIEW_WIDTH_RATIO); in setExpectedViewWidth()
/frameworks/base/core/java/android/content/res/
DAssetManager.java1473 int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, in setConfiguration() argument
1478 keyboard, keyboardHidden, navigation, screenWidth, screenHeight, in setConfiguration()
1568 int keyboardHidden, int navigation, int screenWidth, int screenHeight, in nativeSetConfiguration() argument
/frameworks/base/tools/split-select/
DMain.cpp111 outConfig->screenWidth = ResTable_config::SCREENWIDTH_ANY; in removeRuntimeQualifiers()
/frameworks/base/tools/aapt/
DAaptConfig.cpp759 out->screenWidth = out->SCREENWIDTH_ANY; in parseScreenSize()
783 out->screenWidth = w; in parseScreenSize()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp77 out_pb_config->set_screen_width(config.screenWidth); in SerializeConfig()

12