summaryrefslogtreecommitdiff
path: root/src/com/android/settings/development/StayAwakePreferenceController.java
AgeCommit message (Collapse)Author
2019-02-14Mass clean up: don't cast class when not needed.Fan Zhang
Bug: none Test: rebuild Change-Id: Ie3f58a3d5ae99ade28a33dcac80c18de90d4d5b2
2018-08-30RestrictedLockUtils was split into ...InternalPhilip P. Moltmann
This means that in some cases RestrictedLockUtils has to be used and in some RestrictedLockUtilsInternal. This causes a lot of trivial code changes. I also updated the ordering of the imports in all affected files. Bug: 110953302 Test: Built make -j RunSettingsRoboTests Change-Id: I9bdf8b89134f853bae4f38c81af436715c73e924
2018-08-28Sort importsFan Zhang
Having consistent import order will reduce chance of merge conflict between internal and external master Test: rebuild Change-Id: I0b1a170967ddcce7f388603fd521f6ed1eeba30b
2018-06-18Reorder and clean up imports.Fan Zhang
Test: rebuild Change-Id: I178485c84ae7146f991fd77b6d7504b029942a68
2018-04-20Migrate Settings to androidx.Aurimas Liutikas
Test: make Settings Bug: 76692459 Change-Id: I941dea40562170649bf056e675cc32e5163c0e39
2018-03-01Remove unnecessary onDeveloperOptionsSwitchEnabled/Disabled override.Doris Ling
- default implementation has been added in the super class to handle enabling/disabling the preference when the master developer options switch it turned on/off. Removing all subclass that originally implemented the methods that only contains the default behavior. Bug: 73955632 Test: make RunSettingsRoboTests Change-Id: I13c372c2ab498a5786b40cdc1ad3b5f3424abb5a
2017-10-16Lazy load SettingsObserverjeffreyhuang
- Lazy load the SettingsObserver in StayAwakePreferenceController so that search indexing works properly Bug: 34203528 Test: make RunSettingsRoboTests -j40 Change-Id: I1e2afb106ce293f616143da3f37fbde3829f414f
2017-10-09Move DevOptionsPrefCtrl to SettingsLibjeffreyhuang
- Move DeveloperOptionsPreferenceController Bug: 34203528 Test: make RunSettingsRoboTests -j40 Change-Id: Ie434d479d8d3f7527ffce54f241ac2e090e0fc44
2017-09-28isAvailable is true by default in dev optionsjeffreyhuang
- isAvailable() is defaulted to return true for all developer options preferences - child controllers should override for custom hiding logic Bug: 34203528 Test: make RunSettingsRoboTests -j40 Change-Id: I89921f801c25e74bf78d02c55b5f34cf1d464cd0
2017-09-20Add isAvailable check to devOptionsControllerjeffreyhuang
- This avoids the null check for PreferenceControllers where isAvailable() is not always true Bug: 34203528 Test: make RunSettingsRoboTests -j40 Change-Id: Ibed8bc6a2a812355c521620d77fb571c1fd8a649
2017-09-15Introduce DeveloperOptionsPreferenceControllerjeffreyhuang
- New abstract class for all preference controllers in developer options - Used to handle changes in the master switch - DeveloperSettingsDashboardFragment has a reference to all preference controllers to call "handleMasterSwitchToggled()" Bug: 34203528 Test: make RunSettingsRoboTests -j40 Change-Id: I64c18f54e22551f025029336880e92ac3a0d4a8c
2017-09-13Introduce StayAwakePreferenceControllerjeffreyhuang
- Create new StayAwakePreferenceController - Create controller inside the DashboardFragment - Port logic from DevelopmentSettings into the controller Bug: 34203528 Test: make RunSettingsRoboTests -j40 ROBOTEST_FILTER=StayAwakePreferenceControllerTest Change-Id: I7642656fb2e323878face52f0a3c57fec1d85ac4