Java Code Examples for android.os.Parcel#readByte()

The following examples show how to use android.os.Parcel#readByte() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: Movie-Check   File: Movie.java    License: Apache License 2.0 6 votes vote down vote up
protected Movie(Parcel in) {
    this.id = (Long) in.readValue(Long.class.getClassLoader());
    this.title = in.readString();
    long tmpReleaseDate = in.readLong();
    this.releaseDate = tmpReleaseDate == -1 ? null : new Date(tmpReleaseDate);
    this.backdropUrl = in.readString();
    this.posterUrl = in.readString();
    this.overview = in.readString();
    this.adult = in.readByte() != 0;
    this.voteAverage = in.readFloat();
    this.voteCount = in.readLong();
    this.genreId = new ArrayList<Long>();
    in.readList(this.genreId, List.class.getClassLoader());
    this.language = in.readString();
    this.popularity = in.readDouble();
}
 
Example 2
protected XulClauseInfo(Parcel in) {
	target = in.readString();
	func = in.readString();
	verb = in.readInt();
	int size = in.readInt();

	if (size>0) {
		conditions = _initClauseInfoConditions();
		for (int i = 0; i < size; i++) {
			Conditions condition = new Conditions();
			condition.key = in.readString();
			condition.cmp = XulDataService.getDataComparator(in.readInt());
			condition.value = in.readString();
			condition.values = in.createStringArray();
			conditions.add(condition);
		}
	}

	ClassLoader classLoader = getClass().getClassLoader();
	for (byte v = in.readByte(); v != 0; v = in.readByte()) {
		DataItem dataItem = new DataItem(in.readString(), in.readString());
		dataItem.strVals = in.createStringArray();
		dataItem.data = in.readValue(classLoader);
		addDataItem(dataItem);
	}
}
 
Example 3
Source Project: Faceless   File: Message.java    License: GNU General Public License v3.0 6 votes vote down vote up
private Message(Parcel in) {
	mID = in.readString();
	mDegree = in.readInt();
	mColor = in.readInt();
	mPatternID = in.readInt();
	mText = in.readString();
	mTopic = in.readString();
	mTime = in.readLong();
	mFavorites = in.readInt();
	mComments = in.readInt();
	mCountryISO3 = in.readString();
	mFavorited = in.readByte() == 1;
	mSubscribed = in.readByte() == 1;
	mType = in.readInt();
	mLocation = (SimpleLocation.Point) in.<SimpleLocation.Point>readParcelable(SimpleLocation.Point.class.getClassLoader());
	mReasonForBan = in.readByte() == 1;
}
 
Example 4
Source Project: CodePolitan   File: Article.java    License: Apache License 2.0 6 votes vote down vote up
protected Article(Parcel in)
{
    id = in.readInt();
    slug = in.readString();
    title = in.readString();
    excerpt = in.readString();
    content = in.readString();
    date = in.readString();
    dateClear = in.readString();
    link = in.readString();
    thumbnailSmall = in.readString();
    thumbnailMedium = in.readString();
    bookmarked = in.readByte() != 0;
    readLater = in.readByte() != 0;
    big = in.readByte() != 0;
    postType = in.readString();
    category = in.createTypedArrayList(Category.CREATOR);
    tags = in.createTypedArrayList(Tag.CREATOR);
}
 
Example 5
protected UpgradeConfig(Parcel in) {
    this.upgradeUrl = in.readString();
    this.isAutoStartInstall = in.readByte() != 0;
    this.isQuietDownload = in.readByte() != 0;
    this.isCheckPackageName = in.readByte() != 0;
    this.isAboutChecking = in.readByte() != 0;
    this.delay = in.readLong();
}
 
Example 6
Source Project: android_9.0.0_r45   File: RadioManager.java    License: Apache License 2.0 5 votes vote down vote up
private FmBandDescriptor(Parcel in) {
    super(in);
    mStereo = in.readByte() == 1;
    mRds = in.readByte() == 1;
    mTa = in.readByte() == 1;
    mAf = in.readByte() == 1;
    mEa = in.readByte() == 1;
}
 
Example 7
private byte[] readArrayFromParcel(Parcel src) {
	if (src.readByte() == (byte)1) {
		return null;
	}
	int arraySize = src.readInt();
	byte[] result = new byte[arraySize];
	src.readByteArray(result);
	return result;
}
 
Example 8
protected XpNavBarSetting(Parcel in) {
    mShortCutData = in.createTypedArrayList(ShortCut.CREATOR);
    mHomePointPosition = in.readInt();
    mIconSize = in.readInt();
    mRootDown = in.readByte() != 0;
    mClearMenLevel = in.readInt();
    mChameleonNavbar = in.readByte() != 0;
    mNavbarHeight = in.readInt();
    mVibrate = in.readByte() != 0;
    mNavbarHeightOpt = in.readByte() != 0;
    mGoHomeAfterClick = in.readByte() != 0;
}
 
Example 9
Source Project: android_9.0.0_r45   File: ScoredNetwork.java    License: Apache License 2.0 5 votes vote down vote up
private ScoredNetwork(Parcel in) {
    networkKey = NetworkKey.CREATOR.createFromParcel(in);
    if (in.readByte() == 1) {
        rssiCurve = RssiCurve.CREATOR.createFromParcel(in);
    } else {
        rssiCurve = null;
    }
    meteredHint = (in.readByte() == 1);
    attributes = in.readBundle();
}
 
Example 10
protected Title(@NonNull Parcel in) {
    this.pageInfo = in.readParcelable(PageInfo.class.getClassLoader());
    this.id = in.readInt();
    this.parentId = in.readInt();
    this.title = in.readString();
    this.isParent = in.readByte() != 0;
}
 
Example 11
public PaletteColor createFromParcel(Parcel in) {
    final String colorSectionName = in.readString();
    final int hex = in.readInt();
    final String baseName = in.readString();
    final boolean isActionbarPreviewColor = in.readByte() == 1 ? true : false;
    final boolean isPreviewColor = in.readByte() == 1 ? true : false;
    return new PaletteColor(colorSectionName, hex, baseName, isActionbarPreviewColor, isPreviewColor);
}
 
Example 12
protected NotificationStats(Parcel in) {
    mSeen = in.readByte() != 0;
    mExpanded = in.readByte() != 0;
    mDirectReplied = in.readByte() != 0;
    mSnoozed = in.readByte() != 0;
    mViewedSettings = in.readByte() != 0;
    mInteracted = in.readByte() != 0;
    mDismissalSurface = in.readInt();
}
 
Example 13
Source Project: ProgressLayout   File: ProgressWheel.java    License: Apache License 2.0 5 votes vote down vote up
private WheelSavedState(Parcel in) {
  super(in);
  this.mProgress = in.readFloat();
  this.mTargetProgress = in.readFloat();
  this.isSpinning = in.readByte() != 0;
  this.spinSpeed = in.readFloat();
  this.barWidth = in.readInt();
  this.barColor = in.readInt();
  this.rimWidth = in.readInt();
  this.rimColor = in.readInt();
  this.circleRadius = in.readInt();
  this.linearProgress = in.readByte() != 0;
  this.fillRadius = in.readByte() != 0;
}
 
Example 14
Source Project: Newslly   File: Article.java    License: MIT License 5 votes vote down vote up
protected Article(Parcel in) {
    this.source = in.readParcelable(Source.class.getClassLoader());
    this.author = in.readString();
    this.title = in.readString();
    this.description = in.readString();
    this.url = in.readString();
    this.urlToImage = in.readString();
    this.publishedAt = in.readString();
    long tmpDate = in.readLong();
    this.date = tmpDate == -1 ? null : new Date(tmpDate);
    this.bookmark = in.readByte() != 0;
}
 
Example 15
protected CurrentUserCollection(Parcel in) {
    id = in.readInt();
    title = in.readString();
    curated = in.readByte() != 0;
    user = in.readParcelable(User.class.getClassLoader());
    links = in.readParcelable(Links.class.getClassLoader());
}
 
Example 16
Source Project: RetailStore   File: Product.java    License: Apache License 2.0 5 votes vote down vote up
protected Product(Parcel in) {
    id = in.readInt();
    categoryId = in.readInt();
    productId = in.readInt();
    price = in.readString();
    imageUrlOriginal = in.readString();
    imageUrlThumb = in.readString();
    imageUrlSmall = in.readString();
    imageUrlMedium = in.readString();
    name = in.readString();
    isInCart = in.readByte() != 0;
    totalPrice = in.readDouble();
}
 
Example 17
public MapPoint(Parcel p) {
    name = p.readString();
    description = p.readString();
    latitude = p.readDouble();
    longitude = p.readDouble();
    target = p.readByte() > 0;
    data = p.readString();
}
 
Example 18
@Override
public @NonNull CropAreaRenderer createFromParcel(@NonNull Parcel in) {
  return new CropAreaRenderer(in.readInt(),
                              in.readByte() == 1);
}
 
Example 19
Source Project: android_9.0.0_r45   File: RadioManager.java    License: Apache License 2.0 4 votes vote down vote up
private AmBandDescriptor(Parcel in) {
    super(in);
    mStereo = in.readByte() == 1;
}
 
Example 20
Source Project: NoHttp   File: HttpEntity.java    License: Apache License 2.0 4 votes vote down vote up
protected HttpEntity(Parcel in) {
    mSucceed = in.readByte() != 0;
    mMessage = in.readString();
    mData = in.readString();
}