Home
last modified time | relevance | path

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

12345

/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/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/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/
DCardView.java115 mCardWidth = (int)getResources().getDimension(R.dimen.card_width); in CardView()
116 mCardHeight = (int) getResources().getDimension(R.dimen.card_height); in CardView()
117 mTextPanelWidth = (int)getResources().getDimension(R.dimen.card_message_panel_width); in CardView()
118 mLeftPadding = getResources().getDimension(R.dimen.card_content_left_padding); in CardView()
119 mIconSize = getResources().getDimension(R.dimen.card_icon_size); in CardView()
260 (int)getResources().getDimension(R.dimen.card_height), in setBackground()
271 canvas.drawCircle(mCurveRadius, (int)getResources().getDimension( in setBackground()
/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/services/Car/car-support-lib/src/android/support/car/ui/
DDrawerArrowDrawable.java78 …mBarSize = Math.round(typedArray.getDimension(R.styleable.DrawerArrowDrawable_carArrowBarSize, 0)); in DrawerArrowDrawable()
80 mTopBottomArrowSize = Math.round(typedArray.getDimension( in DrawerArrowDrawable()
82 … mBarThickness = typedArray.getDimension(R.styleable.DrawerArrowDrawable_carArrowThickness, 0); in DrawerArrowDrawable()
84 mBarGap = Math.round(typedArray.getDimension( in DrawerArrowDrawable()
88 .getDimension(R.styleable.DrawerArrowDrawable_carArrowMiddleBarSize, 0); in DrawerArrowDrawable()
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
DClusterView.java208 (int) (getResources().getDimension(R.dimen.card_width)), in createMediaCard()
209 (int) getResources().getDimension(R.dimen.card_height)); in createMediaCard()
258 int iconSize = (int)getResources().getDimension(R.dimen.card_icon_size); in updateContactImage()
268 (int) getResources().getDimension(R.dimen.card_width), in updateContactImage()
269 (int) getResources().getDimension(R.dimen.card_height)); in updateContactImage()
610 int cardWidth = (int) getResources().getDimension(R.dimen.card_width); in createRevealAnimator()
612 int centerY = (int) (getResources().getDimension(R.dimen.card_height) / 2); in createRevealAnimator()
/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/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/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/Settings/src/com/android/settings/widget/
DDonutView.java84 resources.getDimension(R.dimen.storage_donut_view_label_text_size)); in DonutView()
91 resources.getDimension(R.dimen.storage_donut_view_percent_text_size)); in DonutView()
149 .getDimension( in setPercentage()
/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()
/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.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/TV/src/com/android/tv/menu/
DBaseCardView.java74 mFocusTranslationZ = getResources().getDimension(R.dimen.channel_card_elevation_focused) in BaseCardView()
75 - getResources().getDimension(R.dimen.card_elevation_normal); in BaseCardView()
80 setElevation(getResources().getDimension(R.dimen.card_elevation_normal)); in BaseCardView()
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java259 mTransparentStartHeight = (int) getResources().getDimension( in MultiShrinkScroller()
261 mToolbarElevation = getResources().getDimension( in MultiShrinkScroller()
264 mMaximumTitleMargin = (int) getResources().getDimension( in MultiShrinkScroller()
267 mDismissDistanceOnScroll = (int) getResources().getDimension( in MultiShrinkScroller()
269 mDismissDistanceOnRelease = (int) getResources().getDimension( in MultiShrinkScroller()
271 mSnapToTopSlopHeight = (int) getResources().getDimension( in MultiShrinkScroller()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DHolographicOutlineHelper.java64 float mediumBlur = res.getDimension(R.dimen.blur_size_medium_outline); in HolographicOutlineHelper()
69 res.getDimension(R.dimen.blur_size_thin_outline), BlurMaskFilter.Blur.OUTER); in HolographicOutlineHelper()
71 mShadowBitmapShift = res.getDimension(R.dimen.blur_size_click_shadow); in HolographicOutlineHelper()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardView.java145 mKeyHintLetterPadding = keyboardViewAttr.getDimension( in KeyboardView()
149 mKeyPopupHintLetterPadding = keyboardViewAttr.getDimension( in KeyboardView()
151 mKeyShiftedLetterHintPadding = keyboardViewAttr.getDimension( in KeyboardView()
155 mVerticalCorrection = keyboardViewAttr.getDimension( in KeyboardView()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorFormula.java80 mMaximumTextSize = a.getDimension( in CalculatorFormula()
82 mMinimumTextSize = a.getDimension( in CalculatorFormula()
84 mStepTextSize = a.getDimension(R.styleable.CalculatorFormula_stepTextSize, in CalculatorFormula()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageCrop.java83 mIndicatorSize = (int) rsc.getDimension(R.dimen.crop_indicator_size); in setup()
84 mMinSideSize = (int) rsc.getDimension(R.dimen.crop_min_side); in setup()
85 mTouchTolerance = (int) rsc.getDimension(R.dimen.crop_touch_tolerance); in setup()
/packages/apps/DeskClock/src/com/android/alarmclock/
DWidgetUtils.java49 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); in getScaleRatio()
87 float ratio = density * minHeight / res.getDimension(R.dimen.min_digital_widget_height); in getHeightScaleRatio()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DHeaderElevationController.java27 mMaxElevation = res.getDimension(R.dimen.all_apps_header_max_elevation); in HeaderElevationController()
28 mScrollToElevation = res.getDimension(R.dimen.all_apps_header_scroll_to_elevation); in HeaderElevationController()

12345