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

The following examples show how to use android.os.Parcel#writeSparseArray() . 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
public void writeToParcel(Parcel dest, int parcelableFlags) {
    super.writeToParcel(dest, parcelableFlags);
    dest.writeString(targetPackage);
    dest.writeString(targetProcesses);
    dest.writeString(sourceDir);
    dest.writeString(publicSourceDir);
    dest.writeStringArray(splitNames);
    dest.writeStringArray(splitSourceDirs);
    dest.writeStringArray(splitPublicSourceDirs);
    dest.writeSparseArray((SparseArray) splitDependencies);
    dest.writeString(dataDir);
    dest.writeString(deviceProtectedDataDir);
    dest.writeString(credentialProtectedDataDir);
    dest.writeString(primaryCpuAbi);
    dest.writeString(secondaryCpuAbi);
    dest.writeString(nativeLibraryDir);
    dest.writeString(secondaryNativeLibraryDir);
    dest.writeInt((handleProfiling == false) ? 0 : 1);
    dest.writeInt((functionalTest == false) ? 0 : 1);
}
 
Example 2
Source Project: simple-stack   File: ParcelledState.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(parcelableKey, flags);
    // noinspection unchecked
    SparseArray<Object> sparseArray = (SparseArray) viewHierarchyState;
    dest.writeSparseArray(sparseArray);
    dest.writeByte(bundle != null ? (byte) 0x01 : 0x00);
    if(bundle != null) {
        dest.writeParcelable(bundle, 0);
    }
    dest.writeByte(viewBundle != null ? (byte) 0x01 : 0x00);
    if(viewBundle != null) {
        dest.writeParcelable(viewBundle, 0);
    }
}
 
Example 3
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    //noinspection unchecked
    dest.writeSparseArray(navigationViewState);
    dest.writeValue(opened);
}
 
Example 4
@Override
public void writeToParcel(Parcel parcel, int i) {
    anchorViewState.writeToParcel(parcel, i);
    parcel.writeSparseArray(orientationCacheMap);
    parcel.writeSparseArray(cacheNormalizationPositionMap);
    parcel.writeInt(orientation);
}
 
Example 5
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeInt(columnCount);
    out.writeIntArray(columnTops);
    out.writeSparseArray(positionData);
}
 
Example 6
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeInt(columnCount);
    out.writeIntArray(columnTops);
    out.writeSparseArray(positionData);
}
 
Example 7
@SuppressWarnings("unchecked")
public void writeToParcel(Parcel dest, int parcelableFlags) {
    super.writeToParcel(dest, parcelableFlags);
    dest.writeString(taskAffinity);
    dest.writeString(permission);
    dest.writeString(processName);
    dest.writeString(className);
    dest.writeInt(theme);
    dest.writeInt(flags);
    dest.writeInt(privateFlags);
    dest.writeInt(requiresSmallestWidthDp);
    dest.writeInt(compatibleWidthLimitDp);
    dest.writeInt(largestWidthLimitDp);
    if (storageUuid != null) {
        dest.writeInt(1);
        dest.writeLong(storageUuid.getMostSignificantBits());
        dest.writeLong(storageUuid.getLeastSignificantBits());
    } else {
        dest.writeInt(0);
    }
    dest.writeString(scanSourceDir);
    dest.writeString(scanPublicSourceDir);
    dest.writeString(sourceDir);
    dest.writeString(publicSourceDir);
    dest.writeStringArray(splitNames);
    dest.writeStringArray(splitSourceDirs);
    dest.writeStringArray(splitPublicSourceDirs);
    dest.writeSparseArray((SparseArray) splitDependencies);
    dest.writeString(nativeLibraryDir);
    dest.writeString(secondaryNativeLibraryDir);
    dest.writeString(nativeLibraryRootDir);
    dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0);
    dest.writeString(primaryCpuAbi);
    dest.writeString(secondaryCpuAbi);
    dest.writeStringArray(resourceDirs);
    dest.writeString(seInfo);
    dest.writeString(seInfoUser);
    dest.writeStringArray(sharedLibraryFiles);
    dest.writeString(dataDir);
    dest.writeString(deviceProtectedDataDir);
    dest.writeString(credentialProtectedDataDir);
    dest.writeInt(uid);
    dest.writeInt(minSdkVersion);
    dest.writeInt(targetSdkVersion);
    dest.writeInt(versionCode);
    dest.writeInt(enabled ? 1 : 0);
    dest.writeInt(enabledSetting);
    dest.writeInt(installLocation);
    dest.writeString(manageSpaceActivityName);
    dest.writeString(backupAgentName);
    dest.writeInt(descriptionRes);
    dest.writeInt(uiOptions);
    dest.writeInt(fullBackupContent);
    dest.writeInt(networkSecurityConfigRes);
    dest.writeInt(category);
    dest.writeInt(targetSandboxVersion);
}
 
Example 8
@SuppressWarnings("unchecked")
public void writeToParcel(Parcel dest, int parcelableFlags) {
    super.writeToParcel(dest, parcelableFlags);
    dest.writeString(taskAffinity);
    dest.writeString(permission);
    dest.writeString(processName);
    dest.writeString(className);
    dest.writeInt(theme);
    dest.writeInt(flags);
    dest.writeInt(privateFlags);
    dest.writeInt(requiresSmallestWidthDp);
    dest.writeInt(compatibleWidthLimitDp);
    dest.writeInt(largestWidthLimitDp);
    if (storageUuid != null) {
        dest.writeInt(1);
        dest.writeLong(storageUuid.getMostSignificantBits());
        dest.writeLong(storageUuid.getLeastSignificantBits());
    } else {
        dest.writeInt(0);
    }
    dest.writeString(scanSourceDir);
    dest.writeString(scanPublicSourceDir);
    dest.writeString(sourceDir);
    dest.writeString(publicSourceDir);
    dest.writeStringArray(splitNames);
    dest.writeStringArray(splitSourceDirs);
    dest.writeStringArray(splitPublicSourceDirs);
    dest.writeSparseArray((SparseArray) splitDependencies);
    dest.writeString(nativeLibraryDir);
    dest.writeString(secondaryNativeLibraryDir);
    dest.writeString(nativeLibraryRootDir);
    dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0);
    dest.writeString(primaryCpuAbi);
    dest.writeString(secondaryCpuAbi);
    dest.writeStringArray(resourceDirs);
    dest.writeString(seInfo);
    dest.writeString(seInfoUser);
    dest.writeStringArray(sharedLibraryFiles);
    dest.writeString(dataDir);
    dest.writeString(deviceProtectedDataDir);
    dest.writeString(credentialProtectedDataDir);
    dest.writeInt(uid);
    dest.writeInt(minSdkVersion);
    dest.writeInt(targetSdkVersion);
    dest.writeLong(longVersionCode);
    dest.writeInt(enabled ? 1 : 0);
    dest.writeInt(enabledSetting);
    dest.writeInt(installLocation);
    dest.writeString(manageSpaceActivityName);
    dest.writeString(backupAgentName);
    dest.writeInt(descriptionRes);
    dest.writeInt(uiOptions);
    dest.writeInt(fullBackupContent);
    dest.writeInt(networkSecurityConfigRes);
    dest.writeInt(category);
    dest.writeInt(targetSandboxVersion);
    dest.writeString(classLoaderName);
    dest.writeStringArray(splitClassLoaderNames);
    dest.writeInt(compileSdkVersion);
    dest.writeString(compileSdkVersionCodename);
    dest.writeString(appComponentFactory);
    dest.writeInt(mHiddenApiPolicy);
}
 
Example 9
@SuppressWarnings("unchecked")
public void writeToParcel(Parcel dest, int parcelableFlags) {
    super.writeToParcel(dest, parcelableFlags);
    dest.writeString(taskAffinity);
    dest.writeString(permission);
    dest.writeString(processName);
    dest.writeString(className);
    dest.writeInt(theme);
    dest.writeInt(flags);
    dest.writeInt(privateFlags);
    dest.writeInt(requiresSmallestWidthDp);
    dest.writeInt(compatibleWidthLimitDp);
    dest.writeInt(largestWidthLimitDp);
    if (storageUuid != null) {
        dest.writeInt(1);
        dest.writeLong(storageUuid.getMostSignificantBits());
        dest.writeLong(storageUuid.getLeastSignificantBits());
    } else {
        dest.writeInt(0);
    }
    dest.writeString(scanSourceDir);
    dest.writeString(scanPublicSourceDir);
    dest.writeString(sourceDir);
    dest.writeString(publicSourceDir);
    dest.writeStringArray(splitNames);
    dest.writeStringArray(splitSourceDirs);
    dest.writeStringArray(splitPublicSourceDirs);
    dest.writeSparseArray((SparseArray) splitDependencies);
    dest.writeString(nativeLibraryDir);
    dest.writeString(secondaryNativeLibraryDir);
    dest.writeString(nativeLibraryRootDir);
    dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0);
    dest.writeString(primaryCpuAbi);
    dest.writeString(secondaryCpuAbi);
    dest.writeStringArray(resourceDirs);
    dest.writeString(seInfo);
    dest.writeString(seInfoUser);
    dest.writeStringArray(sharedLibraryFiles);
    dest.writeString(dataDir);
    dest.writeString(deviceProtectedDataDir);
    dest.writeString(credentialProtectedDataDir);
    dest.writeInt(uid);
    dest.writeInt(minSdkVersion);
    dest.writeInt(targetSdkVersion);
    dest.writeInt(versionCode);
    dest.writeInt(enabled ? 1 : 0);
    dest.writeInt(enabledSetting);
    dest.writeInt(installLocation);
    dest.writeString(manageSpaceActivityName);
    dest.writeString(backupAgentName);
    dest.writeInt(descriptionRes);
    dest.writeInt(uiOptions);
    dest.writeInt(fullBackupContent);
    dest.writeInt(networkSecurityConfigRes);
    dest.writeInt(category);
    dest.writeInt(targetSandboxVersion);
    dest.writeString(classLoaderName);
    dest.writeStringArray(splitClassLoaderNames);
}
 
Example 10
@SuppressWarnings("unchecked")
public void writeToParcel(Parcel dest, int parcelableFlags) {
    super.writeToParcel(dest, parcelableFlags);
    dest.writeString(taskAffinity);
    dest.writeString(permission);
    dest.writeString(processName);
    dest.writeString(className);
    dest.writeInt(theme);
    dest.writeInt(flags);
    dest.writeInt(privateFlags);
    dest.writeInt(requiresSmallestWidthDp);
    dest.writeInt(compatibleWidthLimitDp);
    dest.writeInt(largestWidthLimitDp);
    if (storageUuid != null) {
        dest.writeInt(1);
        dest.writeLong(storageUuid.getMostSignificantBits());
        dest.writeLong(storageUuid.getLeastSignificantBits());
    } else {
        dest.writeInt(0);
    }
    dest.writeString(scanSourceDir);
    dest.writeString(scanPublicSourceDir);
    dest.writeString(sourceDir);
    dest.writeString(publicSourceDir);
    dest.writeStringArray(splitNames);
    dest.writeStringArray(splitSourceDirs);
    dest.writeStringArray(splitPublicSourceDirs);
    dest.writeSparseArray((SparseArray) splitDependencies);
    dest.writeString(nativeLibraryDir);
    dest.writeString(secondaryNativeLibraryDir);
    dest.writeString(nativeLibraryRootDir);
    dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0);
    dest.writeString(primaryCpuAbi);
    dest.writeString(secondaryCpuAbi);
    dest.writeStringArray(resourceDirs);
    dest.writeString(seInfo);
    dest.writeString(seInfoUser);
    dest.writeStringArray(sharedLibraryFiles);
    dest.writeTypedList(sharedLibraryInfos);
    dest.writeString(dataDir);
    dest.writeString(deviceProtectedDataDir);
    dest.writeString(credentialProtectedDataDir);
    dest.writeInt(uid);
    dest.writeInt(minSdkVersion);
    dest.writeInt(targetSdkVersion);
    dest.writeLong(longVersionCode);
    dest.writeInt(enabled ? 1 : 0);
    dest.writeInt(enabledSetting);
    dest.writeInt(installLocation);
    dest.writeString(manageSpaceActivityName);
    dest.writeString(backupAgentName);
    dest.writeInt(descriptionRes);
    dest.writeInt(uiOptions);
    dest.writeInt(fullBackupContent);
    dest.writeInt(networkSecurityConfigRes);
    dest.writeInt(category);
    dest.writeInt(targetSandboxVersion);
    dest.writeString(classLoaderName);
    dest.writeStringArray(splitClassLoaderNames);
    dest.writeInt(compileSdkVersion);
    dest.writeString(compileSdkVersionCodename);
    dest.writeString(appComponentFactory);
    dest.writeInt(iconRes);
    dest.writeInt(roundIconRes);
    dest.writeInt(mHiddenApiPolicy);
    dest.writeInt(hiddenUntilInstalled ? 1 : 0);
    dest.writeString(zygotePreloadName);
}
 
Example 11
@SuppressWarnings("unchecked")
public void writeToParcel(Parcel dest, int parcelableFlags) {
    super.writeToParcel(dest, parcelableFlags);
    dest.writeString(taskAffinity);
    dest.writeString(permission);
    dest.writeString(processName);
    dest.writeString(className);
    dest.writeInt(theme);
    dest.writeInt(flags);
    dest.writeInt(privateFlags);
    dest.writeInt(requiresSmallestWidthDp);
    dest.writeInt(compatibleWidthLimitDp);
    dest.writeInt(largestWidthLimitDp);
    if (storageUuid != null) {
        dest.writeInt(1);
        dest.writeLong(storageUuid.getMostSignificantBits());
        dest.writeLong(storageUuid.getLeastSignificantBits());
    } else {
        dest.writeInt(0);
    }
    dest.writeString(scanSourceDir);
    dest.writeString(scanPublicSourceDir);
    dest.writeString(sourceDir);
    dest.writeString(publicSourceDir);
    dest.writeStringArray(splitNames);
    dest.writeStringArray(splitSourceDirs);
    dest.writeStringArray(splitPublicSourceDirs);
    dest.writeSparseArray((SparseArray) splitDependencies);
    dest.writeString(nativeLibraryDir);
    dest.writeString(secondaryNativeLibraryDir);
    dest.writeString(nativeLibraryRootDir);
    dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0);
    dest.writeString(primaryCpuAbi);
    dest.writeString(secondaryCpuAbi);
    dest.writeStringArray(resourceDirs);
    dest.writeString(seInfo);
    dest.writeString(seInfoUser);
    dest.writeStringArray(sharedLibraryFiles);
    dest.writeString(dataDir);
    dest.writeString(deviceProtectedDataDir);
    dest.writeString(credentialProtectedDataDir);
    dest.writeInt(uid);
    dest.writeInt(minSdkVersion);
    dest.writeInt(targetSdkVersion);
    dest.writeLong(longVersionCode);
    dest.writeInt(enabled ? 1 : 0);
    dest.writeInt(enabledSetting);
    dest.writeInt(installLocation);
    dest.writeString(manageSpaceActivityName);
    dest.writeString(backupAgentName);
    dest.writeInt(descriptionRes);
    dest.writeInt(uiOptions);
    dest.writeInt(fullBackupContent);
    dest.writeInt(networkSecurityConfigRes);
    dest.writeInt(category);
    dest.writeInt(targetSandboxVersion);
    dest.writeString(classLoaderName);
    dest.writeStringArray(splitClassLoaderNames);
    dest.writeInt(compileSdkVersion);
    dest.writeString(compileSdkVersionCodename);
    dest.writeString(appComponentFactory);
    dest.writeInt(mHiddenApiPolicy);
    dest.writeInt(hiddenUntilInstalled ? 1 : 0);
}
 
Example 12
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeSparseArray(childStates);
}
 
Example 13
Source Project: Nibo   File: NiboPlacesAutoCompleteSearchView.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeSparseArray(childrenStates);
    out.writeInt(mCurrentSearchViewState.toInt());
}
 
Example 14
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSparseArray(toSparseArray());
}
 
Example 15
Source Project: CreditCardEntry   File: CreditCardForm.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
	super.writeToParcel(out, flags);
	out.writeSparseArray(childrenStates);
}
 
Example 16
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeSparseArray(childrenStates);
    out.writeInt(mCurrentSearchViewState.toInt());
}
 
Example 17
Source Project: Lay-s   File: ParcelableSparseIntArray.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSparseArray(toSparseArray());
}
 
Example 18
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeSparseArray(childrenStates);
}
 
Example 19
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSparseArray((SparseArray) this.sampleSparseArray);
    dest.writeSparseBooleanArray(this.sparseBooleanArray);
}
 
Example 20
Source Project: CreditCardEntry   File: CreditCardEntry.java    License: MIT License 4 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeSparseArray(childrenStates);
}