Commit graph

13 commits

Author SHA1 Message Date
Charlotte D
edadce3968 change xiaomi -> lenovo 2018-11-18 18:01:38 +00:00
Bruno Martins
db6bd1b4c7 msm8937-common: Doze: Add missing preference listeners
* 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-10-02 23:02:23 +05:30
Bruno Martins
f4733b172d msm8937-common: Doze: Drop useless SDK dependency
Change-Id: I74901339740b82b79f36754c7e52894a98020c3d
2018-10-02 23:02:23 +05:30
Anton Hansson
b1304c03ea msm8937-common: Set LOCAL_SDK_VERSION where possible.
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
2018-10-02 23:02:21 +05:30
ezio84
9270e5e3b3 msm8937-common: doze: use ExecutorService for listener registration
Replicate what Google did for SystemUI in this commit.
fabc743bcf

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-06-29 00:05:46 +08:00
Bruno Martins
3fcd6d5cc4 msm8937-common: Doze: Minor code simplification and clean up
Change-Id: Idff05f2626138c96dccd3ab4c26c4df1be40a606
2018-06-29 00:05:32 +08:00
Bruno Martins
f601f8c507 msm8937-common: Doze: Build with AAPT2
Change-Id: Iab14804817e6b90bf4d773d9359a04f1e119264a
2018-06-29 00:05:16 +08:00
Bruno Martins
e2ae78bbd7 msm8937-common: 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: I53b6d3bb99d63852ba34d71e16ae99f05223569e
2018-06-29 00:05:04 +08:00
Bruno Martins
24a0226499 msm8937-common: Doze: Apply LineageOS rebrand
Change-Id: I4daa1092494fdf207ef54dc79f787bcbe1d01a08
2018-06-29 00:04:52 +08:00
Isaac Chen
488a587dfd msm8937-common: doze: Import from msm8996-common
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-06-29 00:03:49 +08:00
Isaac Chen
c0b393ede3 msm8937-common: Apply lineage rebrand
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-06-29 00:02:43 +08:00
Zhao Wei Liew
8148cb41fe land: Clean out doze package
Change-Id: Ib1b8cea2b4a4cbe7b526ed8568a0f34bc3470b8c
2016-12-24 11:48:17 +08:00
Zhao Wei Liew
9ef01e64c7 land: Send doze pulse intent on tilt detected
Based on oneplus3's implementation.

Change-Id: Ibc4bd629f8280d63f84d23981e01cc861992c17f
2016-12-22 11:23:14 +08:00