android_packages_modules_Co.../staticlibs/testutils
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai c51f71fb41 Add testutil to mock android.app.usage.NetworkStats
It's not possible to directly create a mocked `NetworkStats`
instance because of limitations with `NetworkStats#getNextBucket`.
As a workaround for testing, create a mock by controlling the
return values from the mocked service that provides the
`NetworkStats` data.

Test: atest FrameworksServicesTests:com.android.server.stats.pull.netstats.NetworkStatsUtilsTest
Bug: 335680025
Change-Id: I4be8420de50040781557587fba4a50b9c0587f61
2024-08-19 17:39:15 +08:00
..
app/connectivitychecker Add ignore-mobile-data-check option to preparer 2024-06-14 15:09:30 +09:00
devicetests Add testutil to mock android.app.usage.NetworkStats 2024-08-19 17:39:15 +08:00
host Setup Wi-Fi P2P connection 2024-08-13 07:20:21 +00:00
hostdevice/com/android Quit NetworkMonitor threads in integration tests 2024-03-14 13:18:44 +09:00
Android.bp Improve staticlibs/Android.bp 2024-08-08 15:42:00 +00:00