summaryrefslogtreecommitdiff
path: root/tools/aapt2/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2015-04-10 11:17:14 -0700
committerChris Tate <ctate@android.com>2015-04-13 22:13:23 +0000
commit9310e4285b3fc951c3524d040726d1161015562c (patch)
tree06d37db6c0192387593739c721a5c52fa2b82a0d /tools/aapt2/JavaClassGenerator_test.cpp
parent2f77da07812f01b8e1070fb71cc8ae35ca036349 (diff)
Avoid zero-payload backups in local transport
The local debugging transport now implements BackupTransport.checkFullBackupSize() to detect and reject backup attempts for which no actual file content will be committed. The documentation for checkFullBackupSize() has also been expanded to document the transport's responsibilities in this regard. The local transport now lazy-creates the destination file when data is first delivered for an approved backup operation, rather than doing it proactively in performBackup(), to ensure that changes in the datastore are only attempted after the transport has positive confirmation that data is indeed flowing. Change-Id: I6e47a7e72cd938fc0ed31da4bc490540c71f9e65
Diffstat (limited to 'tools/aapt2/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions