aboutsummaryrefslogtreecommitdiff
path: root/doze/src/org (unfollow)
Commit message (Collapse)Author
2024-12-19msm8996-common: doze: Migrate to CompoundButton.OnCheckedChangeListenerChaohui Wang
Switch and SwitchCompat are both CompoundButton. Using CompoundButton in Java will helps migration in the future. Bug: 306658427 | AOSP Test: manual - check Settings pages Test: m RunSettingsLibRoboTests Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835
2024-12-19msm8996-common: doze: Enable use_resource_processor for all sysui depsPeter Kalauskas
This will make the build faster Test: m checkbuild Bug: 295208392 Change-Id: I0c1bd901429bbe3bf81c1530e156735f8637a96e
2024-12-19msm8996-common: doze: Get rid of HelpDialogFragment classArian
As preparation to upgrade the sdk get rid of this private class. Fragments must be a public static class to be properly recreated from instance state. Also change the behaviour to only hide the dialog when confirmed instead of also when it is cancelled. Change-Id: I171aa2345058edae7520c37942c3c11b3cdfdfdc
2024-12-19msm8996-common: doze: Convert to SwitchPreferenceCompatMichael Bestas
Change-Id: Ic1cbaba37d499da1855af9c3930f2df426e2d3af
2023-08-03msm8996-common: doze: Fix compilation for QPR1 mergeBruno Martins
Change-Id: Ifa602ed1ae0734dbda40663770f2e54075bfa208
2022-08-16msm8996-common: doze: Fix up the main switch preferenceDhina17
- fixup of this commit f9f9c448c90ad039fcc94cd38ffed47d43faf516 Change-Id: I05f2ad63f1e614e4f8ba51f8fe5f9291fb656d74 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2022-08-16msm8996-common: doze: Adapt to S styleTheScarastic
* Use Theme.SubSettingsBase for theme * Replace PreferenceActivity with CollapsingToolbarBaseActivity * Add Titles to prefernce screen * Remove onOptionsItemSelected and where neccessary move to activity Change-Id: Ic879ce61d83a33da12829008a4336c8a23230d63 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2022-08-16msm8996-common: doze: Squash revert of AODDavide Garberi
* Zuk Z2 Plus doesn't have a AMOLED display anyway * List of reverted commits: Revert "msm8996-common: doze: Fix AoD default pref" This reverts commit d0c7a757799835dd57ed880d1abc3e41357ade14. Revert "msm8996-common: doze: Make AOD preference not persistent" This reverts commit 4a4a5488b7dd4509800d3ddbcae906ac5bc7b981. Revert "msm8996-common: doze: Add AOD support to Ambient Display" This reverts commit ebd1b296486cd39491727d771a59b0516fe2d13f. Change-Id: Ia17783c5970bb631d6e8c6a49479f58b02b5ebae
2019-11-05msm8996-common: doze: Update AmbientDisplayConfiguration class pathLuK1337
Change-Id: Ib0444acc1fd8614a9d47dbac06ac5f25cd6a5719
2019-07-14msm8996-common: Doze: Migrate to androidxBruno Martins
Change-Id: Ifaa67283a3437549a2304088a0ce377b399da19f
2019-02-06msm8996-common: doze: Fix AoD default prefHenrique Silva
* Fixes non-working pulse notifications from sensors until user toggles the main switch and also sets the proper initial status of the AoD preference for the devices that have the feature available. Signed-off-by: Henrique Silva <jhenrique09.mcz@hotmail.com> Change-Id: I8e554decca3734b165fdc722d904d90713666db9 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2019-02-06msm8996-common: doze: Check if AOD is enabled after bootLuca Stefani
* The service should not start if AOD had been turned on by the user. Change-Id: I79307adbcda57e663287714ef15830da4f285131 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2019-02-06msm8996-common: doze: Move Utils.checkDozeService in an handlerLuca Stefani
* There's no need to manually write to the gestures prefs as long we are sure the handler is run after we return true in the onPreferenceChangeListner Change-Id: I090c0c6c91267aff69c45365b95b5f5e26d07b07 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2019-02-06msm8996-common: doze: Make AOD preference not persistentLuca Stefani
Change-Id: I9d80e94de02d35c85765302a01b53020824dd0ff Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2019-02-06msm8996-common: doze: Add AOD support to Ambient DisplayBruno Martins
* This makes the always on display mode feature visible for those devices that explicitly set it as available via AOSP overlay. Should only be enabled on devices where the display has been tuned to be power efficient in DOZE and/or DOZE_SUSPEND states. Change-Id: If543936f9421dd7a6c0be594f7cb76afb227e34b Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2019-02-06msm8996-common: doze: Match Pie settings UIJoey
Change-Id: Ia1cde37923c55faf057189f7085b69522e2802ef Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2018-09-27msm8996-common: Doze: Add missing preference listenersBruno Martins
* Otherwise, it resulted in Doze service not being activated when enabling one of the features for the first time after a clean installation. Change-Id: I625d9109fb85c970f0e59b1cbcabba7d4375d2f3
2018-06-29msm8996-common: doze: use ExecutorService for listener registrationezio84
Replicate what Google did for SystemUI in this commit. https://github.com/aosp-mirror/platform_frameworks_base/commit/fabc743bcf6e6623e530545c4b31285ea642f087 Registering a sensor seems to be an expensive operation, and we do it on each screen-on event, so moving it to an asynchronous task looks like a good idea anyway. By moving all non-essential binder calls of the main thread or to the next frame, we bring this down to 5ms, such that window animation and Keyguard animation starts about at the same time. The interesting part about the ExecutorService: "Memory consistency effects: Actions in a thread prior to the submission of a Runnable or Callable task to an ExecutorService happen-before any actions taken by that task, which in turn happen-before the result is retrieved via Future.get()." (from https://developer.android.com/reference/java/util/concurrent/ExecutorService) Change-Id: I4f37bb9a7dc9d7775d587d4ebd4b6619f3b77e81
2018-04-08msm8996-common: Doze: Minor code simplification and clean upBruno Martins
Change-Id: Idff05f2626138c96dccd3ab4c26c4df1be40a606
2017-12-04msm8996-common: Doze: Re-integrate into SettingsBruno Martins
* Apply the default Oreo theme and inherit the layouts from Google for the Settings app, in order to keep UI consistency. * Get rid of SettingsDrawerActivity as it no longer fits in and include the back button in the action bar. * Kill the icon drawable not only because is a leftover, but also doesn't really serve any puropose in the new UI. Change-Id: I53b6d3bb99d63852ba34d71e16ae99f05223569e Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2017-12-04msm8996-common: Doze: Apply LineageOS rebrandBruno Martins
Change-Id: I4daa1092494fdf207ef54dc79f787bcbe1d01a08 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>