Home
last modified time | relevance | path

Searched refs:getDimensionPixelSize (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DGlifDimensionTest.java63 final int marginSides = a.getDimensionPixelSize(0, 0); in assertDividerInset()
70 res.getDimensionPixelSize(R.dimen.suw_items_glif_text_divider_inset)); in assertDividerInset()
75 marginSides + res.getDimensionPixelSize(R.dimen.suw_items_icon_container_width), in assertDividerInset()
76 res.getDimensionPixelSize(R.dimen.suw_items_glif_icon_divider_inset)); in assertDividerInset()
94 final int marginSides = a.getDimensionPixelSize(0, 0); in assertButtonMargin()
101 res.getDimensionPixelSize(R.dimen.suw_glif_button_margin_end)); in assertButtonMargin()
106 marginSides - res.getDimensionPixelSize(R.dimen.suw_glif_button_padding), in assertButtonMargin()
107 res.getDimensionPixelSize(R.dimen.suw_glif_button_margin_start)); in assertButtonMargin()
/frameworks/support/car/src/main/java/androidx/car/widget/
DSeekbarListItem.java214 int minHeight = mContext.getResources().getDimensionPixelSize( in setItemLayoutHeight()
248 int startMargin = mContext.getResources().getDimensionPixelSize( in setPrimaryActionLayout()
250 int iconSize = mContext.getResources().getDimensionPixelSize( in setPrimaryActionLayout()
265 int itemHeight = mContext.getResources().getDimensionPixelSize( in setPrimaryActionLayout()
325 : mContext.getResources().getDimensionPixelSize(R.dimen.car_padding_1); in setSeekBarAndTextLayout()
355 mContext.getResources().getDimensionPixelSize(startMarginResId)); in setViewStartMargin()
369 layoutParams.setMarginEnd(mContext.getResources().getDimensionPixelSize( in setViewEndMargin()
376 layoutParams.setMarginEnd(mContext.getResources().getDimensionPixelSize( in setViewEndMargin()
384 endMargin += mContext.getResources().getDimensionPixelSize( in setViewEndMargin()
386 endMargin += mContext.getResources().getDimensionPixelSize( in setViewEndMargin()
[all …]
DTextListItem.java212 int height = mContext.getResources().getDimensionPixelSize( in setItemLayoutHeight()
222 int minHeight = mContext.getResources().getDimensionPixelSize( in setItemLayoutHeight()
285 int iconSize = mContext.getResources().getDimensionPixelSize( in setPrimaryIconLayout()
293 layoutParams.setMarginStart(mContext.getResources().getDimensionPixelSize( in setPrimaryIconLayout()
301 int itemHeight = mContext.getResources().getDimensionPixelSize( in setPrimaryIconLayout()
314 int iconSize = mContext.getResources().getDimensionPixelSize( in setPrimaryIconLayout()
388 int startMargin = mContext.getResources().getDimensionPixelSize(startMarginResId); in setTextStartMargin()
420 int margin = mContext.getResources().getDimensionPixelSize( in setTextVerticalMargin()
434 int padding1 = resources.getDimensionPixelSize(R.dimen.car_padding_1); in setTextVerticalMargin()
435 int padding3 = resources.getDimensionPixelSize(R.dimen.car_padding_3); in setTextVerticalMargin()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DPaintDrawable.java78 int radius = a.getDimensionPixelSize( in inflateTag()
84 int topLeftRadius = a.getDimensionPixelSize( in inflateTag()
86 int topRightRadius = a.getDimensionPixelSize( in inflateTag()
88 int bottomLeftRadius = a.getDimensionPixelSize( in inflateTag()
90 int bottomRightRadius = a.getDimensionPixelSize( in inflateTag()
/frameworks/base/core/java/android/view/
DViewConfiguration.java366 mScrollbarSize = res.getDimensionPixelSize( in ViewConfiguration()
412 mTouchSlop = res.getDimensionPixelSize( in ViewConfiguration()
414 mHoverSlop = res.getDimensionPixelSize( in ViewConfiguration()
416 mMinScrollbarTouchTarget = res.getDimensionPixelSize( in ViewConfiguration()
422 mMinimumFlingVelocity = res.getDimensionPixelSize( in ViewConfiguration()
424 mMaximumFlingVelocity = res.getDimensionPixelSize( in ViewConfiguration()
429 mHorizontalScrollFactor = res.getDimensionPixelSize( in ViewConfiguration()
431 mVerticalScrollFactor = res.getDimensionPixelSize( in ViewConfiguration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java124 mClockNotificationsMargin = res.getDimensionPixelSize( in loadDimens()
126 mContainerTopPadding = res.getDimensionPixelSize( in loadDimens()
128 mBurnInPreventionOffsetX = res.getDimensionPixelSize( in loadDimens()
130 mBurnInPreventionOffsetY = res.getDimensionPixelSize( in loadDimens()
132 mPulsingPadding = res.getDimensionPixelSize( in loadDimens()
DKeyguardStatusBarView.java123 lp.width = lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged()
129 lp.width = getResources().getDimensionPixelSize( in onConfigurationChanged()
131 lp.setMarginEnd(getResources().getDimensionPixelSize( in onConfigurationChanged()
137 lp.setMarginStart(getResources().getDimensionPixelSize( in onConfigurationChanged()
142 getResources().getDimensionPixelSize(R.dimen.system_icons_keyguard_padding_end), in onConfigurationChanged()
147 getResources().getDimensionPixelSize( in onConfigurationChanged()
151 getResources().getDimensionPixelSize(R.dimen.keyguard_carrier_text_margin)); in onConfigurationChanged()
155 lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged()
162 mSystemIconsSwitcherHiddenExpandedMargin = res.getDimensionPixelSize( in loadDimens()
164 mSystemIconsBaseMargin = res.getDimensionPixelSize( in loadDimens()
[all …]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DThumbsBarTest.java54 assertEquals(mBar.mThumbHeightInPixel, mContext.getResources().getDimensionPixelSize( in checkThumbsBarInitialize()
56 assertEquals(mBar.mThumbWidthInPixel, mContext.getResources().getDimensionPixelSize( in checkThumbsBarInitialize()
58 assertEquals(mBar.mHeroThumbHeightInPixel, mContext.getResources().getDimensionPixelSize( in checkThumbsBarInitialize()
60 assertEquals(mBar.mHeroThumbWidthInPixel, mContext.getResources().getDimensionPixelSize( in checkThumbsBarInitialize()
137 mContext.getResources().getDimensionPixelSize( in checkSetThumbSize()
140 mContext.getResources().getDimensionPixelSize( in checkSetThumbSize()
175 mContext.getResources().getDimensionPixelSize( in checkSetHeroThumbSize()
178 mContext.getResources().getDimensionPixelSize( in checkSetHeroThumbSize()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DFullWidthDetailsOverviewRowPresenter.java322 final int fadeLength = rootView.getResources().getDimensionPixelSize( in ViewHolder()
658 lp.setMarginStart(v.getResources().getDimensionPixelSize( in onLayoutLogo()
662 lp.setMarginStart(v.getResources().getDimensionPixelSize(R.dimen.lb_details_v2_left) in onLayoutLogo()
671 v.getResources().getDimensionPixelSize(R.dimen.lb_details_v2_blank_height) in onLayoutLogo()
675 lp.topMargin = v.getResources().getDimensionPixelSize( in onLayoutLogo()
677 .getDimensionPixelSize(R.dimen.lb_details_v2_actions_height) + v in onLayoutLogo()
678 .getResources().getDimensionPixelSize( in onLayoutLogo()
712 frameMarginStart = res.getDimensionPixelSize( in onLayoutOverviewFrame()
717 descriptionMarginStart = logoWidth + res.getDimensionPixelSize( in onLayoutOverviewFrame()
723 frameMarginStart = res.getDimensionPixelSize(R.dimen.lb_details_v2_left) in onLayoutOverviewFrame()
[all …]
DThumbsBar.java59 mThumbWidthInPixel = context.getResources().getDimensionPixelSize( in ThumbsBar()
61 mThumbHeightInPixel = context.getResources().getDimensionPixelSize( in ThumbsBar()
64 mHeroThumbHeightInPixel = context.getResources().getDimensionPixelSize( in ThumbsBar()
66 mHeroThumbWidthInPixel = context.getResources().getDimensionPixelSize( in ThumbsBar()
69 mMeasuredMarginInPixel = context.getResources().getDimensionPixelSize( in ThumbsBar()
DAbstractDetailsDescriptionPresenter.java64 final int titleAscent = view.getResources().getDimensionPixelSize( in ViewHolder()
69 mUnderTitleBaselineMargin = view.getResources().getDimensionPixelSize( in ViewHolder()
71 mUnderSubtitleBaselineMargin = view.getResources().getDimensionPixelSize( in ViewHolder()
74 mTitleLineSpacing = view.getResources().getDimensionPixelSize( in ViewHolder()
76 mBodyLineSpacing = view.getResources().getDimensionPixelSize( in ViewHolder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/
DGridTaskView.java44 mHeaderHeight = context.getResources().getDimensionPixelSize( in GridTaskView()
61 return new AnimateableGridViewBounds(this, mContext.getResources().getDimensionPixelSize( in createOutlineProvider()
68 mHeaderHeight = mContext.getResources().getDimensionPixelSize( in onConfigurationChanged()
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/
DDimensionConsistencyTest.java58 res.getDimensionPixelSize(R.dimen.suw_switch_divider_padding_top) in testSwitchPaddingTop()
59 + (res.getDimensionPixelSize(R.dimen.suw_switch_divider_height) / 2), in testSwitchPaddingTop()
60 res.getDimensionPixelSize(R.dimen.suw_switch_padding_top) in testSwitchPaddingTop()
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/
DCardView.java146 int defaultPadding = a.getDimensionPixelSize(R.styleable.CardView_contentPadding, 0); in CardView()
147 mContentPadding.left = a.getDimensionPixelSize(R.styleable.CardView_contentPaddingLeft, in CardView()
149 mContentPadding.top = a.getDimensionPixelSize(R.styleable.CardView_contentPaddingTop, in CardView()
151 mContentPadding.right = a.getDimensionPixelSize(R.styleable.CardView_contentPaddingRight, in CardView()
153 mContentPadding.bottom = a.getDimensionPixelSize(R.styleable.CardView_contentPaddingBottom, in CardView()
158 mUserSetMinWidth = a.getDimensionPixelSize(R.styleable.CardView_android_minWidth, 0); in CardView()
159 mUserSetMinHeight = a.getDimensionPixelSize(R.styleable.CardView_android_minHeight, 0); in CardView()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationActionListLayout.java265 int paddingTop = getResources().getDimensionPixelSize( in updateHeights()
268 int paddingBottom = getResources().getDimensionPixelSize( in updateHeights()
270 mEmphasizedHeight = paddingBottom + paddingTop + getResources().getDimensionPixelSize( in updateHeights()
272 mRegularHeight = getResources().getDimensionPixelSize( in updateHeights()
286 int paddingTop = getResources().getDimensionPixelSize( in setEmphasizedMode()
289 int paddingBottom = getResources().getDimensionPixelSize( in setEmphasizedMode()
292 int buttonPaddingInternal = getResources().getDimensionPixelSize( in setEmphasizedMode()
DSubtitleView.java108 mSpacingAdd = a.getDimensionPixelSize(attr, (int) mSpacingAdd); in SubtitleView()
114 textSize = a.getDimensionPixelSize(attr, textSize); in SubtitleView()
122 … mCornerRadius = res.getDimensionPixelSize(com.android.internal.R.dimen.subtitle_corner_radius); in SubtitleView()
123 … mOutlineWidth = res.getDimensionPixelSize(com.android.internal.R.dimen.subtitle_outline_width); in SubtitleView()
124 … mShadowRadius = res.getDimensionPixelSize(com.android.internal.R.dimen.subtitle_shadow_radius); in SubtitleView()
125 … mShadowOffsetX = res.getDimensionPixelSize(com.android.internal.R.dimen.subtitle_shadow_offset); in SubtitleView()
DMessagingImageMessage.java77 mMinImageHeight = context.getResources().getDimensionPixelSize( in MessagingImageMessage()
79 mMaxImageHeight = context.getResources().getDimensionPixelSize( in MessagingImageMessage()
81 mImageRounding = context.getResources().getDimensionPixelSize( in MessagingImageMessage()
83 mExtraSpacing = context.getResources().getDimensionPixelSize( in MessagingImageMessage()
86 mIsolatedSize = getResources().getDimensionPixelSize(R.dimen.messaging_avatar_size); in MessagingImageMessage()
/frameworks/base/core/java/android/preference/
DPreferenceFrameLayout.java63 mBorderTop = a.getDimensionPixelSize( in PreferenceFrameLayout()
66 mBorderBottom = a.getDimensionPixelSize( in PreferenceFrameLayout()
69 mBorderLeft = a.getDimensionPixelSize( in PreferenceFrameLayout()
72 mBorderRight = a.getDimensionPixelSize( in PreferenceFrameLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonDrawable.java46 int offsetX = res.getDimensionPixelSize(R.dimen.nav_key_button_shadow_offset_x); in create()
47 int offsetY = res.getDimensionPixelSize(R.dimen.nav_key_button_shadow_offset_y); in create()
48 int radius = res.getDimensionPixelSize(R.dimen.nav_key_button_shadow_radius); in create()
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/
DWirelessChargingView.java76 mDotsRadiusStart = context.getResources().getDimensionPixelSize( in init()
78 mDotsRadiusEnd = context.getResources().getDimensionPixelSize( in init()
81 mMainCircleStartRadius = context.getResources().getDimensionPixelSize( in init()
83 mMainCircleEndRadius = context.getResources().getDimensionPixelSize( in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java103 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()
113 BUILDING_WIDTH_MIN = res.getDimensionPixelSize(R.dimen.building_width_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/qs/
DTileLayout.java80 mCellHeight = mContext.getResources().getDimensionPixelSize(R.dimen.qs_tile_height); in updateResources()
81 mCellMarginHorizontal = res.getDimensionPixelSize(R.dimen.qs_tile_margin_horizontal); in updateResources()
82 mCellMarginVertical= res.getDimensionPixelSize(R.dimen.qs_tile_margin_vertical); in updateResources()
83 mCellMarginTop = res.getDimensionPixelSize(R.dimen.qs_tile_margin_top); in updateResources()
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
DGridContent.java82 mBigPicMinHeight = res.getDimensionPixelSize(R.dimen.abc_slice_big_pic_min_height); in GridContent()
83 mBigPicMaxHeight = res.getDimensionPixelSize(R.dimen.abc_slice_big_pic_max_height); in GridContent()
84 mAllImagesHeight = res.getDimensionPixelSize(R.dimen.abc_slice_grid_image_only_height); in GridContent()
85 mImageTextHeight = res.getDimensionPixelSize(R.dimen.abc_slice_grid_image_text_height); in GridContent()
86 mMinHeight = res.getDimensionPixelSize(R.dimen.abc_slice_grid_min_height); in GridContent()
87 mMaxHeight = res.getDimensionPixelSize(R.dimen.abc_slice_grid_max_height); in GridContent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DHybridGroupManager.java58 mOverflowNumberSize = res.getDimensionPixelSize( in initDimens()
60 mOverflowNumberSizeDark = res.getDimensionPixelSize( in initDimens()
62 mOverflowNumberPadding = res.getDimensionPixelSize( in initDimens()
64 mOverflowNumberPaddingDark = mOverflowNumberPadding + res.getDimensionPixelSize( in initDimens()

12345678910>>...14