No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kangping Dong 160b4d38f9 [Thread] fix OperationalDatasetTimestamp#toTlvValue is not loss-less
OperationalDatasetTimestamp is saving the timestamp as an Instant
object, and this has the problem that when the dataset timestamp is
written to a TLV, it's going to loss precision as the nanoseconds
of the Instant is converted to "Ticks". This results in bug that
the dataset timestamp doesn't equal to the same value when it's
converted back from a TLV:

```
var timestamp1 = OperationalDatasetTimestamp.fromInstant(Instant.ofEpochSecond(100, 999938900));
byte[] tlv = timestamp1.toTlvValue();
timestamp2 = OperationalDatasetTimestamp.fromTlvValue(tlv);

assertThat(timestamp2).isEqualTo(timestamp1); // This fails!!!
```

Bug: 308408536
Test: atest ThreadNetworkUnitTests CtsThreadNetworkTestCases
Change-Id: I81b482a05337b6d1150edaa28b860034592a4347
2023-11-07 13:13:06 +08:00
bpf_progs Support Data Saver awareness in libcom.android.tethering.dns_helper.so 2023-11-01 06:23:09 +08:00
clatd remove clatd OWNERS 2023-09-12 11:48:34 -07:00
common Merge "Add methods for updating ingressDiscardRule bpf map to BpfNetMaps" into main 2023-11-06 10:41:53 +00:00
Cronet Merge "Add third_party/cpu_features to Cronet's copybara" into main 2023-09-12 17:48:34 +00:00
DnsResolver Support Data Saver awareness in libcom.android.tethering.dns_helper.so 2023-11-01 06:23:09 +08:00
framework Merge "Remove the OffloadServiceInfo from jarjar exclusion" into main 2023-11-07 03:27:41 +00:00
framework-t Update udc-extended-api that ignores FlaggedAPI annotation 2023-11-02 04:26:37 +00:00
nearby Clean up obsolete aliases for Truth. 2023-10-07 00:48:10 +00:00
netbpfload netbpfload: prep work to support <U 2023-10-25 18:40:53 +00:00
netd move BPF_CGROUP_INET*_BIND registration into BpfHandler 2023-10-06 14:31:20 -07:00
remoteauth Clean up obsolete aliases for Truth. 2023-10-07 00:48:10 +00:00
service Merge "Set up forwarding rules for local network agents" into main 2023-11-07 02:50:50 +00:00
service-t Merge "Report sparse per-iface stats using atrace." into main 2023-11-02 20:40:00 +00:00
staticlibs Merge changes from topic "apipluscts" into main 2023-11-06 09:09:03 +00:00
tests Merge "Set up forwarding rules for local network agents" into main 2023-11-07 02:50:50 +00:00
Tethering Merge "Extend tethering enable/disable timeout to 30 seconds" into main 2023-11-07 03:52:26 +00:00
thread [Thread] fix OperationalDatasetTimestamp#toTlvValue is not loss-less 2023-11-07 13:13:06 +08:00
tools gn2bp: delete obsolete version in p/m/C 2023-03-29 16:23:45 -07:00
.gitignore Ignores VS Code files from git 2023-08-27 20:10:55 +08:00
OWNERS Assign default bug component to targets in this directory. 2023-11-03 13:10:17 +00:00
OWNERS_core_networking Cleanup OWNERS 2023-01-23 15:55:23 +00:00
OWNERS_core_networking_xts Adjust owners for incremental NsdManager changes 2023-08-18 14:49:34 +09:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING Add dns_helper_unit_test in TEST_MAPPING 2023-11-01 06:23:09 +08:00