aboutsummaryrefslogtreecommitdiff
path: root/doze (follow)
Commit message (Collapse)AuthorAge
* msm8996-common: doze: Add an exported flag in manifestMicheal2024-12-19
| | | | | | | Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present Change-Id: I12d27c23624eb5259da582b86ac1bd7572754f0c
* msm8996-common: doze: Target current sdkArian2024-12-18
| | | | Change-Id: Ia623282960775569325714ab3bff5ad027776352
* msm8996-common: doze: Fix compilation for QPR1 mergeBruno Martins2023-08-03
| | | | Change-Id: Ifa602ed1ae0734dbda40663770f2e54075bfa208
* msm8996-common: doze: Fix up the main switch preferenceDhina172022-08-16
| | | | | | | - fixup of this commit f9f9c448c90ad039fcc94cd38ffed47d43faf516 Change-Id: I05f2ad63f1e614e4f8ba51f8fe5f9291fb656d74 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze: Adapt to S styleTheScarastic2022-08-16
| | | | | | | | | | * 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>
* msm8996-common: doze: Squash revert of AODDavide Garberi2022-08-16
| | | | | | | | | | | | | | | | | | | * 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
* msm8996-common: doze: Use all shared resources from devicesettingsBruno Martins2021-10-19
| | | | Change-Id: Icd7f381c574ea36eb4d797cefd60ba9f1a0941bd
* msm8996-common: doze: Update AmbientDisplayConfiguration class pathLuK13372019-11-05
| | | | Change-Id: Ib0444acc1fd8614a9d47dbac06ac5f25cd6a5719
* msm8996-common: Doze: Migrate to androidxBruno Martins2019-07-14
| | | | Change-Id: Ifaa67283a3437549a2304088a0ce377b399da19f
* msm8996-common: doze: Fix AoD default prefHenrique Silva2019-02-06
| | | | | | | | | | * 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>
* msm8996-common: doze: Check if AOD is enabled after bootLuca Stefani2019-02-06
| | | | | | | * 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>
* msm8996-common: doze: Move Utils.checkDozeService in an handlerLuca Stefani2019-02-06
| | | | | | | | | * 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>
* msm8996-common: doze: Make AOD preference not persistentLuca Stefani2019-02-06
| | | | | Change-Id: I9d80e94de02d35c85765302a01b53020824dd0ff Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze: Add AOD support to Ambient DisplayBruno Martins2019-02-06
| | | | | | | | | | * 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>
* msm8996-common: doze: Match Pie settings UIJoey2019-02-06
| | | | | Change-Id: Ia1cde37923c55faf057189f7085b69522e2802ef Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Add missing preference listenersBruno Martins2018-09-27
| | | | | | | | * 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
* msm8996-common: Doze: Drop useless SDK dependencyBruno Martins2018-09-27
| | | | Change-Id: I74901339740b82b79f36754c7e52894a98020c3d
* msm8996-common: Set LOCAL_SDK_VERSION where possible.Anton Hansson2018-08-26
| | | | | | | | | | | | | | | | This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: Ic906adbd670c4dbfe2cdf0b71cdbeaf9ac08a27e
* msm8996-common: doze: use ExecutorService for listener registrationezio842018-06-29
| | | | | | | | | | | | | | | | | | | | | | 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
* Revert "msm8996-common: Doze: Install into vendor"Cosme Domínguez Díaz2018-05-26
| | | | This reverts commit 4880627b20c1b589f2d5a7160076ee170fbd7d60.
* msm8996-common: Doze: Install into vendorBruno Martins2018-05-20
| | | | Change-Id: Ideb432998aed70d9c7d24f8b60d9a28f026d9c37
* msm8996-common: Doze: Minor code simplification and clean upBruno Martins2018-04-08
| | | | Change-Id: Idff05f2626138c96dccd3ab4c26c4df1be40a606
* msm8996-common: Doze: Build with AAPT2Bruno Martins2017-12-04
| | | | | Change-Id: Iab14804817e6b90bf4d773d9359a04f1e119264a Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Re-integrate into SettingsBruno Martins2017-12-04
| | | | | | | | | | | | | | | * 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>
* msm8996-common: Doze: Apply LineageOS rebrandBruno Martins2017-12-04
| | | | | Change-Id: I4daa1092494fdf207ef54dc79f787bcbe1d01a08 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Hide features if unsupportedBruno Martins2017-12-04
| | | | | | | | * This is required for lithium because the device has no ability to check for proximity sensor status during standby, due to sensor's native design Change-Id: I5d3ecfe3df96b5e58ffb0579dffd311c7c13e4a9 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Require non-wake up proximity sensorLuK13372017-12-04
| | | | | | | | | | * getDefaultSensor(type) returns the first sensor and in case of capricorn it's wake-up one thus our doze package wouldn't work. Passing `false` as a second argument makes it work properly. Change-Id: If73bc43bc166945d27b95513c4255ae5a5590849 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: RefactorBruno Martins2017-12-04
| | | | | | | | | | | * Fix Ambient Display's switchbar on/off text. * Get rid of unnecessary receiver and all its related code, permissions and meta-data. * Keep the service running only if Doze is enabled system-wide along with at least one of the additional Ambient Display features. Change-Id: Id1f7f5e099f289a20f5757b7869e297e0ce74f7a Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Perform operations as current userGabriele M2017-12-04
| | | | | | | * System processes should use the 'AsUser' variant of some methods Change-Id: Ic2457950b1f0e9f29f4fb06ef38f00dd919ad8f7 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze: Protect com.android.systemui.doze.pulseGabriele M2017-12-04
| | | | | | | | | | As stated in ActivityManagerService: The vast majority of broadcasts sent from system internals should be protected to avoid security holes Change-Id: I1dc989d9d132d40835ca8dbf277285eb88e30a58 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze: Set different timings for wave and pocket detectionMichael W2017-12-04
| | | | | | | * One second is a little bit short for pocket Change-Id: Id27bba6f01a3a4d54ae9096fae87505f38ee5062 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze: CleanupMichael W2017-12-04
| | | | | | | | | | | * Rename missing OnePlus occurance * Remove unneccessary newlines * Remove redundancy * Remove unused variables and imports * Make variables local when sufficient Change-Id: I48f5dfc24275388f1deb31dc27716ed75aae898e Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze: Commonize strings translationsAbhisek Devkota2017-12-04
| | | | | | | | | * Translations moved to the new project android_packages_resources_devicesettings Change-Id: I06536915e1963a2fe464c3d6c46dd8728aba0cb4 Signed-off-by: Adrian DC <radian.dc@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Bring DozeSettings up to dateSteve Kondik2017-12-04
| | | | | | | | | | * Rework the UI with a SwitchBar * Change to the preferences support library and use fragments * Use all the new fancy RemotePreference stuff * Slot into display settings instead of the dashboard Change-Id: I0850f7d9558a14f739f752f76002db993381a0e5 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze clean upAltaf-Mahdi2017-12-04
| | | | | | | | | * remove always enabled option * use stock fade in delay * squashed new and updated translations Change-Id: Ieebf13f88c02d5036a09b5ef83ca1b53bd6771ac Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze improvementsAltaf-Mahdi2017-12-04
| | | | | | | | | | | | * restructure the app * add a tilt sensor from hammerhead-caf with an option to enable/disable * add a one time dialog on first start to help users understand how the app works * remove proximity wake up option and add an option to enable the sensors as soon as the screen turns off * adjust and add new doze configs * squashed translations Change-Id: Ia9d9a807d6c4f1a80a2ba8780e7486560f9a1d87 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: add doze packagePatrick Lower2017-12-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Taken from yu lettuce Includes the following patches YUDoze: Add service for using proximity sensor for wake-up Author: Patrick Lower <devvortex@gmail.com> Date: Mon May 11 16:14:17 2015 -0400 YUDoze: Set gesture to disabled by default Author: Arne Coucheron <arco68@gmail.com> Date: Wed May 20 00:56:19 2015 +0200 YUDoze: Consolidate doze settings Author: Christopher R. Palmer <crpalmer@gmail.com> Date: Sat May 23 11:42:49 2015 -0700 YUDoze: fix defaults Author: Dave Daynard <nardholio@gmail.com> Date: Sat May 23 18:29:13 2015 -0400 YUDoze: Add back button to action bar Author: luca020400 <luca.stefani.ge1@gmail.com> Date: Sun May 24 15:47:17 2015 -0700 YUDoze: add proximity wake Author: Dave Daynard <nardholio@gmail.com> Date: Mon May 25 12:54:00 2015 -0400 YUDoze: restore proximity wake preference on boot Author: Dave Daynard <nardholio@gmail.com> Date: Sat Jul 4 13:44:53 2015 -0400 YUDozeService: Prevent a pm wakeup with a timestamp in the future Author: Brandon McAnsh <brandon.mcansh@gmail.com> Date: Fri Jul 24 15:40:45 2015 -0400 YUDozeService: properly fix future timestamp error Author: Patrick Lower <devvortex@gmail.com> Date: Wed Aug 5 10:51:03 2015 -0400 YUDoze: fix typo Author: Dave Daynard <nardholio@gmail.com> Date: Tue Sep 8 22:56:10 2015 -0400 YUDoze: Use ScreenType util from cmsdk Author: Michael Bestas <mikeioannina@gmail.com> Date: Sun Dec 13 02:51:09 2015 -0500 YUDOze: Remove summary for YUDoze Author: TheStrix <parthbhatia98@gmail.com> Date: Sun Dec 13 07:25:36 2015 -0500 Change-Id: Ia7e668622eecf4355fd55dc9cda7ca05a6494b93 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* Nuke ZukDozedd3boh2017-07-15
| | | | It's just a bit useless lol
* doze: Move to gesture settingsdavidevinavil2017-06-22
|
* doze: change stringdavidevinavil2017-04-07
|
* doze: DU-ifydavidevinavil2017-04-07
|
* z2_plus: Add dozecryscript2017-04-07
|
* z2_plus: Remove dozedavidevinavil2017-04-07
|
* z2_plus: Doze: Protect com.android.systemui.doze.pulseGabriele M2017-01-21
| | | | | | | | | As stated in ActivityManagerService: The vast majority of broadcasts sent from system internals should be protected to avoid security holes Change-Id: I1dc989d9d132d40835ca8dbf277285eb88e30a58
* z2_plus: Doze: Set different timings for wave and pocket detectionMichael W2017-01-21
| | | | | | * One second is a little bit short for pocket Change-Id: Id27bba6f01a3a4d54ae9096fae87505f38ee5062
* z2_plus: Doze: CleanupMichael W2017-01-21
| | | | | | | | | | * Rename missing OnePlus occurance * Remove unneccessary newlines * Remove redundancy * Remove unused variables and imports * Make variables local when sufficient Change-Id: I48f5dfc24275388f1deb31dc27716ed75aae898e
* z2_plus: Doze: Commonize strings translationsAbhisek Devkota2017-01-21
| | | | | | | | * Translations moved to the new project android_packages_resources_devicesettings Change-Id: I06536915e1963a2fe464c3d6c46dd8728aba0cb4 Signed-off-by: Adrian DC <radian.dc@gmail.com>
* z2_plus: Bring DozeSettings up to dateSteve Kondik2017-01-21
| | | | | | | | | * Rework the UI with a SwitchBar * Change to the preferences support library and use fragments * Use all the new fancy RemotePreference stuff * Slot into display settings instead of the dashboard Change-Id: I0850f7d9558a14f739f752f76002db993381a0e5
* z2_plus: Doze clean upAltaf-Mahdi2017-01-21
| | | | | | | | * remove always enabled option * use stock fade in delay * squashed new and updated translations Change-Id: Ieebf13f88c02d5036a09b5ef83ca1b53bd6771ac
* z2_plus: Doze improvementsAltaf-Mahdi2017-01-21
| | | | | | | | | | | * restructure the app * add a tilt sensor from hammerhead-caf with an option to enable/disable * add a one time dialog on first start to help users understand how the app works * remove proximity wake up option and add an option to enable the sensors as soon as the screen turns off * adjust and add new doze configs * squashed translations Change-Id: Ia9d9a807d6c4f1a80a2ba8780e7486560f9a1d87