private JSONObject dumpStructureWindow( AssistStructure.WindowNode window, JSONObject json) throws JSONException { json.put("displayId", wrap(window.getDisplayId())); json.put("height", wrap(window.getHeight())); json.put("left", wrap(window.getLeft())); json.put("title", wrap(window.getTitle())); json.put("top", wrap(window.getTop())); json.put("width", wrap(window.getWidth())); json.put("root", dumpStructureNode(window.getRootViewNode(), new JSONObject())); return (json); }
protected JSONObject dumpStructureWindow( AssistStructure.WindowNode window, JSONObject json) throws JSONException { json.put("displayId", wrap(window.getDisplayId())); json.put("height", wrap(window.getHeight())); json.put("left", wrap(window.getLeft())); json.put("title", wrap(window.getTitle())); json.put("top", wrap(window.getTop())); json.put("width", wrap(window.getWidth())); json.put("root", dumpStructureNode(window.getRootViewNode(), new JSONObject())); return(json); }