summaryrefslogtreecommitdiff
path: root/ravenwood/junit-impl-src
diff options
context:
space:
mode:
author John Wu <topjohnwu@google.com> 2024-10-17 08:46:06 +0000
committer John Wu <topjohnwu@google.com> 2024-10-17 08:46:06 +0000
commit0bbc544d4e4aa7bf2b3430c748c0e316089740eb (patch)
treefe77eb1bdc20a43387d4dd11e3a085517bb9a473 /ravenwood/junit-impl-src
parent60ad43aed881e0f7b0d5145ebf20a0f1bca3a2b1 (diff)
[Ravenwood] Support DeviceConfig
Flag: EXEMPT host test change only Bug: 368591527 Test: atest CtsDeviceConfigTestCasesRavenwood Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Change-Id: I696b857f7f724517314444c35effdccadbc7adac Merged-In: I920c65840776669acee4783e0f2ca23aecc0ea1b
Diffstat (limited to 'ravenwood/junit-impl-src')
-rw-r--r--ravenwood/junit-impl-src/android/platform/test/ravenwood/RavenwoodRuntimeEnvironmentController.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/ravenwood/junit-impl-src/android/platform/test/ravenwood/RavenwoodRuntimeEnvironmentController.java b/ravenwood/junit-impl-src/android/platform/test/ravenwood/RavenwoodRuntimeEnvironmentController.java
index 5894476b9201..5237c560c66f 100644
--- a/ravenwood/junit-impl-src/android/platform/test/ravenwood/RavenwoodRuntimeEnvironmentController.java
+++ b/ravenwood/junit-impl-src/android/platform/test/ravenwood/RavenwoodRuntimeEnvironmentController.java
@@ -38,6 +38,7 @@ import android.os.HandlerThread;
import android.os.Looper;
import android.os.ServiceManager;
import android.os.SystemProperties;
+import android.provider.DeviceConfig_host;
import android.system.ErrnoException;
import android.system.Os;
import android.util.Log;
@@ -335,6 +336,8 @@ public class RavenwoodRuntimeEnvironmentController {
}
android.os.Process.reset$ravenwood();
+ DeviceConfig_host.reset();
+
try {
ResourcesManager.setInstance(null); // Better structure needed.
} catch (Exception e) {