Home
last modified time | relevance | path

Searched refs:dimen (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/content/src/android/content/res/cts/
DFractionTest.java54 tryFraction(R.dimen.frac100perc, 1, 1, 1); in testFractions()
55 tryFraction(R.dimen.frac1perc, 1, 1, .01f); in testFractions()
56 tryFraction(R.dimen.fracp1perc, 1, 1, .001f); in testFractions()
57 tryFraction(R.dimen.fracp01perc, 1, 1, .0001f); in testFractions()
58 tryFraction(R.dimen.frac0perc, 1, 1, 0); in testFractions()
59 tryFraction(R.dimen.frac1p1perc, 1, 1, .011f); in testFractions()
60 tryFraction(R.dimen.frac100p1perc, 1, 1, 1.001f); in testFractions()
61 tryFraction(R.dimen.frac25510perc, 1, 1, 255.1f); in testFractions()
62 tryFraction(R.dimen.frac25610perc, 1, 1, 256.1f); in testFractions()
63 tryFraction(R.dimen.frac6553510perc, 1, 1, 65535.1f); in testFractions()
[all …]
DResourcesTest.java217 final float dim = mResources.getDimension(R.dimen.app_icon_size); in testGetDimension()
231 final int dim = mResources.getDimensionPixelOffset(R.dimen.app_icon_size); in testGetDimensionPixelOffset()
474 final int size = mResources.getDimensionPixelSize(R.dimen.app_icon_size); in testGetDimensionPixelSize()
476 assertEquals(1, mResources.getDimensionPixelSize(R.dimen.pos_dimen_149)); in testGetDimensionPixelSize()
477 assertEquals(2, mResources.getDimensionPixelSize(R.dimen.pos_dimen_151)); in testGetDimensionPixelSize()
478 assertEquals(-1, mResources.getDimensionPixelSize(R.dimen.neg_dimen_149)); in testGetDimensionPixelSize()
479 assertEquals(-2, mResources.getDimensionPixelSize(R.dimen.neg_dimen_151)); in testGetDimensionPixelSize()
783 assertEquals(1, (int)mResources.getFraction(R.dimen.frac100perc, 1, 1)); in testgetFraction()
784 assertEquals(100, (int)mResources.getFraction(R.dimen.frac100perc, 100, 1)); in testgetFraction()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetDimensionsTest.java39 … assertTrue(resources.getDimension(android.R.dimen.system_app_widget_background_radius) >= 0); in backgroundRadius_shouldBePositive()
46 assertTrue(resources.getDimension(android.R.dimen.system_app_widget_background_radius) in backgroundRadius_shouldBeLessThanMaxRadius()
47 <= resources.getDimension(R.dimen.appwidget_max_background_radius)); in backgroundRadius_shouldBeLessThanMaxRadius()
54 android.R.dimen.system_app_widget_background_radius) - resources.getDimension( in innerRadius_shouldBeFixedComparedToBackgroundRadius()
55 R.dimen.appwidget_radii_difference); in innerRadius_shouldBeFixedComparedToBackgroundRadius()
60 resources.getDimension(android.R.dimen.system_app_widget_inner_radius), 1e-4); in innerRadius_shouldBeFixedComparedToBackgroundRadius()
DAppWidgetTestCase.java88 …assertEquals(getNormalizedDimensionResource(android.appwidget.cts.R.dimen.first_min_appwidget_size… in verifyInstalledProviders()
90 …assertEquals(getNormalizedDimensionResource(android.appwidget.cts.R.dimen.first_min_appwidget_size… in verifyInstalledProviders()
93 … android.appwidget.cts.R.dimen.first_min_resize_appwidget_size), provider.minResizeWidth); in verifyInstalledProviders()
95 … android.appwidget.cts.R.dimen.first_min_resize_appwidget_size), provider.minResizeHeight); in verifyInstalledProviders()
98 android.appwidget.cts.R.dimen.first_max_resize_appwidget_size)) in verifyInstalledProviders()
102 android.appwidget.cts.R.dimen.first_max_resize_appwidget_size)) in verifyInstalledProviders()
137 …assertEquals(getNormalizedDimensionResource(android.appwidget.cts.R.dimen.second_min_appwidget_siz… in verifyInstalledProviders()
139 …assertEquals(getNormalizedDimensionResource(android.appwidget.cts.R.dimen.second_min_appwidget_siz… in verifyInstalledProviders()
142 … android.appwidget.cts.R.dimen.second_min_resize_appwidget_size), provider.minResizeWidth); in verifyInstalledProviders()
144 … android.appwidget.cts.R.dimen.second_min_resize_appwidget_size), provider.minResizeHeight); in verifyInstalledProviders()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewPaddingTest.java72 int insetLeft = mContext.getResources().getDimensionPixelSize(R.dimen.insetLeft); in testPadding()
73 int insetRight = mContext.getResources().getDimensionPixelSize(R.dimen.insetRight); in testPadding()
74 int insetTop = mContext.getResources().getDimensionPixelSize(R.dimen.insetTop); in testPadding()
75 int insetBottom = mContext.getResources().getDimensionPixelSize(R.dimen.insetBottom); in testPadding()
76 int insetStart = mContext.getResources().getDimensionPixelSize(R.dimen.insetStart); in testPadding()
77 int insetEnd = mContext.getResources().getDimensionPixelSize(R.dimen.insetEnd); in testPadding()
78 int insetAll = mContext.getResources().getDimensionPixelSize(R.dimen.insetAll); in testPadding()
80 mContext.getResources().getDimensionPixelSize(R.dimen.insetHorizontal); in testPadding()
81 int insetVertical = mContext.getResources().getDimensionPixelSize(R.dimen.insetVertical); in testPadding()
DViewGroup_MarginLayoutParamsTest.java245 int marginStart = mContext.getResources().getDimensionPixelSize(R.dimen.marginStart); in testVerticalHorizontalMargins()
246 int marginEnd = mContext.getResources().getDimensionPixelSize(R.dimen.marginEnd); in testVerticalHorizontalMargins()
247 int marginAll = mContext.getResources().getDimensionPixelSize(R.dimen.marginAll); in testVerticalHorizontalMargins()
249 mContext.getResources().getDimensionPixelSize(R.dimen.marginHorizontal); in testVerticalHorizontalMargins()
250 int marginVertical = mContext.getResources().getDimensionPixelSize(R.dimen.marginVertical); in testVerticalHorizontalMargins()
/cts/hostsidetests/theme/app/src/android/theme/app/
DReferenceViewGroup.java42 mWidthDp = resources.getDimensionPixelSize(R.dimen.reference_width); in ReferenceViewGroup()
43 mHeightDp = resources.getDimensionPixelSize(R.dimen.reference_height); in ReferenceViewGroup()
/cts/tests/tests/hardware/src/android/hardware/cts/
DHardwareBufferTest.java176 final int dimen = 100; in testInvalidUsage() local
178 final boolean supported = HardwareBuffer.isSupported(dimen, dimen, HardwareBuffer.RGBA_8888, in testInvalidUsage()
182 HardwareBuffer buffer = HardwareBuffer.create(dimen, dimen, HardwareBuffer.RGBA_8888, in testInvalidUsage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DBubbleActivity.java84 R.dimen.bubble_expanded_view_min_height); in checkHeight()
113 R.dimen.bubble_expanded_view_max_height_buffer); in checkHeight()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsThemeColorsTest.java130 theme.put(android.R.dimen.app_icon_size, 12); in apply_setNonThemeColors_shouldNotChangeContext()
138 assertEquals(res.getDimensionPixelSize(android.R.dimen.app_icon_size), in apply_setNonThemeColors_shouldNotChangeContext()
139 resultRes.getDimensionPixelSize(android.R.dimen.app_icon_size)); in apply_setNonThemeColors_shouldNotChangeContext()
DSpinnerTest.java386 final int dropDownWidth = res.getDimensionPixelSize(R.dimen.spinner_dropdown_width); in testDropDownMetricsDropdownMode()
388 res.getDimensionPixelSize(R.dimen.spinner_dropdown_offset_h); in testDropDownMetricsDropdownMode()
390 res.getDimensionPixelSize(R.dimen.spinner_dropdown_offset_v); in testDropDownMetricsDropdownMode()
418 final int dropDownWidth = res.getDimensionPixelSize(R.dimen.spinner_dropdown_width); in testDropDownMetricsDialogMode()
420 res.getDimensionPixelSize(R.dimen.spinner_dropdown_offset_h); in testDropDownMetricsDialogMode()
422 res.getDimensionPixelSize(R.dimen.spinner_dropdown_offset_v); in testDropDownMetricsDialogMode()
DRemoteViewsTest.java1667 R.id.remoteView_text, MARGIN_LEFT, R.dimen.textview_padding_left); in testSetViewLayoutMarginDimen()
1669 R.id.remoteView_text, MARGIN_TOP, R.dimen.textview_padding_top); in testSetViewLayoutMarginDimen()
1671 R.id.remoteView_text, MARGIN_RIGHT, R.dimen.textview_padding_right); in testSetViewLayoutMarginDimen()
1673 R.id.remoteView_text, MARGIN_BOTTOM, R.dimen.textview_padding_bottom); in testSetViewLayoutMarginDimen()
1677 textView.getResources().getDimensionPixelOffset(R.dimen.textview_padding_left), in testSetViewLayoutMarginDimen()
1678 textView.getResources().getDimensionPixelOffset(R.dimen.textview_padding_top), in testSetViewLayoutMarginDimen()
1679 textView.getResources().getDimensionPixelOffset(R.dimen.textview_padding_right), in testSetViewLayoutMarginDimen()
1680 textView.getResources().getDimensionPixelOffset(R.dimen.textview_padding_bottom)); in testSetViewLayoutMarginDimen()
1687 R.id.remoteView_text_ltr, MARGIN_START, R.dimen.textview_padding_left); in testSetViewLayoutMarginDimen_layoutDirection()
1689 R.id.remoteView_text_ltr, MARGIN_TOP, R.dimen.textview_padding_top); in testSetViewLayoutMarginDimen_layoutDirection()
[all …]
DSearchViewTest.java113 assertEquals(mActivity.getResources().getDimensionPixelSize(R.dimen.search_view_max_width), in testAttributesFromXml()
200 final int maxWidth1 = res.getDimensionPixelSize(R.dimen.search_view_max_width); in testAccessMaxWidth()
201 final int maxWidth2 = res.getDimensionPixelSize(R.dimen.search_view_max_width2); in testAccessMaxWidth()
DSwitchTest.java287 R.dimen.switch_thumb_text_padding); in testAccessText()
294 R.dimen.switch_padding); in testAccessText()
311 R.dimen.switch_min_width); in testAccessMinWidth()
319 R.dimen.switch_min_width2); in testAccessMinWidth()
DAutoCompleteTextViewTest.java393 res.getDimensionPixelSize(R.dimen.autocomplete_textview_dropdown_width); in testDropDownMetrics()
395 res.getDimensionPixelSize(R.dimen.autocomplete_textview_dropdown_height); in testDropDownMetrics()
397 res.getDimensionPixelSize(R.dimen.autocomplete_textview_dropdown_offset_h); in testDropDownMetrics()
399 res.getDimensionPixelSize(R.dimen.autocomplete_textview_dropdown_offset_v); in testDropDownMetrics()
DSearchView_CursorTest.java244 R.dimen.search_view_suggestion_row_height); in testSuggestionSelection()
DLinearLayoutTest.java843 final int dividerSize = res.getDimensionPixelSize(R.dimen.linear_layout_divider_size); in testDividersInVerticalLayout()
844 final int dividerPadding = res.getDimensionPixelSize(R.dimen.linear_layout_divider_padding); in testDividersInVerticalLayout()
1140 final int dividerSize = res.getDimensionPixelSize(R.dimen.linear_layout_divider_size); in testDividersInHorizontalLayout()
1141 final int dividerPadding = res.getDimensionPixelSize(R.dimen.linear_layout_divider_padding); in testDividersInHorizontalLayout()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimatorInflaterTest.java134 .getDimension(R.dimen.test_animator_target_x); in testLoadAnimator()
137 .getDimension(R.dimen.test_animator_target_y); in testLoadAnimator()
251 float resetValue = mActivity.getResources().getDimension(R.dimen.reset_state_value); in loadStateListAnimatorWithChangingResetStateTest()
278 .getDimension(R.dimen.changing_state_list_anim_target_x_value); in loadChangingStateListAnimatorTest()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DShadowTests.java70 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/
DChangeBoundsTest.java398 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/
DMainFragment.java176 options.dynamicShadowZ(res.getDimension(R.dimen.shadow_unfocused_z),
177 res.getDimension(R.dimen.shadow_focused_z));
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEmbeddedHierarchyTest.java195 R.dimen.embedded_hierarchy_embedded_layout_movement_size); in testEmbeddedViewHasCorrectBoundAfterHostViewMove()
294 R.dimen.embedded_hierarchy_embedded_layout_size); in surfaceCreated()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java78 R.dimen.button_touchable_width_increment_amount); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DWaveformView.java58 float strokeWidth = res.getDimension(R.dimen.waveform_stroke_width); in init()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/displaycutout/
DDisplayCutoutTestActivity.java72 mButtonSize = getResources().getDimensionPixelSize(R.dimen.display_cutout_test_button_size); in onCreate()

12