/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
D | GlifDimensionTest.java | 61 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/keyguard/clock/ |
D | SmallClockPosition.java | 44 this(res.getDimensionPixelSize(R.dimen.status_bar_height), in SmallClockPosition() 45 res.getDimensionPixelSize(R.dimen.keyguard_lock_padding), in SmallClockPosition() 46 res.getDimensionPixelSize(R.dimen.keyguard_lock_height), in SmallClockPosition() 47 res.getDimensionPixelSize(R.dimen.burn_in_prevention_offset_y) in SmallClockPosition()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wm/ |
D | DisplayLayoutTest.java | 110 doReturn(navLand).when(res).getDimensionPixelSize( in createResources() 112 doReturn(navPort).when(res).getDimensionPixelSize(R.dimen.navigation_bar_height_car_mode); in createResources() 113 doReturn(navLand).when(res).getDimensionPixelSize(R.dimen.navigation_bar_width_car_mode); in createResources() 114 doReturn(navLand).when(res).getDimensionPixelSize(R.dimen.navigation_bar_height_landscape); in createResources() 115 doReturn(navPort).when(res).getDimensionPixelSize(R.dimen.navigation_bar_height); in createResources() 116 doReturn(navLand).when(res).getDimensionPixelSize(R.dimen.navigation_bar_width); in createResources() 118 doReturn(statusLand).when(res).getDimensionPixelSize(R.dimen.status_bar_height_landscape); in createResources() 119 doReturn(statusPort).when(res).getDimensionPixelSize(R.dimen.status_bar_height_portrait); in createResources()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardClockPositionAlgorithm.java | 129 mClockNotificationsMargin = res.getDimensionPixelSize( in loadDimens() 133 mContainerTopPadding = Math.max(res.getDimensionPixelSize( in loadDimens() 135 res.getDimensionPixelSize(R.dimen.keyguard_lock_height) in loadDimens() 136 + res.getDimensionPixelSize(R.dimen.keyguard_lock_padding) in loadDimens() 137 + res.getDimensionPixelSize(R.dimen.keyguard_clock_lock_margin)); in loadDimens() 138 mBurnInPreventionOffsetX = res.getDimensionPixelSize( in loadDimens() 140 mBurnInPreventionOffsetY = res.getDimensionPixelSize( in loadDimens()
|
D | KeyguardStatusBarView.java | 136 lp.width = lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged() 142 lp.width = getResources().getDimensionPixelSize( in onConfigurationChanged() 144 lp.setMarginEnd(getResources().getDimensionPixelSize( in onConfigurationChanged() 150 lp.setMarginStart(getResources().getDimensionPixelSize( in onConfigurationChanged() 155 getResources().getDimensionPixelSize(R.dimen.system_icons_keyguard_padding_end), in onConfigurationChanged() 160 getResources().getDimensionPixelSize( in onConfigurationChanged() 165 getResources().getDimensionPixelSize(R.dimen.keyguard_carrier_text_margin), in onConfigurationChanged() 177 lp.height = getResources().getDimensionPixelSize( in updateKeyguardStatusBarHeight() 184 mSystemIconsSwitcherHiddenExpandedMargin = res.getDimensionPixelSize( in loadDimens() 186 mSystemIconsBaseMargin = res.getDimensionPixelSize( in loadDimens() [all …]
|
D | PhoneStatusBarView.java | 288 mCutoutSideNudge = getResources().getDimensionPixelSize( in updateResources() 290 mRoundedCornerPadding = getResources().getDimensionPixelSize( in updateResources() 300 mStatusBarHeight = getResources().getDimensionPixelSize(R.dimen.status_bar_height); in updateStatusBarHeight() 303 int statusBarPaddingTop = getResources().getDimensionPixelSize( in updateStatusBarHeight() 305 int statusBarPaddingStart = getResources().getDimensionPixelSize( in updateStatusBarHeight() 307 int statusBarPaddingEnd = getResources().getDimensionPixelSize( in updateStatusBarHeight()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | PaintDrawable.java | 78 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/ |
D | ViewConfiguration.java | 409 mScrollbarSize = res.getDimensionPixelSize( in ViewConfiguration() 460 mTouchSlop = res.getDimensionPixelSize( in ViewConfiguration() 462 mHoverSlop = res.getDimensionPixelSize( in ViewConfiguration() 464 mMinScrollbarTouchTarget = res.getDimensionPixelSize( in ViewConfiguration() 470 mMinimumFlingVelocity = res.getDimensionPixelSize( in ViewConfiguration() 472 mMaximumFlingVelocity = res.getDimensionPixelSize( in ViewConfiguration() 477 mHorizontalScrollFactor = res.getDimensionPixelSize( in ViewConfiguration() 479 mVerticalScrollFactor = res.getDimensionPixelSize( in ViewConfiguration() 485 mMinScalingSpan = res.getDimensionPixelSize( in ViewConfiguration()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | ScreenRecordDrawable.java | 64 mHorizontalPadding = r.getDimensionPixelSize(R.dimen.status_bar_horizontal_padding); in inflate() 66 mTextSize = r.getDimensionPixelSize(R.dimen.screenrecord_status_text_size); in inflate() 67 mIconRadius = r.getDimensionPixelSize(R.dimen.screenrecord_status_icon_radius); in inflate() 76 mWidthPx = r.getDimensionPixelSize(R.dimen.screenrecord_status_icon_width); in inflate() 77 mHeightPx = r.getDimensionPixelSize(R.dimen.screenrecord_status_icon_height); in inflate()
|
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/ |
D | DimensionConsistencyTest.java | 56 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/core/java/com/android/internal/widget/ |
D | NotificationActionListLayout.java | 265 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()
|
D | SubtitleView.java | 108 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()
|
D | ConversationLayout.java | 207 mAvatarSize = getResources().getDimensionPixelSize(R.dimen.messaging_avatar_size); in onFinishInflate() 269 mExpandButtonExpandedTopMargin = getResources().getDimensionPixelSize( in onFinishInflate() 271 mNotificationHeaderExpandedPadding = getResources().getDimensionPixelSize( in onFinishInflate() 273 mContentMarginEnd = getResources().getDimensionPixelSize( in onFinishInflate() 275 mBadgedSideMargins = getResources().getDimensionPixelSize( in onFinishInflate() 277 mConversationAvatarSize = getResources().getDimensionPixelSize( in onFinishInflate() 279 mConversationAvatarSizeExpanded = getResources().getDimensionPixelSize( in onFinishInflate() 281 mConversationIconTopPaddingExpandedGroup = getResources().getDimensionPixelSize( in onFinishInflate() 283 mConversationIconTopPadding = getResources().getDimensionPixelSize( in onFinishInflate() 285 mExpandedGroupMessagePadding = getResources().getDimensionPixelSize( in onFinishInflate() [all …]
|
D | MessagingImageMessage.java | 79 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/ |
D | BubbleFlyoutView.java | 155 mFlyoutPadding = res.getDimensionPixelSize(R.dimen.bubble_flyout_padding_x); in BubbleFlyoutView() 156 mFlyoutSpaceFromBubble = res.getDimensionPixelSize(R.dimen.bubble_flyout_space_from_bubble); in BubbleFlyoutView() 157 mPointerSize = res.getDimensionPixelSize(R.dimen.bubble_flyout_pointer_size); in BubbleFlyoutView() 159 mBubbleSize = res.getDimensionPixelSize(R.dimen.individual_bubble_size); in BubbleFlyoutView() 160 mBubbleBitmapSize = res.getDimensionPixelSize(R.dimen.bubble_bitmap_size); in BubbleFlyoutView() 163 mBubbleElevation = res.getDimensionPixelSize(R.dimen.bubble_elevation); in BubbleFlyoutView() 164 mFlyoutElevation = res.getDimensionPixelSize(R.dimen.bubble_flyout_elevation); in BubbleFlyoutView() 175 mCornerRadius = ta.getDimensionPixelSize(1, 0); in BubbleFlyoutView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DisplayUtils.java | 90 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/ |
D | PreferenceFrameLayout.java | 70 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/ |
D | MLand.java | 103 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/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/ |
D | AdaptiveOutlineDrawable.java | 85 mStrokeWidth = resources.getDimensionPixelSize(R.dimen.adaptive_outline_stroke); in init() 92 mInsetPx = getDimensionPixelSize(resources, type); in init() 110 private int getDimensionPixelSize(Resources resources, @AdaptiveOutlineIconType int type) { in getDimensionPixelSize() method in AdaptiveOutlineDrawable 121 return resources.getDimensionPixelSize(resId); in getDimensionPixelSize()
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | ColorPickerPalette.java | 61 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/globalactions/ |
D | GlobalActionsPopupMenu.java | 60 mGlobalActionsSidePadding = res.getDimensionPixelSize(R.dimen.global_actions_side_margin); in GlobalActionsPopupMenu() 62 mMenuVerticalPadding = res.getDimensionPixelSize(R.dimen.control_menu_vertical_padding); in GlobalActionsPopupMenu() 91 listView.setDividerHeight(res.getDimensionPixelSize(R.dimen.control_list_divider)); in show()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/ |
D | ListMixin.java | 66 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/statusbar/notification/row/ |
D | PriorityOnboardingDialogController.kt | 177 val standardThickness = context.resources.getDimensionPixelSize( in <lambda>() 179 val largeThickness = context.resources.getDimensionPixelSize( in <lambda>() 181 val standardSize = context.resources.getDimensionPixelSize( in <lambda>() 185 val bgSize = context.resources.getDimensionPixelSize( in <lambda>() 227 val gapWidth = dialog.context.getResources().getDimensionPixelSize( in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSContainerImpl.java | 152 maxQs -= getResources().getDimensionPixelSize(R.dimen.navigation_bar_height); in onMeasure() 202 layoutParams.topMargin = mContext.getResources().getDimensionPixelSize( in updateResources() 206 mSideMargins = getResources().getDimensionPixelSize(R.dimen.notification_side_paddings); in updateResources() 207 mContentPaddingStart = getResources().getDimensionPixelSize( in updateResources() 209 int newPaddingEnd = getResources().getDimensionPixelSize( in updateResources()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | SeekBarObserver.kt | 32 .getDimensionPixelSize(R.dimen.qs_media_enabled_seekbar_height) 34 .getDimensionPixelSize(R.dimen.qs_media_disabled_seekbar_height)
|