1/*
2 * Copyright (C) 2024 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.external_display;
20
21import "frameworks/proto_logging/stats/atoms.proto";
22import "frameworks/proto_logging/stats/atom_field_options.proto";
23import "frameworks/proto_logging/stats/enums/server/display/enums.proto";
24
25// This file contains extension atoms for external displays.
26
27extend Atom {
28    optional ExternalDisplayStateChanged external_display_state_changed = 806 [(module) = "framework"];
29}
30
31/**
32 * Logs when the external display state changes.
33 *
34 * Logged from:
35 *   frameworks/base/services/core/java/com/android/server/display/ExternalDisplayStatsService.java
36 */
37message ExternalDisplayStateChanged {
38    optional android.server.display.ExternalDisplayState state = 1;
39    optional int32 displays_count = 2;
40    optional bool is_audio_on_external_display = 3;
41}
42