diff options
| author | 2024-01-11 13:16:54 -0700 | |
|---|---|---|
| committer | 2024-01-17 10:33:58 -0700 | |
| commit | 5cb49a3a49aea561a3ba56b5ecd96e9f3f0cb7ef (patch) | |
| tree | db4d262c9abc6e745221dd4d276fbd93f85b2400 | |
| parent | 6969fe070336d5f39616dba8eadd104617d1d852 (diff) | |
Offer `core-libart-for-host` under Ravenwood.
Ravenwood is a deviceless testing environment that runs in a host
JVM, similar to Robolectric.
As we're working on onboard existing SystemUI tests that expect
parity with Robolectric, we're needing to offer the same baseline
Robolectric functionality, so we expand the visibility of
`core-libart-for-host` to only the top-level of "//frameworks/base"
which is where Ravenwood.bp is defined. (We're not exposing the
library to any subpackages.)
Bug: 319647875
Test: atest SystemUiRavenTests
Change-Id: I02185deb302aa764a6970de848d82788f7d07e19
| -rw-r--r-- | Ravenwood.bp | 1 | ||||
| -rw-r--r-- | tools/hoststubgen/hoststubgen/helper-framework-runtime-src/libcore-fake/com/android/okhttp/internalandroidapi/Dns.java | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/Ravenwood.bp b/Ravenwood.bp index d13c4d78190c..0877bcedb609 100644 --- a/Ravenwood.bp +++ b/Ravenwood.bp @@ -97,6 +97,7 @@ android_ravenwood_libgroup { "framework-minus-apex.ravenwood", "hoststubgen-helper-runtime.ravenwood", "hoststubgen-helper-framework-runtime.ravenwood", + "core-libart-for-host", "all-updatable-modules-system-stubs", "junit", "truth", diff --git a/tools/hoststubgen/hoststubgen/helper-framework-runtime-src/libcore-fake/com/android/okhttp/internalandroidapi/Dns.java b/tools/hoststubgen/hoststubgen/helper-framework-runtime-src/libcore-fake/com/android/okhttp/internalandroidapi/Dns.java new file mode 100644 index 000000000000..379c4ae8a059 --- /dev/null +++ b/tools/hoststubgen/hoststubgen/helper-framework-runtime-src/libcore-fake/com/android/okhttp/internalandroidapi/Dns.java @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2017 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.okhttp.internalandroidapi; + +import java.net.InetAddress; +import java.net.UnknownHostException; +import java.util.List; + +/** + * A domain name service that resolves IP addresses for host names. + * @hide + * @hide This class is not part of the Android public SDK API + */ +public interface Dns { + /** + * Returns the IP addresses of {@code hostname}, in the order they should + * be attempted. + * + * @hide + */ + List<InetAddress> lookup(String hostname) throws UnknownHostException; +} |