summaryrefslogtreecommitdiff
path: root/ravenwood/junit-stub-src
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@google.com> 2023-11-16 16:10:54 -0700
committer Jeff Sharkey <jsharkey@google.com> 2023-11-21 09:36:02 -0700
commit1c7db6b9a1562404b870daa19d353d159e9608a9 (patch)
tree8f57aa4b4e62972c57549ca5fe950dab8ac53c45 /ravenwood/junit-stub-src
parentc914beed5fe5055d4aea2a227b064c45fdbd96ce (diff)
Support Handler/Looper for Ravenwood, with CTS.
Now that we have a solid foundation of classes available, one of the tricker pieces is supporting Handler/Looper under Ravenwood. At its core, the native implementation of MessageQueue can be emulated using core JVM primitives, which is enough to reliably pass CTS. Advanced features like FileDescriptor events will need to wait until we eventually have real JNI support. Fix obscure bug with SystemClock; must be positive number. Always start our "fake" pointers from 1 to prevent `nullptr` oddness. Bug: 292141694 Test: atest-dev CtsOsTestCasesRavenwood CtsOsTestCases Change-Id: I0f82b659973443968ef2609a7e3151f381abff29
Diffstat (limited to 'ravenwood/junit-stub-src')
-rw-r--r--ravenwood/junit-stub-src/android/platform/test/ravenwood/RavenwoodRuleImpl.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/ravenwood/junit-stub-src/android/platform/test/ravenwood/RavenwoodRuleImpl.java b/ravenwood/junit-stub-src/android/platform/test/ravenwood/RavenwoodRuleImpl.java
index ecaff8084888..fb71e9d1ac6f 100644
--- a/ravenwood/junit-stub-src/android/platform/test/ravenwood/RavenwoodRuleImpl.java
+++ b/ravenwood/junit-stub-src/android/platform/test/ravenwood/RavenwoodRuleImpl.java
@@ -17,6 +17,10 @@
package android.platform.test.ravenwood;
public class RavenwoodRuleImpl {
+ public static boolean isUnderRavenwood() {
+ return false;
+ }
+
public static void init(RavenwoodRule rule) {
// Must be provided by impl to reference runtime internals
throw new UnsupportedOperationException();