Basic ParcelFileDescriptor on Ravenwood.

One of the final foundational building blocks, which wraps a Java
`FileDescriptor` object.  Since many of the existing APIs here offer
to work with "raw" int FD values, we need to reach "behind the
curtain" to read/write the internal value.  Thankfully `SharedSecrets`
already offers a way to gain access without requiring us to open
up the entire `java.io` area of the `java.base` module.

Bring along `android.util.CloseGuard` as a no-op wrapper.

Bug: 324417456
Test: atest CtsOsTestCasesRavenwood
Merged-in: I8af63d1c5a4bb2ef76bd43594a1072f2ca537d68
Change-Id: I8af63d1c5a4bb2ef76bd43594a1072f2ca537d68
This commit is contained in:
Jeff Sharkey 2024-02-08 09:41:36 -07:00 committed by Makoto Onuki
parent 4416313943
commit 91412af6e2
2 changed files with 6 additions and 0 deletions

View file

@ -7,3 +7,6 @@ per-file version_defaults.mk = ankurbakshi@google.com,bkhalife@google.com,jainne
# For sdk extensions version updates
per-file version_defaults.mk = amhk@google.com,gurpreetgs@google.com,mkhokhlova@google.com,robertogil@google.com
# For Ravenwood test configs
per-file ravenwood_test_config_template.xml = jsharkey@google.com,omakoto@google.com

View file

@ -37,5 +37,8 @@
<option name="java-flags" value="--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED"/>
<option name="java-flags" value="--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED"/>
<option name="java-flags" value="--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"/>
<!-- Needed for supporting ParcelFileDescriptor internals -->
<option name="java-flags" value="--add-exports=java.base/jdk.internal.access=ALL-UNNAMED"/>
</test>
</configuration>