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

The following examples show how to use android.os.Parcel#readStringArray() . 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: BaseActivity.java    From FireFiles with 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 File: BaseActivity.java    From FireFiles with 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 3
Source File: EditorInfo.java    From android_9.0.0_r45 with 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 4
Source File: InstrumentationInfo.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
@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 5
Source File: ProxyInfo.java    From android_9.0.0_r45 with 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 6
Source File: FlowlayoutTags.java    From FlowlayoutTags with 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 7
Source File: MultiSelectListPreference.java    From MaterialPreference with Apache License 2.0 5 votes vote down vote up
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 8
Source File: BulkCursorDescriptor.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
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 9
Source File: Seances.java    From ETSMobile-Android2 with 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 10
Source File: ActivityManager.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
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 11
Source File: TagGroup.java    From BookReader with 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 12
Source File: MultiSelectListPreference.java    From YalpStore with GNU General Public License v2.0 5 votes vote down vote up
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 13
Source File: SuggestionSpan.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
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 14
Source File: ApplicationInfo.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
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 15
Source File: Conference.java    From conference-app with 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 16
Source File: ImageModel.java    From StatusSaver-for-Whatsapp with Apache License 2.0 5 votes vote down vote up
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 17
Source File: TagGroup.java    From AndroidTagGroup with 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 18
Source File: ApplicationInfo.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
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
Source File: ApplicationInfo.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
@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
Source File: ApplicationInfo.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
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();
}