summaryrefslogtreecommitdiff
path: root/core/java/android/util/LongArray.java
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2018-08-14 17:32:44 +0100
committerMathew Inwood <mathewi@google.com>2018-08-14 17:32:44 +0100
commitb407568c55b5e558a0e45a1011b281acf37a45ff (patch)
tree3fc2ba768ae4db2c72d29b370328254bd4ebdc9d /core/java/android/util/LongArray.java
parent1f077d9045d824283e26f63ad889444da7bbf620 (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: I18848448a81132399f6878812acf5031ed8cec9f Merged-In: 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;
}