summaryrefslogtreecommitdiff
path: root/core/java/android/util/LongArray.java
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2018-08-14 17:24:32 +0100
committerMathew Inwood <mathewi@google.com>2018-08-14 17:24:32 +0100
commit4eb56abe8b98ed0380d68d335200e0e09d6c8392 (patch)
tree80064fd9ccf1156eb16d6ff900e9f1b6374a1b1d /core/java/android/util/LongArray.java
parentb32447760cd99e9d15e678523c736e2c24a7e247 (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/LongArray.java')
-rw-r--r--core/java/android/util/LongArray.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/util/LongArray.java b/core/java/android/util/LongArray.java
index 5ed1c8c05cba..6f4aa5211dea 100644
--- a/core/java/android/util/LongArray.java
+++ b/core/java/android/util/LongArray.java
@@ -17,6 +17,7 @@
package android.util;
import android.annotation.Nullable;
+import android.annotation.UnsupportedAppUsage;
import com.android.internal.util.ArrayUtils;
import com.android.internal.util.Preconditions;
@@ -44,6 +45,7 @@ public class LongArray implements Cloneable {
/**
* Creates an empty LongArray with the default initial capacity.
*/
+ @UnsupportedAppUsage
public LongArray() {
this(10);
}
@@ -102,6 +104,7 @@ public class LongArray implements Cloneable {
*
* @throws IndexOutOfBoundsException when index &lt; 0 || index &gt; size()
*/
+ @UnsupportedAppUsage
public void add(int index, long value) {
ensureCapacity(1);
int rightSegment = mSize - index;
@@ -165,6 +168,7 @@ public class LongArray implements Cloneable {
/**
* Returns the value at the specified position in this array.
*/
+ @UnsupportedAppUsage
public long get(int index) {
ArrayUtils.checkBounds(mSize, index);
return mValues[index];
@@ -204,6 +208,7 @@ public class LongArray implements Cloneable {
/**
* Returns the number of values in this array.
*/
+ @UnsupportedAppUsage
public int size() {
return mSize;
}