Home
last modified time | relevance | path

Searched refs:getDimension (Results 1 – 25 of 102) sorted by relevance

12345

/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/
DTitledSettingsFragment.java149 params.topMargin = (int) context.getResources().getDimension( in positionOnCircular()
153 final int margin = (int) Math.min(context.getResources().getDimension( in positionOnCircular()
154 R.dimen.round_content_padding_left), context.getResources().getDimension( in positionOnCircular()
169 final int leftPadding = (int) context.getResources().getDimension( in positionOnCircular()
171 final int rightPadding = (int) context.getResources().getDimension( in positionOnCircular()
173 final int topPadding = (int) context.getResources().getDimension( in positionOnCircular()
175 final int bottomPadding = (int) context.getResources().getDimension( in positionOnCircular()
193 int leftPadding = (int) context.getResources().getDimension( in positionOnCircular()
215 float height = getResources().getDimension(R.dimen.settings_header_base_height); in adjustHeaderSize()
217 height += getResources().getDimension(R.dimen.setting_header_extra_line_height); in adjustHeaderSize()
/packages/apps/DeskClock/src/com/android/alarmclock/
DWidgetUtils.java35 float fontSize = context.getResources().getDimension(R.dimen.widget_big_font_size); in setClockSize()
58 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); in getScaleRatio()
98 float ratio = density * minHeight / res.getDimension(R.dimen.min_digital_widget_height); in getHeightScaleRatio()
133 float lblBox = 1.35f * res.getDimension(R.dimen.label_font_size); in showList()
134 float neededSize = res.getDimension(R.dimen.digital_widget_list_min_fixed_height) + in showList()
136 scale * res.getDimension(R.dimen.digital_widget_list_min_scaled_height); in showList()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DDrawerArrowDrawable.java77 …mBarSize = Math.round(typedArray.getDimension(R.styleable.DrawerArrowDrawable_carArrowBarSize, 0)); in DrawerArrowDrawable()
79 mTopBottomArrowSize = Math.round(typedArray.getDimension( in DrawerArrowDrawable()
81 … mBarThickness = typedArray.getDimension(R.styleable.DrawerArrowDrawable_carArrowThickness, 0); in DrawerArrowDrawable()
83 mBarGap = Math.round(typedArray.getDimension( in DrawerArrowDrawable()
87 .getDimension(R.styleable.DrawerArrowDrawable_carArrowMiddleBarSize, 0); in DrawerArrowDrawable()
/packages/apps/Camera2/src/com/android/camera/widget/
DRoundedThumbnailView.java242 mThumbnailPadding = getResources().getDimension(R.dimen.rounded_thumbnail_padding); in RoundedThumbnailView()
248 getResources().getDimension(R.dimen.rounded_thumbnail_diameter_min); in RoundedThumbnailView()
250 getResources().getDimension(R.dimen.rounded_thumbnail_diameter_max); in RoundedThumbnailView()
253 getResources().getDimension(R.dimen.rounded_thumbnail_diameter_normal); in RoundedThumbnailView()
259 getResources().getDimension(R.dimen.rounded_thumbnail_ripple_ring_diameter_max); in RoundedThumbnailView()
264 getResources().getDimension(R.dimen.rounded_thumbnail_ripple_ring_diameter_min); in RoundedThumbnailView()
266 getResources().getDimension(R.dimen.rounded_thumbnail_ripple_ring_thick_max); in RoundedThumbnailView()
268 getResources().getDimension(R.dimen.rounded_thumbnail_ripple_ring_thick_min); in RoundedThumbnailView()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropView.java101 mIndicatorSize = (int) rsc.getDimension(R.dimen.crop_indicator_size); in setup()
102 mShadowMargin = (int) rsc.getDimension(R.dimen.shadow_margin); in setup()
103 mMargin = (int) rsc.getDimension(R.dimen.preview_margin); in setup()
104 mMinSideSize = (int) rsc.getDimension(R.dimen.crop_min_side); in setup()
105 mTouchTolerance = (int) rsc.getDimension(R.dimen.crop_touch_tolerance); in setup()
109 mDashOnLength = rsc.getDimension(R.dimen.wp_selector_dash_length); in setup()
110 mDashOffLength = rsc.getDimension(R.dimen.wp_selector_off_length); in setup()
/packages/apps/DeskClock/src/com/android/deskclock/
DCircleButtonsLayout.java42 final float strokeSize = res.getDimension(R.dimen.circletimer_circle_size); in setCircleTimerViewIds()
43 final float dotStrokeSize = res.getDimension(R.dimen.circletimer_dot_size); in setCircleTimerViewIds()
44 final float markerStrokeSize = res.getDimension(R.dimen.circletimer_marker_size); in setCircleTimerViewIds()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DHeaderElevationController.java45 mScrollToElevation = res.getDimension(R.dimen.all_apps_header_scroll_to_elevation); in ControllerV16()
88 mMaxElevation = res.getDimension(R.dimen.all_apps_header_max_elevation); in ControllerVL()
89 mScrollToElevation = res.getDimension(R.dimen.all_apps_header_scroll_to_elevation); in ControllerVL()
/packages/apps/Messaging/src/com/android/messaging/ui/
DContactIconView.java63 mIconSize = (int) resources.getDimension( in ContactIconView()
67 mIconSize = (int) resources.getDimension( in ContactIconView()
71 mIconSize = (int) resources.getDimension( in ContactIconView()
/packages/apps/TV/src/com/android/tv/menu/
DBaseCardView.java61 mFocusTranslationZ = getResources().getDimension(R.dimen.channel_card_elevation_focused) in BaseCardView()
62 - getResources().getDimension(R.dimen.card_elevation_normal); in BaseCardView()
67 setElevation(getResources().getDimension(R.dimen.card_elevation_normal)); in BaseCardView()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureFloatingTextDrawingPreview.java71 mGesturePreviewHorizontalPadding = mainKeyboardViewAttr.getDimension( in GesturePreviewTextParams()
73 mGesturePreviewVerticalPadding = mainKeyboardViewAttr.getDimension( in GesturePreviewTextParams()
75 mGesturePreviewRoundRadius = mainKeyboardViewAttr.getDimension( in GesturePreviewTextParams()
DGestureStrokeDrawingParams.java43 mMinSamplingDistance = mainKeyboardViewAttr.getDimension( in GestureStrokeDrawingParams()
51 mMaxInterpolationDistanceThreshold = mainKeyboardViewAttr.getDimension(R.styleable in GestureStrokeDrawingParams()
DGestureTrailDrawingParams.java55 mTrailStartWidth = mainKeyboardViewAttr.getDimension( in GestureTrailDrawingParams()
57 mTrailEndWidth = mainKeyboardViewAttr.getDimension( in GestureTrailDrawingParams()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.java75 final float dotDiameter = resources.getDimension(R.dimen.circletimer_dot_size); in StopwatchCircleView()
79 mStrokeSize = resources.getDimension(R.dimen.circletimer_circle_size); in StopwatchCircleView()
80 mMarkerStrokeSize = resources.getDimension(R.dimen.circletimer_marker_size); in StopwatchCircleView()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorEditText.java85 mMaximumTextSize = a.getDimension( in CalculatorEditText()
87 mMinimumTextSize = a.getDimension( in CalculatorEditText()
89 mStepTextSize = a.getDimension(R.styleable.CalculatorEditText_stepTextSize, in CalculatorEditText()
/packages/apps/Camera2/src/com/android/camera/ui/
DStickyBottomCaptureLayout.java139 getResources().getDimension(R.dimen.option_button_circle_size); in getRoundedThumbnailPosition()
141 getResources().getDimension(R.dimen.mode_options_toggle_padding); in getRoundedThumbnailPosition()
142 final float modeOptionsHeight = getResources().getDimension(R.dimen.mode_options_height); in getRoundedThumbnailPosition()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DCircledImageView.java140 mCircleRadius = a.getDimension( in CircledImageView()
143 mCircleRadiusPressed = a.getDimension( in CircledImageView()
147 mCircleBorderWidth = a.getDimension(R.styleable.CircledImageView_circle_border_width, 0); in CircledImageView()
153 float circlePadding = a.getDimension(R.styleable.CircledImageView_circle_padding, 0); in CircledImageView()
157 mShadowWidth = a.getDimension(R.styleable.CircledImageView_shadow_width, 0); in CircledImageView()
/packages/apps/Launcher3/src/com/android/launcher3/
DHolographicOutlineHelper.java57 float mediumBlur = res.getDimension(R.dimen.blur_size_medium_outline); in HolographicOutlineHelper()
62 res.getDimension(R.dimen.blur_size_thin_outline), BlurMaskFilter.Blur.OUTER); in HolographicOutlineHelper()
65 res.getDimension(R.dimen.blur_size_click_shadow), BlurMaskFilter.Blur.NORMAL); in HolographicOutlineHelper()
DClickShadowView.java45 mShadowPadding = getResources().getDimension(R.dimen.blur_size_click_shadow); in ClickShadowView()
46 mShadowOffset = getResources().getDimension(R.dimen.click_shadow_high_shift); in ClickShadowView()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DSetupLayoutActivity.java138 .getDimension(R.dimen.logo_padding_left_right); in draw()
140 .getDimension(R.dimen.logo_padding_bottom); in draw()
170 .getDimension(R.dimen.suw_tablet_illustration_height); in getIntrinsicHeight()
DLogoUtils.java64 int maxWidth = (int) context.getResources().getDimension(R.dimen.max_logo_width); in getOrganisationLogo()
65 int maxHeight = (int) context.getResources().getDimension(R.dimen.max_logo_height); in getOrganisationLogo()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DCircleView.java96 mCenterX = a.getDimension(R.styleable.CircleView_centerX, 0.0f); in CircleView()
97 mCenterY = a.getDimension(R.styleable.CircleView_centerY, 0.0f); in CircleView()
98 mRadius = a.getDimension(R.styleable.CircleView_radius, 0.0f); in CircleView()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorText.java115 mMaximumTextSize = a.getDimension( in CalculatorText()
117 mMinimumTextSize = a.getDimension( in CalculatorText()
119 mStepTextSize = a.getDimension(R.styleable.CalculatorText_stepTextSize, in CalculatorText()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DTvSettingsActivity.java63 getResources().getDimension(R.dimen.lb_settings_pane_width) in onCreate()
90 getResources().getDimension(R.dimen.lb_settings_pane_width) / root.getWidth()); in finish()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.java67 final float dotDiameter = resources.getDimension(R.dimen.circletimer_dot_size); in TimerCircleView()
70 mStrokeSize = resources.getDimension(R.dimen.circletimer_circle_size); in TimerCircleView()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DMoreContactUtils.java211 topPadding = (int) context.getResources().getDimension( in setHeaderViewBottomPadding()
214 topPadding = (int) context.getResources().getDimension( in setHeaderViewBottomPadding()

12345