OSDN Git Service

Move more folks to FileUtils.copy().
authorJeff Sharkey <jsharkey@android.com>
Thu, 1 Feb 2018 23:01:52 +0000 (16:01 -0700)
committerJeff Sharkey <jsharkey@android.com>
Thu, 1 Feb 2018 23:01:55 +0000 (16:01 -0700)
commit45c97df89d6c9d8b5252ba9fc27c41e75c81254d
tree437680ffe40d8ae996f34bcca1077bdbe15fcaf8
parent274ad5502115a9bd7ce15c5abff1867598c14ff7
Move more folks to FileUtils.copy().

Also extend API to accept a "count" argument of exactly how many
bytes to copy, and return the actual number of copied bytes.

Improve docs.

Test: bit FrameworksCoreTests:android.os.FileUtilsTest
Test: vogar --mode app_process --benchmark frameworks/base/core/tests/benchmarks/src/android/os/FileUtilsBenchmark.java
Bug: 71932978
Change-Id: I8d255e4f97462838c02a8ecb6d2d221188c4eff0
core/java/android/app/WallpaperManager.java
core/java/android/os/FileUtils.java
core/java/android/print/PrintFileDocumentAdapter.java
core/tests/benchmarks/src/android/os/FileUtilsBenchmark.java
core/tests/coretests/src/android/os/FileUtilsTest.java