History log of /packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
da3079c55551e61a40a0f434dc8a14327cfec7e2 02-Feb-2017 Daniel Nishi <dhnishi@google.com> Fix a bug where the new 1 year usage stats query was broken.

This bug was not caught by the robotests because they were completely
mocked out and did not care about the values being passed into them.
This bug was missed in manual testing due to me not paying enough
attention to the apps list that was showing up in Deletion Helper and
not seeing it was more permissive than it should have been.

Bug: 34933090
Test: New Robotest
Change-Id: I28666bd6ead4cbfb4145ae2e7f3847a1d6d85638
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
9385b673317060523b66a40780d5ad1df1530a56 17-Jan-2017 Salvador Martinez <dehboxturtle@google.com> Added different thresholds to DeletionHelperActivity

Added the ability to change the threshold for what
deletion helper should show to the user as deletable
content. An additional filter was added to show
all content on the device regardless of age.

Test: robotests
Bug: 32581398
Change-Id: Idb87169b64209d8abb7c360f6e3ad5b65001111f
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
be5c3057c1e193b6b0d10a46ecc723ef790a4ebd 25-Jan-2017 Daniel Nishi <dhnishi@google.com> Reduce the timeframe which Deletion Helper queries for usage stats.

By querying only 1 year back instead of infinity, we can improve
get results slightly faster and avoid some issues w.r.t. querying
for all time (i.e. start time 0).

As a side-note, this should also fix the problem where apps which
should be ineligible were showing up as eligible. We will need
to monitor that situation in the dogfood population.

Bug: 33430363
Test: Robotests
Change-Id: I5cd3202ad25db5716150c857c7da2422c0fa741e
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
cbcc53c409c36520ac452375cdd08e9175a1c1db 26-Aug-2016 Daniel Nishi <dhnishi@google.com> Add unit tests for the AppStateUsageStatsBridge.

Bug: 30900642
Test: m -j32 RunStorageManagerRoboTests
Change-Id: I95d2c9f281a431447767764e935feb7302ca0680
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
f662d554fada273c10c6117a240b19991fe2102e 27-Jul-2016 Daniel Nishi <dhnishi@google.com> Fix a bug where apps which should not be eligible for deletion were.

This rseulted from a logic error involving selecting the maximum of
the days since first install and days since last use. We want to
use what comes first: the install time or the last use. This should
be done by selecting the smallest amount of days of the two.

Instead, the largest of the two is chosen, causing apps which were
installed a while ago to trigger as eligible for deletion when
they should not be.

Bug: 30413088
Change-Id: I2178c0e995a8e3c4888593d43b46888f07916f79
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
cdb6192e04ff6c18b5fa92335f1b456ab209dc96 20-Jul-2016 Daniel Nishi <dhnishi@google.com> Merge "Fix a bug where duplicate package names caused many dupes." into nyc-mr1-dev
722df8c93869550014a02732bf6a0b4d021874af 20-Jul-2016 Daniel Nishi <dhnishi@google.com> Merge "Don't assume an app is never installed if it has no package info." into nyc-mr1-dev
cd65f0119e6ef2e282e19b200c07ae42ff9efe5f 20-Jul-2016 Daniel Nishi <dhnishi@google.com> Fix a bug where duplicate package names caused many dupes.

By ignoring apps which have a different user id than the querying
user, we can avoid the problem of many duped applications in the
Deletion Helper.

Change-Id: Ia1452c6597d2861b6d297600a057174f8147ef01
Fixes: 30231207
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
bbe4418b5a43944449bc1462e9517b92591f6997 20-Jul-2016 Daniel Nishi <dhnishi@google.com> Don't assume an app is never installed if it has no package info.

Instead, assume we don't know when it is installed and act
conservatively when determining whether or not to clear it.

Bug: 30230027
Change-Id: I6f2531d3e3caac708d55717d7e448a76dcb5e34e
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
060ab2e25604122e922e259240a2530b8ed7d8ed 20-Jul-2016 Daniel Nishi <dhnishi@google.com> Fix a bug where apps with misreported app usage are clearable.

Some apps are reporting their usage as being prior to the Unix time
epoch (i.e. negative milliseconds "past" the epoch). This is clearly
invalid data and we need to toss it if it appears.

Bug: 30227986
Change-Id: Ic0a23882bf4eb2e1c81647e48c41d859077b13a7
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
1ce9752def8bc8b41fe83f89b8ab9f54e8aafdd7 01-Jul-2016 Daniel Nishi <dhnishi@google.com> Merge "Add manual debug flag overrides for file and app age limits." into nyc-mr1-dev
e37c387918a600d588ce5d9cb21cca8cbbfe8cfa 01-Jul-2016 Daniel Nishi <dhnishi@google.com> Add manual debug flag overrides for file and app age limits.

By adding debug.asm.file_age_limit and debug.asm.app_unused_limit,
users can now manually test the deletion helper without messing
with the system clock.

Caveat: The Downloads file query is cached and will provide stale
data if you change the file_age_limit after it has succeeded in
getting a file list.

Bug: 29872098
Change-Id: I37c4dd3c656dd4de04e9c70acda48a77cfca00e6
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
2be8f2554eccd50e9ca997da8706c30cd7a30850 29-Jun-2016 Daniel Nishi <dhnishi@google.com> Update the app deletion threshold to 90 days.

BUG: 29877046
Change-Id: Iafbe088de85efe7d22e5715247ff613acff4ad56
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java
09fa1388d090666e631f9d764f935604a2c753e9 01-Jun-2016 Daniel Nishi <dhnishi@google.com> Initial commit of the Storage Manager app.

This patch ports over the Deletion Helper from Settings with the
app deletion and downloads deletion functionality. The functionality
is now inside of a new APK in a new activity which can be accessed
using the android.settings.DELETION_HELPER_SETTINGS intent.

Future CLs will add the following behavior:
1. Port over ability to delete photos.
2. Add overlay facilities for extending the storage manager behavior.
3. Port over the existing unit tests for the storage manager.

Bug: 28822584

Change-Id: I3084f29ab43d5f46202f0cdafcc11ff33d3bbf0f
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/AppStateUsageStatsBridge.java