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

Commit e1841f84 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Move most Ravenwood policies to annotations.

We've been splitting our definitions between `policies.txt` and
inline annotations; let's standardize on inline annotations.

This change is a mechanical no-op migration.

Bug: 324417456
Test: atest FrameworksCoreTestsRavenwood
Change-Id: I34c597f61874a57d783951215c2b0a61386ae6d5
parent 01522013
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.util.AndroidRuntimeException;
 * passed to another process that doesn't have the same {@link Parcelable} class
 * in its {@link ClassLoader}.
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public class BadParcelableException extends AndroidRuntimeException {
    public BadParcelableException(String msg) {
        super(msg);
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package android.os;

/** Used by Parcel to signal that the type on the payload was not expected by the caller. */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
class BadTypeParcelableException extends BadParcelableException {
    BadTypeParcelableException(String msg) {
        super(msg);
+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import java.util.function.BiFunction;
 * should work directly with either the {@link Bundle} or
 * {@link PersistableBundle} subclass.
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public class BaseBundle {
    /** @hide */
    protected static final String TAG = "Bundle";
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ import java.util.List;
 *
 * @see PersistableBundle
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public final class Bundle extends BaseBundle implements Cloneable, Parcelable {
    @VisibleForTesting
    static final int FLAG_HAS_FDS = 1 << 8;
+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import android.os.RemoteException;
 * this information at runtime. So, you should handle the
 * error, as if the service died.
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public class DeadObjectException extends RemoteException {
    public DeadObjectException() {
        super();
Loading