Home
last modified time | relevance | path

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

/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/v17/leanback/src/android/support/v17/leanback/app/
DVideoSupportFragment.java88 int screenWidth = getView().getWidth(); in onVideoSizeChanged() local
92 if (screenWidth * height > width * screenHeight) { in onVideoSizeChanged()
98 p.width = screenWidth; in onVideoSizeChanged()
99 p.height = screenWidth * height / width; in onVideoSizeChanged()
DVideoFragment.java91 int screenWidth = getView().getWidth(); in onVideoSizeChanged() local
95 if (screenWidth * height > width * screenHeight) { in onVideoSizeChanged()
101 p.width = screenWidth; in onVideoSizeChanged()
102 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/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.java521 final int screenWidth = mTempPoint.x; in recomputeBoundsLocked() local
526 availableBounds.set(0, 0, screenWidth, screenHeight); in recomputeBoundsLocked()
580 accountedBounds.op(0, 0, screenWidth, screenHeight, Region.Op.INTERSECT); in recomputeBoundsLocked()
585 if (accountedFrame.width() == screenWidth in recomputeBoundsLocked()
595 screenWidth - mDrawBorderInset, screenHeight - mDrawBorderInset, in recomputeBoundsLocked()
606 screenWidth - mDrawBorderInset, in recomputeBoundsLocked()
1048 final int screenWidth = mTempPoint.x; in computeChangedWindows() local
1052 unaccountedSpace.set(0, 0, screenWidth, screenHeight); in computeChangedWindows()
/frameworks/base/services/core/java/com/android/server/policy/
DSystemGesturesPointerEventListener.java61 int screenWidth; field in SystemGesturesPointerEventListener
231 if (fromX >= screenWidth - mSwipeStartThreshold in detectSwipe()
DPhoneWindowManager.java4451 mRestrictedScreenWidth = mSystemGestures.screenWidth = mUnrestrictedScreenWidth; in beginLayoutLw()
/frameworks/base/tools/aapt2/
DConfigDescription.cpp520 out->screenWidth = out->SCREENWIDTH_ANY; in parseScreenSize()
544 out->screenWidth = w; in parseScreenSize()
947 if (screenWidth || o.screenWidth) return (!o.screenWidth); in HasHigherPrecedenceThan()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1871 screenWidth = dtohs(screenWidth); in copyFromDtoH()
1885 screenWidth = htods(screenWidth); in swapHtoD()
1972 if (screenWidth != o.screenWidth) { in compareLogical()
1973 return screenWidth < o.screenWidth ? -1 : 1; in compareLogical()
2195 if (screenWidth != o.screenWidth) { in isMoreSpecificThan()
2196 if (!screenWidth) return false; in isMoreSpecificThan()
2197 if (!o.screenWidth) return true; in isMoreSpecificThan()
2565 if (requested->screenWidth) { in isBetterThan()
2566 myDelta += requested->screenWidth - screenWidth; in isBetterThan()
2567 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()
DResourceTable.cpp3178 config.screenWidth, in flatten()
3223 tHeader->config.screenWidth, in flatten()
3958 config->screenWidth, in getEntry()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp676 jint screenWidth, jint screenHeight, in android_content_AssetManager_setConfiguration() argument
704 config.screenWidth = (uint16_t)screenWidth; in android_content_AssetManager_setConfiguration()
/frameworks/base/core/java/android/content/res/
DAssetManager.java790 int keyboardHidden, int navigation, int screenWidth, int screenHeight, in setConfiguration() argument
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h1047 uint16_t screenWidth; member