Commit graph

10 commits

Author SHA1 Message Date
Bruno Martins
31c0675e72 samsung: doze: Apply a major refactor
* Introduce a main switch to actually enable/disable doze globally
 * Move preferences handling out of SamsungDozeService class and
   create Utils class to hold all helper methods.

Change-Id: Idb40650296d50352b4a985d2068f14cda6cb4aaf
2021-01-13 15:24:36 +01:00
Bruno Martins
e7dad9c0bf
samsung: Doze: Migrate to androidx
Change-Id: Ifaa67283a3437549a2304088a0ce377b399da19f
2020-03-20 14:56:44 +01:00
Anton Hansson
e603bb91e6
samsung: 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: Iabb0556dc1c80c7fc7f6c76d61d5e441b03cdce0
2020-03-20 14:56:43 +01:00
Bruno Martins
8bb8f47dd2
samsung: doze: Re-integrate into Settings
* 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: I71ea2c118dcfd387904d04516572902babb16e35
2020-03-20 14:56:42 +01:00
Bruno Martins
a4b1e16b80
samsung: doze: Build with AAPT2
Change-Id: Id0a60b490a504010dc8b3f16aa495044719a4062
2020-03-20 14:56:42 +01:00
Arne Coucheron
2f5533648a
samsung: doze: Rebrand from cyanogenmod to lineageos
Change-Id: I619080f46a69a80fe3923cb3df6a676242f36eac
2020-03-20 14:56:41 +01:00
Abhisek Devkota
f62a187de7
samsung: doze: Commonize strings translations
* Translations moved to the new project
    android_packages_resources_devicesettings

Change-Id: I06536915e1963a2fe464c3d6c46dd8728aba0cb4
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2020-03-20 14:56:37 +01:00
Zhao Wei Liew
6d0ea5b8c8
samsung: doze: Integrate with Settings
Bring this up to speed on the Settings changes in N:
 * Use support libs for preferences
 * Hook up to Settings drawer through SettingsDrawerActivity

Change-Id: I9365b3ebd1bbfed2936302e30da50e3f9af06665
2020-03-20 14:56:36 +01:00
Michael Bestas
585154922b
samsung: doze: use ScreenType util from cmsdk
Change-Id: I73b610bc71bf07b2fdedb1d5c5931e90f1e6de0f
2020-03-20 14:56:34 +01:00
Patrick Lower
c8668b2755
samsung: doze: Add service for using proximity sensor for wake-up
* Added custom service that uses proximity sensor in wake-up mode
  to trigger display on
* If more sensor triggers are suitable to use, they can be added
  to the service

Change-Id: Id0849fb5c17ff569d771a19cebfc579dc93dbc48
2020-03-20 14:56:24 +01:00