diff options
| author | 2022-01-06 10:29:27 +0800 | |
|---|---|---|
| committer | 2022-01-13 08:52:27 +0800 | |
| commit | a9b7f039c257c32947056a9bc0625adaaf9a427b (patch) | |
| tree | ce769d36dd81e7388d15d76d77dbb0e38e8d081c /libs/gui/SurfaceComposerClient.cpp | |
| parent | f82a5a92033f3d5e6d86890ee2b11e185063b0cc (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 the Java APIs implementation are in native side, providing
NDK directly will be easier for native users to use it.
Bug: 29761778
Bug: 202086915
Test: Tests in change Ic6554d9b98cef9b41b7eae06315d284c574c0a45
Change-Id: I884522be1dc40e8e959684442b3d736b5dcfdf5c
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions