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

Commit 22f79f25 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix broken test case 'testOverlayInfoStateTransitions'" into qt-dev

parents e9635d80 c49d524b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -45,8 +45,7 @@ public final class OverlayInfo implements Parcelable {
            STATE_DISABLED,
            STATE_ENABLED,
            STATE_ENABLED_STATIC,
            // @Deprecated STATE_TARGET_UPGRADING,
            STATE_TARGET_IS_BEING_REPLACED,
            // @Deprecated STATE_TARGET_IS_BEING_REPLACED,
            STATE_OVERLAY_IS_BEING_REPLACED,
    })
    /** @hide */
+2 −2
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ package com.android.server.om;
import static android.content.om.OverlayInfo.STATE_DISABLED;
import static android.content.om.OverlayInfo.STATE_ENABLED;
import static android.content.om.OverlayInfo.STATE_MISSING_TARGET;
import static android.content.om.OverlayInfo.STATE_TARGET_IS_BEING_REPLACED;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
@@ -172,8 +171,9 @@ public class OverlayManagerServiceImplTests {
        mImpl.setEnabled(OVERLAY, true, USER);
        assertState(STATE_ENABLED, OVERLAY, USER);

        // target upgrades do not change the state of the overlay
        beginUpgradeTargetPackage(TARGET, USER);
        assertState(STATE_TARGET_IS_BEING_REPLACED, OVERLAY, USER);
        assertState(STATE_ENABLED, OVERLAY, USER);

        endUpgradeTargetPackage(TARGET, USER);
        assertState(STATE_ENABLED, OVERLAY, USER);