Loading Ravenwood.bp +8 −1 Original line number Diff line number Diff line Loading @@ -77,10 +77,17 @@ android_ravenwood_libgroup { "framework-minus-apex.ravenwood", "hoststubgen-helper-runtime.ravenwood", "hoststubgen-helper-framework-runtime.ravenwood", "junit", "truth", "ravenwood-junit", ], } android_ravenwood_libgroup { name: "ravenwood-utils", libs: [], libs: [ "junit", "truth", "ravenwood-junit", ], } core/java/android/os/Binder.java +13 −1 Original line number Diff line number Diff line Loading @@ -333,6 +333,12 @@ public class Binder implements IBinder { @CriticalNative public static final native boolean isDirectlyHandlingTransactionNative(); /** @hide */ public static final boolean isDirectlyHandlingTransactionNative$ravenwood() { // Ravenwood doesn't support IPC return false; } private static boolean sIsHandlingBinderTransaction = false; /** Loading Loading @@ -715,7 +721,9 @@ public class Binder implements IBinder { */ public Binder(@Nullable String descriptor) { mObject = getNativeBBinderHolder(); if (mObject != 0L) { NoImagePreloadHolder.sRegistry.registerNativeAllocation(this, mObject); } if (FIND_POTENTIAL_LEAKS) { final Class<? extends Binder> klass = getClass(); Loading Loading @@ -1277,6 +1285,10 @@ public class Binder implements IBinder { private static native long getNativeBBinderHolder(); private static long getNativeBBinderHolder$ravenwood() { return 0L; } /** * By default, we use the calling UID since we can always trust it. */ Loading core/java/android/os/Parcel.java +15 −1 Original line number Diff line number Diff line Loading @@ -1558,7 +1558,7 @@ public final class Parcel { ensureWithinMemoryLimit(typeSize, totalObjects); } private void ensureWithinMemoryLimit(int typeSize, @NonNull int length) { private void ensureWithinMemoryLimit(int typeSize, int length) { int estimatedAllocationSize = 0; try { estimatedAllocationSize = Math.multiplyExact(typeSize, length); Loading Loading @@ -2956,6 +2956,14 @@ public final class Parcel { } } /** @hide */ public final void writeException$ravenwood(@NonNull Exception e) { // Ravenwood doesn't support IPC, no transaction headers needed writeInt(getExceptionCode(e)); writeString(e.getMessage()); writeInt(0); } /** @hide */ public static int getExceptionCode(@NonNull Throwable e) { int code = 0; Loading Loading @@ -3039,6 +3047,12 @@ public final class Parcel { } } /** @hide */ public final void writeNoException$ravenwood() { // Ravenwood doesn't support IPC, no transaction headers needed writeInt(0); } /** * Special function for reading an exception result from the header of * a parcel, to be used after receiving the result of a transaction. This Loading framework-minus-apex-ravenwood-policies.txt +25 −1 Original line number Diff line number Diff line Loading @@ -71,8 +71,9 @@ class android.util.proto.WireTypeMismatchException stubclass # Misc class android.util.Dumpable stubclass class android.util.DebugUtils stubclass class android.util.UtilConfig stubclass class android.util.MathUtils stubclass class android.util.Patterns stubclass class android.util.UtilConfig stubclass # Internals class com.android.internal.util.ArrayUtils stubclass Loading @@ -89,3 +90,26 @@ class com.android.internal.util.GrowingArrayUtils stubclass class com.android.internal.util.LineBreakBufferedWriter stubclass class com.android.internal.util.Preconditions stubclass class com.android.internal.util.StringPool stubclass # Parcel class android.os.Parcel stubclass method writeException (Ljava/lang/Exception;)V @writeException$ravenwood method writeNoException ()V @writeNoException$ravenwood class android.os.Parcel !com.android.hoststubgen.nativesubstitution.Parcel_host class android.os.Parcelable stubclass class android.os.ParcelFormatException stubclass class android.os.BadParcelableException stubclass class android.os.BadTypeParcelableException stubclass # Binder: just enough to construct, no further functionality class android.os.Binder stub method <init> ()V stub method <init> (Ljava/lang/String;)V stub method isDirectlyHandlingTransaction ()Z stub method isDirectlyHandlingTransactionNative ()Z @isDirectlyHandlingTransactionNative$ravenwood method getNativeBBinderHolder ()J @getNativeBBinderHolder$ravenwood # Containers class android.os.BaseBundle stubclass class android.os.Bundle stubclass ravenwood/Android.bp +11 −0 Original line number Diff line number Diff line Loading @@ -32,3 +32,14 @@ java_library { host_supported: true, visibility: ["//visibility:public"], } java_library { name: "ravenwood-junit", srcs: ["junit-src/**/*.java"], libs: [ "junit", ], sdk_version: "core_current", host_supported: true, visibility: ["//visibility:public"], } Loading
Ravenwood.bp +8 −1 Original line number Diff line number Diff line Loading @@ -77,10 +77,17 @@ android_ravenwood_libgroup { "framework-minus-apex.ravenwood", "hoststubgen-helper-runtime.ravenwood", "hoststubgen-helper-framework-runtime.ravenwood", "junit", "truth", "ravenwood-junit", ], } android_ravenwood_libgroup { name: "ravenwood-utils", libs: [], libs: [ "junit", "truth", "ravenwood-junit", ], }
core/java/android/os/Binder.java +13 −1 Original line number Diff line number Diff line Loading @@ -333,6 +333,12 @@ public class Binder implements IBinder { @CriticalNative public static final native boolean isDirectlyHandlingTransactionNative(); /** @hide */ public static final boolean isDirectlyHandlingTransactionNative$ravenwood() { // Ravenwood doesn't support IPC return false; } private static boolean sIsHandlingBinderTransaction = false; /** Loading Loading @@ -715,7 +721,9 @@ public class Binder implements IBinder { */ public Binder(@Nullable String descriptor) { mObject = getNativeBBinderHolder(); if (mObject != 0L) { NoImagePreloadHolder.sRegistry.registerNativeAllocation(this, mObject); } if (FIND_POTENTIAL_LEAKS) { final Class<? extends Binder> klass = getClass(); Loading Loading @@ -1277,6 +1285,10 @@ public class Binder implements IBinder { private static native long getNativeBBinderHolder(); private static long getNativeBBinderHolder$ravenwood() { return 0L; } /** * By default, we use the calling UID since we can always trust it. */ Loading
core/java/android/os/Parcel.java +15 −1 Original line number Diff line number Diff line Loading @@ -1558,7 +1558,7 @@ public final class Parcel { ensureWithinMemoryLimit(typeSize, totalObjects); } private void ensureWithinMemoryLimit(int typeSize, @NonNull int length) { private void ensureWithinMemoryLimit(int typeSize, int length) { int estimatedAllocationSize = 0; try { estimatedAllocationSize = Math.multiplyExact(typeSize, length); Loading Loading @@ -2956,6 +2956,14 @@ public final class Parcel { } } /** @hide */ public final void writeException$ravenwood(@NonNull Exception e) { // Ravenwood doesn't support IPC, no transaction headers needed writeInt(getExceptionCode(e)); writeString(e.getMessage()); writeInt(0); } /** @hide */ public static int getExceptionCode(@NonNull Throwable e) { int code = 0; Loading Loading @@ -3039,6 +3047,12 @@ public final class Parcel { } } /** @hide */ public final void writeNoException$ravenwood() { // Ravenwood doesn't support IPC, no transaction headers needed writeInt(0); } /** * Special function for reading an exception result from the header of * a parcel, to be used after receiving the result of a transaction. This Loading
framework-minus-apex-ravenwood-policies.txt +25 −1 Original line number Diff line number Diff line Loading @@ -71,8 +71,9 @@ class android.util.proto.WireTypeMismatchException stubclass # Misc class android.util.Dumpable stubclass class android.util.DebugUtils stubclass class android.util.UtilConfig stubclass class android.util.MathUtils stubclass class android.util.Patterns stubclass class android.util.UtilConfig stubclass # Internals class com.android.internal.util.ArrayUtils stubclass Loading @@ -89,3 +90,26 @@ class com.android.internal.util.GrowingArrayUtils stubclass class com.android.internal.util.LineBreakBufferedWriter stubclass class com.android.internal.util.Preconditions stubclass class com.android.internal.util.StringPool stubclass # Parcel class android.os.Parcel stubclass method writeException (Ljava/lang/Exception;)V @writeException$ravenwood method writeNoException ()V @writeNoException$ravenwood class android.os.Parcel !com.android.hoststubgen.nativesubstitution.Parcel_host class android.os.Parcelable stubclass class android.os.ParcelFormatException stubclass class android.os.BadParcelableException stubclass class android.os.BadTypeParcelableException stubclass # Binder: just enough to construct, no further functionality class android.os.Binder stub method <init> ()V stub method <init> (Ljava/lang/String;)V stub method isDirectlyHandlingTransaction ()Z stub method isDirectlyHandlingTransactionNative ()Z @isDirectlyHandlingTransactionNative$ravenwood method getNativeBBinderHolder ()J @getNativeBBinderHolder$ravenwood # Containers class android.os.BaseBundle stubclass class android.os.Bundle stubclass
ravenwood/Android.bp +11 −0 Original line number Diff line number Diff line Loading @@ -32,3 +32,14 @@ java_library { host_supported: true, visibility: ["//visibility:public"], } java_library { name: "ravenwood-junit", srcs: ["junit-src/**/*.java"], libs: [ "junit", ], sdk_version: "core_current", host_supported: true, visibility: ["//visibility:public"], }