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

The following examples show how to use android.os.Parcel#readStringList() . These examples are extracted from open source projects. 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 want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: styT   File: FolderChooserConfig.java    License: Apache License 2.0 6 votes vote down vote up
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
private void readFromParcel(Parcel source) {
    mPackageName = source.readString();
    mMainStatus = source.readInt();
    ArrayList<String> list = new ArrayList<>();
    source.readStringList(list);
    mDomains.addAll(list);
}
 
Example 3
Source Project: android-proguards   File: Shot.java    License: Apache License 2.0 5 votes vote down vote up
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 4
Source Project: KlyphMessenger   File: Link.java    License: MIT License 5 votes vote down vote up
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 5
Source Project: DataLogger   File: UploadInfo.java    License: MIT License 5 votes vote down vote up
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 6
Source Project: kognitivo   File: LoginClient.java    License: Apache License 2.0 5 votes vote down vote up
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 7
Source Project: kognitivo   File: AccessToken.java    License: Apache License 2.0 5 votes vote down vote up
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 8
Source Project: biermacht   File: Hop.java    License: Apache License 2.0 5 votes vote down vote up
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 Project: Pasta-Music   File: ArtistListData.java    License: Apache License 2.0 5 votes vote down vote up
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 10
Source Project: PickerUI   File: PickerUISettings.java    License: Apache License 2.0 5 votes vote down vote up
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 11
public static @NonNull Collection<String> readStringCollection(@NonNull Parcel in) {
  List<String> list = new ArrayList<>();
  in.readStringList(list);
  return list;
}
 
Example 12
Source Project: android-test   File: AnnotationValue.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * 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 13
Source Project: android_9.0.0_r45   File: IntentFilter.java    License: Apache License 2.0 4 votes vote down vote up
/** @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 14
Source Project: line-sdk-android   File: LineCredential.java    License: Apache License 2.0 4 votes vote down vote up
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 15
private CategoryCombo(Parcel in) {
    this.id = in.readString();
    in.readTypedList(categories, Category.CREATOR);
    in.readStringList(categoryOptionComboUIdList);
}
 
Example 16
Source Project: particle-android   File: Parcelables.java    License: Apache License 2.0 4 votes vote down vote up
public static List<String> readStringList(Parcel parcel) {
    List<String> sourceList = new ArrayList<>();
    parcel.readStringList(sourceList);
    return sourceList;
}
 
Example 17
Source Project: iBeebo   File: MessageBean.java    License: GNU General Public License v3.0 4 votes vote down vote up
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 18
private WifiUSourceData(Parcel in) {
    mode_essid = in.readByte() > 0;
    List<String> list = new ArrayList<>();
    in.readStringList(list);
    ssids.addAll(list);
}
 
Example 19
private BroadcastEventData(Parcel in) {
    intentData = new ReceiverSideIntentData();
    in.readStringList(intentData.action);
    in.readStringList(intentData.category);
}
 
Example 20
/**
 * 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);
}