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

Commit 6f9ddb4b authored by Bill Lin's avatar Bill Lin
Browse files

Sysui-infra for one handed mode (1/N)

Build infrastructure for one handed mode and DisplayAreaOrganizer

Test: make SystemUI
Test: atest OneHandedDisplayAreaOrganizerTest
Test: atest OneHandedManagerImplTest
Test: atest OneHandedUITest
Test: atest SystemUITests

Bug: 150747909
Change-Id: I8e8d0b2d1f84d3f5953ca762aadcfa27a306aaab
parent b3153cd4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import com.android.systemui.car.window.SystemUIOverlayWindowManager;
import com.android.systemui.globalactions.GlobalActionsComponent;
import com.android.systemui.keyguard.KeyguardViewMediator;
import com.android.systemui.keyguard.dagger.KeyguardModule;
import com.android.systemui.onehanded.OneHandedUI;
import com.android.systemui.pip.PipUI;
import com.android.systemui.power.PowerUI;
import com.android.systemui.recents.Recents;
@@ -102,6 +103,12 @@ public abstract class CarSystemUIBinder {
    @ClassKey(LatencyTester.class)
    public abstract SystemUI bindLatencyTester(LatencyTester sysui);

    /** Inject into OneHandedUI. */
    @Binds
    @IntoMap
    @ClassKey(OneHandedUI.class)
    public abstract SystemUI bindOneHandedUI(OneHandedUI sysui);

    /** Inject into PipUI. */
    @Binds
    @IntoMap
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import com.android.systemui.dagger.DependencyProvider;
import com.android.systemui.dagger.SystemServicesModule;
import com.android.systemui.dagger.SystemUIModule;
import com.android.systemui.dagger.SystemUIRootComponent;
import com.android.systemui.onehanded.dagger.OneHandedModule;
import com.android.systemui.pip.phone.dagger.PipModule;

import javax.inject.Singleton;
@@ -34,6 +35,7 @@ import dagger.Component;
                DependencyProvider.class,
                DependencyBinder.class,
                PipModule.class,
                OneHandedModule.class,
                SystemUIFactory.ContextHolder.class,
                SystemServicesModule.class,
                SystemUIModule.class,
+4 −0
Original line number Diff line number Diff line
@@ -116,6 +116,10 @@ Plays ringtones.

Shows UI for keyboard shortcuts (triggered by keyboard shortcut).

### [com.android.systemui.onehanded.OneHandedUI](/packages/SystemUI/src/com/android/systemui/onehanded/OneHandedUI.java)

Shows the overlay controls when One handed is triggered.

### [com.android.systemui.pip.PipUI](/packages/SystemUI/src/com/android/systemui/pip/PipUI.java)

Shows the overlay controls when Pip is showing.
+1 −0
Original line number Diff line number Diff line
@@ -41,5 +41,6 @@
        <item>com.android.systemui.SizeCompatModeActivityController</item>
        <item>com.android.systemui.statusbar.notification.InstantAppNotifier</item>
        <item>com.android.systemui.toast.ToastUI</item>
        <item>com.android.systemui.onehanded.OneHandedUI</item>
    </string-array>
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -322,6 +322,7 @@
        <item>com.android.systemui.accessibility.WindowMagnification</item>
        <item>com.android.systemui.accessibility.SystemActions</item>
        <item>com.android.systemui.toast.ToastUI</item>
        <item>com.android.systemui.onehanded.OneHandedUI</item>
    </string-array>

    <!-- QS tile shape store width. negative implies fill configuration instead of stroke-->
Loading