• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2024 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 package android.app.appsearch.safeparcel;
18 
19 import android.os.Parcel;
20 
21 @SafeParcelable.Class(creator = "TestSafeParcelableV4Creator")
22 public class TestSafeParcelableV4<T> extends AbstractSafeParcelable {
23 
24     @SuppressWarnings("rawtypes")
25     public static final Creator<TestSafeParcelableV4> CREATOR = new TestSafeParcelableV4Creator();
26 
27     @Field(id = 1)
28     public String publicString;
29 
30     @Constructor
TestSafeParcelableV4(@aramid = 1) String publicString)31     public TestSafeParcelableV4(@Param(id = 1) String publicString) {
32         this.publicString = publicString;
33     }
34 
35     @Override
writeToParcel(Parcel out, int flags)36     public void writeToParcel(Parcel out, int flags) {
37         TestSafeParcelableV4Creator.writeToParcel(this, out, flags);
38     }
39 }
40