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

Commit 20689f12 authored by Atneya Nair's avatar Atneya Nair
Browse files

Mark SoundTriggerMiddlewareLoggingTest flake

Bug: 275113847
Test: Compiles
Change-Id: Ie65a675fe05e93b97ce7319cf63e4cdabba1e979
parent 5308553f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ import android.os.BatteryStatsInternal;
import android.os.Process;
import android.os.RemoteException;

import androidx.test.filters.FlakyTest;
import androidx.test.platform.app.InstrumentationRegistry;

import com.android.internal.util.FakeLatencyTracker;
@@ -93,10 +94,12 @@ public class SoundTriggerMiddlewareLoggingTest {
    }

    @Test
    @FlakyTest(bugId = 275113847)
    public void testSetUpAndTearDown() {
    }

    @Test
    @FlakyTest(bugId = 275113847)
    public void testOnPhraseRecognitionStartsLatencyTrackerWithSuccessfulPhraseIdTrigger()
            throws RemoteException {
        ArgumentCaptor<ISoundTriggerCallback> soundTriggerCallbackCaptor = ArgumentCaptor.forClass(
@@ -112,6 +115,7 @@ public class SoundTriggerMiddlewareLoggingTest {
    }

    @Test
    @FlakyTest(bugId = 275113847)
    public void testOnPhraseRecognitionRestartsActiveSession() throws RemoteException {
        ArgumentCaptor<ISoundTriggerCallback> soundTriggerCallbackCaptor = ArgumentCaptor.forClass(
                ISoundTriggerCallback.class);
@@ -131,6 +135,7 @@ public class SoundTriggerMiddlewareLoggingTest {
    }

    @Test
    @FlakyTest(bugId = 275113847)
    public void testOnPhraseRecognitionNeverStartsLatencyTrackerWithNonSuccessEvent()
            throws RemoteException {
        ArgumentCaptor<ISoundTriggerCallback> soundTriggerCallbackCaptor = ArgumentCaptor.forClass(
@@ -147,6 +152,7 @@ public class SoundTriggerMiddlewareLoggingTest {
    }

    @Test
    @FlakyTest(bugId = 275113847)
    public void testOnPhraseRecognitionNeverStartsLatencyTrackerWithNoKeyphraseId()
            throws RemoteException {
        ArgumentCaptor<ISoundTriggerCallback> soundTriggerCallbackCaptor = ArgumentCaptor.forClass(