1/*
2 * Copyright (C) 2022 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.placeholder;
20
21import "frameworks/proto_logging/stats/atoms.proto";
22import "frameworks/proto_logging/stats/atom_field_options.proto";
23import "frameworks/proto_logging/stats/attribution_node.proto";
24
25// This file contains sample extension atoms for reference.
26
27extend Atom {
28    optional Atom9999 atom_9999 = 9999 [(module) = "placeholder"];
29
30    optional Atom99999 atom_99999 = 99999 [(module) = "placeholder"];
31}
32
33message Atom9999 {
34    repeated AttributionNode attribution_node = 1;
35    optional int32 uid = 2 [(is_uid) = true];
36    optional int64 latency_millis = 3;
37
38    enum State {
39        UNKNOWN = 0;
40        OFF = 1;
41        ON = 2;
42    }
43    optional State state = 4;
44
45    optional string label = 5;
46}
47
48message Atom99999 {
49    optional string label = 1;
50}
51
52