Loading services/tests/servicestests/src/com/android/server/job/BackgroundRestrictionsTest.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -41,6 +41,7 @@ import android.provider.Settings; import android.util.Log; import android.util.Log; import androidx.test.InstrumentationRegistry; import androidx.test.InstrumentationRegistry; import androidx.test.filters.FlakyTest; import androidx.test.filters.LargeTest; import androidx.test.filters.LargeTest; import androidx.test.runner.AndroidJUnit4; import androidx.test.runner.AndroidJUnit4; Loading Loading @@ -134,6 +135,7 @@ public class BackgroundRestrictionsTest { assertTrue("Job did not start after scheduling", awaitJobStart(DEFAULT_WAIT_TIMEOUT)); assertTrue("Job did not start after scheduling", awaitJobStart(DEFAULT_WAIT_TIMEOUT)); } } @FlakyTest @Test @Test public void testPowerExemption() throws Exception { public void testPowerExemption() throws Exception { scheduleAndAssertJobStarted(); scheduleAndAssertJobStarted(); Loading Loading
services/tests/servicestests/src/com/android/server/job/BackgroundRestrictionsTest.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -41,6 +41,7 @@ import android.provider.Settings; import android.util.Log; import android.util.Log; import androidx.test.InstrumentationRegistry; import androidx.test.InstrumentationRegistry; import androidx.test.filters.FlakyTest; import androidx.test.filters.LargeTest; import androidx.test.filters.LargeTest; import androidx.test.runner.AndroidJUnit4; import androidx.test.runner.AndroidJUnit4; Loading Loading @@ -134,6 +135,7 @@ public class BackgroundRestrictionsTest { assertTrue("Job did not start after scheduling", awaitJobStart(DEFAULT_WAIT_TIMEOUT)); assertTrue("Job did not start after scheduling", awaitJobStart(DEFAULT_WAIT_TIMEOUT)); } } @FlakyTest @Test @Test public void testPowerExemption() throws Exception { public void testPowerExemption() throws Exception { scheduleAndAssertJobStarted(); scheduleAndAssertJobStarted(); Loading