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

The following examples show how to use android.os.Parcel#readStringArray() . 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: FireFiles   File: BaseActivity.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public State createFromParcel(Parcel in) {
    final State state = new State();
    state.action = in.readInt();
    state.userMode = in.readInt();
    state.acceptMimes = new String[in.readInt()];
    in.readStringArray(state.acceptMimes);
    state.userSortOrder = in.readInt();
    state.allowMultiple = in.readInt() != 0;
    state.showSize = in.readInt() != 0;
    state.showFolderSize = in.readInt() != 0;
    state.showThumbnail = in.readInt() != 0;
    state.showHiddenFiles = in.readInt() != 0;
    state.localOnly = in.readInt() != 0;
    state.forceAdvanced = in.readInt() != 0;
    state.showAdvanced = in.readInt() != 0;
    state.rootMode = in.readInt() != 0;
    state.stackTouched = in.readInt() != 0;
    state.restored = in.readInt() != 0;
    DurableUtils.readFromParcel(in, state.stack);
    state.currentSearch = in.readString();
    in.readMap(state.dirState, null);
    return state;
}
 
Example 2
Source Project: android_9.0.0_r45   File: ProxyInfo.java    License: Apache License 2.0 6 votes vote down vote up
public ProxyInfo createFromParcel(Parcel in) {
    String host = null;
    int port = 0;
    if (in.readByte() != 0) {
        Uri url = Uri.CREATOR.createFromParcel(in);
        int localPort = in.readInt();
        return new ProxyInfo(url, localPort);
    }
    if (in.readByte() != 0) {
        host = in.readString();
        port = in.readInt();
    }
    String exclList = in.readString();
    String[] parsedExclList = in.readStringArray();
    ProxyInfo proxyProperties =
            new ProxyInfo(host, port, exclList, parsedExclList);
    return proxyProperties;
}
 
Example 3
@SuppressWarnings("unchecked")
private InstrumentationInfo(Parcel source) {
    super(source);
    targetPackage = source.readString();
    targetProcesses = source.readString();
    sourceDir = source.readString();
    publicSourceDir = source.readString();
    splitNames = source.readStringArray();
    splitSourceDirs = source.readStringArray();
    splitPublicSourceDirs = source.readStringArray();
    splitDependencies = source.readSparseArray(null);
    dataDir = source.readString();
    deviceProtectedDataDir = source.readString();
    credentialProtectedDataDir = source.readString();
    primaryCpuAbi = source.readString();
    secondaryCpuAbi = source.readString();
    nativeLibraryDir = source.readString();
    secondaryNativeLibraryDir = source.readString();
    handleProfiling = source.readInt() != 0;
    functionalTest = source.readInt() != 0;
}
 
Example 4
Source Project: android_9.0.0_r45   File: EditorInfo.java    License: Apache License 2.0 6 votes vote down vote up
public EditorInfo createFromParcel(Parcel source) {
    EditorInfo res = new EditorInfo();
    res.inputType = source.readInt();
    res.imeOptions = source.readInt();
    res.privateImeOptions = source.readString();
    res.actionLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
    res.actionId = source.readInt();
    res.initialSelStart = source.readInt();
    res.initialSelEnd = source.readInt();
    res.initialCapsMode = source.readInt();
    res.hintText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
    res.label = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
    res.packageName = source.readString();
    res.fieldId = source.readInt();
    res.fieldName = source.readString();
    res.extras = source.readBundle();
    LocaleList hintLocales = LocaleList.CREATOR.createFromParcel(source);
    res.hintLocales = hintLocales.isEmpty() ? null : hintLocales;
    res.contentMimeTypes = source.readStringArray();
    return res;
}
 
Example 5
Source Project: FireFiles   File: BaseActivity.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public State createFromParcel(Parcel in) {
    final State state = new State();
    state.action = in.readInt();
    state.userMode = in.readInt();
    state.acceptMimes = new String[in.readInt()];
    in.readStringArray(state.acceptMimes);
    state.userSortOrder = in.readInt();
    state.allowMultiple = in.readInt() != 0;
    state.showSize = in.readInt() != 0;
    state.showFolderSize = in.readInt() != 0;
    state.showThumbnail = in.readInt() != 0;
    state.showHiddenFiles = in.readInt() != 0;
    state.localOnly = in.readInt() != 0;
    state.forceAdvanced = in.readInt() != 0;
    state.showAdvanced = in.readInt() != 0;
    state.rootMode = in.readInt() != 0;
    state.stackTouched = in.readInt() != 0;
    state.restored = in.readInt() != 0;
    DurableUtils.readFromParcel(in, state.stack);
    state.currentSearch = in.readString();
    in.readMap(state.dirState, null);
    return state;
}
 
Example 6
Source Project: AndroidTagGroup   File: TagGroup.java    License: Apache License 2.0 5 votes vote down vote up
public SavedState(Parcel source) {
    super(source);
    tagCount = source.readInt();
    tags = new String[tagCount];
    source.readStringArray(tags);
    checkedPosition = source.readInt();
    input = source.readString();
}
 
Example 7
private ImageModel(Parcel in) {
    String[] data = new String[2];
    in.readStringArray(data);
    fileName = data[0];
    completePath = data[1];
    lastModified = in.readLong();
    savedLocally= in.readInt() != 0;
}
 
Example 8
Source Project: conference-app   File: Conference.java    License: Apache License 2.0 5 votes vote down vote up
protected Conference(Parcel in) {
    CSVLine = new String[in.readInt()];
    in.readStringArray(this.CSVLine);
    this.startDate = in.readString();
    this.endDate = in.readString();
    this.headeline = in.readString();
    this.speaker = in.readString();
    this.speakerImageUrl = in.readString();
    this.text = in.readString();
    this.location = in.readString();
    this.calendar = (Calendar) in.readSerializable();
}
 
Example 9
private ApplicationInfo(Parcel source) {
    super(source);
    taskAffinity = source.readString();
    permission = source.readString();
    processName = source.readString();
    className = source.readString();
    theme = source.readInt();
    flags = source.readInt();
    requiresSmallestWidthDp = source.readInt();
    compatibleWidthLimitDp = source.readInt();
    largestWidthLimitDp = source.readInt();
    sourceDir = source.readString();
    publicSourceDir = source.readString();
    nativeLibraryDir = source.readString();
    resourceDirs = source.readStringArray();
    sharedLibraryFiles = source.readStringArray();
    dataDir = source.readString();
    uid = source.readInt();
    targetSdkVersion = source.readInt();
    enabled = source.readInt() != 0;
    enabledSetting = source.readInt();
    installLocation = source.readInt();
    manageSpaceActivityName = source.readString();
    backupAgentName = source.readString();
    descriptionRes = source.readInt();
    uiOptions = source.readInt();
}
 
Example 10
public SuggestionSpan(Parcel src) {
    mSuggestions = src.readStringArray();
    mFlags = src.readInt();
    mLocaleStringForCompatibility = src.readString();
    mLanguageTag = src.readString();
    mNotificationTargetClassName = src.readString();
    mNotificationTargetPackageName = src.readString();
    mHashCode = src.readInt();
    mEasyCorrectUnderlineColor = src.readInt();
    mEasyCorrectUnderlineThickness = src.readFloat();
    mMisspelledUnderlineColor = src.readInt();
    mMisspelledUnderlineThickness = src.readFloat();
    mAutoCorrectionUnderlineColor = src.readInt();
    mAutoCorrectionUnderlineThickness = src.readFloat();
}
 
Example 11
private static Set<String> readStringSet(Parcel source) {
    final int n = source.readInt();
    final String[] strings = new String[n];
    final Set<String> values = new HashSet<>(n);

    source.readStringArray(strings);

    Collections.addAll(values, strings);

    return values;
}
 
Example 12
Source Project: BookReader   File: TagGroup.java    License: Apache License 2.0 5 votes vote down vote up
public SavedState(Parcel source) {
    super(source);
    tagCount = source.readInt();
    tags = new String[tagCount];
    source.readStringArray(tags);
    checkedPosition = source.readInt();
    input = source.readString();
}
 
Example 13
Source Project: FlowlayoutTags   File: FlowlayoutTags.java    License: Apache License 2.0 5 votes vote down vote up
public SavedState(Parcel source) {
    super(source);
    tagCount = source.readInt();
    tags = new String[tagCount];
    source.readStringArray(tags);
    checkedPosition = source.readInt();
}
 
Example 14
public void readFromParcel(Parcel source) {
    processName = source.readString();
    pid = source.readInt();
    uid = source.readInt();
    pkgList = source.readStringArray();
    flags = source.readInt();
    lastTrimLevel = source.readInt();
    importance = source.readInt();
    lru = source.readInt();
    importanceReasonCode = source.readInt();
    importanceReasonPid = source.readInt();
    importanceReasonComponent = ComponentName.readFromParcel(source);
    importanceReasonImportance = source.readInt();
    processState = source.readInt();
}
 
Example 15
Source Project: ETSMobile-Android2   File: Seances.java    License: Apache License 2.0 5 votes vote down vote up
public Seances(Parcel in) {
    String[] data = new String[7];
    in.readStringArray(data);
    int i = 0;
    this.dateDebut = data[i++];
    this.dateFin = data[i++];
    this.coursGroupe = data[i++];
    this.nomActivite = data[i++];
    this.local = data[i++];
    this.descriptionActivite = data[i++];
    this.libelleCours = data[i];

}
 
Example 16
public void readFromParcel(Parcel in) {
    cursor = BulkCursorNative.asInterface(in.readStrongBinder());
    columnNames = in.readStringArray();
    wantsAllOnMoveCalls = in.readInt() != 0;
    count = in.readInt();
    if (in.readInt() != 0) {
        window = CursorWindow.CREATOR.createFromParcel(in);
    }
}
 
Example 17
public SavedState(Parcel source) {
    super(source);
    final int size = source.readInt();
    values = new HashSet<>();
    String[] strings = new String[size];
    source.readStringArray(strings);

    Collections.addAll(values, strings);
}
 
Example 18
private ApplicationInfo(Parcel source) {
    super(source);
    taskAffinity = source.readString();
    permission = source.readString();
    processName = source.readString();
    className = source.readString();
    theme = source.readInt();
    flags = source.readInt();
    privateFlags = source.readInt();
    requiresSmallestWidthDp = source.readInt();
    compatibleWidthLimitDp = source.readInt();
    largestWidthLimitDp = source.readInt();
    volumeUuid = source.readString();
    scanSourceDir = source.readString();
    scanPublicSourceDir = source.readString();
    sourceDir = source.readString();
    publicSourceDir = source.readString();
    splitSourceDirs = source.readStringArray();
    splitPublicSourceDirs = source.readStringArray();
    nativeLibraryDir = source.readString();
    secondaryNativeLibraryDir = source.readString();
    nativeLibraryRootDir = source.readString();
    nativeLibraryRootRequiresIsa = source.readInt() != 0;
    primaryCpuAbi = source.readString();
    secondaryCpuAbi = source.readString();
    resourceDirs = source.readStringArray();
    seinfo = source.readString();
    sharedLibraryFiles = source.readStringArray();
    dataDir = source.readString();
    deviceEncryptedDataDir = deviceProtectedDataDir = source.readString();
    credentialEncryptedDataDir = credentialProtectedDataDir = source.readString();
    uid = source.readInt();
    minSdkVersion = source.readInt();
    targetSdkVersion = source.readInt();
    versionCode = source.readInt();
    enabled = source.readInt() != 0;
    enabledSetting = source.readInt();
    installLocation = source.readInt();
    manageSpaceActivityName = source.readString();
    backupAgentName = source.readString();
    descriptionRes = source.readInt();
    uiOptions = source.readInt();
    fullBackupContent = source.readInt();
    networkSecurityConfigRes = source.readInt();
}
 
Example 19
@SuppressWarnings("unchecked")
private ApplicationInfo(Parcel source) {
    super(source);
    taskAffinity = source.readString();
    permission = source.readString();
    processName = source.readString();
    className = source.readString();
    theme = source.readInt();
    flags = source.readInt();
    privateFlags = source.readInt();
    requiresSmallestWidthDp = source.readInt();
    compatibleWidthLimitDp = source.readInt();
    largestWidthLimitDp = source.readInt();
    if (source.readInt() != 0) {
        storageUuid = new UUID(source.readLong(), source.readLong());
        volumeUuid = StorageManager.convert(storageUuid);
    }
    scanSourceDir = source.readString();
    scanPublicSourceDir = source.readString();
    sourceDir = source.readString();
    publicSourceDir = source.readString();
    splitNames = source.readStringArray();
    splitSourceDirs = source.readStringArray();
    splitPublicSourceDirs = source.readStringArray();
    splitDependencies = source.readSparseArray(null);
    nativeLibraryDir = source.readString();
    secondaryNativeLibraryDir = source.readString();
    nativeLibraryRootDir = source.readString();
    nativeLibraryRootRequiresIsa = source.readInt() != 0;
    primaryCpuAbi = source.readString();
    secondaryCpuAbi = source.readString();
    resourceDirs = source.readStringArray();
    seInfo = source.readString();
    seInfoUser = source.readString();
    sharedLibraryFiles = source.readStringArray();
    sharedLibraryInfos = source.createTypedArrayList(SharedLibraryInfo.CREATOR);
    dataDir = source.readString();
    deviceProtectedDataDir = source.readString();
    credentialProtectedDataDir = source.readString();
    uid = source.readInt();
    minSdkVersion = source.readInt();
    targetSdkVersion = source.readInt();
    setVersionCode(source.readLong());
    enabled = source.readInt() != 0;
    enabledSetting = source.readInt();
    installLocation = source.readInt();
    manageSpaceActivityName = source.readString();
    backupAgentName = source.readString();
    descriptionRes = source.readInt();
    uiOptions = source.readInt();
    fullBackupContent = source.readInt();
    networkSecurityConfigRes = source.readInt();
    category = source.readInt();
    targetSandboxVersion = source.readInt();
    classLoaderName = source.readString();
    splitClassLoaderNames = source.readStringArray();
    compileSdkVersion = source.readInt();
    compileSdkVersionCodename = source.readString();
    appComponentFactory = source.readString();
    iconRes = source.readInt();
    roundIconRes = source.readInt();
    mHiddenApiPolicy = source.readInt();
    hiddenUntilInstalled = source.readInt() != 0;
    zygotePreloadName = source.readString();
}
 
Example 20
private ApplicationInfo(Parcel source) {
    super(source);
    taskAffinity = source.readString();
    permission = source.readString();
    processName = source.readString();
    className = source.readString();
    theme = source.readInt();
    flags = source.readInt();
    privateFlags = source.readInt();
    requiresSmallestWidthDp = source.readInt();
    compatibleWidthLimitDp = source.readInt();
    largestWidthLimitDp = source.readInt();
    volumeUuid = source.readString();
    scanSourceDir = source.readString();
    scanPublicSourceDir = source.readString();
    sourceDir = source.readString();
    publicSourceDir = source.readString();
    splitSourceDirs = source.readStringArray();
    splitPublicSourceDirs = source.readStringArray();
    nativeLibraryDir = source.readString();
    secondaryNativeLibraryDir = source.readString();
    nativeLibraryRootDir = source.readString();
    nativeLibraryRootRequiresIsa = source.readInt() != 0;
    primaryCpuAbi = source.readString();
    secondaryCpuAbi = source.readString();
    resourceDirs = source.readStringArray();
    seinfo = source.readString();
    sharedLibraryFiles = source.readStringArray();
    dataDir = source.readString();
    deviceEncryptedDataDir = deviceProtectedDataDir = source.readString();
    credentialEncryptedDataDir = credentialProtectedDataDir = source.readString();
    uid = source.readInt();
    minSdkVersion = source.readInt();
    targetSdkVersion = source.readInt();
    versionCode = source.readInt();
    enabled = source.readInt() != 0;
    enabledSetting = source.readInt();
    installLocation = source.readInt();
    manageSpaceActivityName = source.readString();
    backupAgentName = source.readString();
    descriptionRes = source.readInt();
    uiOptions = source.readInt();
    fullBackupContent = source.readInt();
    networkSecurityConfigRes = source.readInt();
}