History log of /packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f7843adabd4e8e1cc84a52721daabefa3a1410fd 22-Feb-2018 Fan Zhang <zhfan@google.com> More renaming in DashboardFragment

getPreferenceControllers() -> createPreferenceControllers() for the same
reason as in ag/3647936

Bug: 73668763
Test: robotests
Change-Id: I97670a91a2a38d1c844d1b9d37f4222c5e6f45a0
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
aed8994f6f50a6bc0adfaa92b499ebde3a8f2a76 22-Feb-2018 Fan Zhang <zhfan@google.com> Rename Indexable::getAllPreferenceControllers.

To getPreferenceControllers. "all" is redundant. Then internally, the
old getPreferenceControllers() is renamed to
createPreferenceControllers() to emphasize the controllers are created
from code (versus the ones created from xml).

Bug: 73668763
Test: robotest
Change-Id: Ifec46aefdc2a418031c8e152028b30bdcd396fc7
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
da4fa8071717e514b37dd33580d66a43bac2d655 24-Jan-2018 Daniel Nishi <dhnishi@google.com> Centralize the automatic storage manager on check.

Bug: 70893105
Test: Existing tests pass.
Change-Id: I83fa0e1033eb530a02eca230d0dd79495cbcbc9d
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
87d120a7e1571b8f7743c676cdf7a0d2cd82e7b1 11-Jan-2018 Fan Zhang <zhfan@google.com> Override switch bar string for wifi/battery saver screen

Bug: 69462439
Test: visual
Change-Id: I18d03ee1664f111222d7b9bb7ee893e4ce0e1343
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
e0b0e9f9025038d72f8129606cc1f432afcb54e0 29-Nov-2017 Fan Zhang <zhfan@google.com> Refactor help menu stuff into a controller

This is a clean up to action bar menu item pattern, we will use the same
pattern to build search icon on all pages in a later change.

Bug: 68814716
Test: robotests
Change-Id: Iedd3ec263e8ccb63ed75ec7a95b28c00878b1de4
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
59c8d77c8c5ee62fabd962db2555b5324caa51df 02-Sep-2017 Daniel Nishi <dhnishi@google.com> Re-add the block of text explaining the feature.

When the automatic storage manager is off (or has never been run), we
display a block of text that explains what it does. In order to make
this testable, I've implemented the feature in a PreferenceController
and upgraded the existing AutomaticStorageManagerSettings class to be
closer to the newer Settings IA.

Change-Id: I3f7d20347a6d5a7bae8bffcd2014c3fdcd315b90
Fixes: 63082545
Test: Settings Robotest
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
9b868d95ead7ccec7ab2febcc95554139fa6ce8a 24-May-2017 Daniel Nishi <dhnishi@google.com> Use the config default days to retain.

This avoids using the static value to determine the default number of
days to retain.

Bug: 38499322
Test: SettingsLib robotests
Change-Id: Ia0f569407a5a2a85a173e90c22f6b413776564db
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
fa3766a22033cf90630d14b9b5a4ced46bf30cbd 18-Apr-2017 Daniel Nishi <dhnishi@google.com> Don't show warning dialog on opening ASM settings.

On older devices, the activation warning dialog would show upon the
switchbar changing to On. This was occurring when the page opens
because the status was changing onResume. By shuffling the switchbar
changes into the ASMSwitchBarController, we can register our listener
after the initialization of the switch bar's first status.

Change-Id: I3610d07345684d1e66444981a8059d1c2965e955
Fixes: 37472724
Test: Settings robotests
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
1ee13fd38693835ee6ee138e2d798076d7753224 21-Mar-2017 Daniel Nishi <dhnishi@google.com> Update the automatic storage management preferences.

This updates this page to match the newer mocks. The changes
include:

* Changing the toggle from a switch to a switch bar.
* Removing the Deletion Helper flow from the screen.
* Unit testing the previously untested functionality.

Change-Id: I35eb1e065c9acfbf32a64d659d35e18034025472
Fixes: 36486021
Test: Robotest
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
abd92e0519768bb9981572e33d73945e4c868742 27-Feb-2017 Daniel Nishi <dhnishi@google.com> Update the Manage Storage preference.

Now, it is a master switch preference which can toggle the
automatic management on/off. This also removes the old
UI in the storage summary at the top.

Bug: 33199077
Test: SettingsRoboTests

Change-Id: I709fd2ca0687f760a5d97ad6bebe477b427b0464
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
99228286a4e43c2c9fa1d28d34fb8431597a8567 08-Feb-2017 Daniel Nishi <dhnishi@google.com> Remove Downloads backup options.

Bug: 32338407
Test: Manual -- Downloads was added before we really started adding
tests.

Change-Id: Ifd8b3dcd42e7c5c4017bdbc7e6aedcab653f216d
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
265d3c2a0c36251bf8a9f571d7239b6dd404d942 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
a2e0824b26457ee5b59ee9f132c2f608a6b11146 28-Sep-2016 Daniel Nishi <dhnishi@google.com> resolve merge conflicts of a4e3842 to master

Change-Id: Ia52171f3cfa0bcb73c6a4d23122ef8ad9025e807
116b95666f8031680a4bb66d366c18ae6c5023f3 28-Sep-2016 Daniel Nishi <dhnishi@google.com> Add a warning message to the ASM toggle.

This trigger fires if ASM is not enabled by default for
the device and the toggle is only visible if the ASM visible
flag is enabled.

Bug: 30455784
Change-Id: Id6adf8a75dbd4290f042d743689a75f496efb0c9
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
5b9762bc09cf72193a9aca498bf28c447a79b5da 22-Sep-2016 Fan Zhang <zhfan@google.com> Use MetricsFeatureProvider in storage manager fragment.

Bug: 31664539
Test: make RunSettingsRoboTests for regression
Test: adb logcat -b events | egrep "(sysui_|notification_)" for
verifying log

Change-Id: I65743b87fdf6f010e40ca705e33e18642e0bfca3
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
6507613ebcd22e4691c2af92a5c161bd327db336 08-Aug-2016 Fan Zhang <zhfan@google.com> Log visibility change for all fragments.

Bug: 30681771
Test: SettingsUnitTests

Refactor visibility logging from InstrumentedFragment into a mixin. And
apply mixin in remaining fragments.

Change-Id: Ibbb59904336254a3e4bb9e8c7d0b36e5a6bc2622
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
6f444933387b5350c508cb64ec8b5dc434d38e70 08-Aug-2016 Jorge Gil <jorgegil@google.com> Add switch to enable downloads backup.

Bug: 30503075
Change-Id: I011d88d16ab8677b63b73e059f0edf823cc82389
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
4a184d4360518c3781f0424989a22f3d4a360ecd 22-Jul-2016 Daniel Nishi <dhnishi@google.com> Add a dropdown for changing the days of retained downloads.

Bug: 30304998
Change-Id: I3113d58313a4badff55f79988abd7612d3bb4da5
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
f21465e14fd64a84389c649ecd21cade212b0e66 20-Jul-2016 Daniel Nishi <dhnishi@google.com> Add a help item for the Help & Feedback for the Storage Manager.

Bug: 29793176
Change-Id: Ic4104525961e7f173212df54f19857a06c0fac05
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
2aa423dda6a271f9957ed352ca413078340cffdf 12-Jul-2016 Daniel Nishi <dhnishi@google.com> Log when the storage manager is toggled on and off.

Bug: 30095915
Change-Id: I9fe16f842f2c2944582ec231803aa957573abead
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
1b9afaff2b0532950fc77386b2ab31c3066eaa2e 25-Jun-2016 Daniel Nishi <dhnishi@google.com> Add text to the Manage Settings page to show freed storage.

Bug: 29643106
Change-Id: Id05dc70e36a690e27cab67fecf921257ed7baf15
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
bf8f89687984c891901a0b52180f6c8fe695d13d 22-Jun-2016 Daniel Nishi <dhnishi@google.com> Update the deletion helper intent string.

Bug: 28675265
Change-Id: Ic56e1617d0cf66e347c3a9b31592de4737b19bb3
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
aad643caf24f6bfe7a04a0422d10102246877925 09-Jun-2016 Daniel Nishi <dhnishi@google.com> Remove the Deletion Helper and Automatic Storage Management jobs.

The automatic storage management settings have been left in place
and updated to use the intent to get into the deletion helper.

Bug: 28965462
Change-Id: I736c8e741b519eceb89075b74d42b38c3aa5d0f4
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
776c9eca3947d24161b82de9c6868655d9fc00ee 10-Jun-2016 Daniel Nishi <dhnishi@google.com> Use Settings.Secure for days to retain.

Previously, we used Shared Preferences, which worked when the
storage manager was localized to Settings. Now that it is in
its own separate APK, we need to use a separate setting to configure
it.

Bug: 28965462
Change-Id: I073859ef1a764679bbc63d3c0cd96af82306212e
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
80c204420bcc7973ec385ed1d62deb4781238f7d 04-May-2016 Daniel Nishi <dhnishi@google.com> Add an automatic storage management job service.

This service runs once a day when plugged in when the device has
under 15% free space remaining. If the FeatureFactory has a
storage management job, it runs the job to begin to free up space
on the device.

This is a temporary landing place and will be refactored very
quickly out of Settings.

Bug: 28600825

Change-Id: Id2ebb42a333b3b4e3daef4e50cf985fe055b85c7
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
ed39bf639b801e6f0eef9f4f56a9e1160fa385c6 23-May-2016 Daniel Nishi <dhnishi@google.com> Hook up the automatic storage manager settings with the flag.

This allows the settings menu to actually toggle the feature on
and off.

Bug: 28905328
Change-Id: I132c0930970b70a0f88b8fc21e85b6829aaef8c8
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
ba03d2ff211ee6bcaff40b9e4b098162e76d2ec5 20-May-2016 Daniel Nishi <dhnishi@google.com> Update the storage manager settings to match the mocks.

Bug: 28560570
Change-Id: I0f218da1d23b687e38c52b5a927f7b84645958c7
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java
116a55cdabccb86e0c9a2548eebeb72b7d7d387e 11-May-2016 Daniel Nishi <dhnishi@google.com> Add the automatic storage manager settings.

This provides a toggle for changing if the storage manager
is turned on or off and how many days of data to retain.

It is currently not hooked up to anything currently and only acts as
the view, pending b/28600825.

Bug: 28560570
Change-Id: Iaa2d819f26addab4dc02ced80e9ba79e0fcf0980
/packages/apps/Settings/src/com/android/settings/deletionhelper/AutomaticStorageManagerSettings.java