AndroidStorageUsagePlatformActions
private class AndroidStorageUsagePlatformActions(val context: Context) : StorageUsagePlatformActions(source)
Android implementation that measures and deletes app-private storage used by the usage screen.
Author
Dmitriy Moroz
Parameters
context
Android context whose app-private cache and files directories are inspected.
Functions
Link copied to clipboard
Deletes every downloaded model directory visible to the platform.
Link copied to clipboard
Deletes app cache files. Callers are responsible for showing confirmation first.
Link copied to clipboard
Returns total bytes occupied by every downloaded model directory visible to the platform.
Link copied to clipboard
Returns the current app cache directory size in bytes.
Link copied to clipboard
Returns total bytes occupied by downloaded model directories for modelIds.
Link copied to clipboard
Converts a raw storage counter into a user-visible amount.