Loading core/java/android/os/ParcelableHolder.java +5 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,8 @@ import android.util.MathUtils; * op.y = ...; * ap.extension.setParcelable(op);}</pre> * * <p class="note">ParcelableHolder is <strong>not</strong> thread-safe.</p> * * @hide */ @SystemApi Loading Loading @@ -120,6 +122,7 @@ public final class ParcelableHolder implements Parcelable { /** * Write a parcelable into ParcelableHolder, the previous parcelable will be removed. * (@link #setParcelable} and (@link #getParcelable} are not thread-safe. * @throws BadParcelableException if the parcelable's stability is more unstable * ParcelableHolder. */ Loading @@ -139,6 +142,8 @@ public final class ParcelableHolder implements Parcelable { } /** * Read a parcelable from ParcelableHolder. * (@link #setParcelable} and (@link #getParcelable} are not thread-safe. * @return the parcelable that was written by {@link #setParcelable} or {@link #readFromParcel}, * or {@code null} if the parcelable has not been written. * @throws BadParcelableException if T is different from the type written by Loading Loading
core/java/android/os/ParcelableHolder.java +5 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,8 @@ import android.util.MathUtils; * op.y = ...; * ap.extension.setParcelable(op);}</pre> * * <p class="note">ParcelableHolder is <strong>not</strong> thread-safe.</p> * * @hide */ @SystemApi Loading Loading @@ -120,6 +122,7 @@ public final class ParcelableHolder implements Parcelable { /** * Write a parcelable into ParcelableHolder, the previous parcelable will be removed. * (@link #setParcelable} and (@link #getParcelable} are not thread-safe. * @throws BadParcelableException if the parcelable's stability is more unstable * ParcelableHolder. */ Loading @@ -139,6 +142,8 @@ public final class ParcelableHolder implements Parcelable { } /** * Read a parcelable from ParcelableHolder. * (@link #setParcelable} and (@link #getParcelable} are not thread-safe. * @return the parcelable that was written by {@link #setParcelable} or {@link #readFromParcel}, * or {@code null} if the parcelable has not been written. * @throws BadParcelableException if T is different from the type written by Loading