xref: /aosp_15_r20/frameworks/native/libs/binder/ParcelValTypes.h (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
1 /*
2  * Copyright (C) 2008 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 
17 namespace android {
18 namespace binder {
19 
20 // Keep in sync with frameworks/base/core/java/android/os/Parcel.java.
21 enum {
22     VAL_NULL = -1,
23     VAL_STRING = 0,
24     VAL_INTEGER = 1,
25     VAL_MAP = 2,
26     VAL_BUNDLE = 3,
27     VAL_PARCELABLE = 4,
28     VAL_SHORT = 5,
29     VAL_LONG = 6,
30     VAL_FLOAT = 7,
31     VAL_DOUBLE = 8,
32     VAL_BOOLEAN = 9,
33     VAL_CHARSEQUENCE = 10,
34     VAL_LIST = 11,
35     VAL_SPARSEARRAY = 12,
36     VAL_BYTEARRAY = 13,
37     VAL_STRINGARRAY = 14,
38     VAL_IBINDER = 15,
39     VAL_PARCELABLEARRAY = 16,
40     VAL_OBJECTARRAY = 17,
41     VAL_INTARRAY = 18,
42     VAL_LONGARRAY = 19,
43     VAL_BYTE = 20,
44     VAL_SERIALIZABLE = 21,
45     VAL_SPARSEBOOLEANARRAY = 22,
46     VAL_BOOLEANARRAY = 23,
47     VAL_CHARSEQUENCEARRAY = 24,
48     VAL_PERSISTABLEBUNDLE = 25,
49     VAL_SIZE = 26,
50     VAL_SIZEF = 27,
51     VAL_DOUBLEARRAY = 28,
52     VAL_CHAR = 29,
53     VAL_SHORTARRAY = 30,
54     VAL_CHARARRAY = 31,
55     VAL_FLOATARRAY = 32,
56 };
57 
58 } // namespace binder
59 } // namespace android
60