OSDN Git Service

Cherry pick beefed-up error handling in the CopyService from master. DO NOT MERGE
authorBen Kwa <kenobi@google.com>
Fri, 24 Apr 2015 22:35:25 +0000 (15:35 -0700)
committerBen Kwa <kenobi@google.com>
Mon, 4 May 2015 20:28:44 +0000 (20:28 +0000)
commitc7a01cfe15b3f485c9f711d83c33d548ee120795
treec13fadb43f4be4132c0c36dbb05396fc74ca927c
parent61bab469a1529ef61cadb870ca4cc533a5510cfb
Cherry pick beefed-up error handling in the CopyService from   DO NOT MERGE

Send copy errors to the destination provider.
Big overhaul of tests to make them simpler.
Test that errors during copying are detected and partial copies are
cleaned up.
Test that copying empty directories works properly.

Change-Id: I3fe0e73bdc92c2b6f522857ca5631f6d03d5a666
(cherry picked from commit dae8c378d6c680ae9efa8e1202d9bc92fb0dfb11)
packages/DocumentsUI/src/com/android/documentsui/CopyService.java
packages/DocumentsUI/tests/src/com/android/documentsui/CopyTest.java
packages/DocumentsUI/tests/src/com/android/documentsui/StubProvider.java