code: public Point getLocation() {
      JSONObject result =
          (JSONObject) driver.executeAtom(AndroidAtoms.GET_TOP_LEFT_COORDINATES, null, this);
  
      try {
        return new Point(result.getInt("x"), result.getInt("y"));
      } catch (JSONException e) {
        throw new SelendroidException(e);
      }
    }
docs: Where on the page is the top left-hand corner of the rendered element? it's part of
  RenderedWebElement
  
  @return A point, containing the location of the top left-hand corner of the element