Code example for Point

Methods: equals

0
 
    private void runDisplaySize() throws Exception { 
        String size = nextArg();
        int w, h;
        if (size == null) {
            Point initialSize = new Point();
            Point baseSize = new Point();
            try { 
                mWm.getInitialDisplaySize(Display.DEFAULT_DISPLAY, initialSize);
                mWm.getBaseDisplaySize(Display.DEFAULT_DISPLAY, baseSize);
                System.out.println("Physical size: " + initialSize.x + "x" + initialSize.y);
                if (!initialSize.equals(baseSize)) {
                    System.out.println("Override size: " + baseSize.x + "x" + baseSize.y);
                } 
            } catch (RemoteException e) {
            } 
            return; 
        } else if ("reset".equals(size)) {
            w = h = -1;
        } else { 
            int div = size.indexOf('x');