summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-02-22 23:15:36 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-02-22 23:15:36 +0000
commitd712bbab7e90803ae8e47bdfd23449a09088fadf (patch)
tree6090b74bd91379318ac52d81607ac958bcd529b0
parent7e6b7e89fa4db30474b63cd5016389619de053da (diff)
parent63daff8960ef5870023a2fccd93b2f5ea5f3ccf0 (diff)
downloadAdServices-d712bbab7e90803ae8e47bdfd23449a09088fadf.tar.gz
Merge "Fix NPE for CtsAdServicesHostTests" into android14-tests-dev
-rw-r--r--adservices/tests/cts/hosttests/src/com/android/adservices/cts/TopicsApiLoggingHostTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/adservices/tests/cts/hosttests/src/com/android/adservices/cts/TopicsApiLoggingHostTest.java b/adservices/tests/cts/hosttests/src/com/android/adservices/cts/TopicsApiLoggingHostTest.java
index 422ec59d86..d21a46d8bd 100644
--- a/adservices/tests/cts/hosttests/src/com/android/adservices/cts/TopicsApiLoggingHostTest.java
+++ b/adservices/tests/cts/hosttests/src/com/android/adservices/cts/TopicsApiLoggingHostTest.java
@@ -286,7 +286,10 @@ public class TopicsApiLoggingHostTest implements IDeviceTest {
"device_config put adservices enable_back_compat " + isEnabled);
}
+ /**
+ * The test is unsupported if the device is configured as a low-RAM device.
+ */
private boolean isDeviceSupported() throws DeviceNotAvailableException {
- return !getDevice().getProperty(LOW_RAM_DEVICE_CONFIG).equals("true");
+ return !"true".equals(getDevice().getProperty(LOW_RAM_DEVICE_CONFIG));
}
}