OSDN Git Service

[GPU Service] Move blacklists process to GPU service.
authorPeiyong Lin <lpy@google.com>
Thu, 7 Feb 2019 03:37:04 +0000 (19:37 -0800)
committerYiwei Zhang <zzyiwei@google.com>
Fri, 19 Apr 2019 17:48:07 +0000 (10:48 -0700)
commit8287771adc3ed9971a56aea7acb1014d67eee47a
tree7562320eff5f45e8c9c77bc5086ba5db389a217b
parent8441bcbc6d79d49065d3bd0ff4ced72fe2a9c528
[GPU Service] Move blacklists process to GPU service.

Instead of re-process blacklists proto everytime, we move the processing to GPU
Service, and add SettingsObserver to observe the change of
Settings.Global.GAME_DRIVER_BLACKLISTS such that we only re-process the
blacklists when needed.

As a result, we will have GAME_DRIVER_BLACKLISTS which is used to accept a list
of blacklist from the server, one for each game driver version that needs to
have blacklist, and GAME_DRIVER_BLACKLIST will only contain a list of
blacklisted application package names for the current version of game driver on
the device, separated by comma.

BUG: 120869311
Test: Build, flash and boot. Use adb shell settings put command to verify.
Change-Id: Ic49800cd0b5b82ddbbdf9907d603243415d5bd3b
Merged-In: Ic49800cd0b5b82ddbbdf9907d603243415d5bd3b
core/java/android/os/GraphicsEnvironment.java
services/core/java/com/android/server/gpu/GpuService.java