Code example for PrintStream

Methods: println

0
    public static void main(String[] args) {
        (new Wm()).run(args);
    } 
 
    public void onShowUsage(PrintStream out) {
        out.println(
                "usage: wm [subcommand] [options]\n" + 
                "       wm size [reset|WxH]\n" + 
                "       wm density [reset|DENSITY]\n" + 
                "       wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]\n" + 
                "\n" + 
                "wm size: return or override display size.\n" + 
                "\n" + 
                "wm density: override display density.\n" + 
                "\n" + 
                "wm overscan: set overscan area for display.\n" 
                ); 
    } 
 
    public void onRun() throws Exception { 
        mWm = IWindowManager.Stub.asInterface(ServiceManager.checkService(