summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorKonstantin Lopyrev <klopyrev@google.com>2010-08-25 17:35:50 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-25 17:35:50 -0700
commit6947cc594276df899a0c4662224455f40846bd0a (patch)
tree7879b29d349d7b18230bfdce22e718391f9b7de9 /services/java
parent0c490839b2d25fec99f1ae86dcebc5f21a2df8bb (diff)
parent43b9b48f792e0b1b166af7f7fb6a32172e7f11c2 (diff)
downloadframeworks_base-6947cc594276df899a0c4662224455f40846bd0a.zip
frameworks_base-6947cc594276df899a0c4662224455f40846bd0a.tar.gz
frameworks_base-6947cc594276df899a0c4662224455f40846bd0a.tar.bz2
Merge "Preventing the hierarchy viewer from getting stuck, once when trying to load the window data for SurfaceView and the Wallpaper, and in the case the captured node has disappeared." into gingerbread
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/WindowManagerService.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java
index 421d1c4..9b9d950 100644
--- a/services/java/com/android/server/WindowManagerService.java
+++ b/services/java/com/android/server/WindowManagerService.java
@@ -4808,6 +4808,8 @@ public class WindowManagerService extends IWindowManager.Stub
Parcel data = null;
Parcel reply = null;
+ BufferedWriter out = null;
+
// Any uncaught exception will crash the system process
try {
// Find the hashcode of the window
@@ -4845,6 +4847,12 @@ public class WindowManagerService extends IWindowManager.Stub
reply.readException();
+ if (!client.isOutputShutdown()) {
+ out = new BufferedWriter(new OutputStreamWriter(client.getOutputStream()));
+ out.write("DONE\n");
+ out.flush();
+ }
+
} catch (Exception e) {
Slog.w(TAG, "Could not send command " + command + " with parameters " + parameters, e);
success = false;
@@ -4855,6 +4863,13 @@ public class WindowManagerService extends IWindowManager.Stub
if (reply != null) {
reply.recycle();
}
+ if (out != null) {
+ try {
+ out.close();
+ } catch (IOException e) {
+
+ }
+ }
}
return success;