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

Commit 78de0e86 authored by Achim Thesmann's avatar Achim Thesmann
Browse files

Fix Tests for improved metrics.

Bug: 339245692
Test: atest ActivityStarterTests
Change-Id: I7998ae83fe86bc9d2778fd288a5df14d1cea6905
parent 3bbbc1a6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -104,6 +104,7 @@ import android.os.IBinder;
import android.os.Process;
import android.os.RemoteException;
import android.platform.test.annotations.Presubmit;
import android.platform.test.annotations.RequiresFlagsDisabled;
import android.provider.DeviceConfig;
import android.service.voice.IVoiceInteractionSession;
import android.util.Pair;
@@ -1034,6 +1035,7 @@ public class ActivityStarterTests extends WindowTestsBase {
     * is the only reason BAL is allowed.
     */
    @Test
    @RequiresFlagsDisabled(com.android.window.flags.Flags.FLAG_BAL_IMPROVED_METRICS)
    public void testBackgroundActivityStartsAllowed_loggingOnlyPendingIntentAllowed() {
        doReturn(false).when(mAtm).isBackgroundActivityStartsEnabled();
        MockitoSession mockingSession = mockitoSession()
@@ -1077,6 +1079,7 @@ public class ActivityStarterTests extends WindowTestsBase {
     * is not the primary reason to allow BAL (but the creator).
     */
    @Test
    @RequiresFlagsDisabled(com.android.window.flags.Flags.FLAG_BAL_IMPROVED_METRICS)
    public void testBackgroundActivityStartsAllowed_loggingPendingIntentAllowed() {
        doReturn(false).when(mAtm).isBackgroundActivityStartsEnabled();
        MockitoSession mockingSession = mockitoSession()