Home
last modified time | relevance | path

Searched refs:bufStream (Results 1 – 2 of 2) sorted by relevance

/development/samples/BackupRestore/src/com/example/android/backuprestore/
DMultiRecordExampleAgent.java106 ByteArrayOutputStream bufStream = new ByteArrayOutputStream(); in onBackup() local
107 DataOutputStream out = new DataOutputStream(bufStream); in onBackup()
112 writeBackupEntity(data, bufStream, FILLING_KEY); in onBackup()
116 bufStream.reset(); in onBackup()
118 writeBackupEntity(data, bufStream, MAYO_KEY); in onBackup()
122 bufStream.reset(); in onBackup()
124 writeBackupEntity(data, bufStream, TOMATO_KEY); in onBackup()
146 void writeBackupEntity(BackupDataOutput data, ByteArrayOutputStream bufStream, String key) in writeBackupEntity() argument
148 byte[] buf = bufStream.toByteArray(); in writeBackupEntity()
DExampleAgent.java117 ByteArrayOutputStream bufStream = new ByteArrayOutputStream(); in onBackup() local
121 DataOutputStream outWriter = new DataOutputStream(bufStream); in onBackup()
128 byte[] buffer = bufStream.toByteArray(); in onBackup()