• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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;
20
21option java_package = "com.android.os";
22option java_multiple_files = true;
23
24/**
25 * This proto represents a node of an attribution chain.
26 * Note: All attribution chains are represented as a repeated field of type
27 * AttributionNode. It is understood that in such arrays, the order is that
28 * of calls, that is [A, B, C] if A calls B that calls C.
29 */
30message AttributionNode {
31    // The uid for a given element in the attribution chain.
32    optional int32 uid = 1;
33
34    // The (optional) string tag for an element in the attribution chain. If the
35    // element has no tag, it is encoded as an empty string.
36    optional string tag = 2;
37}
38
39