Merge "Add SDK sandbox network usage to corresponding apps." into tm-dev

This commit is contained in:
Martijn Coenen
2022-05-10 09:18:52 +00:00
committed by Android (Google) Code Review
4 changed files with 38 additions and 14 deletions

View File

@@ -302,6 +302,7 @@ public class AppDataUsageTest {
final Context context = RuntimeEnvironment.application;
final int testUid = 123123;
final AppItem appItem = new AppItem(testUid);
appItem.addUid(testUid);
appItem.category = AppItem.CATEGORY_APP;
ReflectionHelpers.setField(mFragment, "mContext", context);
ReflectionHelpers.setField(mFragment, "mAppItem", appItem);