Package org.robolectric.shadows
Class ShadowBackupDataOutput
java.lang.Object
org.robolectric.shadows.ShadowBackupDataOutput
@Implements(android.app.backup.BackupDataOutput.class)
public class ShadowBackupDataOutput
extends Object
Shadow for BackupDataOutput.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static long
ctor
(FileDescriptor fd) protected static void
dtor
(long mBackupWriter) com.google.common.collect.ImmutableList<BackupDataEntity>
Gets a list of all data written to theBackupDataOutput
.protected static void
setKeyPrefix_native
(long mBackupWriter, String keyPrefix) protected static int
writeEntityData_native
(long mBackupWriter, byte[] data, int size) protected static int
writeEntityHeader_native
(long mBackupWriter, String key, int dataSize)
-
Field Details
-
KEY_PREFIX_JOINER
- See Also:
-
-
Constructor Details
-
ShadowBackupDataOutput
public ShadowBackupDataOutput()
-
-
Method Details
-
getEntities
Gets a list of all data written to theBackupDataOutput
. -
writeEntityHeader_native
@Implementation protected static int writeEntityHeader_native(long mBackupWriter, String key, int dataSize) -
writeEntityData_native
@Implementation protected static int writeEntityData_native(long mBackupWriter, byte[] data, int size) -
setKeyPrefix_native
-
ctor
-
dtor
-