1/* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18 19package android.os.statsd.hdmi; 20 21import "frameworks/proto_logging/stats/atoms.proto"; 22import "frameworks/proto_logging/stats/atom_field_options.proto"; 23import "frameworks/proto_logging/stats/enums/stats/hdmi/enums.proto"; 24 25option java_package = "com.android.os.hdmi"; 26option java_multiple_files = true; 27 28extend Atom { 29 optional HdmiEarcStatusReported hdmi_earc_status_reported = 701 [(module) = "framework"]; 30 optional HdmiSoundbarModeStatusReported hdmi_soundbar_mode_status_reported 31 = 724 [(module) = "framework"]; 32} 33/** 34* Push atom that logs the status of the eARC feature in 3 dimensions: whether the 35* hardware supports it, whether the setting is enabled and whether a connection is 36* established. 37* 38* Logged whenever the device wakes up and when the HAL reports an update in the 39* connection state. 40**/ 41message HdmiEarcStatusReported { 42 // whether the hardware supports eARC 43 optional bool is_supported = 1; 44 // whether eARC is enabled 45 optional bool is_enabled = 2; 46 // If log_reason == LOG_REASON_EARC_STATUS_CHANGED, the state just before the change. 47 // Otherwise, the current state. 48 optional android.stats.hdmi.ConnectionState old_connected_state = 3; 49 // If log_reason == LOG_REASON_EARC_STATUS_CHANGED, the state just after the change. 50 // Otherwise, the current state. 51 optional android.stats.hdmi.ConnectionState new_connected_state = 4; 52 // The event that triggered the log. 53 optional android.stats.hdmi.LogReason log_reason = 5; 54} 55 56/** 57* Push atom that logs the status of the Dynamic Soundbar mode feature in 2 dimensions: whether the 58* hardware supports it and whether the setting is enabled. 59* 60* Logged whenever the device wakes up or the Dynamic Soundbar mode setting is toggled. 61**/ 62message HdmiSoundbarModeStatusReported { 63 // whether the hardware supports Dynamic soundbar mode 64 optional bool is_supported = 1; 65 // whether the Dynamic soundbar mode setting is enabled 66 optional bool is_enabled = 2; 67 // the event that triggered the log. 68 optional android.stats.hdmi.DynamicSoundbarModeLogReason log_reason = 3; 69} 70