commit | 26d4476007ac8d207894cca37bd2d2f6b9446986 | [log] [tgz] |
---|---|---|
author | Paul Hu <paulhu@google.com> | Thu Aug 29 10:13:29 2024 +0000 |
committer | Paul Hu <paulhu@google.com> | Wed Sep 04 06:08:38 2024 +0000 |
tree | c68fe234ad0b1d841c6bab921b1edad29a4c2b04 | |
parent | ee9f3872698b41c5664d23c644d269efa22fd98c [diff] |
Process all accesses to TetheringMetrics on the handler thread Since calling NetworkStatsManager.queryDetailsForUidTagState may be blocked for up to 20 seconds, potentially leading to enable Tethering failure, a handler thread is added to process this task and prevent blocking. Furthermore, thread safety is ensured for all accesses to the class by the internal handler thread. Bug: 282861165 Test: atest TetheringTests Change-Id: I38d055e5c3f8dbb22eac97f858d4f56925e8ab36