Searched refs:dpToPx (Results 1 – 8 of 8) sorted by relevance
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ManifestLayoutTests.java | 21 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()
|
D | FreeformWindowingModeTests.java | 125 ActivityAndWindowManagersState.dpToPx(TEST_TASK_SIZE_DP_1, densityDpi); in testActivityLifeCycleOnResizeFreeformTask() 127 ActivityAndWindowManagersState.dpToPx(TEST_TASK_SIZE_DP_2, densityDpi); in testActivityLifeCycleOnResizeFreeformTask()
|
D | AppConfigurationTests.java | 25 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/ |
D | ActivityAndWindowManagersState.java | 551 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/ |
D | ScrollViewTest.java | 99 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()
|
D | TextViewTest.java | 6532 final int iconSize = TestUtils.dpToPx(mActivity, 32); in testCompoundAndTotalPadding()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityAndWindowManagersState.java | 984 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/ |
D | TestUtils.java | 358 public static int dpToPx(Context context, int dp) {
|