Home
last modified time | relevance | path

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

123456

/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/
DDotAnswerHint.java83 TypedValue.COMPLEX_UNIT_PX, context.getResources().getDimension(R.dimen.hint_text_size)); in onCreateView()
92 answerHintContainer.setY(puckLocation[1] + getDimension(R.dimen.hint_initial_offset)); in onBounceStart()
100 puckLocation[1] - getDimension(R.dimen.hint_offset)); in onBounceStart()
128 answerHintContainer.setY(puckLocation[1] + getDimension(R.dimen.hint_initial_offset)); in onBounceStart()
165 getDimension(beginSize), in createFadeInScaleAndAlpha()
166 getDimension(beginSize), in createFadeInScaleAndAlpha()
167 getDimension(endSize), in createFadeInScaleAndAlpha()
219 getDimension(beginSize), in createFadeOutScaleAndAlpha()
220 getDimension(endSize), in createFadeOutScaleAndAlpha()
221 getDimension(beginSize), in createFadeOutScaleAndAlpha()
[all …]
DPawAnswerHint.java88 TypedValue.COMPLEX_UNIT_PX, context.getResources().getDimension(R.dimen.hint_text_size)); in onCreateView()
98 answerHintContainer.setY(puckLocation[1] + getDimension(R.dimen.hint_initial_offset)); in onBounceStart()
106 puckLocation[1] - getDimension(R.dimen.hint_offset)); in onBounceStart()
128 answerHintContainer.setY(puckLocation[1] + getDimension(R.dimen.hint_initial_offset)); in onBounceStart()
207 private float getDimension(@DimenRes int id) { in getDimension() method in PawAnswerHint
208 return context.getResources().getDimension(id); in getDimension()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DLayoutUtils.java85 float halfDividerSize = res.getDimension(R.dimen.multi_window_task_divider_size) in calculateTaskSize()
98 paddingHorz = res.getDimension(R.dimen.multi_window_task_card_horz_space); in calculateTaskSize()
102 paddingHorz = res.getDimension(dp.isVerticalBarLayout() in calculateTaskSize()
107 float topIconMargin = res.getDimension(R.dimen.task_thumbnail_top_margin); in calculateTaskSize()
108 float paddingVert = res.getDimension(R.dimen.task_card_vert_space); in calculateTaskSize()
134 int spaceBetweenShelfAndRecents = (int) context.getResources().getDimension( in getShelfTrackingDistance()
DMotionPauseDetector.java78 mSpeedVerySlow = res.getDimension(R.dimen.motion_pause_detector_speed_very_slow); in MotionPauseDetector()
79 mSpeedSlow = res.getDimension(R.dimen.motion_pause_detector_speed_slow); in MotionPauseDetector()
80 mSpeedSomewhatFast = res.getDimension(R.dimen.motion_pause_detector_speed_somewhat_fast); in MotionPauseDetector()
81 mSpeedFast = res.getDimension(R.dimen.motion_pause_detector_speed_fast); in MotionPauseDetector()
/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/Settings/src/com/android/settings/widget/
DDonutView.java78 mStrokeWidth = resources.getDimension(R.dimen.storage_donut_thickness); in DonutView()
128 resources.getDimension(R.dimen.storage_donut_view_label_text_size)); in DonutView()
136 resources.getDimension(R.dimen.storage_donut_view_percent_text_size)); in DonutView()
207 .getDimension( in setPercentage()
241 resources.getDimension(R.dimen.storage_donut_view_percent_sign_size) in getPercentageStringSpannable()
242 / resources.getDimension(R.dimen.storage_donut_view_percent_text_size); in getPercentageStringSpannable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDonutView.java78 mStrokeWidth = resources.getDimension(R.dimen.storage_donut_thickness); in DonutView()
128 resources.getDimension(R.dimen.storage_donut_view_label_text_size)); in DonutView()
136 resources.getDimension(R.dimen.storage_donut_view_percent_text_size)); in DonutView()
207 .getDimension( in setPercentage()
241 resources.getDimension(R.dimen.storage_donut_view_percent_sign_size) in getPercentageStringSpannable()
242 / resources.getDimension(R.dimen.storage_donut_view_percent_text_size); in getPercentageStringSpannable()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/decorations/linear/
DLinearDividerItemDecoration.java95 parent.getPaddingTop() + (int) parent.getContext().getResources().getDimension( in drawHorizontalDividers()
98 - (int) parent.getContext().getResources().getDimension( in drawHorizontalDividers()
124 parent.getPaddingLeft() + (int) parent.getContext().getResources().getDimension( in drawVerticalDividers()
127 - (int) parent.getContext().getResources().getDimension( in drawVerticalDividers()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/decorations/grid/
DGridDividerItemDecoration.java106 firstRowChild.getTop() + (int) parent.getContext().getResources().getDimension( in drawHorizontalDividers()
111 - (int) parent.getContext().getResources().getDimension( in drawHorizontalDividers()
149 leftmostChild.getLeft() + (int) parent.getContext().getResources().getDimension( in drawVerticalDividers()
154 - (int) parent.getContext().getResources().getDimension( in drawVerticalDividers()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DThemes.java69 return getDimension(context, android.R.attr.dialogCornerRadius, in getDialogCornerRadius()
70 context.getResources().getDimension(R.dimen.default_dialog_corner_radius)); in getDialogCornerRadius()
73 public static float getDimension(Context context, int attr, float defaultValue) { in getDimension() method in Themes
75 float value = ta.getDimension(0, defaultValue); in getDimension()
/packages/apps/DeskClock/src/com/android/deskclock/
DCircleButtonsLayout.java33 final float strokeSize = res.getDimension(R.dimen.circletimer_circle_size); in CircleButtonsLayout()
34 final float dotStrokeSize = res.getDimension(R.dimen.circletimer_dot_size); in CircleButtonsLayout()
35 final float markerStrokeSize = res.getDimension(R.dimen.circletimer_marker_size); in CircleButtonsLayout()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DDoubleShadowBubbleTextView.java92 ambientShadowBlur = a.getDimension(R.styleable.ShadowInfo_ambientShadowBlur, 0); in ShadowInfo()
95 keyShadowBlur = a.getDimension(R.styleable.ShadowInfo_keyShadowBlur, 0); in ShadowInfo()
96 keyShadowOffset = a.getDimension(R.styleable.ShadowInfo_keyShadowOffset, 0); in ShadowInfo()
/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/PermissionController/src/android/support/wearable/view/
DCircledImageView.java139 mCircleRadius = a.getDimension( in CircledImageView()
142 mCircleRadiusPressed = a.getDimension( in CircledImageView()
146 mCircleBorderWidth = a.getDimension(R.styleable.CircledImageView_circle_border_width, 0); in CircledImageView()
152 float circlePadding = a.getDimension(R.styleable.CircledImageView_circle_padding, 0); in CircledImageView()
156 mShadowWidth = a.getDimension(R.styleable.CircledImageView_shadow_width, 0); in CircledImageView()
/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.java76 final float dotDiameter = resources.getDimension(R.dimen.circletimer_dot_size); in StopwatchCircleView()
80 mStrokeSize = resources.getDimension(R.dimen.circletimer_circle_size); in StopwatchCircleView()
81 mMarkerStrokeSize = resources.getDimension(R.dimen.circletimer_marker_size); in StopwatchCircleView()
DStopwatchCircleView.kt74 val dotDiameter: Float = resources.getDimension(R.dimen.circletimer_dot_size)
78 mStrokeSize = resources.getDimension(R.dimen.circletimer_circle_size)
79 mMarkerStrokeSize = resources.getDimension(R.dimen.circletimer_marker_size)
/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/DeskClock/src/com/android/deskclock/widget/
DCircleView.kt58 mCenterX = a.getDimension(R.styleable.CircleView_centerX, 0.0f)
59 mCenterY = a.getDimension(R.styleable.CircleView_centerY, 0.0f)
60 radius = a.getDimension(R.styleable.CircleView_radius, 0.0f)
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/Dialer/java/com/android/dialer/main/impl/toolbar/
DSearchBarView.java64 margin = getContext().getResources().getDimension(R.dimen.search_bar_margin); in SearchBarView()
66 getContext().getResources().getDimension(R.dimen.expanded_search_bar_height); in SearchBarView()
68 getContext().getResources().getDimension(R.dimen.collapsed_search_bar_height); in SearchBarView()
/packages/apps/TV/src/com/android/tv/menu/
DBaseCardView.java74 getResources().getDimension(R.dimen.channel_card_elevation_focused) in BaseCardView()
75 - getResources().getDimension(R.dimen.card_elevation_normal); in BaseCardView()
82 setElevation(getResources().getDimension(R.dimen.card_elevation_normal)); in BaseCardView()

123456