• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021, 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 package android.os;
17 /*
18  * Supported field types.
19  *
20  * @hide
21  */
22 parcelable StatsBootstrapAtomValue {
23     union Primitive {
24         boolean boolValue;
25         int intValue;
26         long longValue;
27         float floatValue;
28         String stringValue;
29         byte[] bytesValue;
30 	String[] stringArrayValue;
31     }
32 
33     Primitive value;
34 
35     parcelable Annotation {
36         // Match the definitions in
37         // packages/modules/StatsD/framework/java/android/util/StatsLog.java
38         // Only supports UIDs for now.
39         @Backing(type="byte")
40         enum Id {
41             NONE,
42             IS_UID,
43         }
44         Id id;
45 
46         union Primitive {
47             boolean boolValue;
48             int intValue;
49         }
50         Primitive value;
51     }
52 
53     Annotation[] annotations;
54 }
55