Injecting tethering stats into statsd
Fill in downstream type, upstream type, error code and user type to NetworkTetheringReported. Bug: 153942334 Test: m, flash and boot Test: atest TetheringMetricsTest Change-Id: I6ba7d9e512b1ada519f44f9f3a95667e4b0f03c0
This commit is contained in:
parent
a14bd2a032
commit
7ecded8248
1 changed files with 390 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ java_defaults {
|
|||
":framework-connectivity-shared-srcs",
|
||||
":tethering-module-utils-srcs",
|
||||
":services-tethering-shared-srcs",
|
||||
":statslog-tethering-java-gen",
|
||||
],
|
||||
static_libs: [
|
||||
"androidx.annotation_annotation",
|
||||
|
|
@ -223,3 +224,11 @@ java_library_static {
|
|||
apex_available: ["com.android.tethering"],
|
||||
min_sdk_version: "30",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "statslog-tethering-java-gen",
|
||||
tools: ["stats-log-api-gen"],
|
||||
cmd: "$(location stats-log-api-gen) --java $(out) --module network_tethering" +
|
||||
" --javaPackage com.android.networkstack.tethering.metrics --javaClass TetheringStatsLog",
|
||||
out: ["com/android/networkstack/tethering/metrics/TetheringStatsLog.java"],
|
||||
}
|
||||
Loading…
Reference in a new issue