Merge "Game Driver: Add settings global for prerelease driver opt in option" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ca354f308d
@@ -12664,6 +12664,14 @@ public final class Settings {
|
||||
*/
|
||||
public static final String GAME_DRIVER_OPT_IN_APPS = "game_driver_opt_in_apps";
|
||||
|
||||
/**
|
||||
* List of Apps selected to use prerelease Game Driver.
|
||||
* i.e. <pkg1>,<pkg2>,...,<pkgN>
|
||||
* @hide
|
||||
*/
|
||||
public static final String GAME_DRIVER_PRERELEASE_OPT_IN_APPS =
|
||||
"game_driver_prerelease_opt_in_apps";
|
||||
|
||||
/**
|
||||
* List of Apps selected not to use Game Driver.
|
||||
* i.e. <pkg1>,<pkg2>,...,<pkgN>
|
||||
|
||||
@@ -457,6 +457,9 @@ message GlobalSettingsProto {
|
||||
optional SettingProto game_driver_sphal_libraries = 16;
|
||||
// ANGLE - External package containing ANGLE libraries
|
||||
optional SettingProto angle_debug_package = 17;
|
||||
// Game Driver - List of Apps selected to use prerelease Game Driver
|
||||
// i.e. <pkg1>,<pkg2>,...,<pkgN>
|
||||
optional SettingProto game_driver_prerelease_opt_in_apps = 18;
|
||||
}
|
||||
optional Gpu gpu = 59;
|
||||
|
||||
|
||||
@@ -492,6 +492,7 @@ public class SettingsBackupTest {
|
||||
Settings.Global.GLOBAL_SETTINGS_ANGLE_WHITELIST,
|
||||
Settings.Global.GAME_DRIVER_ALL_APPS,
|
||||
Settings.Global.GAME_DRIVER_OPT_IN_APPS,
|
||||
Settings.Global.GAME_DRIVER_PRERELEASE_OPT_IN_APPS,
|
||||
Settings.Global.GAME_DRIVER_OPT_OUT_APPS,
|
||||
Settings.Global.GAME_DRIVER_BLACKLISTS,
|
||||
Settings.Global.GAME_DRIVER_BLACKLIST,
|
||||
|
||||
@@ -715,6 +715,9 @@ class SettingsProtoDumpUtil {
|
||||
dumpSetting(s, p,
|
||||
Settings.Global.GAME_DRIVER_OPT_IN_APPS,
|
||||
GlobalSettingsProto.Gpu.GAME_DRIVER_OPT_IN_APPS);
|
||||
dumpSetting(s, p,
|
||||
Settings.Global.GAME_DRIVER_PRERELEASE_OPT_IN_APPS,
|
||||
GlobalSettingsProto.Gpu.GAME_DRIVER_PRERELEASE_OPT_IN_APPS);
|
||||
dumpSetting(s, p,
|
||||
Settings.Global.GAME_DRIVER_OPT_OUT_APPS,
|
||||
GlobalSettingsProto.Gpu.GAME_DRIVER_OPT_OUT_APPS);
|
||||
|
||||
@@ -76,6 +76,8 @@ final class CoreSettingsObserver extends ContentObserver {
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GPU_DEBUG_LAYER_APP, String.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GAME_DRIVER_ALL_APPS, int.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GAME_DRIVER_OPT_IN_APPS, String.class);
|
||||
sGlobalSettingToTypeMap.put(
|
||||
Settings.Global.GAME_DRIVER_PRERELEASE_OPT_IN_APPS, String.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GAME_DRIVER_OPT_OUT_APPS, String.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GAME_DRIVER_BLACKLIST, String.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GAME_DRIVER_WHITELIST, String.class);
|
||||
|
||||
Reference in New Issue
Block a user