summaryrefslogtreecommitdiff
path: root/src/com/android/browser/WebStorageSizeManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix WebStorageSizeManagerUnitTest NPEBen Murdoch2011-09-151-4/+0
| | | | | | | | | | | | Previously we passed a null Context into the WebStorageSizeManager from the unit test. After the refactoring to get the application context from the passed in Context, this no longer works. So pass in a valid Context. (See Ib0be5f8c for the regression) Bug: 5319628 Change-Id: I691e2edb0a4174076c7599525569d104a83d3442
* Cache the application context instead of Activity.Ben Murdoch2011-08-011-1/+1
| | | | | | | | | When storing a reference to a Context, ensure that it's the Application context rather than Activity Context. Bug: 5084293 Change-Id: Ib0be5f8ceb91846bb985d0813a8f22cabd44eaf8
* Cast StatFs return values to longBen Murdoch2011-01-061-2/+2
| | | | | | | | On devices with large storage partitions, we could overflow when converting free blocks to free bytes. Cast to long to avoid this. Bug: 3327970 Change-Id: I3c007fc5c9fc758a03ee6ec0b7ee5a1423c170b3
* Changed WebsiteSettingsActivity to fragmentJohn Reck2010-11-301-4/+8
| | | | | | | Bug: 3231307 Moved WebsiteSettingsActivity to a fragment Change-Id: If1fa56ab48167c004fb65c756f325e108f14fe8f
* When a second database is created on an origin, ensure that the quota for ↵Ben Murdoch2010-02-181-8/+24
| | | | | | | | that origin is large enough to cover both databases (old and new). Fix for 2417477 Change-Id: I914b29a5f90a11fe3c3dc9a927a8720197b03560
* Fix for the dual notification problemNicolas Roard2009-09-281-20/+37
|
* Fix for 2023896Andrei Popescu2009-09-181-1/+1
|
* Use the estimated size of new databases as the default quota if we have ↵Ben Murdoch2009-08-261-15/+22
| | | | | | enough space to satisfy it. Change-Id:I23daac8fbf27f50f304ee53060353423deaed50a
* Implement out of space notificationAndrei Popescu2009-07-301-8/+61
|
* Add unit tests for the WebStorageSizemanager. Also reduce the default quota ↵Andrei Popescu2009-07-291-44/+91
| | | | and quota increase step
* Refactor the WebStorage size management:Andrei Popescu2009-07-291-0/+282
- Abandon the Quota UI: it does not make sense to ask the users to decide individual database quota increases. It is unlikely anyone will be able to make a meaningul decision. - Introduce a global limit for all WebStorage content. This is shared between Database and AppCache. - Make the quota increase decision automatic - Treat out-of-space situations by creaying a system notification (TODO).