diff options
| author | junyulai <junyulai@google.com> | 2022-02-10 23:34:05 +0800 |
|---|---|---|
| committer | junyulai <junyulai@google.com> | 2022-02-10 23:40:21 +0800 |
| commit | c2894e27fc6c30b072ce179350ca88e199c81de2 (patch) | |
| tree | 23fcc49d6dde79ed836b75905f0988529679a063 /tests/unit/java/android/net/NetworkStatsCollectionTest.java | |
| parent | 3ade48482c3d0a58afbd340d4dd5d70e980cbba3 (diff) | |
Fix testCallback fail caused by lacking of looper
For T- devices, the registerUsageCallback invocation without
a handler needs a looper from the thread that calls into
the API, which is not available in the test.
Thus, skip related checks if the sdk level is below T.
Test: atest CtsNetTestCasesLatestSdk:android.net.cts.NetworkStatsManagerTest#testCallback
on R device
Bug: 218845894
Ignore-AOSP-First: Required APIs are not in downstream of AOSP yet
Change-Id: I89f391297e8c7108d3e790a3d2da7b373f7b4012
Diffstat (limited to 'tests/unit/java/android/net/NetworkStatsCollectionTest.java')
0 files changed, 0 insertions, 0 deletions
