Java Code Examples for android.os.Parcel#readStringList()
The following examples show how to use
android.os.Parcel#readStringList() .
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: FolderChooserConfig.java From styT with Apache License 2.0 | 6 votes |
public FolderChooserConfig createFromParcel(Parcel parcel) { boolean bl2 = true; FolderChooserConfig folderChooserConfig = new FolderChooserConfig(); folderChooserConfig.title = parcel.readString(); folderChooserConfig.subtitle = parcel.readString(); folderChooserConfig.roots = new ArrayList(); parcel.readStringList(folderChooserConfig.roots); folderChooserConfig.showHidden = parcel.readByte() != 0 && bl2; folderChooserConfig.mustBeWritable = parcel.readByte() != 0 && bl2; folderChooserConfig.expandSingularRoot = parcel.readByte() != 0 && bl2; if (parcel.readByte() == 0) { bl2 = false; } folderChooserConfig.expandMultipleRoots = bl2; return folderChooserConfig; }
Example 2
Source File: PickerUISettings.java From PickerUI with Apache License 2.0 | 5 votes |
private PickerUISettings(Parcel in) { in.readStringList(this.mItems); this.mColorTextCenter = in.readInt(); this.mColorTextNoCenter = in.readInt(); this.mBackgroundColor = in.readInt(); this.mLinesColor = in.readInt(); this.mAutoDismiss = in.readByte() != 0; this.mItemsClickables = in.readByte() != 0; this.mBlurDownScaleFactor = in.readFloat(); this.mBlurRadius = in.readInt(); this.mBlurFilterColor = in.readInt(); this.mUseBlur = in.readByte() != 0; this.mUseBlurRenderscript = in.readByte() != 0; }
Example 3
Source File: IntentFilterVerificationInfo.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
private void readFromParcel(Parcel source) { mPackageName = source.readString(); mMainStatus = source.readInt(); ArrayList<String> list = new ArrayList<>(); source.readStringList(list); mDomains.addAll(list); }
Example 4
Source File: Shot.java From android-proguards with Apache License 2.0 | 5 votes |
protected Shot(Parcel in) { super(in.readLong(), in.readString(), in.readString()); description = in.readString(); width = in.readLong(); height = in.readLong(); images = (Images) in.readValue(Images.class.getClassLoader()); views_count = in.readLong(); likes_count = in.readLong(); comments_count = in.readLong(); attachments_count = in.readLong(); rebounds_count = in.readLong(); buckets_count = in.readLong(); long tmpCreated_at = in.readLong(); created_at = tmpCreated_at != -1 ? new Date(tmpCreated_at) : null; long tmpUpdated_at = in.readLong(); updated_at = tmpUpdated_at != -1 ? new Date(tmpUpdated_at) : null; html_url = in.readString(); url = html_url; attachments_url = in.readString(); buckets_url = in.readString(); comments_url = in.readString(); likes_url = in.readString(); projects_url = in.readString(); rebounds_url = in.readString(); animated = in.readByte() != 0x00; tags = new ArrayList<String>(); in.readStringList(tags); user = (User) in.readValue(User.class.getClassLoader()); team = (Team) in.readValue(Team.class.getClassLoader()); hasFadedIn = in.readByte() != 0x00; }
Example 5
Source File: Link.java From KlyphMessenger with MIT License | 5 votes |
private Link(Parcel in) { backdated_time = in.readString(); can_backdate = in.readByte() == 1; caption = in.readString(); comment_info = in.readParcelable(CommentInfo.class.getClassLoader()); created_time = in.readString(); image_urls = new ArrayList<String>(); in.readStringList(image_urls); like_info = in.readParcelable(LikeInfo.class.getClassLoader()); link_id = in.readString(); owner = in.readString(); owner_comment = in.readString(); owner_cursor = in.readString(); owner_name = in.readString(); owner_pic = in.readString(); owner_type = in.readString(); picture = in.readString(); privacy = in.readParcelable(Privacy.class.getClassLoader()); summary = in.readString(); title = in.readString(); url = in.readString(); via_id = in.readString(); via_name = in.readString(); via_type = in.readString(); xid = in.readString(); }
Example 6
Source File: UploadInfo.java From DataLogger with MIT License | 5 votes |
private UploadInfo(Parcel in) { uploadId = in.readString(); startTime = in.readLong(); currentTime = in.readLong(); uploadedBytes = in.readLong(); totalBytes = in.readLong(); numberOfRetries = in.readInt(); totalFiles = in.readInt(); in.readStringList(successfullyUploadedFiles); }
Example 7
Source File: ArtistListData.java From Pasta-Music with Apache License 2.0 | 5 votes |
private void ReadFromParcel(Parcel in) { artistName = in.readString(); artistId = in.readString(); artistImage = in.readString(); artistImageLarge = in.readString(); followers = in.readInt(); genres = new ArrayList<>(); in.readStringList(genres); }
Example 8
Source File: Hop.java From biermacht with Apache License 2.0 | 5 votes |
public Hop(Parcel p) { super(p); this.substitutes = new ArrayList<String>(); alpha = p.readDouble(); use = p.readString(); type = p.readString(); form = p.readString(); origin = p.readString(); p.readStringList(this.substitutes); description = p.readString(); }
Example 9
Source File: LoginClient.java From kognitivo with Apache License 2.0 | 5 votes |
private Request(Parcel parcel) { String enumValue = parcel.readString(); this.loginBehavior = enumValue != null ? LoginBehavior.valueOf(enumValue) : null; ArrayList<String> permissionsList = new ArrayList<>(); parcel.readStringList(permissionsList); this.permissions = new HashSet<String>(permissionsList); enumValue = parcel.readString(); this.defaultAudience = enumValue != null ? DefaultAudience.valueOf(enumValue) : null; this.applicationId = parcel.readString(); this.authId = parcel.readString(); this.isRerequest = parcel.readByte() != 0 ? true : false; }
Example 10
Source File: AccessToken.java From kognitivo with Apache License 2.0 | 5 votes |
AccessToken(Parcel parcel) { this.expires = new Date(parcel.readLong()); ArrayList<String> permissionsList = new ArrayList<>(); parcel.readStringList(permissionsList); this.permissions = Collections.unmodifiableSet(new HashSet<String>(permissionsList)); permissionsList.clear(); parcel.readStringList(permissionsList); this.declinedPermissions = Collections.unmodifiableSet( new HashSet<String>(permissionsList)); this.token = parcel.readString(); this.source = AccessTokenSource.valueOf(parcel.readString()); this.lastRefresh = new Date(parcel.readLong()); this.applicationId = parcel.readString(); this.userId = parcel.readString(); }
Example 11
Source File: Parcelables.java From particle-android with Apache License 2.0 | 4 votes |
public static List<String> readStringList(Parcel parcel) { List<String> sourceList = new ArrayList<>(); parcel.readStringList(sourceList); return sourceList; }
Example 12
Source File: BroadcastEventData.java From Easer with GNU General Public License v3.0 | 4 votes |
private BroadcastEventData(Parcel in) { intentData = new ReceiverSideIntentData(); in.readStringList(intentData.action); in.readStringList(intentData.category); }
Example 13
Source File: WifiUSourceData.java From Easer with GNU General Public License v3.0 | 4 votes |
private WifiUSourceData(Parcel in) { mode_essid = in.readByte() > 0; List<String> list = new ArrayList<>(); in.readStringList(list); ssids.addAll(list); }
Example 14
Source File: MessageBean.java From iBeebo with GNU General Public License v3.0 | 4 votes |
public MessageBean createFromParcel(Parcel in) { MessageBean messageBean = new MessageBean(); messageBean.created_at = in.readString(); messageBean.id = in.readLong(); messageBean.idstr = in.readString(); messageBean.text = in.readString(); messageBean.source = in.readString(); boolean[] booleans = new boolean[1]; in.readBooleanArray(booleans); messageBean.favorited = booleans[0]; messageBean.truncated = in.readString(); messageBean.in_reply_to_status_id = in.readString(); messageBean.in_reply_to_user_id = in.readString(); messageBean.in_reply_to_screen_name = in.readString(); messageBean.mid = in.readString(); messageBean.reposts_count = in.readInt(); messageBean.comments_count = in.readInt(); messageBean.thumbnail_pic = in.readString(); messageBean.bmiddle_pic = in.readString(); messageBean.original_pic = in.readString(); messageBean.sourceString = in.readString(); messageBean.mills = in.readLong(); messageBean.retweeted_status = in.readParcelable(MessageBean.class.getClassLoader()); messageBean.user = in.readParcelable(UserBean.class.getClassLoader()); messageBean.geo = in.readParcelable(GeoBean.class.getClassLoader()); messageBean.pic_urls = new ArrayList<PicUrls>(); in.readTypedList(messageBean.pic_urls, PicUrls.CREATOR); messageBean.pic_ids = new ArrayList<String>(); in.readStringList(messageBean.pic_ids); messageBean.pic_infos = new ArrayList<HotWeiboPicInfos>(); in.readTypedList(messageBean.pic_infos, HotWeiboPicInfos.CREATOR); return messageBean; }
Example 15
Source File: ParcelUtil.java From mollyim-android with GNU General Public License v3.0 | 4 votes |
public static @NonNull Collection<String> readStringCollection(@NonNull Parcel in) { List<String> list = new ArrayList<>(); in.readStringList(list); return list; }
Example 16
Source File: CategoryCombo.java From dhis2-android-datacapture with BSD 3-Clause "New" or "Revised" License | 4 votes |
private CategoryCombo(Parcel in) { this.id = in.readString(); in.readTypedList(categories, Category.CREATOR); in.readStringList(categoryOptionComboUIdList); }
Example 17
Source File: LineCredential.java From line-sdk-android with Apache License 2.0 | 4 votes |
private LineCredential(@NonNull Parcel in) { accessToken = in.readParcelable(LineAccessToken.class.getClassLoader()); List<String> modifiableScopes = new ArrayList<>(8); in.readStringList(modifiableScopes); scopes = Scope.convertToScopeList(modifiableScopes); }
Example 18
Source File: IntentFilter.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** @hide */ public IntentFilter(Parcel source) { mActions = new ArrayList<String>(); source.readStringList(mActions); if (source.readInt() != 0) { mCategories = new ArrayList<String>(); source.readStringList(mCategories); } if (source.readInt() != 0) { mDataSchemes = new ArrayList<String>(); source.readStringList(mDataSchemes); } if (source.readInt() != 0) { mDataTypes = new ArrayList<String>(); source.readStringList(mDataTypes); } int N = source.readInt(); if (N > 0) { mDataSchemeSpecificParts = new ArrayList<PatternMatcher>(N); for (int i=0; i<N; i++) { mDataSchemeSpecificParts.add(new PatternMatcher(source)); } } N = source.readInt(); if (N > 0) { mDataAuthorities = new ArrayList<AuthorityEntry>(N); for (int i=0; i<N; i++) { mDataAuthorities.add(new AuthorityEntry(source)); } } N = source.readInt(); if (N > 0) { mDataPaths = new ArrayList<PatternMatcher>(N); for (int i=0; i<N; i++) { mDataPaths.add(new PatternMatcher(source)); } } mPriority = source.readInt(); mHasPartialTypes = source.readInt() > 0; setAutoVerify(source.readInt() > 0); setVisibilityToInstantApp(source.readInt()); mOrder = source.readInt(); }
Example 19
Source File: AnnotationValue.java From android-test with Apache License 2.0 | 4 votes |
/** * Constructor to create an {@link AnnotationValue} given an Android Parcel. * * @param source Android {@link Parcel} to read from. */ public AnnotationValue(Parcel source) { fieldName = source.readString(); source.readStringList(fieldValues); valueType = source.readString(); }
Example 20
Source File: MultiChoiceListPreference.java From AndroidMaterialPreferences with Apache License 2.0 | 3 votes |
/** * Creates a new data structure, which allows to store the internal state of an {@link * MultiChoiceListPreference}. This constructor is used when reading from a parcel. It reads * the state of the superclass. * * @param source * The parcel to read read from as a instance of the class {@link Parcel}. The * parcel may not be null */ public SavedState(@NonNull final Parcel source) { super(source); List<String> list = new ArrayList<>(); source.readStringList(list); values = new HashSet<>(list); }