Home
last modified time | relevance | path

Searched refs:dpToPx (Results 1 – 8 of 8) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DManifestLayoutTests.java21 import static android.server.wm.ActivityAndWindowManagersState.dpToPx;
117 final int minWidth = dpToPx(MIN_WIDTH_DP, mDisplay.getDpi()); in testMinimalSize()
118 final int minHeight = dpToPx(MIN_HEIGHT_DP, mDisplay.getDpi()); in testMinimalSize()
154 expectedWidthPx = dpToPx(DEFAULT_WIDTH_DP, densityDpi); in testLayout()
155 expectedHeightPx = dpToPx(DEFAULT_HEIGHT_DP, densityDpi); in testLayout()
DFreeformWindowingModeTests.java125 ActivityAndWindowManagersState.dpToPx(TEST_TASK_SIZE_DP_1, densityDpi); in testActivityLifeCycleOnResizeFreeformTask()
127 ActivityAndWindowManagersState.dpToPx(TEST_TASK_SIZE_DP_2, densityDpi); in testActivityLifeCycleOnResizeFreeformTask()
DAppConfigurationTests.java25 import static android.server.wm.ActivityAndWindowManagersState.dpToPx;
308 final int smallWidthPx = dpToPx(SMALL_WIDTH_DP, density); in testDialogWhenLargeSplitSmall()
309 final int smallHeightPx = dpToPx(SMALL_HEIGHT_DP, density); in testDialogWhenLargeSplitSmall()
/cts/tests/tests/keystore/src/android/server/am/
DActivityAndWindowManagersState.java551 static int dpToPx(float dp, int densityDpi) { in dpToPx() method in ActivityAndWindowManagersState
556 return dpToPx(DEFAULT_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalTaskSize()
560 return dpToPx(DEFAULT_PIP_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalPinnedTaskSize()
/cts/tests/tests/widget/src/android/widget/cts/
DScrollViewTest.java99 mItemWidth = TestUtils.dpToPx(mActivity, ITEM_WIDTH_DPI); in setup()
100 mItemHeight = TestUtils.dpToPx(mActivity, ITEM_HEIGHT_DPI); in setup()
101 mPageWidth = TestUtils.dpToPx(mActivity, PAGE_WIDTH_DPI); in setup()
102 mPageHeight = TestUtils.dpToPx(mActivity, PAGE_HEIGHT_DPI); in setup()
DTextViewTest.java6532 final int iconSize = TestUtils.dpToPx(mActivity, 32); in testCompoundAndTotalPadding()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityAndWindowManagersState.java984 static int dpToPx(float dp, int densityDpi) { in dpToPx() method in ActivityAndWindowManagersState
989 return dpToPx(DEFAULT_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalTaskSize()
993 return dpToPx(DEFAULT_PIP_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalPinnedTaskSize()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java358 public static int dpToPx(Context context, int dp) {