Home
last modified time | relevance | path

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

123456789

/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/compat/widget/
DRowStyle.java72 (int) a.getDimension(R.styleable.RowStyle_titleItemStartPadding, UNBOUNDED); in RowStyle()
74 (int) a.getDimension(R.styleable.RowStyle_titleItemEndPadding, UNBOUNDED); in RowStyle()
76 (int) a.getDimension(R.styleable.RowStyle_contentStartPadding, UNBOUNDED); in RowStyle()
77 mContentEndPadding = (int) a.getDimension(R.styleable.RowStyle_contentEndPadding, UNBOUNDED); in RowStyle()
78 mTitleStartPadding = (int) a.getDimension(R.styleable.RowStyle_titleStartPadding, UNBOUNDED); in RowStyle()
79 mTitleEndPadding = (int) a.getDimension(R.styleable.RowStyle_titleEndPadding, UNBOUNDED); in RowStyle()
81 (int) a.getDimension(R.styleable.RowStyle_subContentStartPadding, UNBOUNDED); in RowStyle()
83 (int) a.getDimension(R.styleable.RowStyle_subContentEndPadding, UNBOUNDED); in RowStyle()
85 (int) a.getDimension(R.styleable.RowStyle_endItemStartPadding, UNBOUNDED); in RowStyle()
86 mEndItemEndPadding = (int) a.getDimension(R.styleable.RowStyle_endItemEndPadding, UNBOUNDED); in RowStyle()
[all …]
DSliceStyle.java99 mHeaderTitleSize = (int) a.getDimension(R.styleable.SliceView_headerTitleSize, 0); in SliceStyle()
100 mHeaderSubtitleSize = (int) a.getDimension(R.styleable.SliceView_headerSubtitleSize, 0); in SliceStyle()
102 (int) a.getDimension(R.styleable.SliceView_headerTextVerticalPadding, 0); in SliceStyle()
104 mTitleSize = (int) a.getDimension(R.styleable.SliceView_titleSize, 0); in SliceStyle()
105 mSubtitleSize = (int) a.getDimension(R.styleable.SliceView_subtitleSize, 0); in SliceStyle()
106 mVerticalTextPadding = (int) a.getDimension(R.styleable.SliceView_textVerticalPadding, 0); in SliceStyle()
108 mGridTitleSize = (int) a.getDimension(R.styleable.SliceView_gridTitleSize, 0); in SliceStyle()
109 mGridSubtitleSize = (int) a.getDimension(R.styleable.SliceView_gridSubtitleSize, 0); in SliceStyle()
114 a.getDimension( in SliceStyle()
116 mGridTopPadding = (int) a.getDimension(R.styleable.SliceView_gridTopPadding, 0); in SliceStyle()
[all …]
/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/services/Car/libs/car-admin-ui-lib/src/main/java/com/android/car/admin/ui/
DUserAvatarView.java52 setAvatarPadding(a.getDimension(attr, 0)); in UserAvatarView()
54 setFrameWidth(a.getDimension(attr, 0)); in UserAvatarView()
56 setFramePadding(a.getDimension(attr, 0)); in UserAvatarView()
60 setBadgeDiameter(a.getDimension(attr, 0)); in UserAvatarView()
62 setBadgeMargin(a.getDimension(attr, 0)); in UserAvatarView()
64 setBadgeDiameter(a.getDimension(attr, 0)); in UserAvatarView()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/atoms/
DAtomsQnsHandoverPingPongInfoTest.java168 assertNotEquals(a1.getDimension(), a2.getDimension()); in testDimension()
172 assertNotEquals(a1.getDimension(), a2.getDimension()); in testDimension()
176 assertEquals(a1.getDimension(), a2.getDimension()); in testDimension()
DAtomsQnsRatPreferenceMismatchInfoTest.java234 assertNotEquals(a1.getDimension(), a2.getDimension()); in testDimension()
242 assertNotEquals(a1.getDimension(), a2.getDimension()); in testDimension()
246 assertEquals(a1.getDimension(), a2.getDimension()); in testDimension()
DAtomsQnsHandoverTimeMillisInfoTest.java146 assertNotEquals(a1.getDimension(), a2.getDimension()); in testDimension()
147 assertEquals(a1.getDimension(), mInfoDefault.getDimension()); in testDimension()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/bubbles/
DBubbleBarBackground.kt111 strokePaint.strokeWidth = res.getDimension(R.dimen.transient_taskbar_stroke_width)
121 shadowBlur = res.getDimension(R.dimen.transient_taskbar_shadow_blur)
122 keyShadowDistance = res.getDimension(R.dimen.transient_taskbar_key_shadow_distance)
123 arrowWidth = res.getDimension(R.dimen.bubblebar_pointer_width)
124 arrowHeight = res.getDimension(R.dimen.bubblebar_pointer_height)
125 arrowVisibleHeight = res.getDimension(R.dimen.bubblebar_pointer_visible_size)
126 arrowTipRadius = res.getDimension(R.dimen.bubblebar_pointer_radius)
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/
DRoundedCornerEnforcementTest.kt97 .getDimension(eq(android.R.dimen.system_app_widget_background_radius)) in Compute system radius when smaller()
100 .getDimension(eq(R.dimen.enforced_rounded_corner_max_radius)) in Compute system radius when smaller()
114 .getDimension(eq(android.R.dimen.system_app_widget_background_radius)) in Compute launcher radius when smaller()
117 .getDimension(eq(R.dimen.enforced_rounded_corner_max_radius)) in Compute launcher radius when smaller()
132 .getDimension(eq(android.R.dimen.system_app_widget_background_radius)) in Compute system radius ignoring launcher radius()
135 .getDimension(eq(R.dimen.enforced_rounded_corner_max_radius)) in Compute system radius ignoring launcher radius()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarEduTooltip.kt56 private val arrowWidth = resources.getDimension(R.dimen.popup_arrow_width)
57 private val arrowHeight = resources.getDimension(R.dimen.popup_arrow_height)
58 private val arrowPointRadius = resources.getDimension(R.dimen.popup_arrow_corner_radius)
60 private val enterYDelta = resources.getDimension(R.dimen.taskbar_edu_tooltip_enter_y_delta)
61 private val exitYDelta = resources.getDimension(R.dimen.taskbar_edu_tooltip_exit_y_delta)
DTaskbarBackgroundRenderer.kt93 context.resources.getDimension(R.dimen.transient_taskbar_stroke_width)
202 mapRange(scale, 0f, res.getDimension(R.dimen.transient_taskbar_shadow_blur)) in drawTransientBackground()
204 mapRange(scale, 0f, res.getDimension(R.dimen.transient_taskbar_key_shadow_distance)) in drawTransientBackground()
207 shadowBlur = res.getDimension(R.dimen.transient_taskbar_shadow_blur) in drawTransientBackground()
208 keyShadowDistance = res.getDimension(R.dimen.transient_taskbar_key_shadow_distance) in drawTransientBackground()
/packages/modules/Telephony/libs/TelephonyStatsLib/tests/com/android/telephony/statslib/
DStatsLibStorageTest.java164 if (!first.getDimension().equals(second.getDimension())) { in testPulledAtomsBaseInfo()
170 if (!first.getDimension().equals(third.getDimension())) { in testPulledAtomsBaseInfo()
185 if (atomsPulledTestInfo.getDimension().equals(first.getDimension())) { in testPulledAtomsBaseInfo()
/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/Launcher3/quickstep/src/com/android/quickstep/util/
DMotionPauseDetector.java97 mSpeedVerySlow = res.getDimension(R.dimen.motion_pause_detector_speed_very_slow); in MotionPauseDetector()
98 mSpeedSlow = res.getDimension(R.dimen.motion_pause_detector_speed_slow); in MotionPauseDetector()
99 mSpeedSomewhatFast = res.getDimension(R.dimen.motion_pause_detector_speed_somewhat_fast); in MotionPauseDetector()
100 mSpeedTrackpadSomewhatFast = res.getDimension( in MotionPauseDetector()
102 mSpeedFast = res.getDimension(R.dimen.motion_pause_detector_speed_fast); in MotionPauseDetector()
DTaskCornerRadius.java31 return resources.getDimension(R.dimen.task_corner_radius_small); in get()
35 resources.getDimension(R.dimen.task_corner_radius_override); in get()
/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/Car/Settings/src/com/android/car/settings/profiles/
DProfileIconProvider.java76 context.getResources().getDimension(R.dimen.profile_switcher_managed_badge_size) in getDrawableWithBadge()
77 / context.getResources().getDimension( in getDrawableWithBadge()
80 float badgePadding = context.getResources().getDimension( in getDrawableWithBadge()
/packages/apps/DeskClock/src/com/android/deskclock/
DCircleButtonsLayout.kt46 val strokeSize = res.getDimension(R.dimen.circletimer_circle_size)
47 val dotStrokeSize = res.getDimension(R.dimen.circletimer_dot_size)
48 val markerStrokeSize = res.getDimension(R.dimen.circletimer_marker_size)
/packages/apps/Launcher3/src/com/android/launcher3/util/
DThemes.java71 return getDimension(context, android.R.attr.dialogCornerRadius, in getDialogCornerRadius()
72 context.getResources().getDimension(R.dimen.default_dialog_corner_radius)); in getDialogCornerRadius()
75 public static float getDimension(Context context, int attr, float defaultValue) { in getDimension() method in Themes
77 float value = ta.getDimension(0, defaultValue); in getDimension()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserIconProvider.java56 mContext.getResources().getDimension(R.dimen.car_user_switcher_managed_badge_size) in UserIconProvider()
57 / mContext.getResources().getDimension( in UserIconProvider()
59 mBadgePadding = mContext.getResources().getDimension( in UserIconProvider()
/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/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DDualDisplayAspectRatioLayout.kt52 context.resources.getDimension(R.dimen.small_preview_inter_preview_margin).toInt() * 3 in onMeasure()
90 context.resources.getDimension(R.dimen.small_preview_inter_preview_margin).toInt() in onMeasure()
104 context.resources.getDimension(R.dimen.small_preview_inter_preview_margin).toInt() in onLayout()
DDualDisplayAspectRatioLayout2.kt57 resources.getDimension(R.dimen.foldable_small_preview_space_between_preview) in onMeasure()
96 context.resources.getDimension(R.dimen.small_preview_inter_preview_margin).toInt() in onMeasure()
110 resources.getDimension(R.dimen.foldable_small_preview_space_between_preview).toInt() in onLayout()
/packages/modules/Telephony/libs/TelephonyStatsLib/src/com/android/telephony/statslib/
DStatsLibStorage.java128 AtomsPulled alreadyExistPulled = atoms.get(info.getDimension()); in appendPulledAtoms()
130 atoms.put(info.getDimension(), info.copy()); in appendPulledAtoms()
221 AtomsPulled alreadyExistPulled = atoms.get(info.getDimension()); in setSerializablePulledAtoms()
223 atoms.put(info.getDimension(), info.copy()); in setSerializablePulledAtoms()

123456789