Merge "Refactor PermissionsState to be a data class for migration."

This commit is contained in:
TreeHugger Robot
2020-09-22 22:18:40 +00:00
committed by Android (Google) Code Review
11 changed files with 592 additions and 1190 deletions

View File

@@ -143,6 +143,17 @@ public class IntArray implements Cloneable {
mSize += count;
}
/**
* Adds the values in the specified array to this array.
*/
public void addAll(int[] values) {
final int count = values.length;
ensureCapacity(count);
System.arraycopy(values, 0, mValues, mSize, count);
mSize += count;
}
/**
* Ensures capacity to append at least <code>count</code> values.
*/