Home
last modified time | relevance | path

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

12345678910>>...13

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java62 import com.android.systemui.R.dimen;
143 com.android.internal.R.dimen.rounded_corner_radius, 0); in testNoRounding_NoCutout()
145 com.android.internal.R.dimen.rounded_corner_radius_top, 0); in testNoRounding_NoCutout()
147 com.android.internal.R.dimen.rounded_corner_radius_bottom, 0); in testNoRounding_NoCutout()
149 .addOverride(dimen.rounded_corner_content_padding, 0); in testNoRounding_NoCutout()
168 com.android.internal.R.dimen.rounded_corner_radius, 20); in testRounding_NoCutout()
170 .addOverride(dimen.rounded_corner_content_padding, 20); in testRounding_NoCutout()
199 com.android.internal.R.dimen.rounded_corner_radius, testRadius); in testRoundingRadius_NoCutout()
201 com.android.internal.R.dimen.rounded_corner_radius_top, testRadius); in testRoundingRadius_NoCutout()
203 com.android.internal.R.dimen.rounded_corner_radius_bottom, testRadius); in testRoundingRadius_NoCutout()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DScreenDecorationsUtils.java39 float defaultRadius = resources.getDimension(R.dimen.rounded_corner_radius) in getWindowCornerRadius()
40 - resources.getDimension(R.dimen.rounded_corner_radius_adjustment); in getWindowCornerRadius()
42 float topRadius = resources.getDimension(R.dimen.rounded_corner_radius_top) in getWindowCornerRadius()
43 - resources.getDimension(R.dimen.rounded_corner_radius_top_adjustment); in getWindowCornerRadius()
47 float bottomRadius = resources.getDimension(R.dimen.rounded_corner_radius_bottom) in getWindowCornerRadius()
48 - resources.getDimension(R.dimen.rounded_corner_radius_bottom_adjustment); in getWindowCornerRadius()
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java84 res.getValue(R.dimen.resource_cache_test_generic, staticValue, true); in testVoidConfigChange()
105 res.getValue(R.dimen.resource_cache_test_orientation_dependent, changingValue, true); in testEffectiveConfigChange()
128 res.getValue(R.dimen.resource_cache_test_generic, staticValue, true); in testConfigChangeMultipleResources()
129 res.getValue(R.dimen.resource_cache_test_orientation_dependent, changingValue, true); in testConfigChangeMultipleResources()
133 mCache.put(R.dimen.resource_cache_test_generic, getActivity().getTheme(), in testConfigChangeMultipleResources()
135 mCache.put(R.dimen.resource_cache_test_orientation_dependent, getActivity().getTheme(), in testConfigChangeMultipleResources()
143 assertEquals(staticDim, mCache.getInstance(R.dimen.resource_cache_test_generic, res, in testConfigChangeMultipleResources()
146 mCache.getInstance(R.dimen.resource_cache_test_orientation_dependent, res, in testConfigChangeMultipleResources()
149 assertEquals(staticDim, mCache.getInstance(R.dimen.resource_cache_test_generic, res, in testConfigChangeMultipleResources()
151 assertNull(mCache.getInstance(R.dimen.resource_cache_test_orientation_dependent, res, in testConfigChangeMultipleResources()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunablePadding.java57 int dimen = mDefaultSize; in onTuningChanged() local
60 dimen = (int) (Integer.parseInt(newValue) * mDensity); in onTuningChanged()
65 mView.setPadding(getPadding(dimen, left), getPadding(dimen, FLAG_TOP), in onTuningChanged()
66 getPadding(dimen, right), getPadding(dimen, FLAG_BOTTOM)); in onTuningChanged()
69 private int getPadding(int dimen, int flag) { in getPadding() argument
70 return ((mFlags & flag) != 0) ? dimen : 0; in getPadding()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DGlifDimensionTest.java67 .that(res.getDimensionPixelSize(R.dimen.suw_items_glif_text_divider_inset)) in assertDividerInset()
73 .that(res.getDimensionPixelSize(R.dimen.suw_items_glif_icon_divider_inset)) in assertDividerInset()
74 .isEqualTo(marginSides + res.getDimensionPixelSize(R.dimen.suw_items_icon_container_width)); in assertDividerInset()
98 .that(res.getDimensionPixelSize(R.dimen.suw_glif_button_margin_end)) in assertButtonMargin()
104 .that(res.getDimensionPixelSize(R.dimen.suw_glif_button_margin_start)) in assertButtonMargin()
105 .isEqualTo(marginSides - res.getDimensionPixelSize(R.dimen.suw_glif_button_padding)); in assertButtonMargin()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DSmallClockPosition.java44 this(res.getDimensionPixelSize(R.dimen.status_bar_height), in SmallClockPosition()
45 res.getDimensionPixelSize(R.dimen.keyguard_lock_padding), in SmallClockPosition()
46 res.getDimensionPixelSize(R.dimen.keyguard_lock_height), in SmallClockPosition()
47 res.getDimensionPixelSize(R.dimen.burn_in_prevention_offset_y) in SmallClockPosition()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wm/
DDisplayLayoutTest.java111 R.dimen.navigation_bar_height_landscape_car_mode); in createResources()
112 doReturn(navPort).when(res).getDimensionPixelSize(R.dimen.navigation_bar_height_car_mode); in createResources()
113 doReturn(navLand).when(res).getDimensionPixelSize(R.dimen.navigation_bar_width_car_mode); in createResources()
114 doReturn(navLand).when(res).getDimensionPixelSize(R.dimen.navigation_bar_height_landscape); in createResources()
115 doReturn(navPort).when(res).getDimensionPixelSize(R.dimen.navigation_bar_height); in createResources()
116 doReturn(navLand).when(res).getDimensionPixelSize(R.dimen.navigation_bar_width); in createResources()
118 doReturn(statusLand).when(res).getDimensionPixelSize(R.dimen.status_bar_height_landscape); in createResources()
119 doReturn(statusPort).when(res).getDimensionPixelSize(R.dimen.status_bar_height_portrait); in createResources()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java130 R.dimen.keyguard_clock_notifications_margin); in loadDimens()
134 R.dimen.keyguard_clock_top_margin), in loadDimens()
135 res.getDimensionPixelSize(R.dimen.keyguard_lock_height) in loadDimens()
136 + res.getDimensionPixelSize(R.dimen.keyguard_lock_padding) in loadDimens()
137 + res.getDimensionPixelSize(R.dimen.keyguard_clock_lock_margin)); in loadDimens()
139 R.dimen.burn_in_prevention_offset_x); in loadDimens()
141 R.dimen.burn_in_prevention_offset_y); in loadDimens()
DKeyguardStatusBarView.java137 R.dimen.multi_user_avatar_keyguard_size); in onConfigurationChanged()
143 R.dimen.multi_user_switch_width_keyguard); in onConfigurationChanged()
145 R.dimen.multi_user_switch_keyguard_margin)); in onConfigurationChanged()
151 R.dimen.system_icons_super_container_margin_start)); in onConfigurationChanged()
155 getResources().getDimensionPixelSize(R.dimen.system_icons_keyguard_padding_end), in onConfigurationChanged()
161 com.android.internal.R.dimen.text_size_small_material)); in onConfigurationChanged()
165 getResources().getDimensionPixelSize(R.dimen.keyguard_carrier_text_margin), in onConfigurationChanged()
178 R.dimen.status_bar_header_height_keyguard) + waterfallTop; in updateKeyguardStatusBarHeight()
185 R.dimen.system_icons_switcher_hidden_expanded_margin); in loadDimens()
187 R.dimen.system_icons_super_container_avatarless_margin_end); in loadDimens()
[all …]
DPhoneStatusBarView.java289 R.dimen.display_cutout_margin_consumption); in updateResources()
291 R.dimen.rounded_corner_content_padding); in updateResources()
300 mStatusBarHeight = getResources().getDimensionPixelSize(R.dimen.status_bar_height); in updateStatusBarHeight()
304 R.dimen.status_bar_padding_top); in updateStatusBarHeight()
306 R.dimen.status_bar_padding_start); in updateStatusBarHeight()
308 R.dimen.status_bar_padding_end); in updateStatusBarHeight()
/frameworks/base/core/java/android/view/
DViewConfiguration.java410 com.android.internal.R.dimen.config_scrollbarSize); in ViewConfiguration()
416 com.android.internal.R.dimen.config_ambiguousGestureMultiplier, in ViewConfiguration()
461 com.android.internal.R.dimen.config_viewConfigurationTouchSlop); in ViewConfiguration()
463 com.android.internal.R.dimen.config_viewConfigurationHoverSlop); in ViewConfiguration()
465 com.android.internal.R.dimen.config_minScrollbarTouchTarget); in ViewConfiguration()
471 com.android.internal.R.dimen.config_viewMinFlingVelocity); in ViewConfiguration()
473 com.android.internal.R.dimen.config_viewMaxFlingVelocity); in ViewConfiguration()
478 com.android.internal.R.dimen.config_horizontalScrollFactor); in ViewConfiguration()
480 com.android.internal.R.dimen.config_verticalScrollFactor); in ViewConfiguration()
486 com.android.internal.R.dimen.config_minScalingSpan); in ViewConfiguration()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTestsBase.java76 resources.addOverride(R.dimen.status_bar_height_portrait, STATUS_BAR_HEIGHT); in setUpDisplayPolicy()
77 resources.addOverride(R.dimen.status_bar_height_landscape, STATUS_BAR_HEIGHT); in setUpDisplayPolicy()
78 resources.addOverride(R.dimen.navigation_bar_height, NAV_BAR_HEIGHT); in setUpDisplayPolicy()
79 resources.addOverride(R.dimen.navigation_bar_height_landscape, NAV_BAR_HEIGHT); in setUpDisplayPolicy()
80 resources.addOverride(R.dimen.navigation_bar_width, NAV_BAR_HEIGHT); in setUpDisplayPolicy()
81 resources.addOverride(R.dimen.navigation_bar_frame_height_landscape, NAV_BAR_HEIGHT); in setUpDisplayPolicy()
82 resources.addOverride(R.dimen.navigation_bar_frame_height, NAV_BAR_HEIGHT); in setUpDisplayPolicy()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScreenRecordDrawable.java64 mHorizontalPadding = r.getDimensionPixelSize(R.dimen.status_bar_horizontal_padding); in inflate()
66 mTextSize = r.getDimensionPixelSize(R.dimen.screenrecord_status_text_size); in inflate()
67 mIconRadius = r.getDimensionPixelSize(R.dimen.screenrecord_status_icon_radius); in inflate()
76 mWidthPx = r.getDimensionPixelSize(R.dimen.screenrecord_status_icon_width); in inflate()
77 mHeightPx = r.getDimensionPixelSize(R.dimen.screenrecord_status_icon_height); in inflate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDataUsageDetailView.java54 FontSizeUtils.updateFontSize(this, android.R.id.title, R.dimen.qs_data_usage_text_size); in onConfigurationChanged()
55 FontSizeUtils.updateFontSize(this, R.id.usage_text, R.dimen.qs_data_usage_usage_text_size); in onConfigurationChanged()
57 R.dimen.qs_data_usage_text_size); in onConfigurationChanged()
59 R.dimen.qs_data_usage_text_size); in onConfigurationChanged()
60 FontSizeUtils.updateFontSize(this, R.id.usage_period_text, R.dimen.qs_data_usage_text_size); in onConfigurationChanged()
62 R.dimen.qs_data_usage_text_size); in onConfigurationChanged()
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/
DDimensionConsistencyTest.java56 res.getDimensionPixelSize(R.dimen.suw_switch_divider_padding_top) in testSwitchPaddingTop()
57 + (res.getDimensionPixelSize(R.dimen.suw_switch_divider_height) / 2), in testSwitchPaddingTop()
58 res.getDimensionPixelSize(R.dimen.suw_switch_padding_top) + (dp2Px(SWTICH_HEIGHT_DP) / 2)); in testSwitchPaddingTop()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationActionListLayout.java266 com.android.internal.R.dimen.notification_content_margin); in updateHeights()
269 com.android.internal.R.dimen.notification_content_margin_end); in updateHeights()
271 com.android.internal.R.dimen.notification_action_emphasized_height); in updateHeights()
273 com.android.internal.R.dimen.notification_action_list_height); in updateHeights()
287 com.android.internal.R.dimen.notification_content_margin); in setEmphasizedMode()
290 com.android.internal.R.dimen.notification_content_margin_end); in setEmphasizedMode()
293 com.android.internal.R.dimen.button_inset_vertical_material); in setEmphasizedMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wm/
DDisplayLayout.java348 com.android.internal.R.dimen.status_bar_height_landscape) in getStatusBarHeight()
350 com.android.internal.R.dimen.status_bar_height_portrait); in getStatusBarHeight()
488 ? R.dimen.navigation_bar_height_landscape_car_mode in getNavigationBarSize()
489 : R.dimen.navigation_bar_height_car_mode); in getNavigationBarSize()
491 return res.getDimensionPixelSize(R.dimen.navigation_bar_width_car_mode); in getNavigationBarSize()
497 ? R.dimen.navigation_bar_height_landscape in getNavigationBarSize()
498 : R.dimen.navigation_bar_height); in getNavigationBarSize()
500 return res.getDimensionPixelSize(R.dimen.navigation_bar_width); in getNavigationBarSize()
508 ? R.dimen.navigation_bar_frame_height_landscape in getNavigationBarFrameHeight()
509 : R.dimen.navigation_bar_frame_height); in getNavigationBarFrameHeight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java102 TRANSLATION_PER_SEC = res.getDimension(R.dimen.translation_per_sec); in Params()
103 OBSTACLE_SPACING = res.getDimensionPixelSize(R.dimen.obstacle_spacing); in Params()
105 BOOST_DV = res.getDimensionPixelSize(R.dimen.boost_dv); in Params()
106 PLAYER_HIT_SIZE = res.getDimensionPixelSize(R.dimen.player_hit_size); in Params()
107 PLAYER_SIZE = res.getDimensionPixelSize(R.dimen.player_size); in Params()
108 OBSTACLE_WIDTH = res.getDimensionPixelSize(R.dimen.obstacle_width); in Params()
109 OBSTACLE_STEM_WIDTH = res.getDimensionPixelSize(R.dimen.obstacle_stem_width); in Params()
110 OBSTACLE_GAP = res.getDimensionPixelSize(R.dimen.obstacle_gap); in Params()
111 OBSTACLE_MIN = res.getDimensionPixelSize(R.dimen.obstacle_height_min); in Params()
112 BUILDING_HEIGHT_MIN = res.getDimensionPixelSize(R.dimen.building_height_min); in Params()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthPanelController.java113 .getDimension(R.dimen.biometric_dialog_border_padding); in updateForContentDimensions()
115 .getDimension(R.dimen.biometric_dialog_corner_size); in updateForContentDimensions()
171 .getDimension(R.dimen.biometric_dialog_corner_size); in AuthPanelController()
173 .getDimension(R.dimen.biometric_dialog_border_padding); in AuthPanelController()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSliceView.java127 mRowPadding = resources.getDimensionPixelSize(R.dimen.subtitle_clock_padding); in KeyguardSliceView()
128 mRowWithHeaderPadding = resources.getDimensionPixelSize(R.dimen.header_subtitle_padding); in KeyguardSliceView()
150 mIconSize = (int) mContext.getResources().getDimension(R.dimen.widget_icon_size); in onFinishInflate()
151 mIconSizeWithHeader = (int) mContext.getResources().getDimension(R.dimen.header_icon_size); in onFinishInflate()
153 R.dimen.widget_label_font_size); in onFinishInflate()
155 R.dimen.header_row_font_size); in onFinishInflate()
392 mIconSize = mContext.getResources().getDimensionPixelSize(R.dimen.widget_icon_size); in onDensityOrFontScaleChanged()
393 mIconSizeWithHeader = (int) mContext.getResources().getDimension(R.dimen.header_icon_size); in onDensityOrFontScaleChanged()
395 R.dimen.widget_label_font_size); in onDensityOrFontScaleChanged()
397 R.dimen.header_row_font_size); in onDensityOrFontScaleChanged()
[all …]
/frameworks/opt/colorpicker/src/com/android/colorpicker/
DColorPickerPalette.java61 mSwatchLength = res.getDimensionPixelSize(R.dimen.color_swatch_large); in init()
62 mMarginSize = res.getDimensionPixelSize(R.dimen.color_swatch_margins_large); in init()
64 mSwatchLength = res.getDimensionPixelSize(R.dimen.color_swatch_small); in init()
65 mMarginSize = res.getDimensionPixelSize(R.dimen.color_swatch_margins_small); in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleFlyoutView.java155 mFlyoutPadding = res.getDimensionPixelSize(R.dimen.bubble_flyout_padding_x); in BubbleFlyoutView()
156 mFlyoutSpaceFromBubble = res.getDimensionPixelSize(R.dimen.bubble_flyout_space_from_bubble); in BubbleFlyoutView()
157 mPointerSize = res.getDimensionPixelSize(R.dimen.bubble_flyout_pointer_size); in BubbleFlyoutView()
159 mBubbleSize = res.getDimensionPixelSize(R.dimen.individual_bubble_size); in BubbleFlyoutView()
160 mBubbleBitmapSize = res.getDimensionPixelSize(R.dimen.bubble_bitmap_size); in BubbleFlyoutView()
163 mBubbleElevation = res.getDimensionPixelSize(R.dimen.bubble_elevation); in BubbleFlyoutView()
164 mFlyoutElevation = res.getDimensionPixelSize(R.dimen.bubble_flyout_elevation); in BubbleFlyoutView()
/frameworks/base/core/java/com/android/internal/view/
DTooltipPopup.java99 com.android.internal.R.dimen.tooltip_precise_anchor_threshold); in computePosition()
115 com.android.internal.R.dimen.tooltip_precise_anchor_extra_offset); in computePosition()
127 fromTouch ? com.android.internal.R.dimen.tooltip_y_offset_touch in computePosition()
128 : com.android.internal.R.dimen.tooltip_y_offset_non_touch); in computePosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsPopupMenu.java60 mGlobalActionsSidePadding = res.getDimensionPixelSize(R.dimen.global_actions_side_margin); in GlobalActionsPopupMenu()
62 mMenuVerticalPadding = res.getDimensionPixelSize(R.dimen.control_menu_vertical_padding); in GlobalActionsPopupMenu()
91 listView.setDividerHeight(res.getDimensionPixelSize(R.dimen.control_list_divider)); in show()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationInlineImageResolver.java102 ? R.dimen.notification_custom_view_max_image_width_low_ram in getMaxImageWidth()
103 : R.dimen.notification_custom_view_max_image_width); in getMaxImageWidth()
109 ? R.dimen.notification_custom_view_max_image_height_low_ram in getMaxImageHeight()
110 : R.dimen.notification_custom_view_max_image_height); in getMaxImageHeight()

12345678910>>...13