diff options
author | Han Li <hanlixy@google.com> | 2024-01-18 15:03:50 +0000 |
---|---|---|
committer | Han Li <hanlixy@google.com> | 2024-01-18 22:28:10 +0000 |
commit | 8a7909ed7b8e4b57e387be0881ebce4598164c37 (patch) | |
tree | bfa23ea37ba6fe196f23ca232e5f96f365aeafdf | |
parent | dd88460d143dc272541eaf42bd31992bafbdb92d (diff) | |
download | AdServices-8a7909ed7b8e4b57e387be0881ebce4598164c37.tar.gz |
Skip UiApiLoggingHostTest for Low Ram devices
Similar to commit 1814aed701a6ec56c6d583c55dd52e8b6d636f38, and use same Merged-In to stop merging further to downstream branches.
Since this branch is legacy and the host tests require some refactorings, directly copy the util method into the class to skip the test on Low Ram devices.
Bug: 319220387
Change-Id: I006c1ad81f9e951032f1d83e9c975a10ae0ffcee
Merged-In: Ic7d560c34ddc27a62620161cb0da26ce869f7656
-rw-r--r-- | adservices/tests/cts/hosttests/src/com/android/adservices/cts/UiApiLoggingHostTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/adservices/tests/cts/hosttests/src/com/android/adservices/cts/UiApiLoggingHostTest.java b/adservices/tests/cts/hosttests/src/com/android/adservices/cts/UiApiLoggingHostTest.java index e78651c9c..75060b0bb 100644 --- a/adservices/tests/cts/hosttests/src/com/android/adservices/cts/UiApiLoggingHostTest.java +++ b/adservices/tests/cts/hosttests/src/com/android/adservices/cts/UiApiLoggingHostTest.java @@ -69,6 +69,7 @@ public class UiApiLoggingHostTest implements IDeviceTest { "com.google.android.ext.adservices.api"; private static final String TARGET_EXT_ADSERVICES_PACKAGE_AOSP = "com.android.ext.adservices.api"; + private static final String LOW_RAM_DEVICE_CONFIG = "ro.config.low_ram"; private static final int PPAPI_AND_SYSTEM_SERVER_SOURCE_OF_TRUTH = 2; private static final int APPSEARCH_ONLY = 3; private int mApiLevel; @@ -259,6 +260,7 @@ public class UiApiLoggingHostTest implements IDeviceTest { private boolean isDeviceSupported(ITestDevice device) throws Exception { return !DeviceUtils.hasFeature(device, FEATURE_WATCH) && !DeviceUtils.hasFeature(device, FEATURE_AUTOMOTIVE) - && !DeviceUtils.hasFeature(device, FEATURE_LEANBACK); + && !DeviceUtils.hasFeature(device, FEATURE_LEANBACK) + && !device.getProperty(LOW_RAM_DEVICE_CONFIG).equals("true"); } } |