Java Code Examples for android.os.Parcel.readList()

The following are Jave code examples for showing how to use readList() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: AndroidUnplash   File: Result.java   View Source Code Vote up 6 votes
@SuppressWarnings({
    "unchecked"
})
public Result createFromParcel(Parcel in) {
    Result instance = new Result();
    instance.id = ((String) in.readValue((String.class.getClassLoader())));
    instance.createdAt = ((String) in.readValue((String.class.getClassLoader())));
    instance.updatedAt = ((String) in.readValue((String.class.getClassLoader())));
    instance.width = ((Integer) in.readValue((Integer.class.getClassLoader())));
    instance.height = ((Integer) in.readValue((Integer.class.getClassLoader())));
    instance.color = ((String) in.readValue((String.class.getClassLoader())));
    instance.likes = ((Integer) in.readValue((Integer.class.getClassLoader())));
    instance.likedByUser = ((Boolean) in.readValue((Boolean.class.getClassLoader())));
    instance.user = ((User) in.readValue((User.class.getClassLoader())));
    in.readList(instance.currentUserCollections, (java.lang.Object.class.getClassLoader()));
    instance.urls = ((Urls) in.readValue((Urls.class.getClassLoader())));
    in.readList(instance.categories, (Category.class.getClassLoader()));
    instance.links = ((Links) in.readValue((Links.class.getClassLoader())));
    return instance;
}
 
Example 2
Project: TreasureHunting   File: Route.java   View Source Code Vote up 6 votes
protected Route(Parcel in) {

        _audioPoints = new ArrayList<>();
        in.readList(_audioPoints, AudioPoint.class.getClassLoader());

        _geoPoints = new ArrayList<>();
        in.readList(_geoPoints, Point.class.getClassLoader());

        _passedPoints = new ArrayList<>();
        in.readList(_passedPoints, Boolean.class.getClassLoader());

        int size = in.readInt();
        _pointTrackMapper = new HashMap<>(size);
        for(int i = 0; i < size; i++)
        {
            int pointId = in.readInt();

            ArrayList<String> trackNames = new ArrayList<>();
            in.readList(trackNames, String.class.getClassLoader());

            _pointTrackMapper.put(pointId, trackNames);
        }
    }
 
Example 3
Project: MovieApp   File: KnownFor.java   View Source Code Vote up 6 votes
@SuppressWarnings({
    "unchecked"
})
public KnownFor createFromParcel(Parcel in) {
    KnownFor instance = new KnownFor();
    instance.posterPath = ((String) in.readValue((String.class.getClassLoader())));
    instance.adult = ((Boolean) in.readValue((Boolean.class.getClassLoader())));
    instance.overview = ((String) in.readValue((String.class.getClassLoader())));
    instance.releaseDate = ((String) in.readValue((String.class.getClassLoader())));
    instance.originalTitle = ((String) in.readValue((String.class.getClassLoader())));
    in.readList(instance.genreIds, (Integer.class.getClassLoader()));
    instance.id = ((Integer) in.readValue((Integer.class.getClassLoader())));
    instance.mediaType = ((String) in.readValue((String.class.getClassLoader())));
    instance.originalLanguage = ((String) in.readValue((String.class.getClassLoader())));
    instance.title = ((String) in.readValue((String.class.getClassLoader())));
    instance.backdropPath = ((Object) in.readValue((Object.class.getClassLoader())));
    instance.popularity = ((Double) in.readValue((Double.class.getClassLoader())));
    instance.voteCount = ((Integer) in.readValue((Integer.class.getClassLoader())));
    instance.video = ((Boolean) in.readValue((Boolean.class.getClassLoader())));
    instance.voteAverage = ((Double) in.readValue((Integer.class.getClassLoader())));
    instance.firstAirDate = ((String) in.readValue((String.class.getClassLoader())));
    in.readList(instance.originCountry, (String.class.getClassLoader()));
    instance.name = ((String) in.readValue((String.class.getClassLoader())));
    instance.originalName = ((String) in.readValue((String.class.getClassLoader())));
    return instance;
}
 
Example 4
Project: HeroVideo-master   File: RegionTypesInfo.java   View Source Code Vote up 5 votes
protected DataBean(Parcel in)
{

    this.tid = in.readInt();
    this.reid = in.readInt();
    this.name = in.readString();
    this.logo = in.readString();
    this.gotoX = in.readString();
    this.param = in.readString();
    this.children = new ArrayList<ChildrenBean>();
    in.readList(this.children, ChildrenBean.class.getClassLoader());
}
 
Example 5
Project: News24x7-news-from-every-part-of-the-world   File: NewsArticleList.java   View Source Code Vote up 5 votes
@SuppressWarnings({
        "unchecked"
})
public NewsArticleList createFromParcel(Parcel in) {
    NewsArticleList instance = new NewsArticleList();
    instance.status = ((String) in.readValue((String.class.getClassLoader())));
    instance.source = ((String) in.readValue((String.class.getClassLoader())));
    instance.sortBy = ((String) in.readValue((String.class.getClassLoader())));
    in.readList(instance.articles, (Article.class.getClassLoader()));
    return instance;
}
 
Example 6
Project: GitHub   File: CityBean.java   View Source Code Vote up 5 votes
protected CityBean(Parcel in) {
    this.id = in.readString();
    this.name = in.readString();
    this.pinYin = in.readString();
    this.gisGcj02Lat = (Double) in.readValue(Double.class.getClassLoader());
    this.gisGcj02Lng = (Double) in.readValue(Double.class.getClassLoader());
    this.gisBd09Lat = (Double) in.readValue(Double.class.getClassLoader());
    this.gisBd09Lng = (Double) in.readValue(Double.class.getClassLoader());
    this.zipcode = in.readString();
    this.cityList = new ArrayList<DistrictBean>();
    in.readList(this.cityList, DistrictBean.class.getClassLoader());
}
 
Example 7
Project: GitHub   File: NewsInfo.java   View Source Code Vote up 5 votes
protected NewsInfo(Parcel in) {
    this.postid = in.readString();
    this.hasCover = in.readByte() != 0;
    this.hasHead = in.readInt();
    this.replyCount = in.readInt();
    this.hasImg = in.readInt();
    this.digest = in.readString();
    this.hasIcon = in.readByte() != 0;
    this.docid = in.readString();
    this.title = in.readString();
    this.order = in.readInt();
    this.priority = in.readInt();
    this.lmodify = in.readString();
    this.boardid = in.readString();
    this.photosetID = in.readString();
    this.template = in.readString();
    this.votecount = in.readInt();
    this.skipID = in.readString();
    this.alias = in.readString();
    this.skipType = in.readString();
    this.cid = in.readString();
    this.hasAD = in.readInt();
    this.source = in.readString();
    this.ename = in.readString();
    this.imgsrc = in.readString();
    this.tname = in.readString();
    this.ptime = in.readString();
    this.specialID = in.readString();
    this.ads = in.createTypedArrayList(AdData.CREATOR);
    this.imgextra = new ArrayList<ImgExtraData>();
    in.readList(this.imgextra, ImgExtraData.class.getClassLoader());
}
 
Example 8
Project: MyRepository   File: HomepageData.java   View Source Code Vote up 5 votes
protected HomepageData(Parcel in) {
    this.recycleImage = new ArrayList<RecycleImageBean>();
    in.readList(this.recycleImage, RecycleImageBean.class.getClassLoader());
    this.recSpecialist = new ArrayList<RecSpecialistBean>();
    in.readList(this.recSpecialist, RecSpecialistBean.class.getClassLoader());
    this.ActivityTopicList = new ArrayList<ActivityTopicListBean>();
    in.readList(this.ActivityTopicList, ActivityTopicListBean.class.getClassLoader());
}
 
Example 9
Project: Transactions-Viewer   File: ProductUI.java   View Source Code Vote up 5 votes
private ProductUI(Parcel in) {
    sku = in.readString();
    if (transactions == null) {
        transactions = new ArrayList<>();
    }
    in.readList(transactions, Transaction.class.getClassLoader());
}
 
Example 10
Project: order-by-android   File: Aula.java   View Source Code Vote up 5 votes
protected Aula(Parcel in) {
    id = in.readInt();
    sala = in.readString();
    materia = (Materia) in.readValue(Materia.class.getClassLoader());
    dia = in.readString();
    if (in.readByte() == 0x01) {
        professores = new ArrayList<String>();
        in.readList(professores, String.class.getClassLoader());
    } else {
        professores = null;
    }
    inicio = in.readString();
    fim = in.readString();
}
 
Example 11
Project: MovieApp   File: MultiSearchResult.java   View Source Code Vote up 5 votes
@SuppressWarnings({
    "unchecked"
})
public MultiSearchResult createFromParcel(Parcel in) {
    MultiSearchResult instance = new MultiSearchResult();
    instance.posterPath = ((String) in.readValue((String.class.getClassLoader())));
    instance.adult = ((Boolean) in.readValue((Boolean.class.getClassLoader())));
    instance.overview = ((String) in.readValue((String.class.getClassLoader())));
    instance.releaseDate = ((String) in.readValue((String.class.getClassLoader())));
    instance.originalTitle = ((String) in.readValue((String.class.getClassLoader())));
    in.readList(instance.genreIds, (Integer.class.getClassLoader()));
    instance.id = ((Integer) in.readValue((Integer.class.getClassLoader())));
    instance.mediaType = ((String) in.readValue((String.class.getClassLoader())));
    instance.originalLanguage = ((String) in.readValue((String.class.getClassLoader())));
    instance.title = ((String) in.readValue((String.class.getClassLoader())));
    instance.backdropPath = ((String) in.readValue((String.class.getClassLoader())));
    instance.popularity = ((Double) in.readValue((Double.class.getClassLoader())));
    instance.voteCount = ((Integer) in.readValue((Integer.class.getClassLoader())));
    instance.video = ((Boolean) in.readValue((Boolean.class.getClassLoader())));
    instance.voteAverage = ((Double) in.readValue((Double.class.getClassLoader())));
    instance.profilePath = ((String) in.readValue((String.class.getClassLoader())));
    in.readList(instance.knownFor, (KnownFor.class.getClassLoader()));
    instance.name = ((String) in.readValue((String.class.getClassLoader())));
    instance.firstAirDate = ((String) in.readValue((String.class.getClassLoader())));
    in.readList(instance.originCountry, (String.class.getClassLoader()));
    instance.originalName = ((String) in.readValue((String.class.getClassLoader())));
    return instance;
}
 
Example 12
Project: MovieApp   File: TvResponse.java   View Source Code Vote up 5 votes
@SuppressWarnings({
    "unchecked"
})
public TvResponse createFromParcel(Parcel in) {
    TvResponse instance = new TvResponse();
    instance.page = ((Integer) in.readValue((Integer.class.getClassLoader())));
    in.readList(instance.tvResults, (TvResult.class.getClassLoader()));
    instance.totalResults = ((Integer) in.readValue((Integer.class.getClassLoader())));
    instance.totalPages = ((Integer) in.readValue((Integer.class.getClassLoader())));
    return instance;
}
 
Example 13
Project: pedidos-app   File: ExpandableGroup.java   View Source Code Vote up 5 votes
protected ExpandableGroup(Parcel in) {
  title = in.readString();
  byte hasItems = in.readByte();
  int size = in.readInt();
  if (hasItems == 0x01) {
    items = new ArrayList<T>(size);
    Class<?> type = (Class<?>) in.readSerializable();
    in.readList(items, type.getClassLoader());
  } else {
    items = null;
  }
}
 
Example 14
Project: MovieApp   File: GenreResponse.java   View Source Code Vote up 5 votes
@SuppressWarnings({
    "unchecked"
})
public GenreResponse createFromParcel(Parcel in) {
    GenreResponse instance = new GenreResponse();
    in.readList(instance.genres, (Genre.class.getClassLoader()));
    return instance;
}
 
Example 15
Project: MovieApp   File: PersonSearchResponse.java   View Source Code Vote up 5 votes
@SuppressWarnings({
    "unchecked"
})
public PersonSearchResponse createFromParcel(Parcel in) {
    PersonSearchResponse instance = new PersonSearchResponse();
    instance.page = ((Integer) in.readValue((Integer.class.getClassLoader())));
    in.readList(instance.personSearchResults, (PersonSearchResult.class.getClassLoader()));
    instance.totalResults = ((Integer) in.readValue((Integer.class.getClassLoader())));
    instance.totalPages = ((Integer) in.readValue((Integer.class.getClassLoader())));
    return instance;
}
 
Example 16
Project: Dispatch   File: TeamParcel.java   View Source Code Vote up 5 votes
protected TeamParcel(Parcel in) {
    String teamName = in.readString();
    String teamID = in.readString();
    List<User> teamMembers = new ArrayList<>();
    in.readList(teamMembers, List.class.getClassLoader());
    float latitude = in.readFloat();
    float longitude = in.readFloat();

    mTeam = new Team();
}
 
Example 17
Project: GitHub   File: GoldManagerBean.java   View Source Code Vote up 4 votes
protected GoldManagerBean(Parcel in) {
    this.managerList = new RealmList<>();
    in.readList(this.managerList, GoldManagerItemBean.class.getClassLoader());
}
 
Example 18
Project: GitHub   File: ParcelableListLceViewState.java   View Source Code Vote up 4 votes
@Override protected void readFromParcel(Parcel source) {
  loadedData = (D) new ArrayList<Parcelable>();
  source.readList(loadedData, getClassLoader());
  super.readFromParcel(source);
}
 
Example 19
Project: BilibiliClient   File: UserPlayGameInfo.java   View Source Code Vote up 4 votes
protected DataBean(Parcel in) {

      this.count = in.readInt();
      this.games = new ArrayList<GamesBean>();
      in.readList(this.games, GamesBean.class.getClassLoader());
    }
 
Example 20
Project: moebooru-android   File: PostBean.java   View Source Code Vote up 4 votes
protected PostBean(Parcel parcel){
    this.id = parcel.readLong();
    this.local_id = parcel.readLong();
    this.author = parcel.readString();
    this.created_at = parcel.readLong();
    this.creator_id = parcel.readLong();
    this.status = parcel.readString();
    this.source = parcel.readString();

    if (parcel.readByte() == (byte) 1) {
        this.tags = new ArrayList();
        parcel.readList(this.tags, TagBean.class.getClassLoader());
    } else {
        this.tags = null;
    }
    this.score = parcel.readInt();
    this.rating = parcel.readString();
    this.parent_id = parcel.readLong();
    this.has_children = parcel.readByte() != (byte) 0;
    if (parcel.readByte() == (byte) 1) {
        this.children = new ArrayList();
        parcel.readList(this.children, Long.class.getClassLoader());
    } else {
        this.children = null;
    }
    this.md5 = parcel.readString();
    this.file_size = parcel.readInt();
    this.file_url = parcel.readString();
    this.width = parcel.readInt();
    this.height = parcel.readInt();
    this.preview_url = parcel.readString();
    this.preview_width = parcel.readInt();
    this.preview_height = parcel.readInt();
    this.sample_file_size = parcel.readInt();
    this.sample_url = parcel.readString();
    this.sample_width = parcel.readInt();
    this.sample_height = parcel.readInt();
    this.jpeg_file_size = parcel.readInt();
    this.jpeg_url = parcel.readString();
    this.jpeg_width = parcel.readInt();
    this.jpeg_height = parcel.readInt();
    this.vote = parcel.readInt();
    this.fav = parcel.readInt();
}