Searched refs:screenWidth (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/widget/
H A DWeightedLinearLayout.java59 final int screenWidth = metrics.widthPixels;
60 final boolean isPortrait = screenWidth < metrics.heightPixels;
74 final int weightedMin = (int) (screenWidth * widthWeightMin);
75 final int weightedMax = (int) (screenWidth * widthWeightMin);
/frameworks/base/core/tests/coretests/src/android/view/
H A DBigCache.java46 final int screenWidth = display.getWidth();
52 tiny.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, screenHeight));
58 final int height = 2 * (cacheSize / 2) / screenWidth;
59 large.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, height));
/frameworks/support/leanback/src/main/java/androidx/leanback/app/
H A DVideoFragment.java94 int screenWidth = getView().getWidth();
98 if (screenWidth * height > width * screenHeight) {
104 p.width = screenWidth;
105 p.height = screenWidth * height / width;
H A DVideoSupportFragment.java89 int screenWidth = getView().getWidth();
93 if (screenWidth * height > width * screenHeight) {
99 p.width = screenWidth;
100 p.height = screenWidth * height / width;
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
H A DRemoteHardwareConfig.java52 private RemoteHardwareConfig(int screenWidth, int screenHeight, Density density, float xdpi, argument
55 mScreenWidth = screenWidth;
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderDrawable.java121 final int screenWidth = hardwareConfig.getScreenWidth();
126 w = screenWidth;
128 } else if (w > screenWidth || h > screenHeight) {
131 // We need to find scale such that scale * w <= screenWidth, scale * h <= screenHeight
132 double scale = Math.min((double) screenWidth / w, (double) screenHeight / h);
/frameworks/base/services/core/java/com/android/server/policy/
H A DSystemGesturesPointerEventListener.java61 int screenWidth; field in class:SystemGesturesPointerEventListener
231 if (fromX >= screenWidth - mSwipeStartThreshold
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A DTransform.java113 public void setScreenWidth(double screenWidth) { argument
114 mViewMatrix.setScreenWidth(screenWidth);
H A DViewMatrix.java157 public void setScreenWidth(double screenWidth) { argument
158 this.mScreenWidth = screenWidth;
/frameworks/base/services/core/java/com/android/server/wm/
H A DAccessibilityController.java516 final int screenWidth = mTempPoint.x;
521 availableBounds.set(0, 0, screenWidth, screenHeight);
575 accountedBounds.op(0, 0, screenWidth, screenHeight, Region.Op.INTERSECT);
580 if (accountedFrame.width() == screenWidth
590 screenWidth - mDrawBorderInset, screenHeight - mDrawBorderInset,
601 screenWidth - mDrawBorderInset,
1047 final int screenWidth = mTempPoint.x;
1051 unaccountedSpace.set(0, 0, screenWidth, screenHeight);
/frameworks/support/frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/
H A DVideoViewTest.java142 int screenWidth = getResources().getDisplayMetrics().widthPixels;
143 if (ev.getRawX() < (screenWidth / 2.0f)) {
/frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/
H A DVideoViewTest.java142 int screenWidth = getResources().getDisplayMetrics().widthPixels;
143 if (ev.getRawX() < (screenWidth / 2.0f)) {
/frameworks/base/tools/aapt2/
H A DConfigDescription.cpp520 out->screenWidth = out->SCREENWIDTH_ANY;
544 out->screenWidth = w;
958 if (screenWidth || o.screenWidth) return (!o.screenWidth);
/frameworks/av/packages/MediaComponents/src/com/android/widget/
H A DMediaControlView2Impl.java371 int screenWidth = screenSize.x;
383 currHeight, screenWidth, screenHeight);
402 currHeight, screenWidth, screenHeight);
1170 int marginSize, int currWidth, int currHeight, int screenWidth, int screenHeight) {
1178 int screenMaxLength = Math.max(screenWidth, screenHeight);
1185 (currWidth == screenWidth && currHeight == screenHeight);
1169 updateLayout(int maxIconCount, int fullIconSize, int embeddedIconSize, int marginSize, int currWidth, int currHeight, int screenWidth, int screenHeight) argument
H A DVideoView2Impl.java595 int screenWidth = screenSize.x;
598 if (currWidth == screenWidth && currHeight == screenHeight) {
/frameworks/support/media-widget/src/main/java/androidx/media/widget/
H A DMediaControlView2.java523 int screenWidth = screenSize.x;
530 updateLayout(maxIconCount, iconSize, currWidth, currHeight, screenWidth,
550 updateLayout(maxIconCount, iconSize, currWidth, currHeight, screenWidth,
1310 int currHeight, int screenWidth, int screenHeight) {
1315 int screenMaxLength = Math.max(screenWidth, screenHeight);
1318 (currWidth == screenWidth && currHeight == screenHeight);
1309 updateLayout(int maxIconCount, int iconSize, int currWidth, int currHeight, int screenWidth, int screenHeight) argument
/frameworks/base/tools/split-select/
H A DMain.cpp111 outConfig->screenWidth = ResTable_config::SCREENWIDTH_ANY;
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java1233 int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp,
1238 keyboard, keyboardHidden, navigation, screenWidth, screenHeight,
1287 int keyboardHidden, int navigation, int screenWidth, int screenHeight,
1231 setConfiguration(int mcc, int mnc, @Nullable String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int colorMode, int majorVersion) argument
1285 nativeSetConfiguration(long ptr, int mcc, int mnc, @Nullable String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int colorMode, int majorVersion) argument
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp1903 screenWidth = dtohs(screenWidth);
1917 screenWidth = htods(screenWidth);
2028 if (screenWidth != o.screenWidth) {
2029 return screenWidth < o.screenWidth ? -1 : 1;
2253 if (screenWidth != o.screenWidth) {
[all...]
/frameworks/base/tools/aapt/
H A DAaptConfig.cpp759 out->screenWidth = out->SCREENWIDTH_ANY;
783 out->screenWidth = w;
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
H A DVideoView2ImplBase.java715 int screenWidth = screenSize.x;
718 if (currWidth == screenWidth && currHeight == screenHeight) {
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
H A DVideoView2ImplBaseWithMp1.java690 int screenWidth = screenSize.x;
693 if (currWidth == screenWidth && currHeight == screenHeight) {
/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceTypes.h1059 uint16_t screenWidth; member in struct:android::ResTable_config::__anon974::__anon975
/frameworks/base/tools/aapt2/format/proto/
H A DProtoSerialize.cpp73 out_pb_config->set_screen_width(config.screenWidth);
H A DProtoDeserialize.cpp350 out_config->screenWidth = static_cast<uint16_t>(pb_config.screen_width());

Completed in 1094 milliseconds

12