summaryrefslogtreecommitdiff
path: root/pixelstats
diff options
context:
space:
mode:
authorPoomarin Phloyphisut <poomarin@google.com>2023-09-05 05:54:10 +0000
committerJoey Poomarin Phloyphisut <poomarin@google.com>2023-09-07 15:56:03 +0000
commit29f189ff545c588b170fcf04c0bc5cb1d271e6c0 (patch)
tree757fb690abae5202edab0db86395b837769455a1 /pixelstats
parent081662e241b1e23fcee3e321fc37e0e2eff8f568 (diff)
downloadpixel-29f189ff545c588b170fcf04c0bc5cb1d271e6c0.tar.gz
[Audio Metric]: Add obsolete fields.
Add obsolete fields in VendorAudioHardwareStatsReported to sync with server side. Bug: 289857250 Test: Local Test Change-Id: I15ae4fe59aac32923478a75e282ee9b838f9cfd0
Diffstat (limited to 'pixelstats')
-rw-r--r--pixelstats/SysfsCollector.cpp4
-rw-r--r--pixelstats/pixelatoms.proto28
2 files changed, 19 insertions, 13 deletions
diff --git a/pixelstats/SysfsCollector.cpp b/pixelstats/SysfsCollector.cpp
index c7e3833b..2a5882b4 100644
--- a/pixelstats/SysfsCollector.cpp
+++ b/pixelstats/SysfsCollector.cpp
@@ -1136,7 +1136,7 @@ void SysfsCollector::logVendorAudioHardwareStats(const std::shared_ptr<IStats> &
// Sending ams_rate, total_call, c1 and c2
{
- std::vector<VendorAtomValue> values(5);
+ std::vector<VendorAtomValue> values(7);
VendorAtomValue tmp;
if (isAmsReady) {
@@ -1173,7 +1173,7 @@ void SysfsCollector::logVendorAudioHardwareStats(const std::shared_ptr<IStats> &
// Sending total_call, c3 and c4
{
- std::vector<VendorAtomValue> values(5);
+ std::vector<VendorAtomValue> values(7);
VendorAtomValue tmp;
tmp.set<VendorAtomValue::intValue>(0);
diff --git a/pixelstats/pixelatoms.proto b/pixelstats/pixelatoms.proto
index 33b01606..391c7c8e 100644
--- a/pixelstats/pixelatoms.proto
+++ b/pixelstats/pixelatoms.proto
@@ -1312,29 +1312,35 @@ message BlockStatsReported {
*/
message VendorAudioHardwareStatsReported {
optional string reverse_domain_name = 1;
- /* The percentage of calls in a day where CCA is active.
- * It represented as a fixed-point and rounded integer.
- * E.g.:12.345% is represented by 12.
- * CCA can only be applied under some radio bands.
- */
+ /* The number of calls in a day where CCA is active.
+ * CCA can only be applied under some radio bands.
+ */
optional int32 milli_rate_of_ams_per_day = 2;
+ // cca_active: obsoleted UI enable & algorithm is active (C1)
+ // replaced by cca_active_count_per_day
+ optional int32 rate_of_cca_active_per_day = 3 [deprecated = true];
+
+ // cca_enable: obsoleted UI enable & algorithm is inactive field (C2)
+ // replaced by cca_enable_count_per_day
+ optional int32 rate_of_cca_enable_per_day = 4 [deprecated = true];
+
enum Source {
VOIP = 0;
VOICE = 1;
}
/* source: identify whether this atom is for voice or voip case. */
- optional Source source = 3;
+ optional Source source = 5;
/* total_call_count_per_day: count total number of call per day. */
- optional int32 total_call_count_per_day = 4;
+ optional int32 total_call_count_per_day = 6;
- /* cca_active: UI enable & algorithm is active */
- optional int32 cca_active_count_per_day = 5;
+ /* cca_active: UI enable & algorithm is active (C1 or C3) */
+ optional int32 cca_active_count_per_day = 7;
- /* cca_enable: UI enable & algorithm is inactive. */
- optional int32 cca_enable_count_per_day = 6;
+ /* cca_enable: UI enable & algorithm is inactive (C2 or C4) */
+ optional int32 cca_enable_count_per_day = 8;
}
/**