History log of /frameworks/native/libs/diskusage/dirsize.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2f720f7ec5c9d0b91defc85878e7330b10f8e89a 11-Apr-2016 Jeff Sharkey <jsharkey@android.com> Use inode numbers for CE storage, fix sizes.

Certain operations, such as clearing/destroying app data, or just
counting on-disk size, require us to know the CE storage directory
of a particular app. To facilitate these operations, offer a method
to get the inode of a CE directory, and accept that inode number
for later operations.

In previous releases, we started installing apps using a new
directory-based layout, where all app code, unpacked native libraries,
and optimized code is bundled together. So now we only have a single
path to measure for code size.

Start measuring both CE and DE storage data usage for apps, and tweak
the reporting so that empty cache/data directories actually show up
as "0 bytes".

Fix bugs in disk usage counting, since st_blksize has no bearing on
the allocated disk space. Also don't double-count "." and ".."
directories when measuring storage.

Bug: 27828915, 27197819
Change-Id: I350b951f5c24165edb253ac663c9aae020c24dc9
/frameworks/native/libs/diskusage/dirsize.c
14df3564fbff5ea9e5fd7d43806258faed46f046 20-Feb-2015 Elliott Hughes <enh@google.com> Add missing <unistd.h> include for close.

Change-Id: Iebce6d74eecb8c275e800b7f47f74bbd4374860d
/frameworks/native/libs/diskusage/dirsize.c
7719b85bf89530c88807ce605308ffc3d50f3b58 01-May-2013 Marco Nelissen <marcone@google.com> Report actual disk space used

Report size based on blocks used, not the "nominal" size.
b/8744465

Change-Id: Idbb72f47af6d475b51305a14be291bf01acb14bb
/frameworks/native/libs/diskusage/dirsize.c
126d215667ea6e17226ef3020ef10973bcf5d59c 24-Oct-2012 Mike Lockwood <lockwood@google.com> More changes to fix PDK build:

move screencap back to frameworks/base
move libdiskusage over from frameworks/base

Change-Id: I8415716634a4cb5b0fae15ef15ff21ee0a08906a
/frameworks/native/libs/diskusage/dirsize.c