android_packages_modules_Co.../tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai e971f15288 Fix get summary does not include the latest bucket
In internalGetSummaryForNetwork, the history object will not
include the latest bucket because of the logic in
NetworkStatsHistory#recordHistory would only include buckets
that atomically occur in the inclusive time range.

This makes querySummaryForDevice callers who are also sensitive
to the latest bucket fails.

This CL revert the behavior back to S, in T this is temporarily
changed after aosp/1937268.

Also, for test purpose, this CL change System.currentTimeMillis to
use mClock when querying.

Ignore-AOSP-First: Urgent fix
Test: NetworkStatsServiceTest#testGetLatestSummary
Bug: 233733267
Change-Id: I55e2a5d953622b68da36a9b8d3e57c88d57543b0
2022-06-01 09:34:30 +08:00
..
common Merge changes from topic "stats-migration" into tm-dev 2022-05-19 14:54:01 +00:00
cts Merge "Remove the redundant sleep after turning on the screen." into tm-dev 2022-05-23 17:53:51 +00:00
deflake DO NOT MERGE: Disable FrameworksNetTests 2021-10-04 18:59:14 +08:00
integration Workaround prebuilt name conflict for service-connectivity 2022-05-20 15:06:27 +00:00
mts bpf_existence_test: block & dscp_policy progs require 5.4+ kernel 2022-05-19 13:52:09 +00:00
native Merge "ConnectivityNativeBinderTest: Check Kernel Version" 2022-04-21 00:00:14 +00:00
smoketest Workaround prebuilt name conflict for service-connectivity 2022-05-20 15:06:27 +00:00
unit Fix get summary does not include the latest bucket 2022-06-01 09:34:30 +08:00