OSDN Git Service

Game Driver: Add SwitchBar to control GUP feature
authorYiwei Zhang <zzyiwei@google.com>
Sat, 19 Jan 2019 08:45:20 +0000 (16:45 +0800)
committerYiwei Zhang <zzyiwei@google.com>
Thu, 18 Apr 2019 20:39:08 +0000 (13:39 -0700)
commitb15cc090d16cff3c835c03506687f12d060d3eea
tree626211e56f6a7fcc80a2c13b7248326043c86453
parent75548c4a3336c71c929d189a527b51e60d2db32b
Game Driver: Add SwitchBar to control GUP feature

Uncheck the global switch will hide the preference controllers and force
all apps to use system graphics driver. This change also add a content
observer to notify all the preference controllers of settings global
changes.

Bug: 119221883
Test: make RunSettingsRoboTests
Change-Id: Ice9ded17c759791a3728c552f79881e2215ac081
Merged-In: Ice9ded17c759791a3728c552f79881e2215ac081
src/com/android/settings/development/gup/GameDriverContentObserver.java [new file with mode: 0644]
src/com/android/settings/development/gup/GupDashboard.java
src/com/android/settings/development/gup/GupEnableForAllAppsPreferenceController.java
src/com/android/settings/development/gup/GupGlobalSwitchBarController.java [new file with mode: 0644]
src/com/android/settings/development/gup/GupPreferenceController.java
tests/robotests/src/com/android/settings/development/gup/GameDriverContentObserverTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/development/gup/GupEnableForAllAppsPreferenceControllerTest.java
tests/robotests/src/com/android/settings/development/gup/GupGlobalSwitchBarControllerTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/development/gup/GupPreferenceControllerTest.java