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

The following examples show how to use android.os.Parcel#writeLong() . 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 File: ReviewAndConfirmViewModel.java    From px-android with 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 2
Source File: PodEmuMessage.java    From PodEmu with GNU General Public License v3.0 6 votes vote down vote up
@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 3
Source File: HistoryItem.java    From OTTLivePlayer_vlc with 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 4
Source File: NewsBean.java    From JZVideoDemo with 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 5
Source File: Weather.java    From your-local-weather with GNU General Public License v3.0 5 votes vote down vote up
@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 6
Source File: TransferStatus.java    From nitroshare-android with 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 7
Source File: MediaResult.java    From belvedere with 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 8
Source File: LinkingSensorData.java    From DeviceConnect-Android with MIT License 5 votes vote down vote up
@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 9
Source File: HotWeiboPicInfo.java    From iBeebo with GNU General Public License v3.0 5 votes vote down vote up
@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 10
Source File: SyncRequest.java    From android_9.0.0_r45 with 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
Source File: SmsCodeRule.java    From XposedSmsCode with GNU General Public License v3.0 5 votes vote down vote up
@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 12
Source File: NetworkStats.java    From 365browser with 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 13
Source File: ScanSettings.java    From Android-Scanner-Compat-Library with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@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 14
Source File: FileDescriptorInfo.java    From 365browser with 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 15
Source File: RecordCaseInfo.java    From SoloPi with 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 16
Source File: Review.java    From pandroid with 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 17
Source File: NanoAppFilter.java    From android_9.0.0_r45 with 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 File: SocialMember.java    From edx-app-android with 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
Source File: OneoffTask.java    From android_external_GmsLib with Apache License 2.0 4 votes vote down vote up
public void writeToParcel(Parcel parcel, int flags) {
    super.writeToParcel(parcel, flags);
    parcel.writeLong(this.windowStart);
    parcel.writeLong(this.windowEnd);
}
 
Example 20
Source File: TimeSignalCommand.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeLong(ptsTime);
  dest.writeLong(playbackPositionUs);
}