Merge "Game Driver: Add a Settings.Global property for sphal libraries"
This commit is contained in:
@@ -12392,6 +12392,14 @@ public final class Settings {
|
||||
*/
|
||||
public static final String GAME_DRIVER_WHITELIST = "game_driver_whitelist";
|
||||
|
||||
/**
|
||||
* List of libraries in sphal accessible by Game Driver
|
||||
* The string is a list of library names, separated by colon.
|
||||
* i.e. <lib1>:<lib2>:...:<libN>
|
||||
* @hide
|
||||
*/
|
||||
public static final String GAME_DRIVER_SPHAL_LIBRARIES = "game_driver_sphal_libraries";
|
||||
|
||||
/**
|
||||
* Ordered GPU debug layer list for Vulkan
|
||||
* i.e. <layer1>:<layer2>:...:<layerN>
|
||||
|
||||
@@ -453,6 +453,8 @@ message GlobalSettingsProto {
|
||||
optional SettingProto game_driver_blacklists = 14;
|
||||
// ANGLE - Show a dialog box when ANGLE is selected for the currently running PKG
|
||||
optional SettingProto show_angle_in_use_dialog = 15;
|
||||
// Game Driver - List of libraries in sphal accessible by Game Driver
|
||||
optional SettingProto game_driver_sphal_libraries = 16;
|
||||
}
|
||||
optional Gpu gpu = 59;
|
||||
|
||||
|
||||
@@ -494,6 +494,7 @@ public class SettingsBackupTest {
|
||||
Settings.Global.GAME_DRIVER_BLACKLISTS,
|
||||
Settings.Global.GAME_DRIVER_BLACKLIST,
|
||||
Settings.Global.GAME_DRIVER_WHITELIST,
|
||||
Settings.Global.GAME_DRIVER_SPHAL_LIBRARIES,
|
||||
Settings.Global.GLOBAL_SETTINGS_SHOW_ANGLE_IN_USE_DIALOG_BOX,
|
||||
Settings.Global.GPU_DEBUG_LAYER_APP,
|
||||
Settings.Global.ENABLE_GNSS_RAW_MEAS_FULL_TRACKING,
|
||||
|
||||
@@ -724,6 +724,9 @@ class SettingsProtoDumpUtil {
|
||||
dumpSetting(s, p,
|
||||
Settings.Global.GAME_DRIVER_BLACKLISTS,
|
||||
GlobalSettingsProto.Gpu.GAME_DRIVER_BLACKLISTS);
|
||||
dumpSetting(s, p,
|
||||
Settings.Global.GAME_DRIVER_SPHAL_LIBRARIES,
|
||||
GlobalSettingsProto.Gpu.GAME_DRIVER_SPHAL_LIBRARIES);
|
||||
p.end(gpuToken);
|
||||
|
||||
final long hdmiToken = p.start(GlobalSettingsProto.HDMI);
|
||||
|
||||
@@ -79,6 +79,7 @@ final class CoreSettingsObserver extends ContentObserver {
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GAME_DRIVER_BLACKLIST, String.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GAME_DRIVER_WHITELIST, String.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GAME_DRIVER_BLACKLISTS, String.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GAME_DRIVER_SPHAL_LIBRARIES, String.class);
|
||||
// add other global settings here...
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user