• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 */
16syntax = "proto2";
17
18package android.os.statsd.automotive.carsystemui;
19
20import "frameworks/proto_logging/stats/atoms.proto";
21import "frameworks/proto_logging/stats/atom_field_options.proto";
22
23option java_package = "com.android.os.automotive.carsystemui";
24option java_multiple_files = true;
25
26extend Atom {
27  optional CarSystemUiDataSubscriptionEventReported car_system_ui_data_subscription_event_reported = 974 [(module) = "carsystemui"];
28}
29
30/**
31 * Logs when a data subscription event occurs in carsystemui.
32 *
33 * Logged from package: packages/apps/Car/SystemUI
34 *  Estimated Logging Rate:
35 *  Peak: 1 times in 30000 ms | Avg: 10 per device per day
36 */
37
38message CarSystemUiDataSubscriptionEventReported {
39    // Describes current type of data subscription event
40    enum DataSubscriptionEventType {
41    // Unknown data subscrition event type
42    UNSPECIFIED_EVENT_TYPE = 0;
43    // Event starts (e.g. popup appears)
44    SESSION_STARTED = 1;
45    // Event fisnishes (e.g. popup dismisses)
46    SESSION_FINISHED = 2;
47    // The user clicks on the button in the popup
48    BUTTON_CLICKED = 3;
49  }
50
51    // Describes the current type of the data subscription message
52    enum DataSubscriptionMessageType {
53    // Unknown data subscription message type
54    UNSPECIFIED_MESSAGE_TYPE = 0;
55    // Proactive message type
56    PROACTIVE = 1;
57    // Reactive message type
58    REACTIVE = 2;
59  }
60
61  // session of one data subscription cycle, marked a start event to a finish event
62  optional int64 session_id = 1;
63  optional DataSubscriptionEventType event_type = 2;
64  optional DataSubscriptionMessageType message_type = 3;
65}
66