Home
last modified time | relevance | path

Searched refs:screenWidth (Results 1 – 25 of 40) 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/services/autofill/java/com/android/server/autofill/ui/
DBottomSheetLayout.java77 final int screenWidth = displayMetrics.widthPixels; in onMeasure() local
81 int maxWidth = screenWidth; in onMeasure()
98 + screenWidth / displayMetrics.density in onMeasure()
/frameworks/base/core/java/android/hardware/input/
DVirtualStylusConfig.java85 public Builder(@IntRange(from = 1) int screenWidth, in Builder()
87 super(screenWidth, screenHeight); in Builder()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java125 int screenWidth = hardwareConfig.getScreenWidth(); in renderImage() local
130 w = screenWidth; in renderImage()
151 if (w > screenWidth || h > screenHeight) { in renderImage()
155 double scale = Math.min((double) screenWidth / w, (double) screenHeight / h); in renderImage()
/frameworks/base/services/core/jni/
Dcom_android_server_companion_virtual_InputController.cpp57 jint screenWidth) { in openUinput() argument
134 xAbsSetup.absinfo.maximum = screenWidth - 1; in openUinput()
150 majorAbsSetup.absinfo.maximum = screenWidth - 1; in openUinput()
183 xAbsSetup.absinfo.maximum = screenWidth - 1; in openUinput()
238 fallback.absmax[ABS_MT_POSITION_X] = screenWidth - 1; in openUinput()
242 fallback.absmax[ABS_MT_TOUCH_MAJOR] = screenWidth - 1; in openUinput()
247 fallback.absmax[ABS_X] = screenWidth - 1; in openUinput()
273 int screenWidth) { in openUinputJni() argument
277 screenHeight, screenWidth); in openUinputJni()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessDialog.java155 int screenWidth = getWindowManager().getDefaultDisplay().getWidth(); in setBrightnessDialogViewAttributes() local
160 lp.width = (shouldBeFullWidth ? screenWidth : screenWidth / 2) - horizontalMargin * 2; in setBrightnessDialogViewAttributes()
162 lp.width = screenWidth - horizontalMargin * 2; in setBrightnessDialogViewAttributes()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/
DRegionSampler.kt242 val screenWidth = displaySize.x in convertBounds() constant
248 newBounds.left = ((originalBounds.left / screenWidth) + wallpaperPageNum) / numScreens in convertBounds()
249 newBounds.right = ((originalBounds.right / screenWidth) + wallpaperPageNum) / numScreens in convertBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/
DGesturePointerEventListener.kt63 var screenWidth = 0 in <lambda>() variable
91 screenWidth = info.logicalWidth in <lambda>()
250 if (!mMouseHoveringAtRight && eventX >= screenWidth - 1) { in <lambda>()
253 } else if (mMouseHoveringAtRight && eventX < screenWidth - 1) { in <lambda>()
391 fromX >= screenWidth - mSwipeStartThreshold.right && in <lambda>()
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java85 int screenWidth; field in SystemGesturesPointerEventListener
103 screenWidth = info.logicalWidth; in onDisplayInfoChanged()
273 if (!mMouseHoveringAtRight && eventX >= screenWidth - 1) { in onPointerEvent()
276 } else if (mMouseHoveringAtRight && eventX < screenWidth - 1) { in onPointerEvent()
397 if (fromX >= screenWidth - mSwipeStartThreshold.right in detectSwipe()
DAccessibilityController.java951 final int screenWidth = mScreenSize.x; in recomputeBounds() local
956 availableBounds.set(0, 0, screenWidth, screenHeight); in recomputeBounds()
1041 accountedBounds.op(0, 0, screenWidth, screenHeight, Region.Op.INTERSECT); in recomputeBounds()
1046 if (accountedFrame.width() == screenWidth in recomputeBounds()
1055 mMagnifiedViewport.intersectWithDrawBorderInset(screenWidth, screenHeight); in recomputeBounds()
1062 mMagnifiedViewport.updateBorderDrawingStatus(screenWidth, screenHeight); in recomputeBounds()
1167 void updateBorderDrawingStatus(int screenWidth, int screenHeight) { in updateBorderDrawingStatus() argument
1173 screenWidth - mDrawBorderInset, in updateBorderDrawingStatus()
1205 void intersectWithDrawBorderInset(int screenWidth, int screenHeight) { in intersectWithDrawBorderInset() argument
1207 screenWidth - mDrawBorderInset, screenHeight - mDrawBorderInset, in intersectWithDrawBorderInset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/view/
DShortcutHelperActivity.kt126 val screenWidth = resources.displayMetrics.widthPixels in <lambda>() constant
127 bottomSheetBehavior.maxWidth = (sheetScreenWidthFraction * screenWidth).toInt() in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/anc/ui/composable/
DAncButtonComponent.kt68 val screenWidth: Float = in Content() constant
75 gravity = VolumePanelPopup.calculateGravity(it, screenWidth) in Content()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/
DButtonComponent.kt68 val screenWidth: Float = in Content() constant
74 modifier.onGloballyPositioned { gravity = calculateGravity(it, screenWidth) }, in Content()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenMediaRecorder.java213 private int[] getSupportedSize(final int screenWidth, final int screenHeight, int refreshRate) in getSupportedSize() argument
227 int screenWidthAligned = screenWidth; in getSupportedSize()
250 double scale = Math.min(((double) width / screenWidth), in getSupportedSize()
253 int scaledWidth = (int) (screenWidth * scale); in getSupportedSize()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DExitDesktopTaskTransitionHandler.java145 final int screenWidth = metrics.widthPixels; in startChangeTransition() local
160 final float scaleX = (float) startBounds.width() / screenWidth; in startChangeTransition()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSizeCompatTests.java1828 final int screenWidth = 1100; in testDefaultLetterboxAspectRatioForMultiWindowMode_fixedOrientationApp() local
1830 setUpDisplaySizeWithApp(screenWidth, screenHeight); in testDefaultLetterboxAspectRatioForMultiWindowMode_fixedOrientationApp()
1833 .setAppBounds(/* left */ 0, /* top */ 0, screenWidth, screenHeight); in testDefaultLetterboxAspectRatioForMultiWindowMode_fixedOrientationApp()
1839 organizer.mPrimary.setBounds(0, 0, screenWidth, getExpectedSplitSize(screenHeight)); in testDefaultLetterboxAspectRatioForMultiWindowMode_fixedOrientationApp()
1859 final int screenWidth = 1100; in testDefaultLetterboxAspectRatioForMultiWindowMode_fixedOrientationAppWithMinRatio() local
1861 setUpDisplaySizeWithApp(screenWidth, screenHeight); in testDefaultLetterboxAspectRatioForMultiWindowMode_fixedOrientationAppWithMinRatio()
1864 .setAppBounds(/* left */ 0, /* top */ 0, screenWidth, screenHeight); in testDefaultLetterboxAspectRatioForMultiWindowMode_fixedOrientationAppWithMinRatio()
1875 organizer.mPrimary.setBounds(0, 0, screenWidth, getExpectedSplitSize(screenHeight)); in testDefaultLetterboxAspectRatioForMultiWindowMode_fixedOrientationAppWithMinRatio()
1999 int screenWidth = 1600;
2001 setUpDisplaySizeWithApp(screenWidth, screenHeight);
[all …]
/frameworks/base/packages/SettingsLib/IllustrationPreference/src/com/android/settingslib/widget/
DIllustrationPreference.java138 final int screenWidth = getContext().getResources().getDisplayMetrics().widthPixels; in onBindViewHolder() local
143 lp.width = screenWidth < screenHeight ? screenWidth : screenHeight; in onBindViewHolder()
/frameworks/base/tools/aapt2/test/
DBuilders.h264 ConfigDescriptionBuilder& setScreenWidth(uint16_t screenWidth) { in setScreenWidth() argument
265 config_.screenWidth = screenWidth; in setScreenWidth()
/frameworks/base/core/java/android/content/res/
DAssetManager.java1555 int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, in setConfiguration() argument
1560 density, keyboard, keyboardHidden, navigation, screenWidth, screenHeight, in setConfiguration()
1565 keyboard, keyboardHidden, navigation, screenWidth, screenHeight, in setConfiguration()
1578 int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, in setConfiguration() argument
1582 touchscreen, density, keyboard, keyboardHidden, navigation, screenWidth, in setConfiguration()
1594 int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, in setConfigurationInternal() argument
1600 touchscreen, density, keyboard, keyboardHidden, navigation, screenWidth, in setConfigurationInternal()
1692 int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, in nativeSetConfiguration() argument
/frameworks/base/libs/androidfw/
DConfigDescription.cpp532 out->screenWidth = out->SCREENWIDTH_ANY; in parseScreenSize()
556 out->screenWidth = w; in parseScreenSize()
983 if (screenWidth || o.screenWidth) return (!o.screenWidth); in HasHigherPrecedenceThan()
/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/packages/SystemUI/src/com/android/systemui/screenshot/ui/
DScreenshotAnimationController.kt232 val screenWidth = view.resources.displayMetrics.widthPixels in <lambda>() constant
239 (screenWidth - actionContainer.left).toFloat() in <lambda>()

12