Home
last modified time | relevance | path

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

12345678910>>...27

/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DEdgePanelParams.kt145 arrowThickness = getDimen(R.dimen.navigation_edge_arrow_thickness) in update()
146 arrowPaddingEnd = getPx(R.dimen.navigation_edge_panel_padding) in update()
147 minArrowYPosition = getPx(R.dimen.navigation_edge_arrow_min_y) in update()
148 fingerOffset = getPx(R.dimen.navigation_edge_finger_offset) in update()
149 staticTriggerThreshold = getDimen(R.dimen.navigation_edge_action_drag_threshold) in update()
151 getDimen(R.dimen.navigation_edge_action_reactivation_drag_threshold) in update()
153 getDimen(R.dimen.navigation_edge_action_deactivation_drag_threshold) in update()
155 swipeProgressThreshold = getDimen(R.dimen.navigation_edge_action_progress_threshold) in update()
193 horizontalTranslation = getDimen(R.dimen.navigation_edge_entry_margin), in update()
194 scale = getDimenFloat(R.dimen.navigation_edge_entry_scale), in update()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/dagger/
DDreamHomeControlsComplicationComponent.java101 R.dimen.dream_overlay_bottom_affordance_key_text_shadow_radius, in providesHomeControlsBackground()
102 R.dimen.dream_overlay_bottom_affordance_key_text_shadow_dx, in providesHomeControlsBackground()
103 R.dimen.dream_overlay_bottom_affordance_key_text_shadow_dy, in providesHomeControlsBackground()
104 R.dimen.dream_overlay_bottom_affordance_key_shadow_alpha in providesHomeControlsBackground()
108 R.dimen.dream_overlay_bottom_affordance_ambient_text_shadow_radius, in providesHomeControlsBackground()
109 R.dimen.dream_overlay_bottom_affordance_ambient_text_shadow_dx, in providesHomeControlsBackground()
110 R.dimen.dream_overlay_bottom_affordance_ambient_text_shadow_dy, in providesHomeControlsBackground()
111 R.dimen.dream_overlay_bottom_affordance_ambient_shadow_alpha in providesHomeControlsBackground()
115 R.dimen.dream_overlay_bottom_affordance_width), in providesHomeControlsBackground()
116 resources.getDimensionPixelSize(R.dimen.dream_overlay_bottom_affordance_inset) in providesHomeControlsBackground()
DOpenHubComplicationComponent.java108 R.dimen.dream_overlay_bottom_affordance_key_text_shadow_radius, in providesOpenHubBackground()
109 R.dimen.dream_overlay_bottom_affordance_key_text_shadow_dx, in providesOpenHubBackground()
110 R.dimen.dream_overlay_bottom_affordance_key_text_shadow_dy, in providesOpenHubBackground()
111 R.dimen.dream_overlay_bottom_affordance_key_shadow_alpha in providesOpenHubBackground()
115 R.dimen.dream_overlay_bottom_affordance_ambient_text_shadow_radius, in providesOpenHubBackground()
116 R.dimen.dream_overlay_bottom_affordance_ambient_text_shadow_dx, in providesOpenHubBackground()
117 R.dimen.dream_overlay_bottom_affordance_ambient_text_shadow_dy, in providesOpenHubBackground()
118 R.dimen.dream_overlay_bottom_affordance_ambient_shadow_alpha in providesOpenHubBackground()
122 R.dimen.dream_overlay_bottom_affordance_width), in providesOpenHubBackground()
123 resources.getDimensionPixelSize(R.dimen.dream_overlay_bottom_affordance_inset) in providesOpenHubBackground()
DComplicationHostViewModule.java72 return resources.getDimensionPixelSize(R.dimen.dream_overlay_complication_margin); in providesComplicationPadding()
78 return resources.getDimensionPixelSize(R.dimen.dream_overlay_container_padding_start); in providesComplicationMarginPositionStart()
84 return resources.getDimensionPixelSize(R.dimen.dream_overlay_container_padding_top); in providesComplicationMarginPositionTop()
90 return resources.getDimensionPixelSize(R.dimen.dream_overlay_container_padding_end); in providesComplicationMarginPositionEnd()
96 return resources.getDimensionPixelSize(R.dimen.dream_overlay_container_padding_bottom); in providesComplicationMarginPositionBottom()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunablePadding.java57 int dimen = mDefaultSize; in onTuningChanged() local
60 dimen = (int) (Integer.parseInt(newValue) * mDensity); in onTuningChanged()
65 mView.setPadding(getPadding(dimen, left), getPadding(dimen, FLAG_TOP), in onTuningChanged()
66 getPadding(dimen, right), getPadding(dimen, FLAG_BOTTOM)); in onTuningChanged()
69 private int getPadding(int dimen, int flag) { in getPadding() argument
70 return ((mFlags & flag) != 0) ? dimen : 0; in getPadding()
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java90 res.getValue(R.dimen.resource_cache_test_generic, staticValue, true); in testVoidConfigChange()
112 res.getValue(R.dimen.resource_cache_test_orientation_dependent, changingValue, true); in testEffectiveConfigChange()
137 res.getValue(R.dimen.resource_cache_test_generic, staticValue, true); in testConfigChangeMultipleResources()
138 res.getValue(R.dimen.resource_cache_test_orientation_dependent, changingValue, true); in testConfigChangeMultipleResources()
142 mCache.put(R.dimen.resource_cache_test_generic, getActivity().getTheme(), in testConfigChangeMultipleResources()
145 mCache.put(R.dimen.resource_cache_test_orientation_dependent, getActivity().getTheme(), in testConfigChangeMultipleResources()
154 assertEquals(staticDim, mCache.getInstance(R.dimen.resource_cache_test_generic, res, in testConfigChangeMultipleResources()
157 mCache.getInstance(R.dimen.resource_cache_test_orientation_dependent, res, in testConfigChangeMultipleResources()
160 assertEquals(staticDim, mCache.getInstance(R.dimen.resource_cache_test_generic, res, in testConfigChangeMultipleResources()
162 assertNull(mCache.getInstance(R.dimen.resource_cache_test_orientation_dependent, res, in testConfigChangeMultipleResources()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DNotificationsQSContainerControllerTest.kt128 overrideResource(R.dimen.split_shade_notifications_scrim_margin_bottom, SCRIM_MARGIN) in setup()
129 overrideResource(R.dimen.notification_panel_margin_bottom, NOTIFICATIONS_MARGIN) in setup()
131 overrideResource(R.dimen.qs_footer_actions_bottom_padding, FOOTER_ACTIONS_PADDING) in setup()
132 overrideResource(R.dimen.qs_footer_action_inset, FOOTER_ACTIONS_INSET) in setup()
152 overrideResource(R.dimen.qs_header_height, 10) in testSmallScreen_updateResources_splitShadeHeightIsSet()
153 overrideResource(R.dimen.large_screen_shade_header_height, 20) in testSmallScreen_updateResources_splitShadeHeightIsSet()
156 overrideResource(R.dimen.large_screen_shade_header_min_height, 1) in testSmallScreen_updateResources_splitShadeHeightIsSet()
157 overrideResource(R.dimen.new_qs_header_non_clickable_element_height, 1) in testSmallScreen_updateResources_splitShadeHeightIsSet()
173 overrideResource(R.dimen.qs_header_height, 10) in testLargeScreen_updateResources_refactorFlagOff_splitShadeHeightIsSet_basedOnResource()
174 overrideResource(R.dimen.large_screen_shade_header_height, resourceHeight) in testLargeScreen_updateResources_refactorFlagOff_splitShadeHeightIsSet_basedOnResource()
[all …]
DNotificationsQSContainerControllerLegacyTest.kt130 overrideResource(R.dimen.split_shade_notifications_scrim_margin_bottom, SCRIM_MARGIN) in setup()
131 overrideResource(R.dimen.notification_panel_margin_bottom, NOTIFICATIONS_MARGIN) in setup()
133 overrideResource(R.dimen.qs_footer_actions_bottom_padding, FOOTER_ACTIONS_PADDING) in setup()
134 overrideResource(R.dimen.qs_footer_action_inset, FOOTER_ACTIONS_INSET) in setup()
154 overrideResource(R.dimen.qs_header_height, 10) in testSmallScreen_updateResources_splitShadeHeightIsSet()
155 overrideResource(R.dimen.large_screen_shade_header_height, 20) in testSmallScreen_updateResources_splitShadeHeightIsSet()
158 overrideResource(R.dimen.large_screen_shade_header_min_height, 1) in testSmallScreen_updateResources_splitShadeHeightIsSet()
159 overrideResource(R.dimen.new_qs_header_non_clickable_element_height, 1) in testSmallScreen_updateResources_splitShadeHeightIsSet()
176 overrideResource(R.dimen.qs_header_height, 10) in testLargeScreen_updateResources_refactorFlagOff_splitShadeHeightIsSetBasedOnResource()
177 overrideResource(R.dimen.large_screen_shade_header_height, headerResourceHeight) in testLargeScreen_updateResources_refactorFlagOff_splitShadeHeightIsSetBasedOnResource()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewAppearance.java91 mMargin = mRes.getDimensionPixelSize(R.dimen.accessibility_floating_menu_margin); in update()
93 mRes.getDimensionPixelSize(R.dimen.accessibility_floating_menu_small_padding); in update()
95 mRes.getDimensionPixelSize(R.dimen.accessibility_floating_menu_large_padding); in update()
97 mRes.getDimensionPixelSize(R.dimen.accessibility_floating_menu_small_width_height); in update()
99 mRes.getDimensionPixelSize(R.dimen.accessibility_floating_menu_large_width_height); in update()
101 mRes.getDimensionPixelSize(R.dimen.accessibility_floating_menu_small_single_radius); in update()
103 R.dimen.accessibility_floating_menu_small_multiple_radius); in update()
106 mRes.getDimensionPixelSize(R.dimen.accessibility_floating_menu_large_single_radius); in update()
108 R.dimen.accessibility_floating_menu_large_multiple_radius); in update()
109 mStrokeWidth = mRes.getDimensionPixelSize(R.dimen.accessibility_floating_menu_stroke_width); in update()
[all …]
DMenuMessageView.java145 R.dimen.accessibility_floating_menu_message_container_horizontal_padding); in updateResources()
147 R.dimen.accessibility_floating_menu_message_margin); in updateResources()
155 res.getDimensionPixelSize(R.dimen.accessibility_floating_menu_message_min_width)); in updateResources()
157 res.getDimensionPixelSize(R.dimen.accessibility_floating_menu_message_min_height)); in updateResources()
159 res.getDimensionPixelSize(R.dimen.accessibility_floating_menu_message_elevation)); in updateResources()
163 R.dimen.accessibility_floating_menu_message_text_vertical_padding); in updateResources()
166 R.dimen.accessibility_floating_menu_message_text_size); in updateResources()
DMenuEduTooltipView.java137 res.getDimensionPixelSize(R.dimen.accessibility_floating_tooltip_arrow_width); in updateResources()
139 res.getDimensionPixelSize(R.dimen.accessibility_floating_tooltip_arrow_height); in updateResources()
142 R.dimen.accessibility_floating_tooltip_arrow_margin); in updateResources()
145 R.dimen.accessibility_floating_tooltip_arrow_corner_radius); in updateResources()
147 res.getDimensionPixelSize(R.dimen.accessibility_floating_tooltip_font_size); in updateResources()
149 res.getDimensionPixelSize(R.dimen.accessibility_floating_tooltip_margin); in updateResources()
151 res.getDimensionPixelSize(R.dimen.accessibility_floating_tooltip_padding); in updateResources()
154 R.dimen.accessibility_floating_tooltip_text_corner_radius); in updateResources()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DSensorModule.java55 .setThresholdResourceId(R.dimen.proximity_sensor_threshold) in providePrimaryProximitySensor()
56 .setThresholdLatchResourceId(R.dimen.proximity_sensor_threshold_latch) in providePrimaryProximitySensor()
76 .setThresholdResourceId(R.dimen.proximity_sensor_secondary_threshold) in provideSecondaryProximitySensor()
77 .setThresholdLatchResourceId(R.dimen.proximity_sensor_secondary_threshold_latch) in provideSecondaryProximitySensor()
125 R.dimen.proximity_sensor_threshold, in providePostureToProximitySensorMapping()
126 R.dimen.proximity_sensor_threshold_latch in providePostureToProximitySensorMapping()
140 R.dimen.proximity_sensor_secondary_threshold, in providePostureToSecondaryProximitySensorMapping()
141 R.dimen.proximity_sensor_secondary_threshold_latch in providePostureToSecondaryProximitySensorMapping()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DGlifDimensionTest.java67 .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()
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/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DDismissViewExt.kt26 targetSizeResId = R.dimen.dismiss_circle_size, in setup()
27 iconSizeResId = R.dimen.dismiss_target_x_size, in setup()
28 bottomMarginResId = R.dimen.floating_dismiss_bottom_margin, in setup()
29 floatingGradientHeightResId = R.dimen.floating_dismiss_gradient_height, in setup()
DBubblePositioner.java144 mBubbleSize = res.getDimensionPixelSize(R.dimen.bubble_size); in updateInternal()
145 mSpacingBetweenBubbles = res.getDimensionPixelSize(R.dimen.bubble_spacing); in updateInternal()
147 mExpandedViewPadding = res.getDimensionPixelSize(R.dimen.bubble_expanded_view_padding); in updateInternal()
148 mBubblePaddingTop = res.getDimensionPixelSize(R.dimen.bubble_padding_top); in updateInternal()
149 mBubbleOffscreenAmount = res.getDimensionPixelSize(R.dimen.bubble_stack_offscreen); in updateInternal()
150 mStackOffset = res.getDimensionPixelSize(R.dimen.bubble_stack_offset); in updateInternal()
151 mBubbleElevation = res.getDimensionPixelSize(R.dimen.bubble_elevation); in updateInternal()
155 res.getDimensionPixelSize(R.dimen.bubble_bar_expanded_view_width), in updateInternal()
163 res.getDimensionPixelSize(R.dimen.bubble_expanded_view_largescreen_width); in updateInternal()
172 R.dimen.bubble_expanded_view_largescreen_landscape_padding); in updateInternal()
[all …]
DBubblePopupViewExt.kt40 contentPadding = res.getDimensionPixelSize(R.dimen.bubble_popup_padding), in BubblePopupView()
41 arrowWidth = res.getDimension(R.dimen.bubble_popup_arrow_width), in BubblePopupView()
42 arrowHeight = res.getDimension(R.dimen.bubble_popup_arrow_height), in BubblePopupView()
43 arrowRadius = res.getDimension(R.dimen.bubble_popup_arrow_corner_radius) in BubblePopupView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/
DKeyguardPreviewSmartspaceViewModel.kt67 com.android.systemui.customization.R.dimen.small_clock_height in <lambda>()
81 getDimensionPixelSize(R.dimen.keyguard_split_shade_top_margin) in <lambda>()
83 getDimensionPixelSize(R.dimen.keyguard_clock_top_margin) + in <lambda>()
84 getDimensionPixelSize(R.dimen.status_bar_header_height_keyguard) + in <lambda>()
85 getDimensionPixelSize(R.dimen.keyguard_smartspace_top_offset) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/
DSeekBarObserver.kt53 R.dimen.qs_media_enabled_seekbar_height
57 R.dimen.qs_media_disabled_seekbar_height
61 R.dimen.qs_media_session_enabled_seekbar_vertical_padding
65 R.dimen.qs_media_session_disabled_seekbar_vertical_padding
73 .getDimensionPixelSize(R.dimen.qs_media_seekbar_progress_wavelength)
77 .getDimensionPixelSize(R.dimen.qs_media_seekbar_progress_amplitude)
81 .getDimensionPixelSize(R.dimen.qs_media_seekbar_progress_phase)
85 .getDimensionPixelSize(R.dimen.qs_media_seekbar_progress_stroke_width)
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleTileViewHelper.java237 int defaultWidth = getSizeInDp(context, R.dimen.default_width, density); in getWidgetSizes()
238 int defaultHeight = getSizeInDp(context, R.dimen.default_height, density); in getWidgetSizes()
359 textSizeResId = R.dimen.content_text_size_for_large; in setMaxLines()
360 nameHeight = getLineHeightFromResource(R.dimen.name_text_size_for_large_content); in setMaxLines()
362 textSizeResId = R.dimen.content_text_size_for_medium; in setMaxLines()
363 nameHeight = getLineHeightFromResource(R.dimen.name_text_size_for_medium_content); in setMaxLines()
388 R.dimen.content_text_size_for_medium); in getLineHeightFromResource()
409 R.dimen.max_people_avatar_size_for_large_content) + lineHeight in getContentHeightForLayout()
418 if (mHeight >= getSizeInDp(R.dimen.required_height_for_large) in getLayoutSize()
419 && mWidth >= getSizeInDp(R.dimen.required_width_for_large)) { in getLayoutSize()
[all …]
/frameworks/libs/systemui/toruslib/torus-wallpaper-settings/src/main/java/com/google/android/torus/settings/inlinecontrol/
DColorChipsRowBuilder.kt67 val iconHeight = res.getDimensionPixelSize(R.dimen.slice_icon_height) in create()
68 val iconWidth = res.getDimensionPixelSize(R.dimen.slice_icon_width) in create()
153 val iconHeight = res.getDimensionPixelSize(R.dimen.slice_icon_height) in makeColorOption()
154 val iconWidth = res.getDimensionPixelSize(R.dimen.slice_icon_width) in makeColorOption()
155 val colorChipHeight = res.getDimensionPixelSize(R.dimen.color_chips_height) in makeColorOption()
156 val colorChipPenWidth = res.getDimensionPixelSize(R.dimen.color_chips_pen_width) in makeColorOption()
157 val iconOnSize = res.getDimensionPixelSize(R.dimen.torus_slice_vector_icon_on_size) in makeColorOption()
159 res.getDimensionPixelSize(R.dimen.torus_slice_vector_icon_off_size) in makeColorOption()
161 res.getDimensionPixelSize(R.dimen.torus_slice_vector_icon_on_size) in makeColorOption()
/frameworks/base/core/java/android/view/
DViewConfiguration.java470 com.android.internal.R.dimen.config_scrollbarSize); in ViewConfiguration()
476 com.android.internal.R.dimen.config_ambiguousGestureMultiplier, in ViewConfiguration()
520 com.android.internal.R.dimen.config_viewConfigurationTouchSlop); in ViewConfiguration()
522 com.android.internal.R.dimen.config_viewConfigurationHandwritingSlop); in ViewConfiguration()
524 com.android.internal.R.dimen.config_viewConfigurationHoverSlop); in ViewConfiguration()
526 com.android.internal.R.dimen.config_minScrollbarTouchTarget); in ViewConfiguration()
532 com.android.internal.R.dimen.config_viewConfigurationHandwritingGestureLineMargin); in ViewConfiguration()
535 com.android.internal.R.dimen.config_viewMinFlingVelocity); in ViewConfiguration()
537 com.android.internal.R.dimen.config_viewMaxFlingVelocity); in ViewConfiguration()
540 com.android.internal.R.dimen.config_viewMinRotaryEncoderFlingVelocity); in ViewConfiguration()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/statusbar/ui/
DAmbientStatusBarView.java103 R.dimen.dream_overlay_status_bar_key_text_shadow_radius, in onFinishInflate()
104 R.dimen.dream_overlay_status_bar_key_text_shadow_dx, in onFinishInflate()
105 R.dimen.dream_overlay_status_bar_key_text_shadow_dy, in onFinishInflate()
110 R.dimen.dream_overlay_status_bar_ambient_text_shadow_radius, in onFinishInflate()
111 R.dimen.dream_overlay_status_bar_ambient_text_shadow_dx, in onFinishInflate()
112 R.dimen.dream_overlay_status_bar_ambient_text_shadow_dy, in onFinishInflate()
118 .getDimensionPixelSize(R.dimen.dream_overlay_status_bar_icon_size); in onFinishInflate()
121 .getDimensionPixelSize(R.dimen.dream_overlay_icon_inset_dimen); in onFinishInflate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/backlight/ui/view/
DKeyboardBacklightDialog.kt127 getDimensionPixelSize(R.dimen.backlight_indicator_root_corner_radius) in <lambda>()
130 getDimensionPixelSize(R.dimen.backlight_indicator_root_vertical_padding), in <lambda>()
132 getDimensionPixelSize(R.dimen.backlight_indicator_root_horizontal_padding) in <lambda>()
136 width = getDimensionPixelSize(R.dimen.backlight_indicator_icon_width), in <lambda>()
137 height = getDimensionPixelSize(R.dimen.backlight_indicator_icon_height), in <lambda>()
138 padding = getDimensionPixelSize(R.dimen.backlight_indicator_icon_padding), in <lambda>()
142 width = getDimensionPixelSize(R.dimen.backlight_indicator_step_width), in <lambda>()
143 height = getDimensionPixelSize(R.dimen.backlight_indicator_step_height), in <lambda>()
145 getDimensionPixelSize(R.dimen.backlight_indicator_step_horizontal_margin), in <lambda>()
147 getDimensionPixelSize(R.dimen.backlight_indicator_step_small_radius) in <lambda>()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPhoneSizeSpecSource.kt97 R.dimen.default_minimal_size_pip_resizable_task) in reloadResources()
99 R.dimen.overridable_minimal_size_pip_resizable_task) in reloadResources()
102 R.dimen.config_pipSystemPreferredDefaultSizePercent) in reloadResources()
104 R.dimen.config_pipSystemPreferredMinimumSizePercent) in reloadResources()
107 R.dimen.config_pipSquareDisplayThresholdForSystemPreferredSize) in reloadResources()
109 R.dimen.config_pipSystemPreferredDefaultSizePercentForSquareDisplay) in reloadResources()
111 R.dimen.config_pipSystemPreferredMinimumSizePercentForSquareDisplay) in reloadResources()
113 val requestedOptAspRatio = res.getFloat(R.dimen.config_pipLargeScreenOptimizedAspectRatio) in reloadResources()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/
DGainmapDecodeTest.kt84 val dimen = minOf(info.size.width, info.size.height) in decode() constant
85 decoder.crop = Rect(50, 50, dimen - 100, dimen - 100) in decode()
92 val dimen = minOf(targetWidth, targetHeight) in decode() constant
93 decoder.crop = Rect(50, 50, dimen - 100, dimen - 100) in decode()

12345678910>>...27