| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
Change-Id: Ifa602ed1ae0734dbda40663770f2e54075bfa208
|
|
|
|
|
|
|
| |
- fixup of this commit f9f9c448c90ad039fcc94cd38ffed47d43faf516
Change-Id: I05f2ad63f1e614e4f8ba51f8fe5f9291fb656d74
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
Change-Id: Icd7f381c574ea36eb4d797cefd60ba9f1a0941bd
|
|
|
|
| |
Change-Id: Ib0444acc1fd8614a9d47dbac06ac5f25cd6a5719
|
|
|
|
| |
Change-Id: Ifaa67283a3437549a2304088a0ce377b399da19f
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
| |
Change-Id: I9d80e94de02d35c85765302a01b53020824dd0ff
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
| |
Change-Id: Ia1cde37923c55faf057189f7085b69522e2802ef
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
Change-Id: I74901339740b82b79f36754c7e52894a98020c3d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
This reverts commit 4880627b20c1b589f2d5a7160076ee170fbd7d60.
|
|
|
|
| |
Change-Id: Ideb432998aed70d9c7d24f8b60d9a28f026d9c37
|
|
|
|
| |
Change-Id: Idff05f2626138c96dccd3ab4c26c4df1be40a606
|
|
|
|
|
| |
Change-Id: Iab14804817e6b90bf4d773d9359a04f1e119264a
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
| |
Change-Id: I4daa1092494fdf207ef54dc79f787bcbe1d01a08
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
| |
* System processes should use the 'AsUser' variant of some methods
Change-Id: Ic2457950b1f0e9f29f4fb06ef38f00dd919ad8f7
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
* One second is a little bit short for pocket
Change-Id: Id27bba6f01a3a4d54ae9096fae87505f38ee5062
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
It's just a bit useless lol
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
As stated in ActivityManagerService:
The vast majority of broadcasts sent from system internals
should be protected to avoid security holes
Change-Id: I1dc989d9d132d40835ca8dbf277285eb88e30a58
|
|
|
|
|
|
| |
* One second is a little bit short for pocket
Change-Id: Id27bba6f01a3a4d54ae9096fae87505f38ee5062
|
|
|
|
|
|
|
|
|
|
| |
* Rename missing OnePlus occurance
* Remove unneccessary newlines
* Remove redundancy
* Remove unused variables and imports
* Make variables local when sufficient
Change-Id: I48f5dfc24275388f1deb31dc27716ed75aae898e
|
|
|
|
|
|
|
|
| |
* Translations moved to the new project
android_packages_resources_devicesettings
Change-Id: I06536915e1963a2fe464c3d6c46dd8728aba0cb4
Signed-off-by: Adrian DC <radian.dc@gmail.com>
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* remove always enabled option
* use stock fade in delay
* squashed new and updated translations
Change-Id: Ieebf13f88c02d5036a09b5ef83ca1b53bd6771ac
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|