Home
last modified time | relevance | path

Searched refs:screenHeight (Results 1 – 24 of 24) sorted by relevance

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DImeCleanUpTestRule.java66 final int screenHeight = mContainerView.getRootView().getHeight();
70 int imeHeight = screenHeight - r.bottom;
73 if (imeHeight > screenHeight * 0.15) {
82 int imeHeight = screenHeight - r.bottom;
83 return imeHeight < screenHeight * 0.15;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DVideoSupportFragment.java89 int screenHeight = getView().getHeight(); in onVideoSizeChanged() local
92 if (screenWidth * height > width * screenHeight) { in onVideoSizeChanged()
94 p.height = screenHeight; in onVideoSizeChanged()
95 p.width = screenHeight * width / height; in onVideoSizeChanged()
DVideoFragment.java92 int screenHeight = getView().getHeight(); in onVideoSizeChanged() local
95 if (screenWidth * height > width * screenHeight) { in onVideoSizeChanged()
97 p.height = screenHeight; in onVideoSizeChanged()
98 p.width = screenHeight * width / height; in onVideoSizeChanged()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java122 final int screenHeight = hardwareConfig.getScreenHeight(); in renderImage() local
127 h = screenHeight; 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/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DDetailsFragmentTest.java291 final int screenHeight = detailsFragment.getRowsFragment().getVerticalGridView() in navigateBetweenRowsAndVideoUsingRequestFocusInternal() local
296 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight); in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
308 return firstRow.getTop() >= screenHeight; in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
355 final int screenHeight = detailsFragment.getRowsFragment().getVerticalGridView()
360 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight);
368 return firstRow.getTop() >= screenHeight;
426 final int screenHeight = detailsFragment.getRowsFragment().getVerticalGridView()
431 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight);
439 return firstRow.getTop() >= screenHeight;
503 final int screenHeight = detailsFragment.getRowsFragment().getVerticalGridView()
[all …]
DDetailsSupportFragmentTest.java294 final int screenHeight = detailsFragment.getRowsSupportFragment().getVerticalGridView() in navigateBetweenRowsAndVideoUsingRequestFocusInternal() local
299 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight); in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
311 return firstRow.getTop() >= screenHeight; in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
358 final int screenHeight = detailsFragment.getRowsSupportFragment().getVerticalGridView()
363 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight);
371 return firstRow.getTop() >= screenHeight;
429 final int screenHeight = detailsFragment.getRowsSupportFragment().getVerticalGridView()
434 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight);
442 return firstRow.getTop() >= screenHeight;
506 final int screenHeight = detailsFragment.getRowsSupportFragment().getVerticalGridView()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DScrollViewButtonsAndLabels.java66 int screenHeight = getWindowManager().getDefaultDisplay().getHeight(); in onCreate() local
67 mNumGroups = screenHeight / 30; in onCreate()
DRequestRectangleVisible.java50 int screenHeight = getWindowManager().getDefaultDisplay().getHeight(); in onCreate() local
51 int numLinesForScreen = screenHeight / 18; in onCreate()
DScrollViewButtonsAndLabelsTest.java182 int screenHeight = mScrollView.getHeight(); in findFirstButtonOffScreenTop2Bottom() local
190 if (buttonLoc[1] - origin[1] > screenHeight) { in findFirstButtonOffScreenTop2Bottom()
/frameworks/base/core/tests/coretests/src/android/view/
DBigCache.java47 final int screenHeight = display.getHeight(); in onCreate() local
52 tiny.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, screenHeight)); in onCreate()
/frameworks/base/services/core/java/com/android/server/policy/
DSystemGesturesPointerEventListener.java60 int screenHeight; field in SystemGesturesPointerEventListener
142 } else if (!mMouseHoveringAtEdge && event.getY() >= screenHeight - 1) { in onPointerEvent()
146 && (event.getY() > 0 && event.getY() < screenHeight - 1)) { in onPointerEvent()
226 if (fromY >= screenHeight - mSwipeStartThreshold in detectSwipe()
DPhoneWindowManager.java4452 mRestrictedScreenHeight = mSystemGestures.screenHeight = mUnrestrictedScreenHeight; in beginLayoutLw()
/frameworks/base/core/tests/coretests/src/android/util/
DScrollViewScenario.java242 int screenHeight = getWindowManager().getDefaultDisplay().getHeight() in onCreate() local
255 height = (int) (viewFactory.getHeightRatio() * screenHeight); in onCreate()
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityController.java522 final int screenHeight = mTempPoint.y; in recomputeBoundsLocked() local
526 availableBounds.set(0, 0, screenWidth, screenHeight); in recomputeBoundsLocked()
580 accountedBounds.op(0, 0, screenWidth, screenHeight, Region.Op.INTERSECT); in recomputeBoundsLocked()
586 && accountedFrame.height() == screenHeight) { in recomputeBoundsLocked()
595 screenWidth - mDrawBorderInset, screenHeight - mDrawBorderInset, in recomputeBoundsLocked()
607 screenHeight - mDrawBorderInset); in recomputeBoundsLocked()
1049 final int screenHeight = mTempPoint.y; in computeChangedWindows() local
1052 unaccountedSpace.set(0, 0, screenWidth, screenHeight); in computeChangedWindows()
/frameworks/base/tools/aapt2/
DConfigDescription.cpp521 out->screenHeight = out->SCREENHEIGHT_ANY; in parseScreenSize()
545 out->screenHeight = h; in parseScreenSize()
948 if (screenHeight || o.screenHeight) return (!o.screenHeight); in HasHigherPrecedenceThan()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1872 screenHeight = dtohs(screenHeight); in copyFromDtoH()
1886 screenHeight = htods(screenHeight); in swapHtoD()
1975 if (screenHeight != o.screenHeight) { in compareLogical()
1976 return screenHeight < o.screenHeight ? -1 : 1; in compareLogical()
2200 if (screenHeight != o.screenHeight) { in isMoreSpecificThan()
2201 if (!screenHeight) return false; in isMoreSpecificThan()
2202 if (!o.screenHeight) return true; in isMoreSpecificThan()
2569 if (requested->screenHeight) { in isBetterThan()
2570 myDelta += requested->screenHeight - screenHeight; in isBetterThan()
2571 otherDelta += requested->screenHeight - o.screenHeight; in isBetterThan()
[all …]
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java225 int screenHeight = activity.getWindowManager().getDefaultDisplay().getHeight(); in dragViewToBottom() local
235 float toY = screenHeight - 1; in dragViewToBottom()
/frameworks/base/tools/split-select/
DMain.cpp112 outConfig->screenHeight = ResTable_config::SCREENHEIGHT_ANY; in removeRuntimeQualifiers()
/frameworks/base/tools/aapt/
DAaptConfig.cpp760 out->screenHeight = out->SCREENHEIGHT_ANY; in parseScreenSize()
784 out->screenHeight = h; in parseScreenSize()
DResourceTable.cpp3179 config.screenHeight, in flatten()
3224 tHeader->config.screenHeight, in flatten()
3959 config->screenHeight, in getEntry()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp676 jint screenWidth, jint screenHeight, in android_content_AssetManager_setConfiguration() argument
705 config.screenHeight = (uint16_t)screenHeight; 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.h1048 uint16_t screenHeight; member
/frameworks/base/core/java/android/widget/
DAbsListView.java5697 int screenHeight = getResources().getDisplayMetrics().heightPixels; in positionPopup() local
5702 final int bottomGap = screenHeight - xy[1] - getHeight() + (int) (mDensityScale * 20); in positionPopup()