summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseIntArray.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2015-08-07 22:06:00 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-07 22:06:00 +0000
commit977d421af9466ed6cd83630f6ba91c873f501e5b (patch)
treecfe932b8761f8cc81092d171e60a34eba29cd6ef /core/java/android/util/SparseIntArray.java
parent2327dd3f808c871f9e89772f06152052f6c74957 (diff)
parentf0e5501e093c688cd293308e0aafc2b55326c255 (diff)
am f0e5501e: Merge "Fix issue #22989030: Separate battery whitelists" into mnc-dev
* commit 'f0e5501e093c688cd293308e0aafc2b55326c255': Fix issue #22989030: Separate battery whitelists
Diffstat (limited to 'core/java/android/util/SparseIntArray.java')
-rw-r--r--core/java/android/util/SparseIntArray.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/util/SparseIntArray.java b/core/java/android/util/SparseIntArray.java
index 2b85a219861a..e5c729d3dd44 100644
--- a/core/java/android/util/SparseIntArray.java
+++ b/core/java/android/util/SparseIntArray.java
@@ -184,6 +184,14 @@ public class SparseIntArray implements Cloneable {
}
/**
+ * Directly set the value at a particular index.
+ * @hide
+ */
+ public void setValueAt(int index, int value) {
+ mValues[index] = value;
+ }
+
+ /**
* Returns the index for which {@link #keyAt} would return the
* specified key, or a negative number if the specified
* key is not mapped.