Lines Matching refs:data
26 * information to the backup data set, via its {@link
29 * as a set of "entities," key/value pairs in which each binary data record "value" is
32 * To commit a data record to the backup transport, the agent's
41 * data set. If a backup agent writes a new entity under an existing key string, its value will
42 * replace any previous value in the transport's remote data store. You can remove a record
43 * entirely from the remote data set by writing a new entity header using the
53 * public void {@link BackupAgent#onBackup(ParcelFileDescriptor, BackupDataOutput, ParcelFileDescriptor) onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState)}
57 * data.writeEntityHeader(MY_STRING_KEY, stringBytes.length);
58 * data.writeEntityData(stringBytes, stringBytes.length);
77 * Mark the beginning of one record in the backup data stream. This must be called before
79 * @param key A string key that uniquely identifies the data record within the application
80 * @param dataSize The size in bytes of this record's data. Passing a dataSize
95 * Write a chunk of data under the current entity to the backup transport.
96 * @param data A raw data buffer to send
101 public int writeEntityData(byte[] data, int size) throws IOException {
102 int result = writeEntityData_native(mBackupWriter, data, size);
128 private native static int writeEntityData_native(int mBackupWriter, byte[] data, int size);