OSDN Git Service

Beef up error handling in the CopyService.
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 17:26:50 +0000 (10:26 -0700)
commitdae8c378d6c680ae9efa8e1202d9bc92fb0dfb11
treee38a5510ed65657e81043bfd23296e8125b740e2
parentb40b49577c12d14f33abedeba7a1811c7a4eda6d
Beef up error handling in the CopyService.

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
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