summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-02 20:39:31 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-02-02 20:39:31 +0000
commitf4343d4715c7ffc3ba853264cbbeced8489ae3d9 (patch)
treebea6634d5aebc5fa703ccacdc35fabde7ba33abf
parent66c82b3f35284b348f36fedba5b214029f65bc28 (diff)
parent9f46f1fcf9160d70aba4933f191bdc0ff5180178 (diff)
downloadcts-f4343d4715c7ffc3ba853264cbbeced8489ae3d9.tar.gz
Merge "Don't run battery saver tests in instant mode." into snap-temp-L46600000958426283
-rw-r--r--tests/location/location_fine/src/android/location/cts/fine/LocationManagerFineTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/location/location_fine/src/android/location/cts/fine/LocationManagerFineTest.java b/tests/location/location_fine/src/android/location/cts/fine/LocationManagerFineTest.java
index b741a2e31b3..af807bf728c 100644
--- a/tests/location/location_fine/src/android/location/cts/fine/LocationManagerFineTest.java
+++ b/tests/location/location_fine/src/android/location/cts/fine/LocationManagerFineTest.java
@@ -754,6 +754,7 @@ public class LocationManagerFineTest {
}
@Test
+ @AppModeFull(reason = "Instant apps can't access ACTION_BATTERY_CHANGED intent")
public void testRequestLocationUpdates_BatterySaver_GpsDisabledScreenOff() throws Exception {
// battery saver is unsupported on auto and tv
assumeFalse(mContext.getPackageManager().hasSystemFeature(FEATURE_AUTOMOTIVE));
@@ -816,6 +817,7 @@ public class LocationManagerFineTest {
}
@Test
+ @AppModeFull(reason = "Instant apps can't access ACTION_BATTERY_CHANGED intent")
public void testRequestLocationUpdates_BatterySaver_AllDisabledScreenOff() throws Exception {
// battery saver is unsupported on auto and tv
assumeFalse(mContext.getPackageManager().hasSystemFeature(FEATURE_AUTOMOTIVE));
@@ -859,6 +861,7 @@ public class LocationManagerFineTest {
}
@Test
+ @AppModeFull(reason = "Instant apps can't access ACTION_BATTERY_CHANGED intent")
public void testRequestLocationUpdates_BatterySaver_ThrottleScreenOff() throws Exception {
// battery saver is unsupported on auto and tv
assumeFalse(mContext.getPackageManager().hasSystemFeature(FEATURE_AUTOMOTIVE));