summaryrefslogtreecommitdiff
path: root/core/java/android/os/PooledStringReader.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2015-07-08 17:36:37 -0700
committerDianne Hackborn <hackbod@google.com>2015-07-09 14:06:47 -0700
commit782d49826862cbdc9d020fc9d85f8a6f64675dcb (patch)
tree2f8336faca55d4b71a70ca52d7aa2b80ca1f3b61 /core/java/android/os/PooledStringReader.java
parent2a67840c3c35a6267663e5d3ae921ee9ac614db9 (diff)
Fix issue #22328792: Fix scalability issues in AssistStructure
We can now stream the AssistStructure across processes, avoiding IPC size limitations for large structures. There is also a new API that gets called on the VoiceInteractionSession if there is a failure retrieving the assist data. Also fix issue #22351981: Runtime restart due to ANR in system server, getting rid of a deadlock. And also tweak object lifecycles to try to avoid keeping around in an app the previous AssistStructure after we request a new one. Change-Id: Ifb136a0d31a14e56a8db6b90768d9fc65557a17f
Diffstat (limited to 'core/java/android/os/PooledStringReader.java')
-rw-r--r--core/java/android/os/PooledStringReader.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/os/PooledStringReader.java b/core/java/android/os/PooledStringReader.java
index 7795957999cb..6fc71c7c65e8 100644
--- a/core/java/android/os/PooledStringReader.java
+++ b/core/java/android/os/PooledStringReader.java
@@ -36,6 +36,10 @@ public class PooledStringReader {
mPool = new String[size];
}
+ public int getStringCount() {
+ return mPool.length;
+ }
+
public String readString() {
int idx = mIn.readInt();
if (idx >= 0) {