Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/view/
DBigCache.java46 final int screenWidth = display.getWidth(); in onCreate() local
52 tiny.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, screenHeight)); in onCreate()
58 final int height = 2 * (cacheSize / 2) / screenWidth; in onCreate()
59 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/support/leanback/src/main/java/androidx/leanback/app/
DVideoFragment.java94 int screenWidth = getView().getWidth(); in onVideoSizeChanged() local
98 if (screenWidth * height > width * screenHeight) { in onVideoSizeChanged()
104 p.width = screenWidth; in onVideoSizeChanged()
105 p.height = screenWidth * height / width; in onVideoSizeChanged()
DVideoSupportFragment.java89 int screenWidth = getView().getWidth(); in onVideoSizeChanged() local
93 if (screenWidth * height > width * screenHeight) { in onVideoSizeChanged()
99 p.width = screenWidth; in onVideoSizeChanged()
100 p.height = screenWidth * height / width; in onVideoSizeChanged()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java121 final int screenWidth = hardwareConfig.getScreenWidth(); in renderImage() local
126 w = screenWidth; in renderImage()
128 } else if (w > screenWidth || h > screenHeight) { in renderImage()
132 double scale = Math.min((double) screenWidth / w, (double) screenHeight / h); in renderImage()
/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/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/
DAccessibilityController.java516 final int screenWidth = mTempPoint.x; in recomputeBoundsLocked() local
521 availableBounds.set(0, 0, screenWidth, screenHeight); in recomputeBoundsLocked()
575 accountedBounds.op(0, 0, screenWidth, screenHeight, Region.Op.INTERSECT); in recomputeBoundsLocked()
580 if (accountedFrame.width() == screenWidth in recomputeBoundsLocked()
590 screenWidth - mDrawBorderInset, screenHeight - mDrawBorderInset, in recomputeBoundsLocked()
601 screenWidth - mDrawBorderInset, in recomputeBoundsLocked()
1047 final int screenWidth = mTempPoint.x; in computeChangedWindows() local
1051 unaccountedSpace.set(0, 0, screenWidth, screenHeight); in computeChangedWindows()
/frameworks/base/tools/aapt2/
DConfigDescription.cpp520 out->screenWidth = out->SCREENWIDTH_ANY; in parseScreenSize()
544 out->screenWidth = w; in parseScreenSize()
958 if (screenWidth || o.screenWidth) return (!o.screenWidth); in HasHigherPrecedenceThan()
/frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/
DVideoViewTest.java142 int screenWidth = getResources().getDisplayMetrics().widthPixels; in onTouchEvent() local
143 if (ev.getRawX() < (screenWidth / 2.0f)) { in onTouchEvent()
/frameworks/base/services/core/java/com/android/server/policy/
DSystemGesturesPointerEventListener.java61 int screenWidth; field in SystemGesturesPointerEventListener
231 if (fromX >= screenWidth - mSwipeStartThreshold in detectSwipe()
/frameworks/av/packages/MediaComponents/src/com/android/widget/
DMediaControlView2Impl.java371 int screenWidth = screenSize.x; in onMeasure_impl() local
383 currHeight, screenWidth, screenHeight); in onMeasure_impl()
402 currHeight, screenWidth, screenHeight); in onMeasure_impl()
1170 int marginSize, int currWidth, int currHeight, int screenWidth, int screenHeight) { in updateLayout() argument
1178 int screenMaxLength = Math.max(screenWidth, screenHeight); in updateLayout()
1185 (currWidth == screenWidth && currHeight == screenHeight); in updateLayout()
DVideoView2Impl.java595 int screenWidth = screenSize.x; in onMeasure_impl() local
598 if (currWidth == screenWidth && currHeight == screenHeight) { in onMeasure_impl()
/frameworks/support/media-widget/src/main/java/androidx/media/widget/
DMediaControlView2.java523 int screenWidth = screenSize.x; in onMeasure() local
530 updateLayout(maxIconCount, iconSize, currWidth, currHeight, screenWidth, in onMeasure()
550 updateLayout(maxIconCount, iconSize, currWidth, currHeight, screenWidth, in onMeasure()
1310 int currHeight, int screenWidth, int screenHeight) { in updateLayout() argument
1315 int screenMaxLength = Math.max(screenWidth, screenHeight); in updateLayout()
1318 (currWidth == screenWidth && currHeight == screenHeight); in updateLayout()
/frameworks/base/core/java/android/content/res/
DAssetManager.java1233 int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, in setConfiguration() argument
1238 keyboard, keyboardHidden, navigation, screenWidth, screenHeight, in setConfiguration()
1287 int keyboardHidden, int navigation, int screenWidth, int screenHeight, in nativeSetConfiguration() argument
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1903 screenWidth = dtohs(screenWidth); in copyFromDtoH()
1917 screenWidth = htods(screenWidth); in swapHtoD()
2028 if (screenWidth != o.screenWidth) { in compareLogical()
2029 return screenWidth < o.screenWidth ? -1 : 1; in compareLogical()
2253 if (screenWidth != o.screenWidth) { in isMoreSpecificThan()
2254 if (!screenWidth) return false; in isMoreSpecificThan()
2255 if (!o.screenWidth) return true; in isMoreSpecificThan()
2634 if (requested->screenWidth) { in isBetterThan()
2635 myDelta += requested->screenWidth - screenWidth; in isBetterThan()
2636 otherDelta += requested->screenWidth - o.screenWidth; in isBetterThan()
[all …]
/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/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
DVideoView2ImplBaseWithMp1.java690 int screenWidth = screenSize.x; in onMeasureImpl() local
693 if (currWidth == screenWidth && currHeight == screenHeight) { in onMeasureImpl()
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
DVideoView2ImplBase.java715 int screenWidth = screenSize.x; in onMeasureImpl() local
718 if (currWidth == screenWidth && currHeight == screenHeight) { in onMeasureImpl()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp73 out_pb_config->set_screen_width(config.screenWidth); in SerializeConfig()
DProtoDeserialize.cpp350 out_config->screenWidth = static_cast<uint16_t>(pb_config.screen_width()); in DeserializeConfigFromPb()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h1059 uint16_t screenWidth; member
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp350 configuration.screenWidth = static_cast<uint16_t>(screen_width); in NativeSetConfiguration()

12