Searched refs:dpToPx (Results 1 – 8 of 8) sorted by relevance
/cts/tests/framework/base/activitymanager/src/android/server/am/ |
D | ActivityManagerManifestLayoutTests.java | 21 import static android.server.am.ActivityAndWindowManagersState.dpToPx; 115 final int minWidth = dpToPx(MIN_WIDTH_DP, mDisplay.getDpi()); in testMinimalSize() 116 final int minHeight = dpToPx(MIN_HEIGHT_DP, mDisplay.getDpi()); in testMinimalSize() 152 expectedWidthPx = dpToPx(DEFAULT_WIDTH_DP, densityDpi); in testLayout() 153 expectedHeightPx = dpToPx(DEFAULT_HEIGHT_DP, densityDpi); in testLayout()
|
D | ActivityManagerFreeformStackTests.java | 113 ActivityAndWindowManagersState.dpToPx(TEST_TASK_SIZE_DP_1, densityDpi); in testActivityLifeCycleOnResizeFreeformTask() 115 ActivityAndWindowManagersState.dpToPx(TEST_TASK_SIZE_DP_2, densityDpi); in testActivityLifeCycleOnResizeFreeformTask()
|
D | ActivityManagerAppConfigurationTests.java | 25 import static android.server.am.ActivityAndWindowManagersState.dpToPx; 333 final int smallWidthPx = dpToPx(SMALL_WIDTH_DP, density); in testDialogWhenLargeSplitSmall() 334 final int smallHeightPx = dpToPx(SMALL_HEIGHT_DP, density); in testDialogWhenLargeSplitSmall()
|
/cts/tests/tests/keystore/src/android/server/am/ |
D | ActivityAndWindowManagersState.java | 550 static int dpToPx(float dp, int densityDpi) { in dpToPx() method in ActivityAndWindowManagersState 555 return dpToPx(DEFAULT_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalTaskSize() 559 return dpToPx(DEFAULT_PIP_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalPinnedTaskSize()
|
/cts/tests/framework/base/activitymanager/util/src/android/server/am/ |
D | ActivityAndWindowManagersState.java | 873 static int dpToPx(float dp, int densityDpi) { in dpToPx() method in ActivityAndWindowManagersState 878 return dpToPx(DEFAULT_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalTaskSize() 882 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 | 96 mItemWidth = TestUtils.dpToPx(mActivity, ITEM_WIDTH_DPI); in setup() 97 mItemHeight = TestUtils.dpToPx(mActivity, ITEM_HEIGHT_DPI); in setup() 98 mPageWidth = TestUtils.dpToPx(mActivity, PAGE_WIDTH_DPI); in setup() 99 mPageHeight = TestUtils.dpToPx(mActivity, PAGE_HEIGHT_DPI); in setup()
|
D | TextViewTest.java | 6178 final int iconSize = TestUtils.dpToPx(mActivity, 32); in testCompoundAndTotalPadding()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 358 public static int dpToPx(Context context, int dp) {
|