aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2013-01-13 15:52:10 -0800
committerSiva Velusamy <vsiva@google.com>2013-01-13 15:56:49 -0800
commitdadeeefb2523d01718b5792581813d86d4e8e925 (patch)
tree70c4ecc62f7504785380aa20d058124b53cb6829
parent4caec4d11e2c3e16a8396f2b56bf235ed56a3e2a (diff)
downloadsdk-dadeeefb2523d01718b5792581813d86d4e8e925.zip
sdk-dadeeefb2523d01718b5792581813d86d4e8e925.tar.gz
sdk-dadeeefb2523d01718b5792581813d86d4e8e925.tar.bz2
Fix build - update references to Window & View classes
Change-Id: I35ae4e9d75a8a121fb94b6f56d0ffd0f06cc7468
-rw-r--r--chimpchat/src/com/android/chimpchat/hierarchyviewer/HierarchyViewer.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/chimpchat/src/com/android/chimpchat/hierarchyviewer/HierarchyViewer.java b/chimpchat/src/com/android/chimpchat/hierarchyviewer/HierarchyViewer.java
index 285d922..5714701 100644
--- a/chimpchat/src/com/android/chimpchat/hierarchyviewer/HierarchyViewer.java
+++ b/chimpchat/src/com/android/chimpchat/hierarchyviewer/HierarchyViewer.java
@@ -19,8 +19,9 @@ package com.android.chimpchat.hierarchyviewer;
import com.android.ddmlib.IDevice;
import com.android.ddmlib.Log;
import com.android.hierarchyviewerlib.device.DeviceBridge;
-import com.android.hierarchyviewerlib.device.ViewNode;
-import com.android.hierarchyviewerlib.device.Window;
+import com.android.hierarchyviewerlib.device.ViewServerDevice;
+import com.android.hierarchyviewerlib.models.ViewNode;
+import com.android.hierarchyviewerlib.models.Window;
import org.eclipse.swt.graphics.Point;
@@ -70,7 +71,7 @@ public class HierarchyViewer {
public ViewNode findViewById(String id) {
ViewNode rootNode = DeviceBridge.loadWindowData(
- new Window(mDevice, "", 0xffffffff));
+ new Window(new ViewServerDevice(mDevice), "", 0xffffffff));
if (rootNode == null) {
throw new RuntimeException("Could not dump view");
}
@@ -105,7 +106,7 @@ public class HierarchyViewer {
*/
public String getFocusedWindowName() {
int id = DeviceBridge.getFocusedWindow(mDevice);
- Window[] windows = DeviceBridge.loadWindows(mDevice);
+ Window[] windows = DeviceBridge.loadWindows(new ViewServerDevice(mDevice), mDevice);
for (Window w : windows) {
if (w.getHashCode() == id)
return w.getTitle();