Java Code Examples for android.webkit.WebStorage#QuotaUpdater

The following examples show how to use android.webkit.WebStorage#QuotaUpdater . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CordovaChromeClient.java    From reader with MIT License 5 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 2
Source File: CordovaChromeClient.java    From phonegapbootcampsite with MIT License 5 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 3
Source File: SystemWebChromeClient.java    From countly-sdk-cordova with MIT License 5 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 */
@Override
@SuppressWarnings("deprecation")
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 4
Source File: ProxyWebChromeClient.java    From robotium-extensions with Apache License 2.0 5 votes vote down vote up
@Override
public void onReachedMaxAppCacheSize(long requiredStorage, long quota, WebStorage.QuotaUpdater quotaUpdater) {
    if (originalWebChromeClient != null) {
        originalWebChromeClient.onReachedMaxAppCacheSize(requiredStorage, quota, quotaUpdater);
    } else {
        super.onReachedMaxAppCacheSize(requiredStorage, quota, quotaUpdater);
    }
}
 
Example 5
Source File: SystemWebChromeClient.java    From cordova-plugin-app-update-demo with MIT License 5 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 6
Source File: SystemWebChromeClient.java    From pychat with MIT License 5 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 */
@Override
@SuppressWarnings("deprecation")
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 7
Source File: SystemWebChromeClient.java    From lona with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 8
Source File: CordovaChromeClient.java    From phonegap-plugin-loading-spinner with Apache License 2.0 5 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 9
Source File: WebChromeClientDelegate.java    From AgentWeb with Apache License 2.0 5 votes vote down vote up
@Override
@Deprecated
public void onReachedMaxAppCacheSize(long requiredStorage, long quota,
                                     WebStorage.QuotaUpdater quotaUpdater) {
    if (this.mDelegate != null) {
        this.mDelegate.onReachedMaxAppCacheSize(requiredStorage, quota, quotaUpdater);
        return;
    }
    super.onReachedMaxAppCacheSize(requiredStorage, quota, quotaUpdater);
}
 
Example 10
Source File: DefaultChromeClient.java    From AgentWeb with Apache License 2.0 4 votes vote down vote up
@Override
public void onReachedMaxAppCacheSize(long requiredStorage, long quota, WebStorage.QuotaUpdater quotaUpdater) {
	quotaUpdater.updateQuota(requiredStorage * 2);
}
 
Example 11
Source File: DefaultChromeClient.java    From AgentWeb with Apache License 2.0 4 votes vote down vote up
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long quota, long estimatedDatabaseSize, long totalQuota, WebStorage.QuotaUpdater quotaUpdater) {
	quotaUpdater.updateQuota(totalQuota * 2);
}
 
Example 12
Source File: RobotiumWebClient.java    From AndroidRipper with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public void onReachedMaxAppCacheSize(long requiredStorage, long quota, WebStorage.QuotaUpdater quotaUpdater) {
	if (originalWebChromeClient != null) {
		originalWebChromeClient.onReachedMaxAppCacheSize(requiredStorage, quota, quotaUpdater);
	} 
}
 
Example 13
Source File: InAppChromeClient.java    From reader with MIT License 3 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 *
 * @param url
 * @param databaseIdentifier
 * @param currentQuota
 * @param estimatedSize
 * @param totalUsedQuota
 * @param quotaUpdater
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 14
Source File: InAppChromeClient.java    From ultimate-cordova-webview-app with MIT License 3 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 *
 * @param url
 * @param databaseIdentifier
 * @param currentQuota
 * @param estimatedSize
 * @param totalUsedQuota
 * @param quotaUpdater
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 15
Source File: InAppChromeClient.java    From reader with MIT License 3 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 *
 * @param url
 * @param databaseIdentifier
 * @param currentQuota
 * @param estimatedSize
 * @param totalUsedQuota
 * @param quotaUpdater
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 16
Source File: InAppChromeClient.java    From AvI with MIT License 3 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 *
 * @param url
 * @param databaseIdentifier
 * @param currentQuota
 * @param estimatedSize
 * @param totalUsedQuota
 * @param quotaUpdater
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 17
Source File: InAppChromeClient.java    From ultimate-cordova-webview-app with MIT License 3 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 *
 * @param url
 * @param databaseIdentifier
 * @param currentQuota
 * @param estimatedSize
 * @param totalUsedQuota
 * @param quotaUpdater
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 18
Source File: InAppChromeClient.java    From reader with MIT License 3 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 *
 * @param url
 * @param databaseIdentifier
 * @param currentQuota
 * @param estimatedSize
 * @param totalUsedQuota
 * @param quotaUpdater
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 19
Source File: InAppChromeClient.java    From reader with MIT License 3 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 *
 * @param url
 * @param databaseIdentifier
 * @param currentQuota
 * @param estimatedSize
 * @param totalUsedQuota
 * @param quotaUpdater
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}
 
Example 20
Source File: InAppChromeClient.java    From phonegapbootcampsite with MIT License 3 votes vote down vote up
/**
 * Handle database quota exceeded notification.
 *
 * @param url
 * @param databaseIdentifier
 * @param currentQuota
 * @param estimatedSize
 * @param totalUsedQuota
 * @param quotaUpdater
 */
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
        long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
    LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
    quotaUpdater.updateQuota(MAX_QUOTA);
}