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

The following examples show how to use android.os.Parcel#writeDouble() . 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: HubProxyModel.java    From arcusandroid with 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 File: TripStatistics.java    From mytracks with 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 File: WeatherData.java    From mobilecloud-15 with 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 4
Source File: Server.java    From SimpleOpenVpn-Android with 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 5
Source File: Movie.java    From AndroidSchool with 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 6
Source File: BudgetCreditSync.java    From fingen with 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 7
Source File: RoutePoint.java    From Mobike with 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 8
Source File: Scores.java    From Emotion-Analysis-API with 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 9
Source File: BusRouteModel.java    From BmapLite with GNU General Public License v3.0 5 votes vote down vote up
@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 10
Source File: MapPoint.java    From WhereYouGo with GNU General Public License v3.0 5 votes vote down vote up
@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 11
Source File: CheckPoint.java    From LocationAware with 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 12
Source File: MagicLinkParcel.java    From alpha-wallet-android with 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 13
Source File: AddressData.java    From mollyim-android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeDouble(latitude);
  dest.writeDouble(longitude);
  dest.writeString(address);
}
 
Example 14
Source File: NonParcelRepository.java    From parceler with Apache License 2.0 4 votes vote down vote up
@Override
public void nullSafeToParcel(Double input, Parcel parcel) {
    parcel.writeDouble(input);
}
 
Example 15
Source File: DoubleParcelableAdapter.java    From postman with MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(value);
}
 
Example 16
Source File: Position.java    From Mysplash with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(this.latitude);
    dest.writeDouble(this.longitude);
}
 
Example 17
Source File: Waypoint.java    From GoogleDirectionLibrary with 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 18
Source File: Place.java    From ridesharing-android with 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 19
Source File: AlertEvaluationCondition.java    From hawkular-android-client with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeDouble(threshold);
    parcel.writeParcelable(type, flags);
}
 
Example 20
Source File: StaticAdapters.java    From paperparcel with 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);
}