diff options
| author | Mathew Inwood <mathewi@google.com> | 2018-08-14 17:24:32 +0100 |
|---|---|---|
| committer | Mathew Inwood <mathewi@google.com> | 2018-08-14 17:24:32 +0100 |
| commit | 4eb56abe8b98ed0380d68d335200e0e09d6c8392 (patch) | |
| tree | 80064fd9ccf1156eb16d6ff900e9f1b6374a1b1d /core/java/android/util/ArraySet.java | |
| parent | b32447760cd99e9d15e678523c736e2c24a7e247 (diff) | |
Add @UnsupportedAppUsage annotations
For packages:
android.util.proto
android.util.jar
android.util.apk
android.util
This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.
Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@
Bug: 110868826
Test: m
Change-Id: Ia0f48c244b0fbe33d40d797702a82303648196ed
Diffstat (limited to 'core/java/android/util/ArraySet.java')
| -rw-r--r-- | core/java/android/util/ArraySet.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/util/ArraySet.java b/core/java/android/util/ArraySet.java index 2eea7df4767b..526a950b4820 100644 --- a/core/java/android/util/ArraySet.java +++ b/core/java/android/util/ArraySet.java @@ -18,6 +18,7 @@ package android.util; import libcore.util.EmptyArray; +import android.annotation.UnsupportedAppUsage; import java.lang.reflect.Array; import java.util.Collection; import java.util.Iterator; @@ -70,11 +71,15 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { static int sTwiceBaseCacheSize; final boolean mIdentityHashCode; + @UnsupportedAppUsage int[] mHashes; + @UnsupportedAppUsage Object[] mArray; + @UnsupportedAppUsage int mSize; MapCollections<E, E> mCollections; + @UnsupportedAppUsage private int indexOf(Object key, int hash) { final int N = mSize; @@ -113,6 +118,7 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { return ~end; } + @UnsupportedAppUsage private int indexOfNull() { final int N = mSize; @@ -151,6 +157,7 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { return ~end; } + @UnsupportedAppUsage private void allocArrays(final int size) { if (size == (BASE_SIZE * 2)) { synchronized (ArraySet.class) { @@ -208,6 +215,7 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { mArray = new Object[size]; } + @UnsupportedAppUsage private static void freeArrays(final int[] hashes, final Object[] array, final int size) { if (hashes.length == (BASE_SIZE * 2)) { synchronized (ArraySet.class) { @@ -282,6 +290,7 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { } /** {@hide} */ + @UnsupportedAppUsage public ArraySet(Collection<E> set) { this(); if (set != null) { |
