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

The following examples show how to use android.os.Parcel#writeDouble() . 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: arcusandroid   File: HubProxyModel.java    License: Apache License 2.0 6 votes vote down vote up
@Override public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte(this.isOnline ? (byte) 1 : (byte) 0);
    dest.writeLong(this.onlineDays);
    dest.writeLong(this.onlineHours);
    dest.writeLong(this.onlineMinutes);
    dest.writeLong(this.lastChanged);
    dest.writeDouble(this.batteryLevel);
    dest.writeParcelable(this.cellBackupModel, flags);
    dest.writeString(this.id);
    dest.writeString(this.imei);
    dest.writeString(this.simID);
    dest.writeString(this.esn);
    dest.writeString(this.onlineTime);
    dest.writeString(this.connectionType);
    dest.writeString(this.batteryType);
    dest.writeString(this.batteryLevelString);
    dest.writeString(this.wifiNetwork);
    dest.writeString(this.wifiConnectedState);
    dest.writeString(this.hubModelNumber);
    dest.writeByte(this.hasWiFiCredentials ? (byte) 1 : (byte) 0);
    dest.writeInt(this.wifiSignal);
}
 
Example 2
Source Project: mytracks   File: TripStatistics.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeLong(startTime);
  dest.writeLong(stopTime);
  dest.writeDouble(totalDistance);
  dest.writeLong(totalTime);
  dest.writeLong(movingTime);
  dest.writeDouble(latitudeExtremities.getMin());
  dest.writeDouble(latitudeExtremities.getMax());
  dest.writeDouble(longitudeExtremities.getMin());
  dest.writeDouble(longitudeExtremities.getMax());
  dest.writeDouble(maxSpeed);
  dest.writeDouble(elevationExtremities.getMin());
  dest.writeDouble(elevationExtremities.getMax());
  dest.writeDouble(totalElevationGain);
  dest.writeDouble(gradeExtremities.getMin());
  dest.writeDouble(gradeExtremities.getMax());
  dest.writeDouble(calorie);
}
 
Example 3
Source Project: SimpleOpenVpn-Android   File: Server.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(hostName);
    dest.writeString(ip);
    dest.writeString(score);
    dest.writeString(ping);
    dest.writeString(speed);
    dest.writeString(countryLong);
    dest.writeString(countryShort);
    dest.writeString(numVpnSessions);
    dest.writeString(uptime);
    dest.writeString(totalUsers);
    dest.writeString(totalTraffic);
    dest.writeString(logType);
    dest.writeString(operator);
    dest.writeString(message);
    dest.writeString(configData);
    dest.writeInt(quality);
    dest.writeString(city);
    dest.writeInt(type);
    dest.writeString(regionName);
    dest.writeDouble(lat);
    dest.writeDouble(lon);
}
 
Example 4
Source Project: mobilecloud-15   File: WeatherData.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Write this instance out to byte contiguous memory.
 */
@Override
public void writeToParcel(Parcel dest,
                          int flags) {
    dest.writeString(mName);
    dest.writeLong(mDate);
    dest.writeLong(mCod);
    final Weather weather = mWeathers.get(0);
    dest.writeLong(weather.getId());
    dest.writeString(weather.getMain());
    dest.writeString(weather.getDescription());
    dest.writeString(weather.getIcon());
    dest.writeLong(mSys.getSunrise());
    dest.writeLong(mSys.getSunset());
    dest.writeString(mSys.getCountry());
    dest.writeDouble(mMain.getTemp());
    dest.writeLong(mMain.getHumidity());
    dest.writeDouble(mMain.getPressure());
    dest.writeDouble(mWind.getSpeed());
    dest.writeDouble(mWind.getDeg());
}
 
Example 5
Source Project: alpha-wallet-android   File: MagicLinkParcel.java    License: MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeLong(magicLink.expiry);
    parcel.writeDouble(magicLink.price);
    parcel.writeInt(magicLink.ticketStart);
    parcel.writeInt(magicLink.ticketCount);
    parcel.writeString(magicLink.contractAddress);
    parcel.writeInt(magicLink.indices.length);
    parcel.writeIntArray(magicLink.indices);
    parcel.writeInt(magicLink.signature.length);
    parcel.writeByteArray(magicLink.signature);
    parcel.writeInt(magicLink.message.length);
    parcel.writeByteArray(magicLink.message);
    parcel.writeString(magicLink.priceWei.toString(10));
}
 
Example 6
Source Project: LocationAware   File: CheckPoint.java    License: Apache License 2.0 5 votes vote down vote up
@Override public void writeToParcel(Parcel dest, int flags) {
  dest.writeLong(id);
  dest.writeString(name);
  dest.writeDouble(latitude);
  dest.writeDouble(longitude);
  dest.writeByte((byte) (active ? 1 : 0));
}
 
Example 7
@Override
public void writeToParcel(Parcel p, int arg1) {
    p.writeString(name);
    p.writeString(description);
    p.writeDouble(latitude);
    p.writeDouble(longitude);
    p.writeByte((byte) (target ? 1 : 0));
    p.writeString(data);
}
 
Example 8
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.duration);
    dest.writeInt(this.distance);
    dest.writeDouble(this.price);
    dest.writeString(this.name);
    dest.writeByte(this.isTexi ? (byte) 1 : (byte) 0);
    dest.writeByte(this.isSameCity ? (byte) 1 : (byte) 0);
    dest.writeParcelable(this.line, flags);
    dest.writeString(this.destinationCity);
    dest.writeString(this.originCity);
}
 
Example 9
Source Project: AndroidSchool   File: Movie.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeInt(mId);
    parcel.writeString(mPosterPath);
    parcel.writeString(mOverview);
    parcel.writeString(mTitle);
    parcel.writeString(mReleasedDate);
    parcel.writeDouble(mVoteAverage);
    parcel.writeBooleanArray(new boolean[]{mIsFavourite});
}
 
Example 10
Source Project: Emotion-Analysis-API   File: Scores.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(anger);
    dest.writeDouble(contempt);
    dest.writeDouble(disgust);
    dest.writeDouble(fear);
    dest.writeDouble(happiness);
    dest.writeDouble(neutral);
    dest.writeDouble(sadness);
    dest.writeDouble(surprise);
}
 
Example 11
Source Project: Mobike   File: RoutePoint.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeDouble(routeLat);
    parcel.writeDouble(routeLng);
    parcel.writeInt(id);

}
 
Example 12
Source Project: fingen   File: BudgetCreditSync.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeInt(this.mYear);
    dest.writeInt(this.mMonth);
    dest.writeLong(this.mCreditID);
    dest.writeDouble(this.mAmount);
}
 
Example 13
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeDouble(latitude);
  dest.writeDouble(longitude);
  dest.writeString(address);
}
 
Example 14
Source Project: ridesharing-android   File: Place.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(this.latitude);
    dest.writeDouble(this.longitude);
    dest.writeString(this.address);
}
 
Example 15
Source Project: parceler   File: NonParcelRepository.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void nullSafeToParcel(Double input, Parcel parcel) {
    parcel.writeDouble(input);
}
 
Example 16
Source Project: postman   File: DoubleParcelableAdapter.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(value);
}
 
Example 17
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(this.latitude);
    dest.writeDouble(this.longitude);
}
 
Example 18
Source Project: GoogleDirectionLibrary   File: Waypoint.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(location, flags);
    dest.writeInt(index);
    dest.writeDouble(interpolation);
}
 
Example 19
@Override
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeDouble(threshold);
    parcel.writeParcelable(type, flags);
}
 
Example 20
Source Project: paperparcel   File: StaticAdapters.java    License: Apache License 2.0 4 votes vote down vote up
@Override public void writeToParcel(@NonNull Double value, @NonNull Parcel dest, int flags) {
  dest.writeDouble(value);
}