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_DOUBLE = 8, 31 VAL_BOOLEAN = 9, 32 VAL_BYTEARRAY = 13, 33 VAL_STRINGARRAY = 14, 34 VAL_IBINDER = 15, 35 VAL_INTARRAY = 18, 36 VAL_LONGARRAY = 19, 37 VAL_BYTE = 20, 38 VAL_SERIALIZABLE = 21, 39 VAL_BOOLEANARRAY = 23, 40 VAL_PERSISTABLEBUNDLE = 25, 41 VAL_DOUBLEARRAY = 28, 42 }; 43 44 } // namespace binder 45 } // namespace android 46