No description
Find a file
ezio84 be68fd6e75 sdm710-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
2019-08-29 10:02:54 +00:00
bluetooth Init trees 2019-08-29 09:37:42 +00:00
configs sdm710-common: White-list telephony modules. 2019-08-29 09:45:52 +00:00
doze sdm710-common: doze: use ExecutorService for listener registration 2019-08-29 10:02:54 +00:00
libhidl sdm710-common: Build separate system and vendor HIDL libs 2019-08-29 09:44:18 +00:00
light sdm710-common: lights: update service entry for pie 2019-08-29 09:50:38 +00:00
overlay sdm710-common: Configure number of physical SIM slots 2019-08-29 09:57:30 +00:00
overlay-lineage sdm710-common: Enable proximity check on wake 2019-08-29 10:01:13 +00:00
permissions sdm710-common: IMS: Whitelist org.codeaurora.ims package 2019-08-29 09:46:17 +00:00
rootdir Init trees 2019-08-29 09:37:42 +00:00
seccomp Init trees 2019-08-29 09:37:42 +00:00
sepolicy/private sdm710-common: sepolicy: Allow system_server to read vendor camera props 2019-08-29 09:56:23 +00:00
vndk Init trees 2019-08-29 09:37:42 +00:00
Android.bp sdm710-common: Add a custom lights HAL 2019-08-29 09:49:47 +00:00
Android.mk Init trees 2019-08-29 09:37:42 +00:00
BoardConfigCommon.mk Init trees 2019-08-29 09:37:42 +00:00
extract-files.sh Init trees 2019-08-29 09:37:42 +00:00
proprietary-files.txt Init trees 2019-08-29 09:37:42 +00:00
sdm710.mk sdm710-common: import doze from mi5 2019-08-29 10:01:30 +00:00
setup-makefiles.sh Init trees 2019-08-29 09:37:42 +00:00
system_prop.mk sdm710-common: set ui thread runnable time to zero 2019-08-29 09:55:24 +00:00