commit | 0cd8f7f44d88a9972c6c5ee88c976a84c1f0e5bd | [log] [tgz] |
---|---|---|
author | Yang Sun <sunytt@google.com> | Sun Jan 28 17:37:49 2024 +0800 |
committer | Yang Sun <sunytt@google.com> | Mon Jan 29 13:30:53 2024 +0800 |
tree | 8ad33696a99285166f51476162227a38457cf86f | |
parent | 71524f2bf05c5044ffeae63a346b27217ce70a6e [diff] |
NetworkUtilsTest.testSetSockOptBytes Use sec but not usec in the test. setsockopt TimeVal may lose precision on usec when kernel rounds up the requested value based on the HZ setting: val = tv.tv_sec * HZ + DIV_ROUND_UP((unsigned long)tv.tv_usec, USEC_PER_SEC / HZ); Bug: 321577714 Test: atest FrameworksNetTests:android.net.connectivity.android.net.NetworkUtilsTest Change-Id: I13a12319370ec2bebe0935f2acdef88bca4d963d