diff options
| author | Jorim Jaggi <jjaggi@google.com> | 2018-11-06 14:42:04 +0100 |
|---|---|---|
| committer | Jorim Jaggi <jjaggi@google.com> | 2018-12-21 13:05:30 +0100 |
| commit | 5bb571dc403b4384111ae987ed7b44aaef76ace0 (patch) | |
| tree | 9f475f0f373a0b499760fe86e96b1d95f63362f1 /core/java/android/util/SparseSetArray.java | |
| parent | 7fa78c545b5bd3845f3cda4bad0bd3b37b327732 (diff) | |
A brave new world for window insets (5/n)
Implement controlWindowInsetsAnimation
Based on the leashes we have on the client, and the insets the
client has requested, we are able to move the surfaces around
such that the resulting insets will match what the client
requested.
Bug: 118118435
Change-Id: I0616e53455a6544aaf374c1b0eb10e258aced21d
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
| -rw-r--r-- | core/java/android/util/SparseSetArray.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/util/SparseSetArray.java b/core/java/android/util/SparseSetArray.java index d100f12ed026..680e85fa2ba8 100644 --- a/core/java/android/util/SparseSetArray.java +++ b/core/java/android/util/SparseSetArray.java @@ -55,6 +55,13 @@ public class SparseSetArray<T> { } /** + * @return the set of items at index n + */ + public ArraySet<T> get(int n) { + return mData.get(n); + } + + /** * Remove a value from index n. * @return TRUE when the value existed at the given index and removed, FALSE otherwise. */ |
