本文整理汇总了Java中android.os.Parcel.writeStringList方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.writeStringList方法的具体用法?Java Parcel.writeStringList怎么用?Java Parcel.writeStringList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeStringList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
public void writeToParcel(Parcel parcel, int n2)
{
byte by2 = 1;
parcel.writeString(this.title);
parcel.writeString(this.subtitle);
parcel.writeStringList(this.roots);
byte by3 = this.showHidden ? by2 : 0;
parcel.writeByte(by3);
byte by4 = this.mustBeWritable ? by2 : 0;
parcel.writeByte(by4);
byte by5 = this.expandSingularRoot ? by2 : 0;
parcel.writeByte(by5);
if (!this.expandMultipleRoots)
{
by2 = 0;
}
parcel.writeByte(by2);
}
示例2: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(record_id);
parcel.writeInt(series_id);
parcel.writeString(list_status);
parcel.writeString(score);
parcel.writeInt(score_raw);
parcel.writeInt(episodes_watched);
parcel.writeInt(chapters_read);
parcel.writeInt(volumes_read);
parcel.writeInt(rewatched);
parcel.writeInt(reread);
parcel.writeInt(priority);
parcel.writeInt(Private);
parcel.writeInt(hidden_default);
parcel.writeString(notes);
parcel.writeStringList(custom_lists);
parcel.writeString(started_on);
parcel.writeString(finished_on);
parcel.writeString(added_time);
parcel.writeString(updated_time);
parcel.writeParcelable(anime, i);
parcel.writeParcelable(manga, i);
}
示例3: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.productUom);
dest.writeDouble(this.priceUnit);
dest.writeDouble(this.discount);
dest.writeDouble(this.returnAmount);
dest.writeDouble(this.deliveredQty);
dest.writeDouble(this.priceSubtotal);
dest.writeInt(this.productID);
dest.writeDouble(this.tallyingAmount);
dest.writeInt(this.saleOrderProductID);
dest.writeString(this.stockType);
dest.writeString(this.category);
dest.writeDouble(this.settleAmount);
dest.writeDouble(this.productUomQty);
dest.writeStringList(this.lotIDs);
dest.writeTypedList(this.lotList);
dest.writeByte(this.isChanged ? (byte) 1 : (byte) 0);
}
示例4: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(productUom);
dest.writeDouble(priceUnit);
dest.writeDouble(tax);
dest.writeDouble(discount);
dest.writeDouble(deliveredQty);
dest.writeDouble(priceSubtotal);
dest.writeInt(productID);
dest.writeInt(saleOrderProductID);
dest.writeDouble(pickupWeight);
dest.writeDouble(pickupNum);
dest.writeString(stockType);
dest.writeString(category);
dest.writeDouble(productUomQty);
dest.writeStringList(lotIDs);
dest.writeTypedList(lotList);
}
示例5: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(productid);
parcel.writeString(productname);
parcel.writeString(username);
parcel.writeString(categoryname);
parcel.writeString(productaddress);
parcel.writeString(areaproduct);
parcel.writeString(productstatus);
parcel.writeString(productdate);
parcel.writeStringList(productimage);
parcel.writeDouble(price);
parcel.writeString(description);
parcel.writeString(sharecount);
parcel.writeParcelable(location, i);
}
示例6: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.type);
dest.writeString(this.sort);
dest.writeString(this.sortDirection);
dest.writeInt(this.queryMap.size());
for (Map.Entry<String, String> entry : this.queryMap.entrySet()) {
dest.writeString(entry.getKey());
dest.writeString(entry.getValue());
}
dest.writeByte(this.isPersonalProfile ? (byte) 1 : (byte) 0);
dest.writeStringList(this.typesListForPersonalProfile);
dest.writeStringList(this.typesListForExternalProfile);
dest.writeStringList(this.typesListForOrganizationProfile);
dest.writeStringList(this.sortOptionsList);
dest.writeStringList(this.sortDirectionList);
dest.writeByte(this.isOrg ? (byte) 1 : (byte) 0);
}
示例7: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(deviceId);
dest.writeValue(name);
dest.writeValue(isConnected);
dest.writeStringList(new ArrayList<>(functions));
Parcelables.writeSerializableMap(dest, variables);
dest.writeValue(version);
dest.writeValue(deviceType != null ? deviceType.name() : null);
dest.writeValue(platformId);
dest.writeValue(productId);
dest.writeValue(cellular);
dest.writeValue(imei);
dest.writeValue(currentBuild);
dest.writeValue(defaultBuild);
dest.writeValue(ipAddress);
dest.writeValue(lastAppName);
dest.writeValue(status);
dest.writeValue(requiresUpdate);
dest.writeValue(lastHeard != null ? lastHeard.getTime() : 0);
}
示例8: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.pickingID);
dest.writeString(this.pickingName);
dest.writeString(this.date);
dest.writeString(this.pickingState);
dest.writeString(this.locationName);
dest.writeString(this.locationDestName);
// dest.writeTypedList(this.lines);
dest.writeStringList(this.stateTracker);
dest.writeFloat(this.totalPrice);
dest.writeInt(this.totalNum);
dest.writeInt(isConfirmed?1:0);
dest.writeString(this.pickingStateFull);
}
示例9: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
public void writeToParcel(Parcel dest, int flags) {
/**
* NOTE: When adding fields in the process of updating this API, make sure to bump
* {@link #PARCELABLE_VERSION}.
*/
dest.writeInt(PARCELABLE_VERSION);
// Inject a placeholder that will store the parcel size from this point on
// (not including the size itself).
int sizePosition = dest.dataPosition();
dest.writeInt(0);
int startPosition = dest.dataPosition();
// version 1
dest.writeInt(result);
// signatureOnly is deprecated since version 3. we pass a dummy value for compatibility
dest.writeByte((byte) 0);
dest.writeString(primaryUserId);
dest.writeLong(keyId);
// version 2
dest.writeStringList(userIds);
// version 3
writeEnumWithNull(dest, senderStatusResult);
dest.writeStringList(confirmedUserIds);
// Go back and write the size
int parcelableSize = dest.dataPosition() - startPosition;
dest.setDataPosition(sizePosition);
dest.writeInt(parcelableSize);
dest.setDataPosition(startPosition + parcelableSize);
}
示例10: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel out, int flags) {
out.writeLong(id);
out.writeString(username);
out.writeString(gcmToken);
out.writeString(firstName);
out.writeString(lastName);
out.writeStringList(roles);
}
示例11: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this._id);
dest.writeString(this.createdAt);
dest.writeString(this.desc);
dest.writeString(this.publishedAt);
dest.writeString(this.source);
dest.writeString(this.type);
dest.writeString(this.url);
dest.writeByte(this.used ? (byte) 1 : (byte) 0);
dest.writeString(this.who);
dest.writeStringList(this.images);
}
示例12: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeParcelable(this.author_info, flags);
dest.writeString(this.category);
dest.writeString(this.category_url);
dest.writeInt(this.cid);
dest.writeString(this.create_time);
dest.writeString(this.desc);
dest.writeParcelable(this.play_info, flags);
dest.writeString(this.title);
dest.writeParcelable(this.video_info, flags);
dest.writeList(this.relative_list);
dest.writeStringList(this.tag_list);
}
示例13: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(expires.getTime());
dest.writeStringList(new ArrayList<String>(permissions));
dest.writeStringList(new ArrayList<String>(declinedPermissions));
dest.writeString(token);
dest.writeString(source.name());
dest.writeLong(lastRefresh.getTime());
dest.writeString(applicationId);
dest.writeString(userId);
}
示例14: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeList(this.intergers);
dest.writeList(this.characters);
dest.writeTypedList(this.intents);
dest.writeStringArray(this.testStrs);
dest.writeStringList(this.strs);
}
示例15: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
/**
* Flatten this object in to a Parcel.
*
* @param dest The Parcel in which the object should be written.
* @param flags Additional flags about how the object should be written.
* May be 0 or {@link #PARCELABLE_WRITE_RETURN_VALUE}.
*/
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(emoji);
dest.writeStringList(aliases);
dest.writeStringList(emoticons);
dest.writeStringList(tags);
dest.writeString(hexHtml);
dest.writeString(decimalHtml);
dest.writeString(decimalHtmlShort);
dest.writeString(hexHtmlShort);
dest.writeString(decimalSurrogateHtml);
}