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

The following examples show how to use android.os.Parcel#writeLong() . 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 want to check out the right sidebar which shows the related API usage.
Example 1
@Override
public void writeToParcel(Parcel out, int flags)
{
    // order is meaningful
    out.writeString(artist);
    out.writeString(album);
    out.writeString(track);
    out.writeString(external_id);
    out.writeString(genre);
    out.writeString(composer);
    out.writeString(uri);
    out.writeString(application);
    out.writeLong(durationMS);
    out.writeLong(positionMS);
    out.writeInt(isPlaying?1:0);
    out.writeInt(action);
    out.writeLong(timeSent);
    out.writeInt(track_number);
    out.writeInt(listSize);
    out.writeInt(listPosition);
}
 
Example 2
Source Project: px-android   File: ReviewAndConfirmViewModel.java    License: MIT License 6 votes vote down vote up
@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeString(paymentMethodId);
    dest.writeString(lastFourDigits);
    if (accreditationTime == null) {
        dest.writeByte((byte) 0);
    } else {
        dest.writeByte((byte) 1);
        dest.writeInt(accreditationTime);
    }
    dest.writeString(issuerName);
    dest.writeByte((byte) (moreThanOnePaymentMethod ? 1 : 0));
    dest.writeString(paymentMethodName);
    dest.writeString(paymentType);
    dest.writeLong(issuerId);
    dest.writeString(cardId);
}
 
Example 3
Source Project: JZVideoDemo   File: NewsBean.java    License: MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(title);
    dest.writeString(imageUrl);
    dest.writeString(videoUrl);
    dest.writeInt(type);
    dest.writeInt(commentNum);
    dest.writeLong(duration);
}
 
Example 4
Source Project: pandroid   File: Review.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(userId);
    dest.writeLong(id);
    dest.writeString(title);
    dest.writeString(body);
}
 
Example 5
Source Project: SoloPi   File: RecordCaseInfo.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.id);
    dest.writeString(this.caseName);
    dest.writeString(this.caseDesc);
    dest.writeString(this.targetAppPackage);
    dest.writeString(this.targetAppLabel);
    dest.writeString(this.recordMode);
    dest.writeString(this.advanceSettings);
    dest.writeString(this.operationLog);
    dest.writeInt(this.priority);
    dest.writeLong(this.gmtCreate);
    dest.writeLong(this.gmtModify);
}
 
Example 6
Source Project: 365browser   File: FileDescriptorInfo.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(id);
    dest.writeParcelable(fd, CONTENTS_FILE_DESCRIPTOR);
    dest.writeLong(offset);
    dest.writeLong(size);
}
 
Example 7
@Override
public void writeToParcel(final Parcel dest, final int flags) {
	dest.writeInt(scanMode);
	dest.writeInt(callbackType);
	dest.writeLong(reportDelayMillis);
	dest.writeInt(matchMode);
	dest.writeInt(numOfMatchesPerFilter);
	dest.writeInt(legacy ? 1 : 0);
	dest.writeInt(phy);
	dest.writeInt(useHardwareFilteringIfSupported ? 1 : 0);
	dest.writeInt(useHardwareBatchingIfSupported ? 1 : 0);
	dest.writeLong(powerSaveScanInterval);
	dest.writeLong(powerSaveRestInterval);
}
 
Example 8
Source Project: 365browser   File: NetworkStats.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(elapsedRealtime);
    dest.writeInt(size);
    dest.writeStringArray(iface);
    dest.writeIntArray(uid);
    dest.writeIntArray(set);
    dest.writeIntArray(tag);
    dest.writeLongArray(rxBytes);
    dest.writeLongArray(rxPackets);
    dest.writeLongArray(txBytes);
    dest.writeLongArray(txPackets);
    dest.writeLongArray(operations);
}
 
Example 9
@Override
public void writeToParcel(Parcel dest, int flags) {
    if (id == null) {
        dest.writeByte((byte) 0);
    } else {
        dest.writeByte((byte) 1);
        dest.writeLong(id);
    }
    dest.writeString(company);
    dest.writeString(codeKeyword);
    dest.writeString(codeRegex);
}
 
Example 10
Source Project: android_9.0.0_r45   File: SyncRequest.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeBundle(mExtras);
    parcel.writeLong(mSyncFlexTimeSecs);
    parcel.writeLong(mSyncRunTimeSecs);
    parcel.writeInt((mIsPeriodic ? 1 : 0));
    parcel.writeInt((mDisallowMetered ? 1 : 0));
    parcel.writeInt((mIsAuthority ? 1 : 0));
    parcel.writeInt((mIsExpedited? 1 : 0));
    parcel.writeParcelable(mAccountToSync, flags);
    parcel.writeString(mAuthority);
}
 
Example 11
@Override
public void writeToParcel(Parcel dest, int flags) {
    // TODO Auto-generated method stub
    dest.writeString(url);
    dest.writeLong(cutType);
    dest.writeString(width);
    dest.writeString(type);
    dest.writeString(height);
}
 
Example 12
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeString(mBdAddress);
    parcel.writeInt(mType.ordinal());
    parcel.writeFloat(mX);
    parcel.writeFloat(mY);
    parcel.writeFloat(mZ);
    parcel.writeByteArray(mOriginalData);
    parcel.writeLong(mTime);
}
 
Example 13
Source Project: belvedere   File: MediaResult.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeSerializable(file);
    dest.writeParcelable(uri, flags);
    dest.writeString(name);
    dest.writeString(mimeType);
    dest.writeParcelable(originalUri, flags);
    dest.writeLong(size);
    dest.writeLong(width);
    dest.writeLong(height);
}
 
Example 14
Source Project: nitroshare-android   File: TransferStatus.java    License: MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeInt(mId);
    out.writeString(mDirection.name());
    out.writeString(mRemoteDeviceName);
    out.writeString(mState.name());
    out.writeInt(mProgress);
    out.writeLong(mBytesTransferred);
    out.writeLong(mBytesTotal);
    out.writeString(mError);
}
 
Example 15
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeFloat(temperature);
    parcel.writeFloat(lon);
    parcel.writeFloat(lat);
    parcel.writeFloat(windSpeed);
    parcel.writeFloat(windDirection);
    parcel.writeFloat(pressure);
    parcel.writeInt(humidity);
    parcel.writeInt(clouds);
    parcel.writeLong(sunrise);
    parcel.writeLong(sunset);
    parcel.writeTypedList(currentWeathers);
}
 
Example 16
Source Project: OTTLivePlayer_vlc   File: HistoryItem.java    License: MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int i) {
    super.writeToParcel(parcel, i);
    parcel.writeString(mrl);
    parcel.writeByte((byte) (favorite ? 1 : 0));
    parcel.writeLong(insertionDate);
}
 
Example 17
Source Project: android_9.0.0_r45   File: NanoAppFilter.java    License: Apache License 2.0 4 votes vote down vote up
public void writeToParcel(Parcel out, int flags) {
    out.writeLong(mAppId);
    out.writeInt(mAppVersion);
    out.writeInt(mVersionRestrictionMask);
    out.writeLong(mAppIdVendorMask);
}
 
Example 18
Source Project: edx-app-android   File: SocialMember.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(this.id);
    dest.writeString(this.fullName);
    dest.writeString(this.pictureUrl);
}
 
Example 19
public void writeToParcel(Parcel parcel, int flags) {
    super.writeToParcel(parcel, flags);
    parcel.writeLong(this.windowStart);
    parcel.writeLong(this.windowEnd);
}
 
Example 20
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeLong(ptsTime);
  dest.writeLong(playbackPositionUs);
}