/cts/tests/tests/content/src/android/content/res/cts/ |
D | FractionTest.java | 39 tryFraction(R.dimen.frac100perc, 1, 1, 1); in testFractions() 40 tryFraction(R.dimen.frac1perc, 1, 1, .01f); in testFractions() 41 tryFraction(R.dimen.fracp1perc, 1, 1, .001f); in testFractions() 42 tryFraction(R.dimen.fracp01perc, 1, 1, .0001f); in testFractions() 43 tryFraction(R.dimen.frac0perc, 1, 1, 0); in testFractions() 44 tryFraction(R.dimen.frac1p1perc, 1, 1, .011f); in testFractions() 45 tryFraction(R.dimen.frac100p1perc, 1, 1, 1.001f); in testFractions() 46 tryFraction(R.dimen.frac25510perc, 1, 1, 255.1f); in testFractions() 47 tryFraction(R.dimen.frac25610perc, 1, 1, 256.1f); in testFractions() 48 tryFraction(R.dimen.frac6553510perc, 1, 1, 65535.1f); in testFractions() [all …]
|
D | ResourcesTest.java | 191 final float dim = mResources.getDimension(R.dimen.app_icon_size); in testGetDimension() 204 final int dim = mResources.getDimensionPixelOffset(R.dimen.app_icon_size); in testGetDimensionPixelOffset() 313 final int size = mResources.getDimensionPixelSize(R.dimen.app_icon_size); in testGetDimensionPixelSize() 315 assertEquals(1, mResources.getDimensionPixelSize(R.dimen.pos_dimen_149)); in testGetDimensionPixelSize() 316 assertEquals(2, mResources.getDimensionPixelSize(R.dimen.pos_dimen_151)); in testGetDimensionPixelSize() 317 assertEquals(-1, mResources.getDimensionPixelSize(R.dimen.neg_dimen_149)); in testGetDimensionPixelSize() 318 assertEquals(-2, mResources.getDimensionPixelSize(R.dimen.neg_dimen_151)); in testGetDimensionPixelSize() 543 assertEquals(1, (int)mResources.getFraction(R.dimen.frac100perc, 1, 1)); in testgetFraction() 544 assertEquals(100, (int)mResources.getFraction(R.dimen.frac100perc, 100, 1)); in testgetFraction()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewPaddingTest.java | 70 int insetLeft = mContext.getResources().getDimensionPixelSize(R.dimen.insetLeft); in testPadding() 71 int insetRight = mContext.getResources().getDimensionPixelSize(R.dimen.insetRight); in testPadding() 72 int insetTop = mContext.getResources().getDimensionPixelSize(R.dimen.insetTop); in testPadding() 73 int insetBottom = mContext.getResources().getDimensionPixelSize(R.dimen.insetBottom); in testPadding() 74 int insetStart = mContext.getResources().getDimensionPixelSize(R.dimen.insetStart); in testPadding() 75 int insetEnd = mContext.getResources().getDimensionPixelSize(R.dimen.insetEnd); in testPadding() 76 int insetAll = mContext.getResources().getDimensionPixelSize(R.dimen.insetAll); in testPadding() 78 mContext.getResources().getDimensionPixelSize(R.dimen.insetHorizontal); in testPadding() 79 int insetVertical = mContext.getResources().getDimensionPixelSize(R.dimen.insetVertical); in testPadding()
|
D | ViewGroup_MarginLayoutParamsTest.java | 243 int marginStart = mContext.getResources().getDimensionPixelSize(R.dimen.marginStart); in testVerticalHorizontalMargins() 244 int marginEnd = mContext.getResources().getDimensionPixelSize(R.dimen.marginEnd); in testVerticalHorizontalMargins() 245 int marginAll = mContext.getResources().getDimensionPixelSize(R.dimen.marginAll); in testVerticalHorizontalMargins() 247 mContext.getResources().getDimensionPixelSize(R.dimen.marginHorizontal); in testVerticalHorizontalMargins() 248 int marginVertical = mContext.getResources().getDimensionPixelSize(R.dimen.marginVertical); in testVerticalHorizontalMargins()
|
D | ViewTest.java | 4121 final int thumbWidth = res.getDimensionPixelSize(R.dimen.scrollbar_thumb_width); in testScrollbarSize() 4122 final int thumbHeight = res.getDimensionPixelSize(R.dimen.scrollbar_thumb_height); in testScrollbarSize() 4132 final int trackWidth = res.getDimensionPixelSize(R.dimen.scrollbar_track_width); in testScrollbarSize() 4133 final int trackHeight = res.getDimensionPixelSize(R.dimen.scrollbar_track_height); in testScrollbarSize()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTestCase.java | 86 …assertEquals(getNormalizedDimensionResource(android.appwidget.cts.R.dimen.first_min_appwidget_size… in verifyInstalledProviders() 88 …assertEquals(getNormalizedDimensionResource(android.appwidget.cts.R.dimen.first_min_appwidget_size… in verifyInstalledProviders() 91 … android.appwidget.cts.R.dimen.first_min_resize_appwidget_size), provider.minResizeWidth); in verifyInstalledProviders() 93 … android.appwidget.cts.R.dimen.first_min_resize_appwidget_size), provider.minResizeHeight); in verifyInstalledProviders() 115 …assertEquals(getNormalizedDimensionResource(android.appwidget.cts.R.dimen.second_min_appwidget_siz… in verifyInstalledProviders() 117 …assertEquals(getNormalizedDimensionResource(android.appwidget.cts.R.dimen.second_min_appwidget_siz… in verifyInstalledProviders() 120 … android.appwidget.cts.R.dimen.second_min_resize_appwidget_size), provider.minResizeWidth); in verifyInstalledProviders() 122 … android.appwidget.cts.R.dimen.second_min_resize_appwidget_size), provider.minResizeHeight); in verifyInstalledProviders()
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | ReferenceViewGroup.java | 42 mWidthDp = resources.getDimensionPixelSize(R.dimen.reference_width); in ReferenceViewGroup() 43 mHeightDp = resources.getDimensionPixelSize(R.dimen.reference_height); in ReferenceViewGroup()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimatorInflaterTest.java | 119 .getDimension(R.dimen.test_animator_target_x); in testLoadAnimator() 122 .getDimension(R.dimen.test_animator_target_y); in testLoadAnimator() 235 float resetValue = mActivity.getResources().getDimension(R.dimen.reset_state_value); in loadStateListAnimatorWithChangingResetStateTest() 262 .getDimension(R.dimen.changing_state_list_anim_target_x_value); in loadChangingStateListAnimatorTest()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SpinnerTest.java | 328 final int dropDownWidth = res.getDimensionPixelSize(R.dimen.spinner_dropdown_width); in testDropDownMetricsDropdownMode() 330 res.getDimensionPixelSize(R.dimen.spinner_dropdown_offset_h); in testDropDownMetricsDropdownMode() 332 res.getDimensionPixelSize(R.dimen.spinner_dropdown_offset_v); in testDropDownMetricsDropdownMode() 361 final int dropDownWidth = res.getDimensionPixelSize(R.dimen.spinner_dropdown_width); in testDropDownMetricsDialogMode() 363 res.getDimensionPixelSize(R.dimen.spinner_dropdown_offset_h); in testDropDownMetricsDialogMode() 365 res.getDimensionPixelSize(R.dimen.spinner_dropdown_offset_v); in testDropDownMetricsDialogMode()
|
D | SearchViewTest.java | 93 assertEquals(mActivity.getResources().getDimensionPixelSize(R.dimen.search_view_max_width), in testAttributesFromXml() 180 final int maxWidth1 = res.getDimensionPixelSize(R.dimen.search_view_max_width); in testAccessMaxWidth() 181 final int maxWidth2 = res.getDimensionPixelSize(R.dimen.search_view_max_width2); in testAccessMaxWidth()
|
D | SwitchTest.java | 276 R.dimen.switch_thumb_text_padding); in testAccessText() 283 R.dimen.switch_padding); in testAccessText() 300 R.dimen.switch_min_width); in testAccessMinWidth() 308 R.dimen.switch_min_width2); in testAccessMinWidth()
|
D | SearchView_CursorTest.java | 217 R.dimen.search_view_suggestion_row_height); in testSuggestionSelection()
|
D | AutoCompleteTextViewTest.java | 386 res.getDimensionPixelSize(R.dimen.autocomplete_textview_dropdown_width); in testDropDownMetrics() 388 res.getDimensionPixelSize(R.dimen.autocomplete_textview_dropdown_height); in testDropDownMetrics() 390 res.getDimensionPixelSize(R.dimen.autocomplete_textview_dropdown_offset_h); in testDropDownMetrics() 392 res.getDimensionPixelSize(R.dimen.autocomplete_textview_dropdown_offset_v); in testDropDownMetrics()
|
D | LinearLayoutTest.java | 834 final int dividerSize = res.getDimensionPixelSize(R.dimen.linear_layout_divider_size); in testDividersInVerticalLayout() 835 final int dividerPadding = res.getDimensionPixelSize(R.dimen.linear_layout_divider_padding); in testDividersInVerticalLayout() 1097 final int dividerSize = res.getDimensionPixelSize(R.dimen.linear_layout_divider_size); in testDividersInHorizontalLayout() 1098 final int dividerPadding = res.getDimensionPixelSize(R.dimen.linear_layout_divider_padding); in testDividersInHorizontalLayout()
|
D | AbsListView_ScrollTest.java | 102 mRowHeightPx = activity.getResources().getDimensionPixelSize(R.dimen.listrow_height); in setup()
|
D | ListPopupWindowTest.java | 814 R.dimen.popup_row_height); in testCreateOnDragListener()
|
D | TextViewTest.java | 4717 .getDimensionPixelSize(R.dimen.textview_firstBaselineToTopHeight); in testBaselineAttributes() 4719 .getDimensionPixelSize(R.dimen.textview_lastBaselineToBottomHeight); in testBaselineAttributes() 4721 .getDimensionPixelSize(R.dimen.textview_lineHeight); in testBaselineAttributes() 6527 final int drawablePadding = res.getDimensionPixelSize(R.dimen.textview_drawable_padding); in testCompoundAndTotalPadding() 6528 final int paddingLeft = res.getDimensionPixelSize(R.dimen.textview_padding_left); in testCompoundAndTotalPadding() 6529 final int paddingRight = res.getDimensionPixelSize(R.dimen.textview_padding_right); in testCompoundAndTotalPadding() 6530 final int paddingTop = res.getDimensionPixelSize(R.dimen.textview_padding_top); in testCompoundAndTotalPadding() 6531 final int paddingBottom = res.getDimensionPixelSize(R.dimen.textview_padding_bottom); in testCompoundAndTotalPadding()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ShadowTests.java | 70 resources.getValue(R.dimen.expected_spot_shadow_alpha, value, false); in testShadowResources() 74 resources.getValue(R.dimen.expected_ambient_shadow_alpha, value, false); in testShadowResources()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeBoundsTest.java | 398 private int validateDim(String name, String dimen, int lastDim, int newDim) { in validateDim() argument 405 assertTrue(name + " new " + dimen + " " + newDim in validateDim() 410 assertTrue(name + " new " + dimen + " " + newDim in validateDim() 419 assertTrue(name + " " + dimen + " " + newDim + " must be <= " + mMax, in validateDim() 421 assertTrue(name + " " + dimen + " " + newDim + " must be >= " + mMin, in validateDim()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/ |
D | MainFragment.java | 176 options.dynamicShadowZ(res.getDimension(R.dimen.shadow_unfocused_z), 177 res.getDimension(R.dimen.shadow_focused_z));
|