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

Commit 3744d8ba authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #35813125: API Review: android.os > Bundle"

parents 11e86368 2510b375
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30297,7 +30297,7 @@ package android.os {
    ctor public Bundle(android.os.Bundle);
    ctor public Bundle(android.os.PersistableBundle);
    method public java.lang.Object clone();
    method public android.os.Bundle deepcopy();
    method public android.os.Bundle deepCopy();
    method public int describeContents();
    method public android.os.IBinder getBinder(java.lang.String);
    method public android.os.Bundle getBundle(java.lang.String);
@@ -31033,7 +31033,7 @@ package android.os {
    ctor public PersistableBundle(int);
    ctor public PersistableBundle(android.os.PersistableBundle);
    method public java.lang.Object clone();
    method public android.os.PersistableBundle deepcopy();
    method public android.os.PersistableBundle deepCopy();
    method public int describeContents();
    method public android.os.PersistableBundle getPersistableBundle(java.lang.String);
    method public void putPersistableBundle(java.lang.String, android.os.PersistableBundle);
+2 −2
Original line number Diff line number Diff line
@@ -33009,7 +33009,7 @@ package android.os {
    ctor public Bundle(android.os.Bundle);
    ctor public Bundle(android.os.PersistableBundle);
    method public java.lang.Object clone();
    method public android.os.Bundle deepcopy();
    method public android.os.Bundle deepCopy();
    method public int describeContents();
    method public android.os.IBinder getBinder(java.lang.String);
    method public android.os.Bundle getBundle(java.lang.String);
@@ -33766,7 +33766,7 @@ package android.os {
    ctor public PersistableBundle(int);
    ctor public PersistableBundle(android.os.PersistableBundle);
    method public java.lang.Object clone();
    method public android.os.PersistableBundle deepcopy();
    method public android.os.PersistableBundle deepCopy();
    method public int describeContents();
    method public android.os.PersistableBundle getPersistableBundle(java.lang.String);
    method public void putPersistableBundle(java.lang.String, android.os.PersistableBundle);
+2 −2
Original line number Diff line number Diff line
@@ -30398,7 +30398,7 @@ package android.os {
    ctor public Bundle(android.os.Bundle);
    ctor public Bundle(android.os.PersistableBundle);
    method public java.lang.Object clone();
    method public android.os.Bundle deepcopy();
    method public android.os.Bundle deepCopy();
    method public int describeContents();
    method public android.os.IBinder getBinder(java.lang.String);
    method public android.os.Bundle getBundle(java.lang.String);
@@ -31155,7 +31155,7 @@ package android.os {
    ctor public PersistableBundle(int);
    ctor public PersistableBundle(android.os.PersistableBundle);
    method public java.lang.Object clone();
    method public android.os.PersistableBundle deepcopy();
    method public android.os.PersistableBundle deepCopy();
    method public int describeContents();
    method public android.os.PersistableBundle getPersistableBundle(java.lang.String);
    method public void putPersistableBundle(java.lang.String, android.os.PersistableBundle);
+2 −2
Original line number Diff line number Diff line
@@ -425,8 +425,8 @@ public class JobInfo implements Parcelable {

    private JobInfo(JobInfo.Builder b) {
        jobId = b.mJobId;
        extras = b.mExtras.deepcopy();
        transientExtras = b.mTransientExtras.deepcopy();
        extras = b.mExtras.deepCopy();
        transientExtras = b.mTransientExtras.deepCopy();
        service = b.mJobService;
        constraintFlags = b.mConstraintFlags;
        triggerContentUris = b.mTriggerContentUris != null
+5 −5
Original line number Diff line number Diff line
@@ -341,7 +341,7 @@ public class BaseBundle {
                    final int N = fromMap.size();
                    mMap = new ArrayMap<>(N);
                    for (int i = 0; i < N; i++) {
                        mMap.append(fromMap.keyAt(i), deepcopyValue(fromMap.valueAt(i)));
                        mMap.append(fromMap.keyAt(i), deepCopyValue(fromMap.valueAt(i)));
                    }
                }
            } else {
@@ -352,14 +352,14 @@ public class BaseBundle {
        }
    }

    Object deepcopyValue(Object value) {
    Object deepCopyValue(Object value) {
        if (value == null) {
            return null;
        }
        if (value instanceof Bundle) {
            return ((Bundle)value).deepcopy();
            return ((Bundle)value).deepCopy();
        } else if (value instanceof PersistableBundle) {
            return ((PersistableBundle)value).deepcopy();
            return ((PersistableBundle)value).deepCopy();
        } else if (value instanceof ArrayList) {
            return deepcopyArrayList((ArrayList) value);
        } else if (value.getClass().isArray()) {
@@ -388,7 +388,7 @@ public class BaseBundle {
        final int N = from.size();
        ArrayList out = new ArrayList(N);
        for (int i=0; i<N; i++) {
            out.add(deepcopyValue(from.get(i)));
            out.add(deepCopyValue(from.get(i)));
        }
        return out;
    }
Loading