List of usage examples for android.os Parcel readString
public final String readString()
From source file:fr.free.nrw.commons.Media.java
@SuppressWarnings("unchecked") public Media(Parcel in) { localUri = in.readParcelable(Uri.class.getClassLoader()); thumbUrl = in.readString(); imageUrl = in.readString();// w w w . java2s.c o m filename = in.readString(); description = in.readString(); dataLength = in.readLong(); dateCreated = (Date) in.readSerializable(); dateUploaded = (Date) in.readSerializable(); creator = in.readString(); tags = (HashMap<String, Object>) in.readSerializable(); width = in.readInt(); height = in.readInt(); license = in.readString(); if (categories != null) { in.readStringList(categories); } descriptions = in.readHashMap(ClassLoader.getSystemClassLoader()); }
From source file:org.jorge.lolin1.func.champs.models.Champion.java
public Champion(Parcel in) { Field[] declaredFields = Champion.class.getDeclaredFields(); try {//from w w w .j a v a 2s. c o m for (Field x : declaredFields) { Class<?> thisType = x.getType(); if (thisType == String.class) { x.setAccessible(Boolean.TRUE); x.set(this, in.readString()); x.setAccessible(Boolean.FALSE); } } } catch (IllegalAccessException e) { Crashlytics.logException(e); } tags = in.createStringArray(); skins = in.createStringArray(); passive = in.readParcelable(PassiveSpell.class.getClassLoader()); Parcelable[] parcelableSpells = in.readParcelableArray(ActiveSpell.class.getClassLoader()); spells = new ActiveSpell[parcelableSpells.length]; for (int i = 0; i < spells.length; i++) { spells[i] = (ActiveSpell) parcelableSpells[i]; } }
From source file:com.nextgis.firereporter.ScanexNotificationItem.java
private ScanexNotificationItem(Parcel in) { dt = (Date) in.readSerializable(); X = in.readDouble();//from www . j ava 2s . c om Y = in.readDouble(); nIconId = in.readInt(); nID = in.readLong(); nConfidence = in.readInt(); nPower = in.readInt(); sURL1 = in.readString(); sURL2 = in.readString(); sType = in.readString(); sPlace = in.readString(); sMap = in.readString(); mbWatched = in.readInt() == 1 ? true : false; // nFormat = in.readInt(); sCoordLat = in.readString(); sCoordLon = in.readString(); sN = in.readString(); sS = in.readString(); sW = in.readString(); sE = in.readString(); }
From source file:com.marianhello.bgloc.Config.java
private Config(Parcel in) { setStationaryRadius(in.readFloat()); setDistanceFilter(in.readInt());//w ww . j av a 2 s .c o m setDesiredAccuracy(in.readInt()); setDebugging((Boolean) in.readValue(null)); setNotificationTitle(in.readString()); setNotificationText(in.readString()); setLargeNotificationIcon(in.readString()); setSmallNotificationIcon(in.readString()); setNotificationIconColor(in.readString()); setStopOnTerminate((Boolean) in.readValue(null)); setStartOnBoot((Boolean) in.readValue(null)); setStartForeground((Boolean) in.readValue(null)); setLocationProvider(in.readInt()); setInterval(in.readInt()); setFastestInterval(in.readInt()); setActivitiesInterval(in.readInt()); setStopOnStillActivity((Boolean) in.readValue(null)); setUrl(in.readString()); setSyncUrl(in.readString()); setSyncThreshold(in.readInt()); setMaxLocations(in.readInt()); Bundle bundle = in.readBundle(); setHttpHeaders((HashMap<String, String>) bundle.getSerializable("httpHeaders")); }
From source file:com.tlongdev.bktf.model.Item.java
protected Item(Parcel source) { defindex = source.readInt();//from ww w . j a va 2s . c om name = source.readString(); //noinspection WrongConstant quality = source.readInt(); tradable = source.readByte() != 0; craftable = source.readByte() != 0; australium = source.readByte() != 0; priceIndex = source.readInt(); weaponWear = source.readInt(); price = source.readParcelable(Price.class.getClassLoader()); }
From source file:saphion.batterycaster.providers.Alarm.java
Alarm(Parcel p) { id = p.readLong();/*w w w . j a v a 2 s .c o m*/ enabled = p.readInt() == 1; battery = p.readInt(); charge = p.readInt(); daysOfWeek = new DaysOfWeek(p.readInt()); vibrate = p.readInt() == 1; label = p.readString(); alert = (Uri) p.readParcelable(null); deleteAfterUse = p.readInt() == 1; }
From source file:io.openkit.OKLeaderboard.java
private OKLeaderboard(Parcel in) { //private String name; name = in.readString(); //private int OKAPP_id; OKAPP_id = in.readInt();//from w ww . java 2 s . c o m //private int OKLeaderboard_id; OKLeaderboard_id = in.readInt(); //private LeaderboardSortType sortType; try { sortType = LeaderboardSortType.valueOf(in.readString()); } catch (Exception e) { sortType = null; } //private String icon_url; icon_url = in.readString(); //private int playerCount; playerCount = in.readInt(); }
From source file:com.amossys.hooker.common.InterceptEvent.java
/** * Read and write function to handle the returns list. * @param in// w ww . j ava 2s.co m */ private void readReturnsEntry(Parcel in) { int tmp = in.readInt(); if (tmp == 0) { } else { String key = in.readString(); String value = in.readString(); returns = new AbstractMap.SimpleEntry<String, String>(key, value); } }
From source file:com.marianhello.cordova.bgloc.Config.java
private Config(Parcel in) { setStationaryRadius(in.readFloat()); setDistanceFilter(in.readInt());/* w ww .jav a 2s .com*/ setDesiredAccuracy(in.readInt()); setDebugging((Boolean) in.readValue(null)); setNotificationTitle(in.readString()); setNotificationText(in.readString()); setLargeNotificationIcon(in.readString()); setSmallNotificationIcon(in.readString()); setNotificationIconColor(in.readString()); setStopOnTerminate((Boolean) in.readValue(null)); setStartOnBoot((Boolean) in.readValue(null)); setStartForeground((Boolean) in.readValue(null)); setServiceProvider(in.readInt()); setInterval(in.readInt()); setFastestInterval(in.readInt()); setActivitiesInterval(in.readInt()); setUrl(in.readString()); setMethod(in.readString()); setHeaders((HashMap<String, String>) in.readSerializable()); setParams((HashMap<String, String>) in.readSerializable()); }
From source file:io.github.hidroh.materialistic.data.HackerNewsItem.java
@Synthetic HackerNewsItem(Parcel source) { id = source.readLong();/* ww w . j a va2 s . c o m*/ title = source.readString(); time = source.readLong(); by = source.readString(); kids = source.createLongArray(); url = source.readString(); text = source.readString(); type = source.readString(); favorite = source.readInt() != 0; descendants = source.readInt(); score = source.readInt(); favorite = source.readInt() == 1; viewed = source.readInt() == 1; localRevision = source.readInt(); level = source.readInt(); dead = source.readInt() == 1; deleted = source.readInt() == 1; collapsed = source.readInt() == 1; contentExpanded = source.readInt() == 1; rank = source.readInt(); lastKidCount = source.readInt(); hasNewDescendants = source.readInt() == 1; parent = source.readLong(); voted = source.readInt() == 1; pendingVoted = source.readInt() == 1; next = source.readLong(); previous = source.readLong(); }