Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 256d9070 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Support more internal utils under Ravenwood.

Tests for these internal utils are local within the frameworks/base/
repo, instead of in CTS.

To help future-proof, bring the entire utils/* test directory by
default into the Ravenwood suites, and give developers the way to
easily opt-out with @IgnoreUnderRavenwood at the class level.

Bug: 292141694
Test: atest FrameworksCoreTestsRavenwood FrameworksCoreTests
Test: atest FrameworksUtilTestsRavenwood FrameworksUtilTests
Change-Id: I5251dca752396faa77774659d0923d8cdb719830
parent 7812cce9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.annotation.NonNull;
/**
 * Represents a container that manages {@link Dumpable dumpables}.
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public interface DumpableContainer {

    /**
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import android.os.Build;
 * it is responsibility of the client to recycle and instance
 * once it is no longer used.
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public final class SomeArgs {

    private static final int MAX_POOL_SIZE = 10;
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import java.util.function.IntFunction;
 * sugar methods for {@link ByteBuffer}. Useful for networking and packet manipulations.
 * {@hide}
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public final class BitUtils {
    private BitUtils() {}

+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import android.compat.annotation.UnsupportedAppUsage;
 *
 * NOTE -- This class is not threadsafe.
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public class BitwiseInputStream {

    // The byte array being read from.
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import android.compat.annotation.UnsupportedAppUsage;
 *
 * NOTE -- This class is not threadsafe.
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public class BitwiseOutputStream {

    // The byte array being written to, which will be grown as needed.
Loading