Home
last modified time | relevance | path

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

12345678910>>...12

/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/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DGlifDimensionTest.java71 res.getDimensionPixelSize(R.dimen.suw_items_glif_text_divider_inset)); in assertDividerInset()
76 marginSides + res.getDimensionPixelSize(R.dimen.suw_items_icon_container_width), in assertDividerInset()
77 res.getDimensionPixelSize(R.dimen.suw_items_glif_icon_divider_inset)); in assertDividerInset()
102 res.getDimensionPixelSize(R.dimen.suw_glif_button_margin_end)); in assertButtonMargin()
107 marginSides - res.getDimensionPixelSize(R.dimen.suw_glif_button_padding), in assertButtonMargin()
108 res.getDimensionPixelSize(R.dimen.suw_glif_button_margin_start)); in assertButtonMargin()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackLayoutAlgorithm.java375 mFocusedTopPeekHeight = res.getDimensionPixelSize(R.dimen.recents_layout_top_peek_size); in reloadOnConfigurationChange()
377 res.getDimensionPixelSize(R.dimen.recents_layout_bottom_peek_size); in reloadOnConfigurationChange()
378 mMinTranslationZ = res.getDimensionPixelSize(R.dimen.recents_layout_z_min); in reloadOnConfigurationChange()
379 mMaxTranslationZ = res.getDimensionPixelSize(R.dimen.recents_layout_z_max); in reloadOnConfigurationChange()
381 R.dimen.recents_layout_initial_top_offset_phone_port, in reloadOnConfigurationChange()
382 R.dimen.recents_layout_initial_top_offset_phone_land, in reloadOnConfigurationChange()
383 R.dimen.recents_layout_initial_top_offset_tablet, in reloadOnConfigurationChange()
384 R.dimen.recents_layout_initial_top_offset_tablet, in reloadOnConfigurationChange()
385 R.dimen.recents_layout_initial_top_offset_tablet, in reloadOnConfigurationChange()
386 R.dimen.recents_layout_initial_top_offset_tablet, in reloadOnConfigurationChange()
[all …]
DTaskViewHeader.java212 res.getDimensionPixelSize(R.dimen.recents_grid_task_view_rounded_corners_radius) : in TaskViewHeader()
213 res.getDimensionPixelSize(R.dimen.recents_task_view_rounded_corners_radius); in TaskViewHeader()
214 mHighlightHeight = res.getDimensionPixelSize(R.dimen.recents_task_view_highlight); in TaskViewHeader()
297 R.dimen.recents_task_view_header_height, in onConfigurationChanged()
298 R.dimen.recents_task_view_header_height, in onConfigurationChanged()
299 R.dimen.recents_task_view_header_height, in onConfigurationChanged()
300 R.dimen.recents_task_view_header_height_tablet_land, 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_grid_task_view_header_height); in onConfigurationChanged()
[all …]
DFakeShadowDrawable.java88 mInsetShadow = resources.getDimension(R.dimen.fake_shadow_inset); in FakeShadowDrawable()
89 setShadowSize(resources.getDimensionPixelSize(R.dimen.fake_shadow_size), in FakeShadowDrawable()
90 resources.getDimensionPixelSize(R.dimen.fake_shadow_size)); in FakeShadowDrawable()
96 R.dimen.recents_grid_task_view_rounded_corners_radius) : in FakeShadowDrawable()
97 resources.getDimensionPixelSize(R.dimen.recents_task_view_rounded_corners_radius); in FakeShadowDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java106 R.dimen.multi_user_avatar_keyguard_size); in onConfigurationChanged()
111 R.dimen.multi_user_switch_width_keyguard); in onConfigurationChanged()
113 R.dimen.multi_user_switch_keyguard_margin)); in onConfigurationChanged()
118 R.dimen.status_bar_header_height); in onConfigurationChanged()
120 R.dimen.system_icons_super_container_margin_start)); in onConfigurationChanged()
124 getResources().getDimensionPixelSize(R.dimen.system_icons_keyguard_padding_end), in onConfigurationChanged()
129 R.dimen.status_bar_height); in onConfigurationChanged()
135 com.android.internal.R.dimen.text_size_small_material)); in onConfigurationChanged()
138 getResources().getDimensionPixelSize(R.dimen.keyguard_carrier_text_margin)); in onConfigurationChanged()
143 R.dimen.status_bar_header_height_keyguard); in onConfigurationChanged()
[all …]
DKeyguardClockPositionAlgorithm.java88 R.dimen.keyguard_clock_notifications_margin_min); in loadDimens()
90 R.dimen.keyguard_clock_notifications_margin_max); in loadDimens()
94 (float) res.getDimensionPixelSize(R.dimen.notification_shelf_height) / in loadDimens()
95 res.getDimensionPixelSize(R.dimen.notification_min_height); in loadDimens()
98 R.dimen.burn_in_prevention_offset_x); in loadDimens()
100 R.dimen.burn_in_prevention_offset_y); in loadDimens()
101 mDozingStackPadding = res.getDimensionPixelSize(R.dimen.dozing_stack_padding); in loadDimens()
DTrustDrawable.java74 mInnerRadiusVisibleMin = r.getDimension(R.dimen.trust_circle_inner_radius_visible_min); in TrustDrawable()
75 mInnerRadiusVisibleMax = r.getDimension(R.dimen.trust_circle_inner_radius_visible_max); in TrustDrawable()
76 mInnerRadiusExit = r.getDimension(R.dimen.trust_circle_inner_radius_exit); in TrustDrawable()
77 mInnerRadiusEnter = r.getDimension(R.dimen.trust_circle_inner_radius_enter); in TrustDrawable()
78 mThickness = r.getDimension(R.dimen.trust_circle_thickness); in TrustDrawable()
/frameworks/support/compat/tests/java/android/support/v4/widget/
DTextViewCompatTest.java136 (float) res.getDimensionPixelSize(R.dimen.text_medium_size), 1.0f); in testStyle()
312 res.getDimensionPixelSize(R.dimen.drawable_small_size)); in testCompoundDrawablesRelativeWithIntrinsicBoundsById()
315 res.getDimensionPixelSize(R.dimen.drawable_medium_size)); in testCompoundDrawablesRelativeWithIntrinsicBoundsById()
324 res.getDimensionPixelSize(R.dimen.drawable_medium_size)); in testCompoundDrawablesRelativeWithIntrinsicBoundsById()
327 res.getDimensionPixelSize(R.dimen.drawable_large_size)); in testCompoundDrawablesRelativeWithIntrinsicBoundsById()
334 res.getDimensionPixelSize(R.dimen.drawable_large_size)); in testCompoundDrawablesRelativeWithIntrinsicBoundsById()
337 res.getDimensionPixelSize(R.dimen.drawable_small_size)); in testCompoundDrawablesRelativeWithIntrinsicBoundsById()
363 res.getDimensionPixelSize(R.dimen.drawable_medium_size)); in testCompoundDrawablesRelativeWithIntrinsicBoundsByIdRtl()
366 res.getDimensionPixelSize(R.dimen.drawable_large_size)); in testCompoundDrawablesRelativeWithIntrinsicBoundsByIdRtl()
375 res.getDimensionPixelSize(R.dimen.drawable_small_size)); in testCompoundDrawablesRelativeWithIntrinsicBoundsByIdRtl()
[all …]
/frameworks/support/v17/leanback/tests/java/android/support/v17/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/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/base/core/java/android/view/
DViewConfiguration.java358 com.android.internal.R.dimen.config_scrollbarSize); in ViewConfiguration()
404 com.android.internal.R.dimen.config_viewConfigurationTouchSlop); in ViewConfiguration()
406 com.android.internal.R.dimen.config_minScrollbarTouchTarget); in ViewConfiguration()
412 com.android.internal.R.dimen.config_viewMinFlingVelocity); in ViewConfiguration()
414 com.android.internal.R.dimen.config_viewMaxFlingVelocity); in ViewConfiguration()
419 com.android.internal.R.dimen.config_horizontalScrollFactor); in ViewConfiguration()
421 com.android.internal.R.dimen.config_verticalScrollFactor); in ViewConfiguration()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DFullWidthDetailsOverviewRowPresenter.java322 R.dimen.lb_details_overview_actions_fade_size); in ViewHolder()
658 R.dimen.lb_details_v2_logo_margin_start)); in onLayoutLogo()
661 lp.setMarginStart(v.getResources().getDimensionPixelSize(R.dimen.lb_details_v2_left) in onLayoutLogo()
670 v.getResources().getDimensionPixelSize(R.dimen.lb_details_v2_blank_height) in onLayoutLogo()
675 R.dimen.lb_details_v2_blank_height) + v.getResources() in onLayoutLogo()
676 .getDimensionPixelSize(R.dimen.lb_details_v2_actions_height) + v in onLayoutLogo()
678 R.dimen.lb_details_v2_description_margin_top); in onLayoutLogo()
712 R.dimen.lb_details_v2_logo_margin_start); in onLayoutOverviewFrame()
717 R.dimen.lb_details_v2_logo_margin_start); in onLayoutOverviewFrame()
722 frameMarginStart = res.getDimensionPixelSize(R.dimen.lb_details_v2_left) in onLayoutOverviewFrame()
[all …]
DThumbsBar.java59 R.dimen.lb_playback_transport_thumbs_width); in ThumbsBar()
61 R.dimen.lb_playback_transport_thumbs_height); in ThumbsBar()
64 R.dimen.lb_playback_transport_hero_thumbs_width); in ThumbsBar()
66 R.dimen.lb_playback_transport_hero_thumbs_height); in ThumbsBar()
69 R.dimen.lb_playback_transport_thumbs_margin); in ThumbsBar()
DAbstractDetailsDescriptionPresenter.java64 R.dimen.lb_details_description_title_baseline); in ViewHolder()
69 R.dimen.lb_details_description_under_title_baseline_margin); in ViewHolder()
71 R.dimen.lb_details_description_under_subtitle_baseline_margin); in ViewHolder()
74 R.dimen.lb_details_description_title_line_spacing); in ViewHolder()
76 R.dimen.lb_details_description_body_line_spacing); in ViewHolder()
/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/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java109 getResources().getDimensionPixelSize(R.dimen.status_bar_battery_icon_width), in BatteryMeterView()
110 getResources().getDimensionPixelSize(R.dimen.status_bar_battery_icon_height)); in BatteryMeterView()
112 getResources().getDimensionPixelOffset(R.dimen.battery_margin_bottom)); in BatteryMeterView()
246 res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in scaleBatteryMeterViews()
249 int batteryHeight = res.getDimensionPixelSize(R.dimen.status_bar_battery_icon_height); in scaleBatteryMeterViews()
250 int batteryWidth = res.getDimensionPixelSize(R.dimen.status_bar_battery_icon_width); in scaleBatteryMeterViews()
251 int marginBottom = res.getDimensionPixelSize(R.dimen.battery_margin_bottom); in scaleBatteryMeterViews()
258 FontSizeUtils.updateFontSize(mBatteryPercentView, R.dimen.qs_time_expanded_size); in scaleBatteryMeterViews()
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/
DDimensionConsistencyTest.java59 res.getDimensionPixelSize(R.dimen.suw_switch_divider_padding_top) in testSwitchPaddingTop()
60 + (res.getDimensionPixelSize(R.dimen.suw_switch_divider_height) / 2), in testSwitchPaddingTop()
61 res.getDimensionPixelSize(R.dimen.suw_switch_padding_top) in testSwitchPaddingTop()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DRoundedCornersTest.java38 import com.android.systemui.R.dimen;
93 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius, 0); in testNoRounding()
95 .addOverride(dimen.rounded_corner_content_padding, 0); in testNoRounding()
108 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius, 20); in testRounding()
110 .addOverride(dimen.rounded_corner_content_padding, 20); in testRounding()
/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/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/statusbar/notification/
DHybridGroupManager.java56 R.dimen.group_overflow_number_size); in HybridGroupManager()
58 R.dimen.group_overflow_number_size_dark); in HybridGroupManager()
60 R.dimen.group_overflow_number_padding); in HybridGroupManager()
62 R.dimen.group_overflow_number_extra_padding_dark); in HybridGroupManager()
/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/support/v7/appcompat/src/android/support/v7/widget/
DTooltipPopup.java103 R.dimen.tooltip_precise_anchor_threshold); in computePosition()
119 R.dimen.tooltip_precise_anchor_extra_offset); in computePosition()
131 fromTouch ? R.dimen.tooltip_y_offset_touch : R.dimen.tooltip_y_offset_non_touch); in computePosition()

12345678910>>...12