Merge "Trim the invalid uids and tags when reading uids/tags from chain." into pi-dev

am: 9054656c20

Change-Id: I3c67a3842b3444d1dbc068917500db908a383b9c
This commit is contained in:
Yangster-mac
2018-04-11 12:24:31 -07:00
committed by android-build-merger

View File

@@ -924,13 +924,17 @@ public class WorkSource implements Parcelable {
/** @hide */
@VisibleForTesting
public int[] getUids() {
return mUids;
int[] uids = new int[mSize];
System.arraycopy(mUids, 0, uids, 0, mSize);
return uids;
}
/** @hide */
@VisibleForTesting
public String[] getTags() {
return mTags;
String[] tags = new String[mSize];
System.arraycopy(mTags, 0, tags, 0, mSize);
return tags;
}
/** @hide */