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 17 package android.os; 18 19 import java.util.ArrayList; 20 import java.util.List; 21 22 /** Stub interface to compile the linter for host execution. */ 23 public interface Parcel { 24 /** Method used in the Safety Center config data structures. */ createTypedArrayList(Parcelable.Creator<T> creator)25 <T> ArrayList<T> createTypedArrayList(Parcelable.Creator<T> creator); 26 /** Method used in the Safety Center config data structures. */ readBoolean()27 boolean readBoolean(); 28 /** Method used in the Safety Center config data structures. */ readInt()29 int readInt(); 30 /** Method used in the Safety Center config data structures. */ readString()31 String readString(); 32 /** Method used in the Safety Center config data structures. */ createStringArrayList()33 ArrayList<String> createStringArrayList(); 34 35 /** Method used in the Safety Center config data structures. */ writeBoolean(boolean value)36 void writeBoolean(boolean value); 37 /** Method used in the Safety Center config data structures. */ writeInt(int value)38 void writeInt(int value); 39 /** Method used in the Safety Center config data structures. */ writeString(String value)40 void writeString(String value); 41 /** Method used in the Safety Center config data structures. */ writeStringList(List<String> value)42 void writeStringList(List<String> value); 43 /** Method used in the Safety Center config data structures. */ writeTypedList(List<T> value)44 <T extends Parcelable> void writeTypedList(List<T> value); 45 } 46