Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf249195 authored by Anton Potapov's avatar Anton Potapov
Browse files

Setup Volume Panel infra

This CL achieves:
 - VolumePanelActivity which displays the Volume Panel;
 - Dagger infrastructure set up. Dependencies are split into logical
   modules for easy substitution.
 - Volume Panel components can be provided by the interactor and passed
   down to the View Model to be displayed.

Bug: 318080198
Flag: aconfig new_volume_panel DISABLED
Test: to be delivered in a future CL
Change-Id: I7f01e0a60417ea41261466224052612d341bb460
parent b8917ff0
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.systemui.volume.panel.domain.interactor

class ComponentsInteractorTest {

    // TODO(b/318080198) Write tests
}
+22 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.systemui.volume.panel.ui.viewmodel

class DefaultComponentsLayoutManagerTest {

    // TODO(b/318080198) Write tests
}
+22 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.systemui.volume.panel.ui.viewmodel

class VolumePanelViewModelTest {

    // TODO(b/318080198) Write tests
}
+5 −0
Original line number Diff line number Diff line
@@ -608,6 +608,11 @@
    <dimen name="volume_panel_slice_vertical_padding">8dp</dimen>
    <dimen name="volume_panel_slice_horizontal_padding">24dp</dimen>

    <dimen name="volume_panel_corner_radius">52dp</dimen>
    <dimen name="volume_panel_content_padding">24dp</dimen>
    <dimen name="volume_panel_bottom_bar_horizontal_padding">24dp</dimen>
    <dimen name="volume_panel_bottom_bar_bottom_padding">20dp</dimen>

    <!-- Size of each item in the ringer selector drawer. -->
    <dimen name="volume_ringer_drawer_item_size">42dp</dimen>
    <dimen name="volume_ringer_drawer_item_size_half">21dp</dimen>
+9 −0
Original line number Diff line number Diff line
@@ -930,6 +930,15 @@
        <item name="wallpaperTextColor">@*android:color/primary_text_material_dark</item>
    </style>

    <style name="Theme.VolumePanelActivity" parent="@style/Theme.SystemUI">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <!-- Setting a placeholder will avoid using the SystemUI icon on the splash screen.  -->
        <item name="android:windowSplashScreenAnimatedIcon">@drawable/ic_blank</item>
    </style>

    <style name="Theme.UserSwitcherFullscreenDialog" parent="@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen">
        <item name="android:statusBarColor">@color/user_switcher_fullscreen_bg</item>
        <item name="android:windowBackground">@color/user_switcher_fullscreen_bg</item>
Loading