commit | 3d51a99dc8a5b6c29df406ac58f7de18db6fa0b7 | [log] [tgz] |
---|---|---|
author | Paul Hu <paulhu@google.com> | Mon Sep 16 16:27:08 2024 +0000 |
committer | Paul Hu <paulhu@google.com> | Thu Dec 12 02:57:00 2024 +0000 |
tree | 1ef9d97270a04344b1a3d23f74635665cb43321d | |
parent | 2bb40d284909810f595c40c3b21f4beaac2196e9 [diff] |
Use timerfd to improve the accuracy of query timing Timerfd can provide more accurate delayed callbacks than Handler#postDelayed because it accounts for the time the device spends in deep sleep. Using timerfd allows for more precise query timing, which reduces the possibility of TTL expiration caused by inaccurate delayed callbacks. Bug: 366373064 Test: atest FrameworksNetTests NsdManagerTest Change-Id: I980ec8fd43f63976ef5387bb57c7ed70a1b68d82