项目:kognitivo
文件:LoginClient.java
public LoginClient(Parcel source) {
Object [] o = source.readParcelableArray(LoginMethodHandler.class.getClassLoader());
handlersToTry = new LoginMethodHandler[o.length];
for (int i = 0; i < o.length; ++i) {
handlersToTry[i] = (LoginMethodHandler) o[i];
handlersToTry[i].setLoginClient(this);
}
currentHandler = source.readInt();
pendingRequest = source.readParcelable(Request.class.getClassLoader());
loggingExtras = Utility.readStringMapFromParcel(source);
}
项目:mvvm-template
文件:ReactionsModel.java
@Override
public void writetoParcel(Parcel dest,int flags) {
dest.writeLong(this.id);
dest.writeString(this.url);
dest.writeInt(this.total_count);
dest.writeInt(this.plusOne);
dest.writeInt(this.minusOne);
dest.writeInt(this.laugh);
dest.writeInt(this.hooray);
dest.writeInt(this.confused);
dest.writeInt(this.heart);
dest.writeString(this.content);
dest.writeParcelable(this.user,flags);
dest.writeByte(this.viewerHasReacted ? (byte) 1 : (byte) 0);
dest.writeByte(this.isCallingApi ? (byte) 1 : (byte) 0);
}
项目:AURdroid
文件:AurInfoResult.java
@Override
public void writetoParcel(Parcel dest,int flags) {
dest.writeValue(this.iD);
dest.writeString(this.name);
dest.writeValue(this.packageBaseID);
dest.writeString(this.packageBase);
dest.writeString(this.version);
dest.writeString(this.description);
dest.writeString(this.uRL);
dest.writeValue(this.numVotes);
dest.writeValue(this.popularity);
dest.writeString(this.outOfDate);
dest.writeString(this.maintainer);
dest.writeValue(this.firstSubmitted);
dest.writeValue(this.lastModified);
dest.writeString(this.uRLPath);
dest.writeStringList(this.depends);
dest.writeStringList(this.makeDepends);
dest.writeStringList(this.optDepends);
dest.writeStringList(this.conflicts);
dest.writeStringList(this.provides);
dest.writeStringList(this.license);
dest.writeStringList(this.keywords);
}
@Test
public void testVoterParcelMale() {
Voter Voter = new Voter(firstName,lastName,Gender.MALE);
Parcel parcel = Parcel.obtain();
Voter.writetoParcel(parcel,0);
// After you're done with writing,you need to reset the parcel for reading:
parcel.setDataPosition(0);
// Reconstruct object from parcel and asserts:
Voter createdFromParcel = Voter.CREATOR.createFromParcel(parcel);
assertEquals(Voter.getFirstName(),createdFromParcel.getFirstName());
assertEquals(Voter.getLastName(),createdFromParcel.getLastName());
assertEquals(Voter.getGender(),createdFromParcel.getGender());
}
项目:Phoenix-for-VK
文件:ParcelUtils.java
public static Map<Integer,String> readIntStringMap(Parcel in){
boolean isNull = in.readByte() == (byte) 1;
if(isNull){
return null;
}
int size = in.readInt();
Map<Integer,String> map = new HashMap<>(size);
for(int i = 0; i < size; i++){
Integer key = readobjectInteger(in);
String value = in.readString();
map.put(key,value);
}
return map;
}
项目:dagger-test-example
文件:List.java
@SuppressWarnings({
"unchecked"
})
public List createFromParcel(Parcel in) {
List instance = new List();
instance.dt = ((int) in.readValue((int.class.getClassLoader())));
instance.temp = ((Temp) in.readValue((Temp.class.getClassLoader())));
instance.pressure = ((double) in.readValue((double.class.getClassLoader())));
instance.humidity = ((int) in.readValue((int.class.getClassLoader())));
in.readList(instance.weather,(Weather.class.getClassLoader()));
instance.speed = ((double) in.readValue((double.class.getClassLoader())));
instance.deg = ((int) in.readValue((int.class.getClassLoader())));
instance.clouds = ((int) in.readValue((int.class.getClassLoader())));
instance.rain = ((double) in.readValue((double.class.getClassLoader())));
return instance;
}
项目:Matisse
文件:Item.java
@Override
public void writetoParcel(Parcel dest,int flags) {
dest.writeLong(id);
dest.writeString(mimeType);
dest.writeParcelable(uri,0);
dest.writeLong(size);
dest.writeLong(duration);
}
项目:Camera-Roll-Android-App
文件:AlbumItem.java
@Override
public AlbumItem createFromParcel(Parcel parcel) {
switch (parcel.readInt()) {
case VIDEO:
return new Video(parcel);
case GIF:
return new Gif(parcel);
case RAW:
return new RAWImage(parcel);
default:
return new Photo(parcel);
}
}
项目:DroidIPC
文件:ServiceManagerImpl.java
/**
* 检查所有的服务是否已经就位(已经添加到{@link ServiceManagerThread})
* @return
*/
private boolean isReadyRemote(){
Parcel data = Parcel.obtain();
Parcel reply = Parcel.obtain();
try {
mRemoteServiceManager.transact(ServiceContext.READY_REMOTE,data,reply,0);
int result = reply.readInt();
if(result == ServiceContext.SUCCESS) {
log("remote service manager ready");
return true;
}
log("remote service manager not ready");
return false;
} catch (remoteexception e) {
e.printstacktrace();
log("getService exception");
return false;
} finally {
data.recycle();
reply.recycle();
}
}
项目:HeroVideo-master
文件:UserLiveRoomStatusInfo.java
protected DataBean(Parcel in)
{
this.roomStatus = in.readInt();
this.liveStatus = in.readInt();
this.url = in.readString();
this.title = in.readString();
this.cover = in.readString();
this.online = in.readInt();
this.roomid = in.readInt();
}
项目:Hubs
文件:PropertyVO.java
@Override
public void writetoParcel(Parcel dest,int flags) {
dest.writeString(this.key);
dest.writeString(this.value);
dest.writeString(this.oldValue);
dest.writeInt(this.selectionStart);
dest.writeInt(this.selectionEnd);
dest.writeByte(this.isFoucused ? (byte) 1 : (byte) 0);
}
项目:android_ui
文件:CalendarView.java
/**
* Called from {@link #CREATOR} to create an instance of SavedState form the given parcel
* <var>source</var>.
*
* @param source Parcel with data for the new instance.
*/
protected SavedState(@NonNull Parcel source) {
super(source);
this.dateVisible = source.readLong();
this.dateSelected = (Long) source.readValue(Long.class.getClassLoader());
this.selectedDayMonthPosition = source.readInt();
this.locale = (Locale) source.readSerializable();
this.adapterState = source.readParcelable(UiConfig.class.getClassLoader());
}
项目:AndroidMuseumBleManager
文件:ScanResultCompat.java
项目:IFTTTSDK-Android
文件:Applet.java
@Override
public void writetoParcel(Parcel parcel,int i) {
parcel.writeString(id);
parcel.writeString(name);
parcel.writeString(description);
parcel.writeString(status.name());
parcel.writeLong(publishedAt != null ? publishedAt.getTime() : -1L);
parcel.writeInt(enabledCount);
parcel.writeLong(lastRunAt != null ? lastRunAt.getTime() : -1L);
parcel.writeString(url);
parcel.writeString(embeddedUrl);
parcel.writeTypedList(services);
}
项目:exciting-app
文件:ProgressWheel.java
private WheelSavedState(Parcel in) {
super(in);
this.mProgress = in.readFloat();
this.mTargetProgress = in.readFloat();
this.isspinning = in.readByte() != 0;
this.spinSpeed = in.readFloat();
this.barWidth = in.readInt();
this.barColor = in.readInt();
this.rimWidth = in.readInt();
this.rimColor = in.readInt();
this.circleRadius = in.readInt();
this.linearProgress = in.readByte() != 0;
this.fillRadius = in.readByte() != 0;
}
项目:TPlayer
文件:VirtualLocationService.java
@Override
public void writetoParcel(Parcel dest,int flags) {
dest.writeInt(this.mode);
dest.writeParcelable(this.cell,flags);
dest.writeTypedList(this.allCell);
dest.writeTypedList(this.neighboringCell);
dest.writeParcelable(this.location,flags);
}
项目:newIPlay
文件:Zhuanlan.java
protected InfoBean(Parcel in) {
this.followUserCount = in.readString();
this.topicDescription = in.readString();
this.listImg = in.readString();
this.topicId = in.readString();
this.topicName = in.readString();
}
项目:IslamicLibraryAndroid
文件:BookCategory.java
public BookCategory(Parcel in) {
this.id = in.readInt();
this.order = in.readInt();
this.name = in.readString();
this.numberOfBooks = in.readInt();
this.hasDownloadedBooks = in.readByte() != 0;
}
项目:UpdogFarmer
文件:Game.java
@Override
public void writetoParcel(Parcel parcel,int i) {
parcel.writeInt(appId);
parcel.writeString(name);
parcel.writeString(iconUrl);
parcel.writeFloat(hoursPlayed);
parcel.writeInt(dropsRemaining);
}
项目:Book-Shelf
文件:Cart.java
@Override
public void writetoParcel(Parcel dest,int flags) {
dest.writeValue(this.id);
dest.writeString(this.cdate);
dest.writeValue(this.amount);
dest.writeValue(this.userId);
dest.writeValue(this.itemId);
}
项目:NotifyTools
文件:Tangshi.java
@Override public void writetoParcel(Parcel dest,int flags) {
dest.writeValue(this.id);
dest.writeString(this.author);
dest.writeString(this.title);
dest.writeString(this.strains);
dest.writeString(this.paragraphs);
dest.writeString(this.pyquany);
dest.writeString(this.pyjian);
dest.writeString(this.authorjt);
dest.writeString(this.pyquan);
}
@Override
public void writetoParcel(Parcel dest,int flags) {
dest.writeParcelable(this.mDestination,flags);
dest.writeFloat(this.mAspectRatioX);
dest.writeFloat(this.mAspectRatioY);
dest.writeInt(this.mMaxWidth);
dest.writeInt(this.mMaxHeight);
}
项目:choreographer-example
文件:TransitioningChoreographer.java
项目:nongbeer-mvp-android-demo
文件:BeerProductItem.java
protected BeerProductItem( Parcel in ){
super( in );
this.id = in.readString();
this.alcohol = in.readString();
this.image = in.readString();
this.name = in.readString();
this.price = in.readInt();
this.volume = in.readString();
this.amount = in.readInt();
this.isAdded = in.readByte() != 0;
}
项目:MovieApp
文件:ProductionCompany.java
@SuppressWarnings({
"unchecked"
})
public ProductionCompany createFromParcel(Parcel in) {
ProductionCompany instance = new ProductionCompany();
instance.name = ((String) in.readValue((String.class.getClassLoader())));
instance.id = ((Integer) in.readValue((Integer.class.getClassLoader())));
return instance;
}
项目:garras
文件:Collection.java
protected Urls(Parcel in) {
raw = in.readString();
full = in.readString();
regular = in.readString();
small = in.readString();
thumb = in.readString();
}
@Override
public void writetoParcel(Parcel dest,int flags) {
dest.writeString(mTaskHasBeenExist);
dest.writeString(mTips);
dest.writeString(mHoneycomblow);
dest.writeString(mDownLoad);
dest.writeString(mCancel);
dest.writeString(mDownLoadFail);
dest.writeString(mloading);
dest.writeString(mTrickter);
dest.writeString(mFileDownLoad);
dest.writeString(mClickOpen);
}
项目:letv
文件:RemoteDeviceManager.java
public void registerDeviceCallback(String deviceid,DeviceCallback callback,int events) throws remoteexception {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfacetoken(Stub.DESCRIPTOR);
_data.writeString(deviceid);
_data.writeStrongBinder(callback != null ? callback.asBinder() : null);
_data.writeInt(events);
this.mRemote.transact(5,_data,_reply,0);
ExceptionUtils.readExceptionFromParcel(_reply);
} finally {
_reply.recycle();
_data.recycle();
}
}
项目:mvvm-template
文件:SourceModel.java
@Override public void writetoParcel(Parcel dest,int flags) {
dest.writeString(this.type);
dest.writeParcelable(this.issue,flags);
dest.writeParcelable(this.pullRequest,flags);
dest.writeParcelable(this.commit,flags);
dest.writeParcelable(this.repository,flags);
}
项目:garras
文件:Collection.java
@Override
public void writetoParcel(Parcel dest,int flags) {
dest.writeInt(id);
dest.writeString(title);
dest.writeString(description);
dest.writeString(published_at);
dest.writeByte((byte) (curated ? 1 : 0));
dest.writeInt(total_photos);
dest.writeByte((byte) (privateX ? 1 : 0));
dest.writeString(share_key);
dest.writeParcelable(cover_photo,flags);
dest.writeParcelable(user,flags);
dest.writeParcelable(links,flags);
dest.writeTypedList(tags);
}
项目:Pickr
文件:PointOfInterest.java
public PointOfInterest createFromParcel(Parcel source) {
return new PointOfInterest(source);
}
项目:state-bundle
文件:TestKey.java
@Override
public void writetoParcel(Parcel dest,int flags) {
dest.writeString(name);
}
项目:GsonParser
文件:SpecialResponse.java
protected SpecialResponse(Parcel in) {
res = in.readParcelable(Res.class.getClassLoader());
data = in.readString();
}
项目:OpenHub
文件:TrendingLanguage.java
protected TrendingLanguage(Parcel in) {
this.name = in.readString();
this.slug = in.readString();
this.order = in.readInt();
this.selected = in.readByte() != 0;
}
项目:BLPlayer
文件:VideoItem.java
@Override
public StatBean createFromParcel(Parcel source) {
return new StatBean(source);
}
项目:Trackr
文件:CustomLocation.java
@Override
public CustomLocation createFromParcel(Parcel source) {
return new CustomLocation(source);
}
项目:GitHub
文件:SmallMessageSnapshot.java
项目:Hands-On-Android-UI-Development
文件:Attachment.java
protected Attachment(final Parcel in) {
file = new File(in.readString());
type = Type.values()[in.readInt()];
}
项目:Hexis
文件:QuadrantItem.java
public QuadrantItem createFromParcel(Parcel in) {
return new QuadrantItem(in);
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。