summaryrefslogtreecommitdiff
path: root/ravenwood/runtime-common-ravenwood-src
diff options
context:
space:
mode:
author Makoto Onuki <omakoto@google.com> 2024-05-16 15:44:38 -0700
committer Makoto Onuki <omakoto@google.com> 2024-05-23 15:34:29 +0000
commitdf9cd260bbea991ca07f96f8a6ccd2f3682ed5f0 (patch)
treeff4bf1e383915455113d4bd54c3c252a59bc3171 /ravenwood/runtime-common-ravenwood-src
parent820d81beb71155f29fab8c1ee4f5c9edb2317954 (diff)
[Ravenwood] Internal clean up, more PFD APIs, OsConstants, etc
- Support a few more ParcelFileDescriptor APIs. - Support OsConstants and a couple of Os APIs. - Also clean up f/b/ravenwood. Now we have "runtime-common" library that can be used from different components of Ravenwood infra, with native code support. Bug: 292141694 Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Test: CtsOsTestCases (on tree hugger) Flag: EXEMPT hostside test change only Change-Id: I259a04201e05e615e17da0529cb500a102887ec9
Diffstat (limited to 'ravenwood/runtime-common-ravenwood-src')
-rw-r--r--ravenwood/runtime-common-ravenwood-src/com/android/ravenwood/common/divergence/RavenwoodDivergence.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/ravenwood/runtime-common-ravenwood-src/com/android/ravenwood/common/divergence/RavenwoodDivergence.java b/ravenwood/runtime-common-ravenwood-src/com/android/ravenwood/common/divergence/RavenwoodDivergence.java
new file mode 100644
index 000000000000..59f474a39033
--- /dev/null
+++ b/ravenwood/runtime-common-ravenwood-src/com/android/ravenwood/common/divergence/RavenwoodDivergence.java
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2024 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.android.ravenwood.common.divergence;
+
+/**
+ * A class that behaves differently on the device side and on Ravenwood, because we have
+ * two build modules with different implementation and we link the different ones at runtime.
+ */
+public final class RavenwoodDivergence {
+ private RavenwoodDivergence() {
+ }
+
+ public static boolean isOnRavenwood() {
+ return true;
+ }
+}