code: public int querySurface(EGLSurface eglSurface, int what) {
          int[] value = new int[1];
          EGL14.eglQuerySurface(mEGLDisplay, eglSurface, what, value, 0);
          return value[0];
      }
docs: Performs a simple surface query.