Home
last modified time | relevance | path

Searched refs:dimen (Results 1 – 25 of 655) sorted by relevance

12345678910>>...27

/packages/apps/Gallery2/src/com/android/gallery3d/app/
DConfig.java51 slotViewSpec.slotGap = r.getDimensionPixelSize(R.dimen.albumset_slot_gap); in AlbumSetPage()
54 paddingTop = r.getDimensionPixelSize(R.dimen.albumset_padding_top); in AlbumSetPage()
55 paddingBottom = r.getDimensionPixelSize(R.dimen.albumset_padding_bottom); in AlbumSetPage()
59 R.dimen.albumset_label_background_height); in AlbumSetPage()
61 R.dimen.albumset_title_offset); in AlbumSetPage()
63 R.dimen.albumset_count_offset); in AlbumSetPage()
65 R.dimen.albumset_title_font_size); in AlbumSetPage()
67 R.dimen.albumset_count_font_size); in AlbumSetPage()
69 R.dimen.albumset_left_margin); in AlbumSetPage()
71 R.dimen.albumset_title_right_margin); in AlbumSetPage()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRectFSpringAnim.java262 long minVelocityXPxPerS = rp.getInt(R.dimen.swipe_up_min_velocity_x_px_per_s); in start()
263 long maxVelocityXPxPerS = rp.getInt(R.dimen.swipe_up_max_velocity_x_px_per_s); in start()
264 long minVelocityYPxPerS = rp.getInt(R.dimen.swipe_up_min_velocity_y_px_per_s); in start()
265 long maxVelocityYPxPerS = rp.getInt(R.dimen.swipe_up_max_velocity_y_px_per_s); in start()
266 float fallOffFactor = rp.getFloat(R.dimen.swipe_up_max_velocity_fall_off_factor); in start()
276 float stiffnessX = rp.getFloat(R.dimen.swipe_up_rect_x_stiffness); in start()
277 float dampingX = rp.getFloat(R.dimen.swipe_up_rect_x_damping_ratio); in start()
288 float stiffnessY = rp.getFloat(R.dimen.swipe_up_rect_y_stiffness); in start()
289 float dampingY = rp.getFloat(R.dimen.swipe_up_rect_y_damping_ratio); in start()
301 float stiffnessZ = rp.getFloat(R.dimen.swipe_up_rect_scale_stiffness_v2); in start()
[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()
142 R.dimen.hint_small_begin_size, in createFadeIn()
143 R.dimen.hint_small_end_size, in createFadeIn()
148 R.dimen.hint_mid_begin_size, in createFadeIn()
149 R.dimen.hint_mid_end_size, in createFadeIn()
154 R.dimen.hint_large_begin_size, in createFadeIn()
155 R.dimen.hint_large_end_size, in createFadeIn()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DSizeCalculator.java179 res.getDimensionPixelSize(R.dimen.grid_item_category_padding_horizontal), in getCategoryTileSize()
180 res.getDimensionPixelSize(R.dimen.category_grid_edge_space)); in getCategoryTileSize()
191 res.getDimensionPixelSize(R.dimen.grid_item_category_padding_horizontal), in getCategoryTileSize()
192 res.getDimensionPixelSize(R.dimen.category_grid_edge_space)); in getCategoryTileSize()
204 res.getDimensionPixelSize(R.dimen.grid_item_category_padding_horizontal), in getFeaturedCategoryTileSize()
205 res.getDimensionPixelSize(R.dimen.category_grid_edge_space)); in getFeaturedCategoryTileSize()
216 res.getDimensionPixelSize(R.dimen.grid_item_category_padding_horizontal), in getFeaturedCategoryTileSize()
217 res.getDimensionPixelSize(R.dimen.category_grid_edge_space)); in getFeaturedCategoryTileSize()
229 res.getDimensionPixelSize(R.dimen.grid_item_individual_padding_horizontal), in getIndividualTileSize()
230 res.getDimensionPixelSize(R.dimen.wallpaper_grid_edge_space)); in getIndividualTileSize()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarThresholdUtils.java60 return getThreshold(r, dp, R.dimen.taskbar_from_nav_threshold, in getFromNavThreshold()
61 R.dimen.taskbar_nav_threshold_mult); in getFromNavThreshold()
68 return getThreshold(r, dp, R.dimen.taskbar_app_window_threshold, in getAppWindowThreshold()
69 R.dimen.taskbar_app_window_threshold_mult); in getAppWindowThreshold()
76 return getThreshold(r, dp, R.dimen.taskbar_home_overview_threshold, in getHomeOverviewThreshold()
77 R.dimen.taskbar_home_overview_threshold_mult); in getHomeOverviewThreshold()
84 return getThreshold(r, dp, R.dimen.taskbar_catch_up_threshold, in getCatchUpThreshold()
85 R.dimen.taskbar_catch_up_threshold_mult); in getCatchUpThreshold()
DTaskbarBackgroundRenderer.kt78 context.resources.getDimensionPixelSize(R.dimen.taskbar_stashed_handle_width)
81 context.resources.getDimensionPixelSize(R.dimen.taskbar_stashed_handle_height)
91 context.resources.getDimension(R.dimen.transient_taskbar_stroke_width)
107 R.dimen.taskbar_stashed_small_screen in updateStashedHandleWidth()
109 R.dimen.taskbar_stashed_handle_width in updateStashedHandleWidth()
191 res.getDimensionPixelSize(R.dimen.transient_taskbar_bottom_margin).toFloat() in drawTransientBackground()
195 mapRange(scale, 0f, res.getDimension(R.dimen.transient_taskbar_shadow_blur)) in drawTransientBackground()
197 mapRange(scale, 0f, res.getDimension(R.dimen.transient_taskbar_key_shadow_distance)) in drawTransientBackground()
199 bottomMargin = res.getDimensionPixelSize(R.dimen.transient_taskbar_bottom_margin) in drawTransientBackground()
200 shadowBlur = res.getDimension(R.dimen.transient_taskbar_shadow_blur) in drawTransientBackground()
[all …]
DNavbarButtonsViewController.java338 R.dimen.floating_rotation_button_min_margin, in setupController()
339 R.dimen.rounded_corner_content_padding, in setupController()
340 R.dimen.floating_rotation_button_taskbar_left_margin, in setupController()
341 R.dimen.floating_rotation_button_taskbar_bottom_margin, in setupController()
342 R.dimen.floating_rotation_button_diameter, in setupController()
343 R.dimen.key_button_ripple_max_width, in setupController()
398 R.dimen.taskbar_nav_buttons_size); in initButtons()
763 resources.getDimensionPixelSize(R.dimen.taskbar_back_button_suw_start_margin)); in handleSetupUi()
765 R.dimen.taskbar_back_button_suw_bottom_margin); in handleSetupUi()
767 R.dimen.taskbar_back_button_suw_height); in handleSetupUi()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/
DLayoutResourceHelper.java35 public static final int DIMEN_TASKBAR_ICON_SIZE_KIDS = R.dimen.taskbar_icon_size_kids;
42 R.dimen.taskbar_home_button_left_margin_kids;
45 R.dimen.taskbar_back_button_left_margin_kids;
48 R.dimen.taskbar_nav_buttons_width_kids;
51 R.dimen.taskbar_nav_buttons_height_kids;
54 R.dimen.taskbar_nav_buttons_corner_radius_kids;
DPhoneLandscapeNavLayoutter.kt52 resources.getDimensionPixelSize(R.dimen.taskbar_phone_home_button_size) in layoutButtons()
54 resources.getDimensionPixelSize(R.dimen.taskbar_phone_rounded_corner_content_margin) in layoutButtons()
55 val contentPadding = resources.getDimensionPixelSize(R.dimen.taskbar_phone_content_padding) in layoutButtons()
125 resources.getDimensionPixelSize(R.dimen.taskbar_phone_rounded_corner_content_margin) in repositionContextualButtons()
126 val contentPadding = resources.getDimensionPixelSize(R.dimen.taskbar_phone_content_padding) in repositionContextualButtons()
/packages/apps/TV/src/com/android/tv/menu/
DBaseCardView.java74 getResources().getDimension(R.dimen.channel_card_elevation_focused) in BaseCardView()
75 - getResources().getDimension(R.dimen.card_elevation_normal); in BaseCardView()
78 * (getResources().getDimensionPixelOffset(R.dimen.menu_list_padding_top) in BaseCardView()
80 .getDimensionPixelOffset(R.dimen.menu_list_margin_top)); in BaseCardView()
82 setElevation(getResources().getDimension(R.dimen.card_elevation_normal)); in BaseCardView()
83 mCardCornerRadius = getResources().getDimensionPixelSize(R.dimen.channel_card_round_radius); in BaseCardView()
92 mCardImageWidth = getResources().getDimensionPixelSize(R.dimen.card_image_layout_width); in BaseCardView()
93 mCardHeight = getResources().getDimensionPixelSize(R.dimen.card_layout_height); in BaseCardView()
95 getResources().getDimensionPixelSize(R.dimen.card_layout_height_extended); in BaseCardView()
96 mTextViewHeight = getResources().getDimensionPixelSize(R.dimen.card_meta_layout_height); in BaseCardView()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java393 res.getDimensionPixelSize(R.dimen.transient_taskbar_bottom_margin); in DeviceProfile()
396 + (2 * res.getDimensionPixelSize(R.dimen.transient_taskbar_padding))); in DeviceProfile()
406 res.getDimensionPixelSize(R.dimen.transient_taskbar_stashed_height); in DeviceProfile()
410 taskbarIconSize = pxFromDp(ResourcesCompat.getFloat(res, R.dimen.taskbar_icon_size), in DeviceProfile()
412 taskbarHeight = res.getDimensionPixelSize(R.dimen.taskbar_size); in DeviceProfile()
413 stashedTaskbarHeight = res.getDimensionPixelSize(R.dimen.taskbar_stashed_size); in DeviceProfile()
418 edgeMarginPx = res.getDimensionPixelSize(R.dimen.dynamic_grid_edge_margin); in DeviceProfile()
419 workspaceContentScale = res.getFloat(R.dimen.workspace_content_scale); in DeviceProfile()
422 R.dimen.grid_visualization_horizontal_cell_spacing); in DeviceProfile()
424 R.dimen.grid_visualization_vertical_cell_spacing); in DeviceProfile()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DSystemBarConfigs.java199 .getDimensionPixelSize(R.dimen.car_left_system_bar_left_padding); in updateInsetPaddings()
201 .getDimensionPixelSize(R.dimen.car_left_system_bar_right_padding); in updateInsetPaddings()
203 .getDimensionPixelSize(R.dimen.car_left_system_bar_top_padding); in updateInsetPaddings()
205 .getDimensionPixelSize(R.dimen.car_left_system_bar_bottom_padding); in updateInsetPaddings()
210 .getDimensionPixelSize(R.dimen.car_right_system_bar_left_padding); in updateInsetPaddings()
212 .getDimensionPixelSize(R.dimen.car_right_system_bar_right_padding); in updateInsetPaddings()
214 .getDimensionPixelSize(R.dimen.car_right_system_bar_top_padding); in updateInsetPaddings()
216 .getDimensionPixelSize(R.dimen.car_right_system_bar_bottom_padding); in updateInsetPaddings()
221 .getDimensionPixelSize(R.dimen.car_top_system_bar_left_padding); in updateInsetPaddings()
223 .getDimensionPixelSize(R.dimen.car_top_system_bar_right_padding); in updateInsetPaddings()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DSystemBarConfigsTest.java259 when(mResources.getDimensionPixelSize(R.dimen.car_top_system_bar_left_padding)) in updateInsetPaddings_overlappingBars_addsPaddingsByOrders()
261 when(mResources.getDimensionPixelSize(R.dimen.car_top_system_bar_right_padding)) in updateInsetPaddings_overlappingBars_addsPaddingsByOrders()
263 when(mResources.getDimensionPixelSize(R.dimen.car_bottom_system_bar_left_padding)) in updateInsetPaddings_overlappingBars_addsPaddingsByOrders()
265 when(mResources.getDimensionPixelSize(R.dimen.car_bottom_system_bar_right_padding)) in updateInsetPaddings_overlappingBars_addsPaddingsByOrders()
268 when(mResources.getDimensionPixelSize(R.dimen.car_left_system_bar_top_padding)) in updateInsetPaddings_overlappingBars_addsPaddingsByOrders()
270 when(mResources.getDimensionPixelSize(R.dimen.car_left_system_bar_bottom_padding)) in updateInsetPaddings_overlappingBars_addsPaddingsByOrders()
272 when(mResources.getDimensionPixelSize(R.dimen.car_right_system_bar_top_padding)) in updateInsetPaddings_overlappingBars_addsPaddingsByOrders()
274 when(mResources.getDimensionPixelSize(R.dimen.car_right_system_bar_bottom_padding)) in updateInsetPaddings_overlappingBars_addsPaddingsByOrders()
278 R.dimen.car_left_system_bar_width)).thenReturn(SYSTEM_BAR_GIRTH); in updateInsetPaddings_overlappingBars_addsPaddingsByOrders()
280 R.dimen.car_right_system_bar_width)).thenReturn(SYSTEM_BAR_GIRTH); in updateInsetPaddings_overlappingBars_addsPaddingsByOrders()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DIconAppChipView.java164 res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_menu_collapsed_width); in IconAppChipView()
166 res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_menu_expanded_width); in IconAppChipView()
168 res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_menu_collapsed_height); in IconAppChipView()
170 res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_menu_expanded_height); in IconAppChipView()
172 R.dimen.task_thumbnail_icon_menu_expanded_top_start_margin); in IconAppChipView()
174 R.dimen.task_thumbnail_icon_menu_expanded_gap); in IconAppChipView()
178 R.dimen.task_thumbnail_icon_menu_background_margin_top_start); in IconAppChipView()
182 R.dimen.task_thumbnail_icon_menu_app_name_margin_horizontal_collapsed); in IconAppChipView()
183 mArrowMarginEnd = res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_menu_arrow_margin); in IconAppChipView()
185 R.dimen.task_thumbnail_icon_view_start_margin); in IconAppChipView()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/views/
DSnackbar.java94 snackbar.setElevation(res.getDimension(R.dimen.snackbar_elevation)); in show()
95 int padding = res.getDimensionPixelSize(R.dimen.snackbar_padding); in show()
105 params.height = res.getDimensionPixelSize(R.dimen.snackbar_height); in show()
106 int maxMarginLeftRight = res.getDimensionPixelSize(R.dimen.snackbar_max_margin_left_right); in show()
107 int minMarginLeftRight = res.getDimensionPixelSize(R.dimen.snackbar_min_margin_left_right); in show()
108 int marginBottom = res.getDimensionPixelSize(R.dimen.snackbar_margin_bottom); in show()
109 int absoluteMaxWidth = res.getDimensionPixelSize(R.dimen.snackbar_max_width); in show()
157 int textHeight = res.getDimensionPixelSize(R.dimen.snackbar_content_height); in show()
158 float textSizePx = res.getDimension(R.dimen.snackbar_min_text_size); in show()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/bubbles/
DBubbleDismissViewExt.kt34 targetSizeResId = R.dimen.bubblebar_dismiss_target_size, in setup()
35 iconSizeResId = R.dimen.bubblebar_dismiss_target_icon_size, in setup()
36 bottomMarginResId = R.dimen.bubblebar_dismiss_target_bottom_margin, in setup()
37 floatingGradientHeightResId = R.dimen.bubblebar_dismiss_floating_gradient_height, in setup()
DBubbleBarBackground.kt84 strokePaint.strokeWidth = res.getDimension(R.dimen.transient_taskbar_stroke_width)
94 shadowBlur = res.getDimension(R.dimen.transient_taskbar_shadow_blur)
95 keyShadowDistance = res.getDimension(R.dimen.transient_taskbar_key_shadow_distance)
96 arrowWidth = res.getDimension(R.dimen.bubblebar_pointer_width)
97 arrowHeight = res.getDimension(R.dimen.bubblebar_pointer_height)
98 arrowVisibleHeight = res.getDimension(R.dimen.bubblebar_pointer_visible_size)
99 arrowTipRadius = res.getDimension(R.dimen.bubblebar_pointer_radius)
DBubblePinController.kt56 exclRectWidth = context.resources.getDimension(R.dimen.bubblebar_dismiss_zone_width) in <lambda>()
57 exclRectHeight = context.resources.getDimension(R.dimen.bubblebar_dismiss_zone_height) in <lambda>()
60 R.dimen.bubble_expanded_view_drop_target_default_width in <lambda>()
64 R.dimen.bubble_expanded_view_drop_target_default_height in <lambda>()
67 context.resources.getDimensionPixelSize(R.dimen.bubble_expanded_view_drop_target_margin) in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/
DClockViewFactoryImpl.kt99 com.android.systemui.customization.R.dimen.small_clock_height in <lambda>()
112 com.android.systemui.customization.R.dimen.small_clock_padding_top in <lambda>()
117 com.android.systemui.customization.R.dimen.clock_padding_start in <lambda>()
189 com.android.systemui.customization.R.dimen.large_clock_text_size in <lambda>()
200 com.android.systemui.customization.R.dimen.small_clock_text_size in <lambda>()
231 com.android.systemui.customization.R.dimen.keyguard_large_clock_top_margin in <lambda>()
235 com.android.systemui.customization.R.dimen.large_clock_text_size in <lambda>()
250 com.android.systemui.customization.R.dimen.small_clock_height in <lambda>()
/packages/apps/Contacts/src/com/android/contacts/list/
DMultiSelectContactsListFragment.java316 getResources().getDimension(R.dimen.contact_list_header_elevation)); in onScroll()
380 .getDimensionPixelOffset(R.dimen.contact_browser_list_header_icon_size); in bindListHeader()
382 .getDimensionPixelOffset(R.dimen.contact_browser_list_header_icon_size); in bindListHeader()
386 R.dimen.contact_browser_list_header_icon_left_margin), in bindListHeader()
388 R.dimen.contact_browser_list_header_icon_right_margin)); in bindListHeader()
391 .getDimensionPixelOffset(R.dimen.contact_browser_list_header_icon_size_alt); in bindListHeader()
393 .getDimensionPixelOffset(R.dimen.contact_browser_list_header_icon_size_alt); in bindListHeader()
397 R.dimen.contact_browser_list_header_icon_left_margin_alt), in bindListHeader()
399 R.dimen.contact_browser_list_header_icon_right_margin_alt)); in bindListHeader()
436 R.dimen.contact_browser_list_item_padding_top_or_bottom)); in hideHeaderAndAddPadding()
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/view/
DZoomKnob.java53 float textSizePx = mResources.getDimensionPixelSize(R.dimen.zoom_knob_text_size); in initialize()
56 setElevation(mResources.getDimensionPixelSize(R.dimen.zoom_thumb_elevation)); in initialize()
84 lp.bottomMargin = mResources.getDimensionPixelSize(R.dimen.zoom_knob_lift) in setElevated()
85 + (mResources.getDimensionPixelSize(R.dimen.zoom_icon_size) / 2); in setElevated()
/packages/apps/Settings/src/com/android/settings/display/
DConversationMessageView.java112 getResources().getDimensionPixelOffset(R.dimen.message_bubble_left_right_padding); in onMeasure()
187 final int iconInset = getResources().getDimensionPixelOffset(R.dimen.message_icon_inset); in updateViewContent()
196 R.dimen.message_bubble_left_right_padding); in updateViewAppearance()
198 R.dimen.message_text_left_right_padding); in updateViewAppearance()
200 R.dimen.message_text_top_padding); in updateViewAppearance()
202 R.dimen.message_text_bottom_padding); in updateViewAppearance()
215 R.dimen.message_padding_default); in updateViewAppearance()
217 R.dimen.message_metadata_top_padding); in updateViewAppearance()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DTransitionUtils.java36 res.getValue(R.dimen.alpha_activity_in_bkg_start, startAlpha, true); in createActivityFadeInAnimator()
39 res.getValue(R.dimen.alpha_activity_in_bkg_end, endAlpha, true); in createActivityFadeInAnimator()
56 res.getValue(R.dimen.alpha_activity_out_bkg_start, startAlpha, true); in createActivityFadeOutAnimator()
59 res.getValue(R.dimen.alpha_activity_out_bkg_end, endAlpha, true); in createActivityFadeOutAnimator()
/packages/apps/TV/src/com/android/tv/ui/
DChannelBannerView.java241 mResources.getDimensionPixelSize(R.dimen.channel_banner_channel_logo_width); in ChannelBannerView()
243 mResources.getDimensionPixelSize(R.dimen.channel_banner_channel_logo_height); in ChannelBannerView()
245 mResources.getDimensionPixelSize(R.dimen.channel_banner_channel_logo_margin_start); in ChannelBannerView()
247 mResources.getDimensionPixelSize(R.dimen.channel_banner_program_description_width); in ChannelBannerView()
253 mResources.getDimensionPixelOffset(R.dimen.channel_banner_recording_icon_padding); in ChannelBannerView()
477 R.dimen.channel_banner_channel_number_large_text_size, in updateChannelInfo()
478 R.dimen.channel_banner_channel_number_large_margin_top); in updateChannelInfo()
482 R.dimen.channel_banner_channel_number_medium_text_size, in updateChannelInfo()
483 R.dimen.channel_banner_channel_number_medium_margin_top); in updateChannelInfo()
487 R.dimen.channel_banner_channel_number_small_text_size, in updateChannelInfo()
[all …]
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/pagination/
DPageMeasurementHelper.java56 R.dimen.app_grid_width); in PageMeasurementHelper()
58 R.dimen.app_grid_height); in PageMeasurementHelper()
60 R.dimen.app_grid_margin_horizontal); in PageMeasurementHelper()
62 R.dimen.app_grid_margin_vertical); in PageMeasurementHelper()
64 R.dimen.page_indicator_height); in PageMeasurementHelper()

12345678910>>...27