• 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.carqclib;
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.carqclib";
24option java_multiple_files = true;
25
26extend Atom {
27  optional CarQcLibEventReported car_qc_lib_event_reported = 976 [(module) = "carqclib"];
28}
29
30/**
31 * Logs when an event happens in car quick controls.
32 *
33 * Logged from package: packages/apps/Car/systemlibs/car-qc-lib
34 */
35
36message CarQcLibEventReported {
37  // Quick Control element types
38  enum ElementType {
39    UNSPECIFIED_ELEMENT_TYPE = 0;
40    QC_TYPE_LIST = 1;
41    QC_TYPE_ROW = 2;
42    QC_TYPE_TILE = 3;
43    QC_TYPE_SLIDER = 4;
44    QC_TYPE_ACTION_SWITCH = 5;
45    QC_TYPE_ACTION_TOGGLE = 6;
46  }
47
48  // The uid of the quick control provider package
49  optional int32 package_uid = 1 [(is_uid) = true];
50  // The SHA-256 hashed tag of the quick control element.
51  optional string qc_hashed_tag = 2;
52  optional ElementType element_type = 3;
53  // The value of the qc element (e.g, a slider can have value from 1-100)
54  optional int32 qc_value = 4;
55  // The state of the qc element (e.g, a switch can have on/off state)
56  optional bool qc_state = 5;
57}
58