diff options
| author | Jeff Sharkey <jsharkey@android.com> | 2017-04-27 11:21:41 -0600 |
|---|---|---|
| committer | Jeff Sharkey <jsharkey@android.com> | 2017-04-27 11:33:39 -0600 |
| commit | a4d34d971c9566a162a53e6b027ba2bc341ae5b4 (patch) | |
| tree | 69112edf49564387b09dadb878e6f01edcfbb9aa /core/java/android/os/Bundle.java | |
| parent | dd91a5636bec399be1f9e6af298bc667e0c25b09 (diff) | |
Respond to API council feedback.
Move aggressive allocation to @SystemApi, which means we can hide
the "flags" API variants.
Remove UUID APIs, since we should use existing Serializable APIs.
Relax permission checks to allow apps to ask for their own stats.
Improve docs.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 37534687, 37534941, 37718184, 37738770
Change-Id: I6a763fb3ab3169c8d3329765bb31e1ee08d9ced7
Diffstat (limited to 'core/java/android/os/Bundle.java')
| -rw-r--r-- | core/java/android/os/Bundle.java | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/core/java/android/os/Bundle.java b/core/java/android/os/Bundle.java index 167c46d6ded0..9b5ff29d592e 100644 --- a/core/java/android/os/Bundle.java +++ b/core/java/android/os/Bundle.java @@ -25,7 +25,6 @@ import android.util.SparseArray; import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import java.util.UUID; /** * A mapping from String keys to various {@link Parcelable} values. @@ -477,18 +476,6 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { } /** - * Inserts a UUID value into the mapping of this Bundle, replacing - * any existing value for the given key. Either key or value may be null. - * - * @param key a String, or null - * @param value a UUID object, or null - */ - public void putUuid(@Nullable String key, @Nullable UUID value) { - unparcel(); - mMap.put(key, value); - } - - /** * Inserts an array of Parcelable values into the mapping of this Bundle, * replacing any existing value for the given key. Either key or value may * be null. @@ -871,26 +858,6 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { * value is explicitly associated with the key. * * @param key a String, or null - * @return a UUID value, or null - */ - @Nullable - public UUID getUuid(@Nullable String key) { - unparcel(); - final Object o = mMap.get(key); - try { - return (UUID) o; - } catch (ClassCastException e) { - typeWarning(key, o, "UUID", e); - return null; - } - } - - /** - * Returns the value associated with the given key, or null if - * no mapping of the desired type exists for the given key or a null - * value is explicitly associated with the key. - * - * @param key a String, or null * @return a Bundle value, or null */ @Nullable |
