Code example for File

Methods: fromFile

0
    } 
 
    public void setDatabaseQuota(long quota) {
        /** TODO: Reset this before every test! */ 
        Log.i(LOG_TAG, "setDatabaseQuota() called with: " + quota);
        WebStorage.getInstance().setQuotaForOrigin(Uri.fromFile(new File("")).toString(),
                quota);
    } 
 
    public void setGeolocationPermission(boolean allow) {
        mLayoutTestsExecutor.setGeolocationPermission(allow);
    } 
 
    public void setMockDeviceOrientation(boolean canProvideAlpha, double alpha,
            boolean canProvideBeta, double beta, boolean canProvideGamma, double gamma) {
        // Configuration is in WebKit, so stay on WebCore thread, but go via LayoutTestsExecutor 
        // as we need access to the Webview. 
        Log.i(LOG_TAG, "setMockDeviceOrientation(" + canProvideAlpha +
                ", " + alpha + ", " + canProvideBeta + ", " + beta + ", " + canProvideGamma +
                ", " + gamma + ")");
        mLayoutTestsExecutor.setMockDeviceOrientation(