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 package parcelables;
17 
18 parcelable GenericDataParcelable {
19     enum JustSomeEnum {
20         ONE_ENUMERATOR,
21         ANOTHER_ENUMERATOR,
22         MAYBE_ONE_MORE_ENUMERATOR,
23     }
24 
25     const int COOL_CONSTANT = 0x1234;
26 
27     int data;
28     float majorVersion;
29     float minorVersion;
30     IBinder binder;
31     ParcelFileDescriptor fileDescriptor;
32     int[] array;
33     String greatString;
34     @utf8InCpp
35     String greaterString;
36     @nullable String nullableString;
37     JustSomeEnum gretEnum = JustSomeEnum.ANOTHER_ENUMERATOR;
38 }
39