Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunablePadding.java52 int dimen = mDefaultSize; in onTuningChanged() local
54 dimen = (int) (Integer.parseInt(newValue) * mDensity); in onTuningChanged()
58 mView.setPadding(getPadding(dimen, left), getPadding(dimen, FLAG_TOP), in onTuningChanged()
59 getPadding(dimen, right), getPadding(dimen, FLAG_BOTTOM)); in onTuningChanged()
62 private int getPadding(int dimen, int flag) { in getPadding() argument
63 return ((mFlags & flag) != 0) ? dimen : 0; in getPadding()
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java83 res.getValue(R.dimen.resource_cache_test_generic, staticValue, true); in testVoidConfigChange()
104 res.getValue(R.dimen.resource_cache_test_orientation_dependent, changingValue, true); in testEffectiveConfigChange()
127 res.getValue(R.dimen.resource_cache_test_generic, staticValue, true); in testConfigChangeMultipleResources()
128 res.getValue(R.dimen.resource_cache_test_orientation_dependent, changingValue, true); in testConfigChangeMultipleResources()
132 mCache.put(R.dimen.resource_cache_test_generic, getActivity().getTheme(), in testConfigChangeMultipleResources()
134 mCache.put(R.dimen.resource_cache_test_orientation_dependent, getActivity().getTheme(), in testConfigChangeMultipleResources()
142 assertEquals(staticDim, mCache.getInstance(R.dimen.resource_cache_test_generic, res, in testConfigChangeMultipleResources()
145 mCache.getInstance(R.dimen.resource_cache_test_orientation_dependent, res, in testConfigChangeMultipleResources()
148 assertEquals(staticDim, mCache.getInstance(R.dimen.resource_cache_test_generic, res, in testConfigChangeMultipleResources()
150 assertNull(mCache.getInstance(R.dimen.resource_cache_test_orientation_dependent, res, in testConfigChangeMultipleResources()
[all …]
/frameworks/support/car/src/main/java/androidx/car/widget/
DSeekbarListItem.java215 R.dimen.car_single_line_list_item_height); in setItemLayoutHeight()
249 R.dimen.car_keyline_1); in setPrimaryActionLayout()
251 R.dimen.car_primary_icon_size); in setPrimaryActionLayout()
266 R.dimen.car_double_line_list_item_height); in setPrimaryActionLayout()
325 : mContext.getResources().getDimensionPixelSize(R.dimen.car_padding_1); in setSeekBarAndTextLayout()
343 startMarginResId = R.dimen.car_keyline_1; in setViewStartMargin()
347 startMarginResId = R.dimen.car_keyline_3; in setViewStartMargin()
370 R.dimen.car_keyline_1)); in setViewEndMargin()
377 R.dimen.car_padding_4)); in setViewEndMargin()
385 R.dimen.car_padding_4); in setViewEndMargin()
[all …]
DTextListItem.java213 R.dimen.car_single_line_list_item_height); in setItemLayoutHeight()
223 R.dimen.car_double_line_list_item_height); in setItemLayoutHeight()
286 R.dimen.car_primary_icon_size); in setPrimaryIconLayout()
294 R.dimen.car_keyline_1)); in setPrimaryIconLayout()
302 R.dimen.car_double_line_list_item_height); in setPrimaryIconLayout()
315 R.dimen.car_single_line_list_item_height); in setPrimaryIconLayout()
374 startMarginResId = R.dimen.car_keyline_1; in setTextStartMargin()
377 startMarginResId = R.dimen.car_keyline_3; in setTextStartMargin()
380 startMarginResId = R.dimen.car_keyline_3; in setTextStartMargin()
383 startMarginResId = R.dimen.car_keyline_4; in setTextStartMargin()
[all …]
DSubheaderListItem.java143 int height = mContext.getResources().getDimensionPixelSize(R.dimen.car_sub_header_height); in setItemLayoutHeight()
154 textStartMarginDimen = R.dimen.car_keyline_1; in setText()
157 textStartMarginDimen = R.dimen.car_keyline_4; in setText()
160 textStartMarginDimen = R.dimen.car_keyline_3; in setText()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DGlifDimensionTest.java70 res.getDimensionPixelSize(R.dimen.suw_items_glif_text_divider_inset)); in assertDividerInset()
75 marginSides + res.getDimensionPixelSize(R.dimen.suw_items_icon_container_width), in assertDividerInset()
76 res.getDimensionPixelSize(R.dimen.suw_items_glif_icon_divider_inset)); in assertDividerInset()
101 res.getDimensionPixelSize(R.dimen.suw_glif_button_margin_end)); in assertButtonMargin()
106 marginSides - res.getDimensionPixelSize(R.dimen.suw_glif_button_padding), in assertButtonMargin()
107 res.getDimensionPixelSize(R.dimen.suw_glif_button_margin_start)); in assertButtonMargin()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java44 import com.android.systemui.R.dimen;
102 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius, 0); in testNoRounding_NoCutout()
103 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius_top, 0); in testNoRounding_NoCutout()
104 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius_bottom, 0); in testNoRounding_NoCutout()
106 .addOverride(dimen.rounded_corner_content_padding, 0); in testNoRounding_NoCutout()
121 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius, 20); in testRounding()
123 .addOverride(dimen.rounded_corner_content_padding, 20); in testRounding()
141 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius, 0); in testCutout()
143 .addOverride(dimen.rounded_corner_content_padding, 0); in testCutout()
154 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius, 0); in testDelayedCutout()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackLayoutAlgorithm.java292 mFocusedTopPeekHeight = res.getDimensionPixelSize(R.dimen.recents_layout_top_peek_size); in reloadOnConfigurationChange()
294 res.getDimensionPixelSize(R.dimen.recents_layout_bottom_peek_size); in reloadOnConfigurationChange()
295 mMinTranslationZ = res.getDimensionPixelSize(R.dimen.recents_layout_z_min); in reloadOnConfigurationChange()
296 mMaxTranslationZ = res.getDimensionPixelSize(R.dimen.recents_layout_z_max); in reloadOnConfigurationChange()
298 R.dimen.recents_layout_initial_top_offset_phone_port, in reloadOnConfigurationChange()
299 R.dimen.recents_layout_initial_top_offset_phone_land, in reloadOnConfigurationChange()
300 R.dimen.recents_layout_initial_top_offset_tablet, in reloadOnConfigurationChange()
301 R.dimen.recents_layout_initial_top_offset_tablet, in reloadOnConfigurationChange()
302 R.dimen.recents_layout_initial_top_offset_tablet, in reloadOnConfigurationChange()
303 R.dimen.recents_layout_initial_top_offset_tablet, in reloadOnConfigurationChange()
[all …]
DTaskViewHeader.java216 res.getDimensionPixelSize(R.dimen.recents_grid_task_view_rounded_corners_radius) : in TaskViewHeader()
217 res.getDimensionPixelSize(R.dimen.recents_task_view_rounded_corners_radius); in TaskViewHeader()
218 mHighlightHeight = res.getDimensionPixelSize(R.dimen.recents_task_view_highlight); in TaskViewHeader()
299 R.dimen.recents_task_view_header_height, in onConfigurationChanged()
300 R.dimen.recents_task_view_header_height, in onConfigurationChanged()
301 R.dimen.recents_task_view_header_height, in onConfigurationChanged()
302 R.dimen.recents_task_view_header_height_tablet_land, in onConfigurationChanged()
303 R.dimen.recents_task_view_header_height, in onConfigurationChanged()
304 R.dimen.recents_task_view_header_height_tablet_land, in onConfigurationChanged()
305 R.dimen.recents_grid_task_view_header_height); in onConfigurationChanged()
[all …]
/frameworks/base/core/java/android/view/
DViewConfiguration.java367 com.android.internal.R.dimen.config_scrollbarSize); in ViewConfiguration()
413 com.android.internal.R.dimen.config_viewConfigurationTouchSlop); in ViewConfiguration()
415 com.android.internal.R.dimen.config_viewConfigurationHoverSlop); in ViewConfiguration()
417 com.android.internal.R.dimen.config_minScrollbarTouchTarget); in ViewConfiguration()
423 com.android.internal.R.dimen.config_viewMinFlingVelocity); in ViewConfiguration()
425 com.android.internal.R.dimen.config_viewMaxFlingVelocity); in ViewConfiguration()
430 com.android.internal.R.dimen.config_horizontalScrollFactor); in ViewConfiguration()
432 com.android.internal.R.dimen.config_verticalScrollFactor); in ViewConfiguration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java125 R.dimen.keyguard_clock_notifications_margin); in loadDimens()
127 R.dimen.keyguard_clock_top_margin); in loadDimens()
129 R.dimen.burn_in_prevention_offset_x); in loadDimens()
131 R.dimen.burn_in_prevention_offset_y); in loadDimens()
133 R.dimen.widget_pulsing_bottom_padding); in loadDimens()
DKeyguardStatusBarView.java124 R.dimen.multi_user_avatar_keyguard_size); in onConfigurationChanged()
130 R.dimen.multi_user_switch_width_keyguard); in onConfigurationChanged()
132 R.dimen.multi_user_switch_keyguard_margin)); in onConfigurationChanged()
138 R.dimen.system_icons_super_container_margin_start)); in onConfigurationChanged()
142 getResources().getDimensionPixelSize(R.dimen.system_icons_keyguard_padding_end), in onConfigurationChanged()
148 com.android.internal.R.dimen.text_size_small_material)); in onConfigurationChanged()
151 getResources().getDimensionPixelSize(R.dimen.keyguard_carrier_text_margin)); in onConfigurationChanged()
156 R.dimen.status_bar_header_height_keyguard); in onConfigurationChanged()
163 R.dimen.system_icons_switcher_hidden_expanded_margin); in loadDimens()
165 R.dimen.system_icons_super_container_avatarless_margin_end); in loadDimens()
[all …]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DThumbsBarTest.java55 R.dimen.lb_playback_transport_thumbs_height)); in checkThumbsBarInitialize()
57 R.dimen.lb_playback_transport_thumbs_width)); in checkThumbsBarInitialize()
59 R.dimen.lb_playback_transport_hero_thumbs_height)); in checkThumbsBarInitialize()
61 R.dimen.lb_playback_transport_hero_thumbs_width)); in checkThumbsBarInitialize()
138 R.dimen.lb_playback_transport_hero_thumbs_width)); in checkSetThumbSize()
141 R.dimen.lb_playback_transport_hero_thumbs_height)); in checkSetThumbSize()
176 R.dimen.lb_playback_transport_thumbs_width)); in checkSetHeroThumbSize()
179 R.dimen.lb_playback_transport_thumbs_height)); in checkSetHeroThumbSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTileLayout.java80 mCellHeight = mContext.getResources().getDimensionPixelSize(R.dimen.qs_tile_height); in updateResources()
81 mCellMarginHorizontal = res.getDimensionPixelSize(R.dimen.qs_tile_margin_horizontal); in updateResources()
82 mCellMarginVertical= res.getDimensionPixelSize(R.dimen.qs_tile_margin_vertical); in updateResources()
83 mCellMarginTop = res.getDimensionPixelSize(R.dimen.qs_tile_margin_top); in updateResources()
84 mSidePadding = res.getDimensionPixelOffset(R.dimen.qs_tile_layout_margin_side); in updateResources()
/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/support/leanback/src/main/java/androidx/leanback/widget/
DFullWidthDetailsOverviewRowPresenter.java323 R.dimen.lb_details_overview_actions_fade_size); in ViewHolder()
659 R.dimen.lb_details_v2_logo_margin_start)); in onLayoutLogo()
662 lp.setMarginStart(v.getResources().getDimensionPixelSize(R.dimen.lb_details_v2_left) in onLayoutLogo()
671 v.getResources().getDimensionPixelSize(R.dimen.lb_details_v2_blank_height) in onLayoutLogo()
676 R.dimen.lb_details_v2_blank_height) + v.getResources() in onLayoutLogo()
677 .getDimensionPixelSize(R.dimen.lb_details_v2_actions_height) + v in onLayoutLogo()
679 R.dimen.lb_details_v2_description_margin_top); in onLayoutLogo()
713 R.dimen.lb_details_v2_logo_margin_start); in onLayoutOverviewFrame()
718 R.dimen.lb_details_v2_logo_margin_start); in onLayoutOverviewFrame()
723 frameMarginStart = res.getDimensionPixelSize(R.dimen.lb_details_v2_left) in onLayoutOverviewFrame()
[all …]
DThumbsBar.java60 R.dimen.lb_playback_transport_thumbs_width); in ThumbsBar()
62 R.dimen.lb_playback_transport_thumbs_height); in ThumbsBar()
65 R.dimen.lb_playback_transport_hero_thumbs_width); in ThumbsBar()
67 R.dimen.lb_playback_transport_hero_thumbs_height); in ThumbsBar()
70 R.dimen.lb_playback_transport_thumbs_margin); in ThumbsBar()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/
DGridTaskView.java45 R.dimen.recents_grid_task_view_header_height); in GridTaskView()
62 R.dimen.recents_task_view_shadow_rounded_corners_radius)); in createOutlineProvider()
69 R.dimen.recents_grid_task_view_header_height); in onConfigurationChanged()
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/
DDimensionConsistencyTest.java58 res.getDimensionPixelSize(R.dimen.suw_switch_divider_padding_top) in testSwitchPaddingTop()
59 + (res.getDimensionPixelSize(R.dimen.suw_switch_divider_height) / 2), in testSwitchPaddingTop()
60 res.getDimensionPixelSize(R.dimen.suw_switch_padding_top) 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/
DBatteryMeterView.java123 getResources().getDimensionPixelSize(R.dimen.status_bar_battery_icon_width), in BatteryMeterView()
124 getResources().getDimensionPixelSize(R.dimen.status_bar_battery_icon_height)); in BatteryMeterView()
126 getResources().getDimensionPixelOffset(R.dimen.battery_margin_bottom)); in BatteryMeterView()
293 res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in scaleBatteryMeterViews()
296 int batteryHeight = res.getDimensionPixelSize(R.dimen.status_bar_battery_icon_height); in scaleBatteryMeterViews()
297 int batteryWidth = res.getDimensionPixelSize(R.dimen.status_bar_battery_icon_width); in scaleBatteryMeterViews()
298 int marginBottom = res.getDimensionPixelSize(R.dimen.battery_margin_bottom); in scaleBatteryMeterViews()
305 FontSizeUtils.updateFontSize(mBatteryPercentView, R.dimen.qs_time_expanded_size); in scaleBatteryMeterViews()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonDrawable.java46 int offsetX = res.getDimensionPixelSize(R.dimen.nav_key_button_shadow_offset_x); in create()
47 int offsetY = res.getDimensionPixelSize(R.dimen.nav_key_button_shadow_offset_y); in create()
48 int radius = res.getDimensionPixelSize(R.dimen.nav_key_button_shadow_radius); in create()
/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/charging/
DWirelessChargingView.java77 R.dimen.wireless_charging_dots_radius_start); in init()
79 R.dimen.wireless_charging_dots_radius_end); in init()
82 R.dimen.wireless_charging_circle_radius_start); in init()
84 R.dimen.wireless_charging_circle_radius_end); in init()
/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()

12345678910>>...14