e4bea2d769ae9ab3df028886d61e1215e43fab6f |
|
31-May-2017 |
Daniel Nishi <dhnishi@google.com> |
Fix an NPE when FileCollector runs. In some cases, the path for a VolumeInfo may be null. The previous implementation assumed it was always non-null, however. This backs out of the calculation early if we cannot find the files. Change-Id: Icfe265be738c5ccb16917ef339b2b872f2057f07 Fixes: 38308873 Test: No observed phone crashes with a flashed build.
/frameworks/base/services/core/java/com/android/server/storage/FileCollector.java
|
5d230dc202cb03185652e12b3024ceea1132dd4d |
|
10-Apr-2017 |
Daniel Nishi <dhnishi@google.com> |
Use the StorageStatsManager in FileCollector. This should vastly improve the speed of the FileCollector and resolves the null context issue from the previous variant. Change-Id: I16a70cd0376511b095b1d7fe1c25e8df95263bc1 Fixes: 35807386 Test: Existing tests continue to pass.
/frameworks/base/services/core/java/com/android/server/storage/FileCollector.java
|
3cf3b199e3e120f23f54eb7f9905c8d285cb8a28 |
|
13-Apr-2017 |
Daniel Nishi <dhnishi@google.com> |
Revert "Use the StorageStatsManager in FileCollector." This reverts commit bd441caaf6fb268b2756bc51304efa038bf58376 due to causing NPE crashes. Bug: 37314851 Change-Id: I933eaa3888f84945873de8f7fca0d235306f6aaa
/frameworks/base/services/core/java/com/android/server/storage/FileCollector.java
|
bd441caaf6fb268b2756bc51304efa038bf58376 |
|
10-Apr-2017 |
Daniel Nishi <dhnishi@google.com> |
Use the StorageStatsManager in FileCollector. This should vastly improve the speed of the FileCollector. Change-Id: I7a878a0622bbd6c758fb1d36125414d8b025e709 Fixes: 35807386 Test: Existing tests continue to pass.
/frameworks/base/services/core/java/com/android/server/storage/FileCollector.java
|
1009c08f8e11bb050ce395e8f6a0ed318b1902a1 |
|
31-Jan-2017 |
Jeff Sharkey <jsharkey@android.com> |
Revert "Push mapping from file extension to GID." This reverts commit f17e4cf1f9211c4e549a97b62536ae4001baad7e.
/frameworks/base/services/core/java/com/android/server/storage/FileCollector.java
|
f17e4cf1f9211c4e549a97b62536ae4001baad7e |
|
26-Jan-2017 |
Jeff Sharkey <jsharkey@android.com> |
Push mapping from file extension to GID. An upcoming sdcardfs change will offer to automatically change the GID of files on external storage based on the extension, but we need to tell the kernel the mapping that we'd like to see. This change pushes the current mappings used by installd when kernel support is detected. Test: builds, boots, works with old/new kernels Bug: 34733702 Change-Id: I4a13b17f5a8e080a9bea51b01aa9f1cbf575e0ab
/frameworks/base/services/core/java/com/android/server/storage/FileCollector.java
|
77a78c6f4412dccc58075685ad77f3e41d85f2e4 |
|
13-Dec-2016 |
Daniel Nishi <dhnishi@google.com> |
Augment diskstats dumpsys to have categorization and apps. This adds a new service which opportunistically saves the file system categorization information and the app sizes. This information is fetched during a diskstats dumpsys call from a file stored on the disk. This allows us to keep the dumpsys running quickly while adding information which is costly to calculate. Bug: 32207207 Test: System server instrumentation tests Change-Id: Id59e84b9ad38a9debf3e46e5133ef06f7353829d
/frameworks/base/services/core/java/com/android/server/storage/FileCollector.java
|
3c7febdbd86070337810d1ff741d35430707726a |
|
10-Nov-2016 |
Daniel Nishi <dhnishi@google.com> |
Add a file collector to the platform. The file collector takes in a file path and recursively classifies and provides the amount of storage provided by each classification. This information can be surfaced in Settings or to fulfill storage telemetry calculations. Bug: 32207207 Test: System server instrumentation tests Change-Id: Iff03260859cd4bbd11e7d60b1825115aad540d48
/frameworks/base/services/core/java/com/android/server/storage/FileCollector.java
|