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

Commit 97273853 authored by [D's avatar [D[1;5D
Browse files

Make ViewConfigurationController public

Mockito + Dexmaker cannot mock package-private class, even with the
unit tests being in the same package.

VirtualDeviceManagerServiceTest is failing locally with:

UnsupportedOperationException: cannot proxy inaccessible class class
com.android.server.companion.virtual.ViewConfigurationController

Bug: 263231559
Test: atest
Flag: EXEMPT no-op
Change-Id: I6effd6d6f9e00d6a931479183d98b96c74ad6ab4
parent 60403a35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ import java.util.Objects;
/**
 * Controls the application of {@link ViewConfigurationParams} for a virtual device.
 */
class ViewConfigurationController {
public class ViewConfigurationController {

    private static final String TAG = "ViewConfigurationController";
    private static final String FRAMEWORK_PACKAGE_NAME = "android";