Merge "[MS44.1] Add API to query tagged UID summary"

This commit is contained in:
Junyu Lai
2022-01-13 11:25:15 +00:00
committed by Gerrit Code Review
4 changed files with 59 additions and 3 deletions

View File

@@ -789,8 +789,18 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
}
return stats;
} catch (NullPointerException e) {
// TODO: Track down and fix the cause of this crash and remove this catch block.
Log.wtf(TAG, "NullPointerException in getSummaryForAllUid", e);
throw e;
}
}
@Override
public NetworkStats getTaggedSummaryForAllUid(
NetworkTemplate template, long start, long end) {
try {
final NetworkStats tagStats = getUidTagComplete()
.getSummary(template, start, end, mAccessLevel, mCallingUid);
return tagStats;
} catch (NullPointerException e) {
throw e;
}
}