summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Ken Chen <cken@google.com> 2022-01-06 10:21:26 +0800
committer Ken Chen <cken@google.com> 2022-01-12 23:21:17 +0800
commita4a35a92eada672c41e238103eed332b4d262a44 (patch)
treeac6ef094162eeaefce8a9f61b2a4a767ca1d8e0e /api/api.go
parentb0c148971a7221f51ef394853cce026e16cbce30 (diff)
Add tagSocket/untagSocket NDK APIs
Provide native APIs to tag the various sockets used for network transfer, which helps apps tracking down data usage inside their app. We've had equivalent Java APIs since API level 14. https://developer.android.com/reference/android/net/TrafficStats.html#tagSocket(java.net.Socket) https://developer.android.com/reference/android/net/TrafficStats.html#untagSocket(java.net.Socket) Given that these Java APIs are implemented in native side, providing NDK APIs directly will be easier for native users to use it. Bug: 29761778 Bug: 202086915 Test: Tests in change Ic6554d9b98cef9b41b7eae06315d284c574c0a45 Change-Id: I802ce62f82199ce087bf8feb03afb26de1ce526e
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions