Home
last modified time | relevance | path

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

1234567891011

/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DGlifDimensionTest.java61 final int marginSides = a.getDimensionPixelSize(0, 0); in assertDividerInset()
67 .that(res.getDimensionPixelSize(R.dimen.suw_items_glif_text_divider_inset)) in assertDividerInset()
73 .that(res.getDimensionPixelSize(R.dimen.suw_items_glif_icon_divider_inset)) in assertDividerInset()
74 .isEqualTo(marginSides + res.getDimensionPixelSize(R.dimen.suw_items_icon_container_width)); in assertDividerInset()
92 final int marginSides = a.getDimensionPixelSize(0, 0); in assertButtonMargin()
98 .that(res.getDimensionPixelSize(R.dimen.suw_glif_button_margin_end)) in assertButtonMargin()
104 .that(res.getDimensionPixelSize(R.dimen.suw_glif_button_margin_start)) in assertButtonMargin()
105 .isEqualTo(marginSides - res.getDimensionPixelSize(R.dimen.suw_glif_button_padding)); in assertButtonMargin()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java118 mClockNotificationsMargin = res.getDimensionPixelSize( in loadDimens()
122 mContainerTopPadding = Math.max(res.getDimensionPixelSize( in loadDimens()
124 res.getDimensionPixelSize(R.dimen.keyguard_lock_height) in loadDimens()
125 + res.getDimensionPixelSize(R.dimen.keyguard_lock_padding) in loadDimens()
126 + res.getDimensionPixelSize(R.dimen.keyguard_clock_lock_margin)); in loadDimens()
127 mBurnInPreventionOffsetX = res.getDimensionPixelSize( in loadDimens()
129 mBurnInPreventionOffsetY = res.getDimensionPixelSize( in loadDimens()
DKeyguardStatusBarView.java130 lp.width = lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged()
136 lp.width = getResources().getDimensionPixelSize( in onConfigurationChanged()
138 lp.setMarginEnd(getResources().getDimensionPixelSize( in onConfigurationChanged()
144 lp.setMarginStart(getResources().getDimensionPixelSize( in onConfigurationChanged()
149 getResources().getDimensionPixelSize(R.dimen.system_icons_keyguard_padding_end), in onConfigurationChanged()
154 getResources().getDimensionPixelSize( in onConfigurationChanged()
158 getResources().getDimensionPixelSize(R.dimen.keyguard_carrier_text_margin)); in onConfigurationChanged()
162 lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged()
169 mSystemIconsSwitcherHiddenExpandedMargin = res.getDimensionPixelSize( in loadDimens()
171 mSystemIconsBaseMargin = res.getDimensionPixelSize( in loadDimens()
[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/packages/SystemUI/src/com/android/keyguard/clock/
DSmallClockPosition.java43 this(res.getDimensionPixelSize(com.android.keyguard.R.dimen.status_bar_height), in SmallClockPosition()
44 res.getDimensionPixelSize(com.android.keyguard.R.dimen.keyguard_lock_padding), in SmallClockPosition()
45 res.getDimensionPixelSize(com.android.keyguard.R.dimen.keyguard_lock_height), in SmallClockPosition()
46 res.getDimensionPixelSize(com.android.keyguard.R.dimen.burn_in_prevention_offset_y) in SmallClockPosition()
/frameworks/base/core/java/android/view/
DViewConfiguration.java395 mScrollbarSize = res.getDimensionPixelSize( in ViewConfiguration()
441 mTouchSlop = res.getDimensionPixelSize( in ViewConfiguration()
443 mHoverSlop = res.getDimensionPixelSize( in ViewConfiguration()
445 mMinScrollbarTouchTarget = res.getDimensionPixelSize( in ViewConfiguration()
451 mMinimumFlingVelocity = res.getDimensionPixelSize( in ViewConfiguration()
453 mMaximumFlingVelocity = res.getDimensionPixelSize( in ViewConfiguration()
458 mHorizontalScrollFactor = res.getDimensionPixelSize( in ViewConfiguration()
460 mVerticalScrollFactor = res.getDimensionPixelSize( in ViewConfiguration()
466 mMinScalingSpan = res.getDimensionPixelSize( in ViewConfiguration()
/frameworks/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/
DWindowUtils.java102 int height = resources.getDimensionPixelSize(resourceId); in getStatusBarPosition()
115 int height = resources.getDimensionPixelSize(resourceId); in getNavigationBarPosition()
119 int width = resources.getDimensionPixelSize(resourceId); in getNavigationBarPosition()
135 return resources.getDimensionPixelSize(resourceId); in getNavigationBarHeight()
142 return resources.getDimensionPixelSize(resourceId); in getDockedStackDividerInset()
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/
DDimensionConsistencyTest.java56 res.getDimensionPixelSize(R.dimen.suw_switch_divider_padding_top) in testSwitchPaddingTop()
57 + (res.getDimensionPixelSize(R.dimen.suw_switch_divider_height) / 2), in testSwitchPaddingTop()
58 res.getDimensionPixelSize(R.dimen.suw_switch_padding_top) + (dp2Px(SWTICH_HEIGHT_DP) / 2)); in testSwitchPaddingTop()
/frameworks/base/packages/SystemUI/legacy/recents/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/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.java79 mMinImageHeight = context.getResources().getDimensionPixelSize( in MessagingImageMessage()
81 mMaxImageHeight = context.getResources().getDimensionPixelSize( in MessagingImageMessage()
83 mImageRounding = context.getResources().getDimensionPixelSize( in MessagingImageMessage()
85 mExtraSpacing = context.getResources().getDimensionPixelSize( in MessagingImageMessage()
88 mIsolatedSize = getResources().getDimensionPixelSize(R.dimen.messaging_avatar_size); in MessagingImageMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleFlyoutView.java143 mFlyoutPadding = res.getDimensionPixelSize(R.dimen.bubble_flyout_padding_x); in BubbleFlyoutView()
144 mFlyoutSpaceFromBubble = res.getDimensionPixelSize(R.dimen.bubble_flyout_space_from_bubble); in BubbleFlyoutView()
145 mPointerSize = res.getDimensionPixelSize(R.dimen.bubble_flyout_pointer_size); in BubbleFlyoutView()
146 mBubbleSize = res.getDimensionPixelSize(R.dimen.individual_bubble_size); in BubbleFlyoutView()
147 mBubbleElevation = res.getDimensionPixelSize(R.dimen.bubble_elevation); in BubbleFlyoutView()
148 mFlyoutElevation = res.getDimensionPixelSize(R.dimen.bubble_flyout_elevation); in BubbleFlyoutView()
158 mCornerRadius = ta.getDimensionPixelSize(1, 0); in BubbleFlyoutView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java90 radius = context.getResources().getDimensionPixelSize(resourceId); in getCornerRadiusBottom()
109 radius = context.getResources().getDimensionPixelSize(resourceId); in getCornerRadiusTop()
124 radius = context.getResources().getDimensionPixelSize(resourceId); in getCornerRadiusDefault()
/frameworks/base/core/java/android/preference/
DPreferenceFrameLayout.java70 mBorderTop = a.getDimensionPixelSize( in PreferenceFrameLayout()
73 mBorderBottom = a.getDimensionPixelSize( in PreferenceFrameLayout()
76 mBorderLeft = a.getDimensionPixelSize( in PreferenceFrameLayout()
79 mBorderRight = a.getDimensionPixelSize( in PreferenceFrameLayout()
/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.java86 mCellHeight = mContext.getResources().getDimensionPixelSize(R.dimen.qs_tile_height); in updateResources()
87 mCellMarginHorizontal = res.getDimensionPixelSize(R.dimen.qs_tile_margin_horizontal); in updateResources()
88 mCellMarginVertical= res.getDimensionPixelSize(R.dimen.qs_tile_margin_vertical); in updateResources()
89 mCellMarginTop = res.getDimensionPixelSize(R.dimen.qs_tile_margin_top); in updateResources()
DQuickStatusBarHeader.java292 int sbHeight = mContext.getResources().getDimensionPixelSize( in updateMinimumHeight()
294 int qqsHeight = mContext.getResources().getDimensionPixelSize( in updateMinimumHeight()
306 resources.getDimensionPixelSize(R.dimen.qs_header_tooltip_height); in updateResources()
309 mSystemIconsView.getLayoutParams().height = resources.getDimensionPixelSize( in updateResources()
315 lp.height = resources.getDimensionPixelSize( in updateResources()
319 resources.getDimensionPixelSize( in updateResources()
405 getResources().getDimensionPixelSize(R.dimen.status_bar_padding_start), 0, in onApplyWindowInsets()
406 getResources().getDimensionPixelSize(R.dimen.status_bar_padding_end), 0); in onApplyWindowInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DExpandedAnimationController.java308 mStackOffsetPx = res.getDimensionPixelSize(R.dimen.bubble_stack_offset); in onActiveControllerForLayout()
309 mBubblePaddingPx = res.getDimensionPixelSize(R.dimen.bubble_padding); in onActiveControllerForLayout()
310 mBubbleSizePx = res.getDimensionPixelSize(R.dimen.individual_bubble_size); in onActiveControllerForLayout()
312 res.getDimensionPixelSize(com.android.internal.R.dimen.status_bar_height); in onActiveControllerForLayout()
313 mPipDismissHeight = res.getDimensionPixelSize(R.dimen.pip_dismiss_gradient_height); in onActiveControllerForLayout()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DListMixin.java66 int dividerInset = a.getDimensionPixelSize(R.styleable.SuwListMixin_suwDividerInset, -1); in ListMixin()
71 a.getDimensionPixelSize(R.styleable.SuwListMixin_suwDividerInsetStart, 0); in ListMixin()
72 int dividerInsetEnd = a.getDimensionPixelSize(R.styleable.SuwListMixin_suwDividerInsetEnd, 0); in ListMixin()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DCornerHandleView.java152 int radius = getResources().getDimensionPixelSize( in getOuterRadiusPx()
155 radius = getResources().getDimensionPixelSize( in getOuterRadiusPx()
159 radius = getResources().getDimensionPixelSize( in getOuterRadiusPx()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/template/
DRecyclerMixin.java111 int dividerInset = a.getDimensionPixelSize(R.styleable.SuwRecyclerMixin_suwDividerInset, -1); in parseAttributes()
116 a.getDimensionPixelSize(R.styleable.SuwRecyclerMixin_suwDividerInsetStart, 0); in parseAttributes()
118 a.getDimensionPixelSize(R.styleable.SuwRecyclerMixin_suwDividerInsetEnd, 0); in parseAttributes()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistOrbView.java110 mCircleMinSize = context.getResources().getDimensionPixelSize( in AssistOrbView()
112 mBaseMargin = context.getResources().getDimensionPixelSize( in AssistOrbView()
114 mStaticOffset = context.getResources().getDimensionPixelSize( in AssistOrbView()
116 mMaxElevation = context.getResources().getDimensionPixelSize( in AssistOrbView()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIntrinsicSizeFrameLayout.java61 a.getDimensionPixelSize(R.styleable.SuwIntrinsicSizeFrameLayout_android_height, 0); in init()
63 a.getDimensionPixelSize(R.styleable.SuwIntrinsicSizeFrameLayout_android_width, 0); in init()

1234567891011