Loading packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/anc/ui/composable/AncPopup.kt +2 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package com.android.systemui.volume.panel.component.anc.ui.composable import android.content.Context import android.view.ContextThemeWrapper import android.view.View import androidx.compose.foundation.basicMarquee import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text Loading Loading @@ -55,6 +56,7 @@ constructor( @Composable private fun Title() { Text( modifier = Modifier.basicMarquee(), text = stringResource(R.string.volume_panel_noise_control_title), style = MaterialTheme.typography.titleMedium, textAlign = TextAlign.Center, Loading packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/ButtonComponent.kt +3 −4 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.systemui.volume.panel.component.button.ui.composable import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.basicMarquee import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column Loading @@ -37,7 +38,6 @@ import androidx.compose.ui.semantics.clearAndSetSemantics import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.role import androidx.compose.ui.semantics.semantics import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import com.android.compose.animation.Expandable import com.android.systemui.animation.Expandable Loading Loading @@ -81,11 +81,10 @@ class ButtonComponent( } } Text( modifier = Modifier.clearAndSetSemantics {}, modifier = Modifier.clearAndSetSemantics {}.basicMarquee(), text = label, style = MaterialTheme.typography.labelMedium, maxLines = 1, overflow = TextOverflow.Ellipsis, maxLines = 2, ) } } Loading packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/ToggleButtonComponent.kt +3 −4 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.systemui.volume.panel.component.button.ui.composable import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.basicMarquee import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth Loading @@ -37,7 +38,6 @@ import androidx.compose.ui.semantics.clearAndSetSemantics import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.role import androidx.compose.ui.semantics.semantics import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import com.android.systemui.common.ui.compose.Icon import com.android.systemui.volume.panel.component.button.ui.viewmodel.ToggleButtonViewModel Loading Loading @@ -83,11 +83,10 @@ class ToggleButtonComponent( Icon(modifier = Modifier.size(24.dp), icon = viewModel.icon) } Text( modifier = Modifier.clearAndSetSemantics {}, modifier = Modifier.clearAndSetSemantics {}.basicMarquee(), text = label, style = MaterialTheme.typography.labelMedium, maxLines = 1, overflow = TextOverflow.Ellipsis, maxLines = 2, ) } } Loading packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/selector/ui/composable/VolumePanelRadioButtons.kt +4 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import androidx.compose.animation.core.VectorConverter import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.RowScope import androidx.compose.foundation.layout.Spacer Loading Loading @@ -141,9 +142,12 @@ fun VolumePanelRadioButtonBar( horizontalArrangement = Arrangement.spacedBy(spacing), ) { for (itemIndex in items.indices) { val cornersRadius = 4.dp TextButton( modifier = Modifier.weight(1f), onClick = { items[itemIndex].onItemSelected() }, shape = RoundedCornerShape(cornersRadius), contentPadding = PaddingValues(cornersRadius) ) { val item = items[itemIndex] if (item.icon !== Empty) { Loading packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/spatialaudio/ui/composable/SpatialAudioPopup.kt +6 −0 Original line number Diff line number Diff line Loading @@ -16,12 +16,14 @@ package com.android.systemui.volume.panel.component.spatialaudio.ui.composable import androidx.compose.foundation.basicMarquee import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.SideEffect import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextAlign import com.android.systemui.animation.Expandable Loading Loading @@ -49,6 +51,7 @@ constructor( @Composable private fun Title() { Text( modifier = Modifier.basicMarquee(), text = stringResource(R.string.volume_panel_spatial_audio_title), style = MaterialTheme.typography.titleMedium, textAlign = TextAlign.Center, Loading Loading @@ -82,9 +85,12 @@ constructor( }, label = { Text( modifier = Modifier.basicMarquee(), text = buttonViewModel.button.label.toString(), style = MaterialTheme.typography.labelMedium, color = buttonViewModel.labelColor.toColor(), textAlign = TextAlign.Center, maxLines = 2 ) } ) Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/anc/ui/composable/AncPopup.kt +2 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package com.android.systemui.volume.panel.component.anc.ui.composable import android.content.Context import android.view.ContextThemeWrapper import android.view.View import androidx.compose.foundation.basicMarquee import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text Loading Loading @@ -55,6 +56,7 @@ constructor( @Composable private fun Title() { Text( modifier = Modifier.basicMarquee(), text = stringResource(R.string.volume_panel_noise_control_title), style = MaterialTheme.typography.titleMedium, textAlign = TextAlign.Center, Loading
packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/ButtonComponent.kt +3 −4 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.systemui.volume.panel.component.button.ui.composable import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.basicMarquee import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column Loading @@ -37,7 +38,6 @@ import androidx.compose.ui.semantics.clearAndSetSemantics import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.role import androidx.compose.ui.semantics.semantics import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import com.android.compose.animation.Expandable import com.android.systemui.animation.Expandable Loading Loading @@ -81,11 +81,10 @@ class ButtonComponent( } } Text( modifier = Modifier.clearAndSetSemantics {}, modifier = Modifier.clearAndSetSemantics {}.basicMarquee(), text = label, style = MaterialTheme.typography.labelMedium, maxLines = 1, overflow = TextOverflow.Ellipsis, maxLines = 2, ) } } Loading
packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/ToggleButtonComponent.kt +3 −4 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.systemui.volume.panel.component.button.ui.composable import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.basicMarquee import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth Loading @@ -37,7 +38,6 @@ import androidx.compose.ui.semantics.clearAndSetSemantics import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.role import androidx.compose.ui.semantics.semantics import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import com.android.systemui.common.ui.compose.Icon import com.android.systemui.volume.panel.component.button.ui.viewmodel.ToggleButtonViewModel Loading Loading @@ -83,11 +83,10 @@ class ToggleButtonComponent( Icon(modifier = Modifier.size(24.dp), icon = viewModel.icon) } Text( modifier = Modifier.clearAndSetSemantics {}, modifier = Modifier.clearAndSetSemantics {}.basicMarquee(), text = label, style = MaterialTheme.typography.labelMedium, maxLines = 1, overflow = TextOverflow.Ellipsis, maxLines = 2, ) } } Loading
packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/selector/ui/composable/VolumePanelRadioButtons.kt +4 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import androidx.compose.animation.core.VectorConverter import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.RowScope import androidx.compose.foundation.layout.Spacer Loading Loading @@ -141,9 +142,12 @@ fun VolumePanelRadioButtonBar( horizontalArrangement = Arrangement.spacedBy(spacing), ) { for (itemIndex in items.indices) { val cornersRadius = 4.dp TextButton( modifier = Modifier.weight(1f), onClick = { items[itemIndex].onItemSelected() }, shape = RoundedCornerShape(cornersRadius), contentPadding = PaddingValues(cornersRadius) ) { val item = items[itemIndex] if (item.icon !== Empty) { Loading
packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/spatialaudio/ui/composable/SpatialAudioPopup.kt +6 −0 Original line number Diff line number Diff line Loading @@ -16,12 +16,14 @@ package com.android.systemui.volume.panel.component.spatialaudio.ui.composable import androidx.compose.foundation.basicMarquee import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.SideEffect import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextAlign import com.android.systemui.animation.Expandable Loading Loading @@ -49,6 +51,7 @@ constructor( @Composable private fun Title() { Text( modifier = Modifier.basicMarquee(), text = stringResource(R.string.volume_panel_spatial_audio_title), style = MaterialTheme.typography.titleMedium, textAlign = TextAlign.Center, Loading Loading @@ -82,9 +85,12 @@ constructor( }, label = { Text( modifier = Modifier.basicMarquee(), text = buttonViewModel.button.label.toString(), style = MaterialTheme.typography.labelMedium, color = buttonViewModel.labelColor.toColor(), textAlign = TextAlign.Center, maxLines = 2 ) } ) Loading