Searched refs:dpToPx (Results 1 – 10 of 10) sorted by relevance
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ManifestLayoutTests.java | 21 import static android.server.wm.WindowManagerState.dpToPx; 120 final int minWidth = dpToPx(MIN_WIDTH_DP, mDisplay.getDpi()); in testMinimalSize() 121 final int minHeight = dpToPx(MIN_HEIGHT_DP, mDisplay.getDpi()); in testMinimalSize() 162 expectedWidthPx = dpToPx(DEFAULT_WIDTH_DP, densityDpi); in testLayout() 163 expectedHeightPx = dpToPx(DEFAULT_HEIGHT_DP, densityDpi); in testLayout()
|
D | FreeformWindowingModeTests.java | 21 import static android.server.wm.WindowManagerState.dpToPx; 132 final int testTaskSize1 = dpToPx(TEST_TASK_SIZE_DP_1, densityDpi); in testActivityLifeCycleOnResizeFreeformTask() 133 final int testTaskSize2 = dpToPx(TEST_TASK_SIZE_DP_2, densityDpi); in testActivityLifeCycleOnResizeFreeformTask()
|
D | AppConfigurationTests.java | 29 import static android.server.wm.WindowManagerState.dpToPx; 313 final int smallWidthPx = dpToPx(SMALL_WIDTH_DP, density); in testDialogWhenLargeSplitSmall() 314 final int smallHeightPx = dpToPx(SMALL_HEIGHT_DP, density); in testDialogWhenLargeSplitSmall()
|
D | PinnedStackTests.java | 34 import static android.server.wm.WindowManagerState.dpToPx; 301 final int overridableMinSize = dpToPx( in testEnterPipWithTinyMinimalSize()
|
D | SplashscreenTests.java | 201 int px = WindowManagerState.dpToPx(CENTER_ICON_SIZE, in testSplashScreenColor()
|
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | Utils.kt | 39 fun Int.dpToPx(resources: Resources) = TypedValue.applyDimension( in dpToPx() method
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollViewTest.java | 112 mItemWidth = TestUtils.dpToPx(mActivity, ITEM_WIDTH_DPI); in setup() 113 mItemHeight = TestUtils.dpToPx(mActivity, ITEM_HEIGHT_DPI); in setup() 114 mPageWidth = TestUtils.dpToPx(mActivity, PAGE_WIDTH_DPI); in setup() 115 mPageHeight = TestUtils.dpToPx(mActivity, PAGE_HEIGHT_DPI); in setup()
|
D | TextViewTest.java | 6680 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) {
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowManagerState.java | 2062 static int dpToPx(float dp, int densityDpi) { 2067 return dpToPx(mDefaultMinSizeOfResizableTaskDp, getDisplay(displayId).getDpi()); 2071 return dpToPx(ActivityTaskManager.DEFAULT_MINIMAL_SPLIT_SCREEN_DISPLAY_SIZE_DP,
|