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

The following examples show how to use android.os.Parcel#createStringArray() . 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: android_9.0.0_r45   File: JobParameters.java    License: Apache License 2.0 6 votes vote down vote up
private JobParameters(Parcel in) {
    jobId = in.readInt();
    extras = in.readPersistableBundle();
    transientExtras = in.readBundle();
    if (in.readInt() != 0) {
        clipData = ClipData.CREATOR.createFromParcel(in);
        clipGrantFlags = in.readInt();
    } else {
        clipData = null;
        clipGrantFlags = 0;
    }
    callback = in.readStrongBinder();
    overrideDeadlineExpired = in.readInt() == 1;
    mTriggeredContentUris = in.createTypedArray(Uri.CREATOR);
    mTriggeredContentAuthorities = in.createStringArray();
    if (in.readInt() != 0) {
        network = Network.CREATOR.createFromParcel(in);
    } else {
        network = null;
    }
    stopReason = in.readInt();
    debugStopReason = in.readString();
}
 
Example 2
Source Project: android_9.0.0_r45   File: UsageEvents.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Construct the iterator from a parcel.
 * {@hide}
 */
public UsageEvents(Parcel in) {
    byte[] bytes = in.readBlob();
    Parcel data = Parcel.obtain();
    data.unmarshall(bytes, 0, bytes.length);
    data.setDataPosition(0);
    mEventCount = data.readInt();
    mIndex = data.readInt();
    if (mEventCount > 0) {
        mStringPool = data.createStringArray();

        final int listByteLength = data.readInt();
        final int positionInParcel = data.readInt();
        mParcel = Parcel.obtain();
        mParcel.setDataPosition(0);
        mParcel.appendFrom(data, data.dataPosition(), listByteLength);
        mParcel.setDataSize(mParcel.dataPosition());
        mParcel.setDataPosition(positionInParcel);
    }
}
 
Example 3
Source Project: EhViewer   File: GalleryInfo.java    License: Apache License 2.0 6 votes vote down vote up
protected GalleryInfo(Parcel in) {
    this.gid = in.readLong();
    this.token = in.readString();
    this.title = in.readString();
    this.titleJpn = in.readString();
    this.thumb = in.readString();
    this.category = in.readInt();
    this.posted = in.readString();
    this.uploader = in.readString();
    this.rating = in.readFloat();
    this.rated = in.readByte() != 0;
    this.simpleLanguage = in.readString();
    this.simpleTags = in.createStringArray();
    this.thumbWidth = in.readInt();
    this.thumbHeight = in.readInt();
    this.spanSize = in.readInt();
    this.spanIndex = in.readInt();
    this.spanGroupIndex = in.readInt();
    this.favoriteSlot = in.readInt();
    this.favoriteName = in.readString();
}
 
Example 4
private PackageInfoLite(Parcel source) {
    packageName = source.readString();
    splitNames = source.createStringArray();
    versionCode = source.readInt();
    versionCodeMajor = source.readInt();
    baseRevisionCode = source.readInt();
    splitRevisionCodes = source.createIntArray();
    recommendedInstallLocation = source.readInt();
    installLocation = source.readInt();
    multiArch = (source.readInt() != 0);

    final int verifiersLength = source.readInt();
    if (verifiersLength == 0) {
        verifiers = new VerifierInfo[0];
    } else {
        verifiers = new VerifierInfo[verifiersLength];
        source.readTypedArray(verifiers, VerifierInfo.CREATOR);
    }
}
 
Example 5
@Override
public CharSequenceTransformation createFromParcel(Parcel parcel) {
    final AutofillId[] ids = parcel.readParcelableArray(null, AutofillId.class);
    final Pattern[] regexs = (Pattern[]) parcel.readSerializable();
    final String[] substs = parcel.createStringArray();

    // Always go through the builder to ensure the data ingested by
    // the system obeys the contract of the builder to avoid attacks
    // using specially crafted parcels.
    final CharSequenceTransformation.Builder builder =
            new CharSequenceTransformation.Builder(ids[0], regexs[0], substs[0]);

    final int size = ids.length;
    for (int i = 1; i < size; i++) {
        builder.addField(ids[i], regexs[i], substs[i]);
    }
    return builder.build();
}
 
Example 6
Source Project: SimpleDialogFragments   File: Spinner.java    License: Apache License 2.0 5 votes vote down vote up
protected Spinner(Parcel in) {
    super(in);
    itemArrayRes = in.readInt();
    itemStringResArray = in.createIntArray();
    items = in.createStringArray();
    placeholder = in.readString();
    placeholderResourceId = in.readInt();
    position = in.readInt();
}
 
Example 7
Source Project: NiceRead   File: GankItemData.java    License: Apache License 2.0 5 votes vote down vote up
protected GankItemData(Parcel in) {
    this._id = in.readString();
    this.createdAt = in.readString();
    this.desc = in.readString();
    this.images = in.createStringArray();
    this.publishedAt = in.readString();
    this.source = in.readString();
    this.type = in.readString();
    this.url = in.readString();
    this.used = in.readByte() != 0;
    this.who = in.readString();
}
 
Example 8
public void readFromParcel(Parcel source) {
    stackId = source.readInt();
    bounds = new Rect(
            source.readInt(), source.readInt(), source.readInt(), source.readInt());
    taskIds = source.createIntArray();
    taskNames = source.createStringArray();
    final int boundsCount = source.readInt();
    if (boundsCount > 0) {
        taskBounds = new Rect[boundsCount];
        for (int i = 0; i < boundsCount; i++) {
            taskBounds[i] = new Rect();
            taskBounds[i].set(
                    source.readInt(), source.readInt(), source.readInt(), source.readInt());
        }
    } else {
        taskBounds = null;
    }
    taskUserIds = source.createIntArray();
    displayId = source.readInt();
    userId = source.readInt();
    visible = source.readInt() > 0;
    position = source.readInt();
    if (source.readInt() > 0) {
        topActivity = ComponentName.readFromParcel(source);
    }
    configuration.readFromParcel(source);
}
 
Example 9
private InstantAppInfo(Parcel parcel) {
    mPackageName = parcel.readString();
    mLabelText = parcel.readCharSequence();
    mRequestedPermissions = parcel.readStringArray();
    mGrantedPermissions = parcel.createStringArray();
    mApplicationInfo = parcel.readParcelable(null);
}
 
Example 10
public void readFromParcel(Parcel parcel) {
    mDeviceModels = parcel.createStringArray();
    mConditionName = parcel.readString();
    int size = parcel.readInt();
    if(size != 0) {
        mKeys = new Key[size];
        for(int i=0; i<size; i++) {
            mKeys[i] = new Key();
            mKeys[i].readFromParcel(parcel);
        }
    }
    mProductId = parcel.readString();
    mAddAllDevice = (Boolean) parcel.readValue(ClassLoader.getSystemClassLoader());
    mSrc = parcel.readString();
}
 
Example 11
protected CTInboxStyleConfig(Parcel in) {
    navBarColor = in.readString();
    navBarTitle = in.readString();
    navBarTitleColor = in.readString();
    inboxBackgroundColor = in.readString();
    tabs = in.createStringArray();
    backButtonColor = in.readString();
    selectedTabColor = in.readString();
    unselectedTabColor = in.readString();
    selectedTabIndicatorColor = in.readString();
    tabBackgroundColor = in.readString();
}
 
Example 12
protected GalleryConfig(Parcel in) {
    this.filterMimeTypes = in.createStringArray();
    this.hintOfPick = in.readString();
    this.singlePhoto = in.readByte() != 0;
    this.limitPickPhoto = in.readInt();
    this.isSingleVedio = in.readByte() != 0;
    this.isNeedCrop = in.readByte() != 0;
    this.filePath = in.readString();
    this.type = in.readInt();
    this.requestCode = in.readInt();
    this.limitRecordTime = in.readInt();
    this.limitRecordSize = in.readInt();
}
 
Example 13
Source Project: auid2   File: Tool.java    License: Apache License 2.0 4 votes vote down vote up
private Tool(Parcel in) {
    this.mName = in.readString();
    this.mPrice = in.readString();
    this.mDetails = in.createStringArray();
    this.mDescription = in.readString();
}
 
Example 14
Source Project: AndroidProcess   File: Stat.java    License: Apache License 2.0 4 votes vote down vote up
private Stat(Parcel in) {
  super(in);
  this.fields = in.createStringArray();
}
 
Example 15
Source Project: AndroidProcesses   File: Statm.java    License: Apache License 2.0 4 votes vote down vote up
private Statm(Parcel in) {
  super(in);
  this.fields = in.createStringArray();
}
 
Example 16
Source Project: android-topeka   File: FourQuarterQuiz.java    License: Apache License 2.0 4 votes vote down vote up
public FourQuarterQuiz(Parcel in) {
    super(in);
    String options[] = in.createStringArray();
    setOptions(options);
}
 
Example 17
Source Project: Status   File: IconStyleData.java    License: Apache License 2.0 4 votes vote down vote up
protected IconStyleData(Parcel in) {
    name = in.readString();
    resource = in.createIntArray();
    path = in.createStringArray();
    icons = new HashMap<>();
}
 
Example 18
Source Project: cordova-social-vk   File: VKApiUserFull.java    License: Apache License 2.0 4 votes vote down vote up
public VKApiUserFull(Parcel in) {
    super(in);
    this.activity = in.readString();
    this.status_audio = in.readParcelable(VKApiAudio.class.getClassLoader());
    this.bdate = in.readString();
    this.city = in.readParcelable(VKApiCity.class.getClassLoader());
    this.country = in.readParcelable(VKApiCountry.class.getClassLoader());
    this.last_seen = in.readLong();
    this.universities = in.readParcelable(VKList.class.getClassLoader());
    this.schools = in.readParcelable(VKList.class.getClassLoader());
    this.smoking = in.readInt();
    this.alcohol = in.readInt();
    this.political = in.readInt();
    this.life_main = in.readInt();
    this.people_main = in.readInt();
    this.inspired_by = in.readString();
    this.langs = in.createStringArray();
    this.religion = in.readString();
    this.facebook = in.readString();
    this.facebook_name = in.readString();
    this.livejournal = in.readString();
    this.skype = in.readString();
    this.site = in.readString();
    this.twitter = in.readString();
    this.instagram = in.readString();
    this.mobile_phone = in.readString();
    this.home_phone = in.readString();
    this.screen_name = in.readString();
    this.activities = in.readString();
    this.interests = in.readString();
    this.movies = in.readString();
    this.tv = in.readString();
    this.books = in.readString();
    this.games = in.readString();
    this.about = in.readString();
    this.quotes = in.readString();
    this.can_post = in.readByte() != 0;
    this.can_see_all_posts = in.readByte() != 0;
    this.can_write_private_message = in.readByte() != 0;
    this.wall_comments = in.readByte() != 0;
    this.is_banned = in.readByte() != 0;
    this.is_deleted = in.readByte() != 0;
    this.wall_default_owner = in.readByte() != 0;
    this.verified = in.readByte() != 0;
    this.sex = in.readInt();
    this.counters = in.readParcelable(Counters.class.getClassLoader());
    this.occupation = in.readParcelable(Occupation.class.getClassLoader());
    this.relation = in.readInt();
    this.relatives = in.readParcelable(VKList.class.getClassLoader());
    this.blacklisted_by_me = in.readByte() != 0;
}
 
Example 19
public Executable(Parcel parcel) {
    this.mCommandsArray = parcel.createStringArray();
    this.mStartTime = parcel.readLong();
    this.mStatus = Status.valueOf(parcel.readString());
    this.mFinishTime = parcel.readLong();
}
 
Example 20
Source Project: android-topeka   File: SelectItemQuiz.java    License: Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("unused")
public SelectItemQuiz(Parcel in) {
    super(in);
    String[] options = in.createStringArray();
    setOptions(options);
}