summaryrefslogtreecommitdiff
path: root/packages/DynamicSystemInstallationService/src
diff options
context:
space:
mode:
authorPo-Chien Hsueh <pchsueh@google.com>2019-05-17 15:08:20 +0800
committerPO HUNG CHEN <howardsoc@google.com>2019-05-21 01:17:30 +0000
commit22c1f9ac9f0730219dbefe69eb98be21787b1bff (patch)
treedf31fd4bda4723eddcb83d229f8bd692b2acc939 /packages/DynamicSystemInstallationService/src
parent7687aaac1d60de95c55a2bc62f3e23a56e2f16bd (diff)
Reduce parcel size to avoid binder transaction failure
Reduce buffer size to 8192 to avoid binder transaction failures. According to our previous tests. Reducing the buffer size to 8K doesn't show negative impact on performance. Bug: 132923636 Test: Successfully install a DSU Change-Id: Ibe51ab748b4f6c1d3c3ac8286519380ea8afc184
Diffstat (limited to 'packages/DynamicSystemInstallationService/src')
-rw-r--r--packages/DynamicSystemInstallationService/src/com/android/dynsystem/InstallationAsyncTask.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/InstallationAsyncTask.java b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/InstallationAsyncTask.java
index b0e28a029436..077f7ecd3e46 100644
--- a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/InstallationAsyncTask.java
+++ b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/InstallationAsyncTask.java
@@ -37,7 +37,7 @@ class InstallationAsyncTask extends AsyncTask<String, Long, Throwable> {
private static final String TAG = "InstallationAsyncTask";
- private static final int READ_BUFFER_SIZE = 1 << 19;
+ private static final int READ_BUFFER_SIZE = 1 << 13;
private class InvalidImageUrlException extends RuntimeException {
private InvalidImageUrlException(String message) {