OSDN Git Service

Execute getting battery info on the parallel executor
authorJason Chiu <chiujason@google.com>
Fri, 27 Sep 2019 09:33:08 +0000 (17:33 +0800)
committerJason Chiu <chiujason@google.com>
Fri, 27 Sep 2019 09:33:08 +0000 (17:33 +0800)
commit86e98bf448e58e99413eb5b73accd64ae4b1808b
treeabafc812cb29e9751aa512f313a683267aa5fc82
parent6472d299e9f01d59305266392707f4e582821d07
Execute getting battery info on the parallel executor

Getting battery info is time consuming and may block other tasks in the
same background thread.

Executing it on the parallel executor can improve app launch performance.

Bug: 141694556
Test: robotest
Change-Id: I55517e03961929c2b288e230ed474d45915d63fd
src/com/android/settings/fuelgauge/BatteryInfo.java