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

The following are Jave code examples for showing how to use readByte() 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: OpenHub   File: Release.java   View Source Code Vote up 6 votes
protected Release(Parcel in) {
    this.id = in.readString();
    this.tagName = in.readString();
    this.targetCommitish = in.readString();
    this.name = in.readString();
    this.body = in.readString();
    this.bodyHtml = in.readString();
    this.tarballUrl = in.readString();
    this.zipballUrl = in.readString();
    this.draft = in.readByte() != 0;
    this.preRelease = in.readByte() != 0;
    long tmpCreatedAt = in.readLong();
    this.createdAt = tmpCreatedAt == -1 ? null : new Date(tmpCreatedAt);
    long tmpPublishedAt = in.readLong();
    this.publishedAt = tmpPublishedAt == -1 ? null : new Date(tmpPublishedAt);
    this.author = in.readParcelable(User.class.getClassLoader());
    this.assets = in.createTypedArrayList(ReleaseAsset.CREATOR);
}
 
Example 2
Project: mvvm-template   File: GitCommitModel.java   View Source Code Vote up 6 votes
protected GitCommitModel(Parcel in) {
    this.sha = in.readString();
    this.url = in.readString();
    this.message = in.readString();
    this.author = in.readParcelable(User.class.getClassLoader());
    this.committer = in.readParcelable(User.class.getClassLoader());
    this.tree = in.readParcelable(User.class.getClassLoader());
    this.distincted = in.readByte() != 0;

    this.parents = new RealmList<>();
    ArrayList<GitCommitModel> list = in.createTypedArrayList(GitCommitModel.CREATOR);
    if (list != null && list.size() > 0) {
        parents.addAll(list);
    }

    this.commentCount = in.readInt();
}
 
Example 3
Project: mapbox-events-android   File: MapLoadEvent.java   View Source Code Vote up 6 votes
private MapLoadEvent(Parcel in) {
  event = in.readString();
  created = in.readString();
  userId = in.readString();
  model = in.readString();
  operatingSystem = in.readString();
  resolution = in.readByte() == 0x00 ? null : in.readFloat();
  accessibilityFontScale = in.readByte() == 0x00 ? null : in.readFloat();
  orientation = in.readString();
  batteryLevel = in.readByte() == 0x00 ? null : in.readInt();
  byte pluggedInVal = in.readByte();
  pluggedIn = pluggedInVal == 0x02 ? null : pluggedInVal != 0x00;
  carrier = in.readString();
  cellularNetworkType = in.readString();
  byte wifiVal = in.readByte();
  wifi = wifiVal == 0x02 ? null : wifiVal != 0x00;
}
 
Example 4
Project: Phoenix-for-VK   File: PhotoAlbum.java   View Source Code Vote up 6 votes
protected PhotoAlbum(Parcel in) {
    super(in);
    id = in.readInt();
    ownerId = in.readInt();
    size = in.readInt();
    title = in.readString();
    description = in.readString();
    canUpload = in.readByte() != 0;
    updatedTime = in.readLong();
    createdTime = in.readLong();
    sizes = in.readParcelable(PhotoSizes.class.getClassLoader());
    uploadByAdminsOnly = in.readByte() != 0;
    commentsDisabled = in.readByte() != 0;
    privacyView = in.readParcelable(SimplePrivacy.class.getClassLoader());
    privacyComment = in.readParcelable(SimplePrivacy.class.getClassLoader());
}
 
Example 5
Project: mesh-core-on-android   File: MeshModelMessageOpcode.java   View Source Code Vote up 5 votes
public MeshModelMessageOpcode createFromParcel(Parcel in) {
	MeshModelMessageOpcode msgOp = new MeshModelMessageOpcode();

	msgOp.mOp0 = in.readByte();
	msgOp.mOp1 = in.readByte();
	msgOp.mOp2 = in.readByte();

	return msgOp;
}
 
Example 6
Project: openlocate-android   File: OpenLocate.java   View Source Code Vote up 5 votes
protected Configuration(Parcel in) {
    this.endpoints = in.createTypedArrayList(Endpoint.CREATOR);
    this.isWifiCollectionDisabled = in.readByte() != 0;
    this.isDeviceModelCollectionDisabled = in.readByte() != 0;
    this.isDeviceManufacturerCollectionDisabled = in.readByte() != 0;
    this.isOperatingSystemCollectionDisbaled = in.readByte() != 0;
    this.isChargingInfoCollectionDisabled = in.readByte() != 0;
    this.isCarrierNameCollectionDisabled = in.readByte() != 0;
    this.isConnectionTypeCollectionDisabled = in.readByte() != 0;
    this.isLocationMethodCollectionDisabled = in.readByte() != 0;
    this.isLocationContextCollectionDisabled = in.readByte() != 0;
}
 
Example 7
Project: AstronomyTourPadova   File: AtPoint.java   View Source Code Vote up 5 votes
protected AtPoint(Parcel in) {
    id_point = in.readInt();
    pos = in.readByte() == 0x00 ? null : in.readInt();
    name = in.readString();
    title = in.readString();
    description = in.readString();
    image = in.readString();
    lat = in.readDouble();
    lon = in.readDouble();
    status = in.readString();
    time_reached = in.readString();
}
 
Example 8
Project: nongbeer-mvp-android-demo   File: BeerProductItem.java   View Source Code Vote up 5 votes
protected BeerProductItem( Parcel in ){
    super( in );
    this.id = in.readString();
    this.alcohol = in.readString();
    this.image = in.readString();
    this.name = in.readString();
    this.price = in.readInt();
    this.volume = in.readString();
    this.amount = in.readInt();
    this.isAdded = in.readByte() != 0;
}
 
Example 9
Project: exciting-app   File: AbsHListView.java   View Source Code Vote up 5 votes
private void readSparseBooleanArrayInternal(
		SparseArrayCompat<Boolean> outVal, Parcel in, int N) {
	while (N > 0) {
		int key = in.readInt();
		boolean value = in.readByte() == 1;
		if (LOG_ENABLED) {
			Log.i(TAG, "Unmarshalling key=" + key + " value=" + value);
		}
		outVal.append(key, value);
		N--;
	}
}
 
Example 10
Project: q-mail   File: LocalSearch.java   View Source Code Vote up 5 votes
public LocalSearch(Parcel in) {
    mName = in.readString();
    mPredefined = (in.readByte() == 1);
    mManualSearch = (in.readByte() == 1);
    mAccountUuids.addAll(in.createStringArrayList());
    mConditions = in.readParcelable(LocalSearch.class.getClassLoader());
    mLeafSet = (mConditions == null) ? null : mConditions.getLeafSet();
}
 
Example 11
Project: RLibrary   File: LargeMessageSnapshot.java   View Source Code Vote up 5 votes
ConnectedMessageSnapshot(Parcel in) {
    super(in);
    this.resuming = in.readByte() != 0;
    this.totalBytes = in.readLong();
    this.etag = in.readString();
    this.fileName = in.readString();
}
 
Example 12
Project: Allshare   File: WXContent.java   View Source Code Vote up 5 votes
protected WXContent(Parcel in) {
    super(in);
    this.title = in.readString();
    this.thumb = in.readParcelable(Bitmap.class.getClassLoader());
    this.description = in.readString();
    this.text = in.readString();
    this.image = in.readParcelable(Bitmap.class.getClassLoader());
    this.link = in.readString();
    this.timeline = in.readByte() != 0;
}
 
Example 13
Project: newIPlay   File: ArticleListBean.java   View Source Code Vote up 5 votes
protected ArticleListBean(Parcel in) {
    this.articleTags = in.readString();
    this.digest = in.readString();
    this.docid = in.readString();
    this.fromTopicSource = in.readByte() != 0;
    this.gameName = in.readString();
    this.id = in.readInt();
    this.largeLogoUrl = in.readString();
    this.lmodify = in.readString();
    this.nickname = in.readString();
    this.penName = in.readString();
    this.photosetId = in.readString();
    this.photosetImgNum = in.readInt();
    this.priority = in.readInt();
    this.ptime = in.readString();
    this.readSeconds = in.readInt();
    this.replyCount = in.readInt();
    this.role = in.readString();
    this.showType = in.readInt();
    this.source = in.readString();
    this.specialId = in.readString();
    this.subtitle = in.readString();
    this.title = in.readString();
    this.topicName = in.readString();
    this.url = in.readString();
    this.userId = in.readInt();
    this.userOrder = in.readByte() != 0;
    this.imgsrc = in.createStringArrayList();
    this.editor = new ArrayList<Editor>();
    in.readList(this.editor, Editor.class.getClassLoader());
    this.fidIconUrl = in.readString();
    this.tid = in.readString();
    this.topicId = in.readString();
    this.docId = in.readString();
    this.imgUrl = in.readString();
    this.isLooked = in.readByte() != 0;
}
 
Example 14
Project: whatisnewdialog   File: DialogSettings.java   View Source Code Vote up 5 votes
protected DialogSettings(Parcel in) {
    this.versionName = in.readString();
    this.titleResId = in.readInt();
    this.textPositiveResId = in.readInt();
    this.textNeutralResId = in.readInt();
    this.showNeutralButton = in.readByte() != 0;
    this.showPositiveButton = in.readByte() != 0;
    this.showTitle = in.readByte() != 0;
    this.cancelable = in.readByte() != 0;
    this.titleText = in.readString();
    this.positiveText = in.readString();
    this.neutralText = in.readString();
}
 
Example 15
Project: Hillffair17   File: ProfileDataModel.java   View Source Code Vote up 5 votes
protected ProfileDataModel(Parcel in) {
    success = in.readByte() != 0;
    name = in.readString();
    rollno = in.readString();
    photo = in.readString();
    email = in.readString();
    msg = in.readString();
}
 
Example 16
Project: garras   File: Photos.java   View Source Code Vote up 5 votes
protected CoverPhoto(Parcel in) {
    id = in.readString();
    width = in.readInt();
    height = in.readInt();
    color = in.readString();
    likes = in.readInt();
    liked_by_user = in.readByte() != 0;
    user = in.readParcelable(User.class.getClassLoader());
    urls = in.readParcelable(Urls.class.getClassLoader());
    links = in.readParcelable(Links.class.getClassLoader());
    categories = in.createTypedArrayList(Categories.CREATOR);
}
 
Example 17
Project: OpenHub   File: SearchResult.java   View Source Code Vote up 4 votes
protected SearchResult(Parcel in) {
    this.totalCount = in.readString();
    this.incompleteResults = in.readByte() != 0;
    this.items = new ArrayList<M>();
    in.readList(this.items, SearchResult.class.getClassLoader());
}
 
Example 18
Project: IslamicLibraryAndroid   File: SearchOptions.java   View Source Code Vote up 4 votes
protected SearchOptions(Parcel in) {
    this.areAllAlefEquivelent = in.readByte() != 0;
    this.isTaMarboutaEquivlantToHax = in.readByte() != 0;
    this.neglectTashkeel = in.readByte() != 0;
}
 
Example 19
Project: GitHub   File: DownloadStatus.java   View Source Code Vote up 4 votes
protected DownloadStatus(Parcel in) {
    this.isChunked = in.readByte() != 0;
    this.totalSize = in.readLong();
    this.downloadSize = in.readLong();
}
 
Example 20
Project: TDList   File: TaskItem.java   View Source Code Vote up 4 votes
TaskItem(Parcel in) {
    Task = in.readString();
    status = in.readByte() != 0;
    deadlineDate = in.readString();
}