Commit Graph

16 Commits

Author SHA1 Message Date
Bruno Martins 389844e8d6
sm8150-common: doze: Use all shared resources from devicesettings
Change-Id: Icd7f381c574ea36eb4d797cefd60ba9f1a0941bd
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-03 06:57:53 +05:30
jhenrique09 830a5bc099 sm8150-common: overlay: Define config_customDozePackage
* Remove lineage leftovers

Change-Id: I2a73aa85745c5f30d85675f34da49aeda5aa0773
Signed-off-by: Jagrav Naik <jagravnaik0@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:12:09 +05:30
LuK1337 ddccee7bb9 sm8150-common: doze: Kill pocket sensor
* Doesn't work properly + sensor is non-existent on 7T series.

Change-Id: I7e59d3f8c6ed8217bd6d7ab0258a722416d12cdf
2020-04-08 22:12:23 +02:00
Marko Man e79eb15a8b sm8150-common: doze: Switch pickup sensor
Change-Id: Iad59604f15367e002964ecac3475e46acc319648
2020-04-08 21:19:23 +02:00
Bruno Martins 3271959cf8 sm8150-common: doze: Fix dark theme issues
This brings SwitchBar widget inline with 10 and fixes the
theme issues when the dark mode is enabled.

Change-Id: I6909b77bc649eb9eb760bf01b46f66570363e9d9
2020-01-19 11:32:17 +01:00
LuK1337 8404feb9cc sm8150-common: doze: Update AmbientDisplayConfiguration class path
Change-Id: Ib0444acc1fd8614a9d47dbac06ac5f25cd6a5719
2019-10-06 19:59:40 +02:00
Bruno Martins bf2ea79f76 sm8150-common: Doze: Migrate to androidx
Change-Id: Ifaa67283a3437549a2304088a0ce377b399da19f
2019-07-09 23:42:59 +02:00
LuK1337 87191b07cf sm8150-common: doze: Fix default DOZE_ALWAYS_ON value
* It's disabled by default in our fwb overlay.

Change-Id: Ie38a51c2cc73078d201985cc30f0b6fa3d1630d5
2019-07-07 02:51:21 +02:00
Luca Stefani 6fcbd7f597 sm8150-common: doze: Move Utils.checkDozeService in an handler
* 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
2019-07-07 02:51:21 +02:00
Luca Stefani 26f4f08a36 sm8150-common: doze: Set entry timestamp before registering sensor
Change-Id: Ifa8aa1ded029c3c7be44ac94355e6814c080be44
2019-07-07 02:51:21 +02:00
Bruno Martins 8d69351ecf sm8150-common: doze: Add AOD support to Ambient Display
* 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
2019-07-07 02:51:21 +02:00
Luca Stefani 5a8f784446 sm8150-common: doze: Add missing pocket mode hooks
Change-Id: I81af20cb9f737e0a2260c42fc91530572b16ec5e
2019-07-07 02:51:21 +02:00
Luca Stefani a42911d3c2 sm8150-common: doze: Add pocket mode support
Change-Id: I68498fb3e523fcc77a3db0ecb5d57c1a0df2a701
2019-07-07 02:51:21 +02:00
Joey 569737d7d9 sm8150-common: doze: Match Pie settings UI
Change-Id: Ia1cde37923c55faf057189f7085b69522e2802ef
2019-07-07 02:51:21 +02:00
Anton Hansson 7f4ce9e075 sm8150-common: doze: Set LOCAL_PRIVATE_PLATFORM_APIS
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.

Bug: 73535841
Change-Id: I61299717ab2a6a1fd9a14dde7e1c7961388f722a
2019-07-07 02:51:21 +02:00
LuK1337 e8b65af949 sm8150-common: Add OnePlusDoze app for pickup sensor handling
* Based off android_device_oneplus_oneplus3 doze app but
  with proximity related features stripped out and updated
  pickup sensor name.

Change-Id: I9f81b153948069cd4370c75817f12e91f6869e1d
2019-07-07 02:51:21 +02:00