Merge changes from topic "GameDriver"
am: e10cb9bd1c
Change-Id: I4627c998da042bfab14769455c874aae2e19b91c
This commit is contained in:
@@ -156,7 +156,7 @@ public class GraphicsEnvironment {
|
||||
|
||||
String applicationPackageName = context.getPackageName();
|
||||
String devOptInApplicationName = coreSettings.getString(
|
||||
Settings.Global.UPDATED_GFX_DRIVER_DEV_OPT_IN_APP);
|
||||
Settings.Global.GUP_DEV_OPT_IN_APPS);
|
||||
boolean devOptIn = applicationPackageName.equals(devOptInApplicationName);
|
||||
boolean whitelisted = onWhitelist(context, driverPackageName, ai.packageName);
|
||||
if (!devOptIn && !whitelisted) {
|
||||
|
||||
@@ -11446,11 +11446,16 @@ public final class Settings {
|
||||
public static final String GPU_DEBUG_APP = "gpu_debug_app";
|
||||
|
||||
/**
|
||||
* App that is selected to use updated graphics driver.
|
||||
* Apps that are selected to use Game Update Package.
|
||||
* @hide
|
||||
*/
|
||||
public static final String UPDATED_GFX_DRIVER_DEV_OPT_IN_APP =
|
||||
"updated_gfx_driver_dev_opt_in_app";
|
||||
public static final String GUP_DEV_OPT_IN_APPS = "gup_dev_opt_in_apps";
|
||||
|
||||
/**
|
||||
* Apps on the black list that are forbidden to useGame Update Package.
|
||||
* @hide
|
||||
*/
|
||||
public static final String GUP_BLACK_LIST = "gup_black_list";
|
||||
|
||||
/**
|
||||
* Ordered GPU debug layer list
|
||||
|
||||
@@ -384,9 +384,11 @@ message GlobalSettingsProto {
|
||||
// App allowed to load GPU debug layers.
|
||||
optional SettingProto debug_app = 1;
|
||||
optional SettingProto debug_layers = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
|
||||
// App opt in to load updated graphics driver instead of
|
||||
// native graphcis driver through developer options.
|
||||
optional SettingProto updated_gfx_driver_dev_opt_in_app = 6;
|
||||
// Apps opt in to load graphics driver from Game Update Package
|
||||
// instead of native graphcis driver through developer options.
|
||||
optional SettingProto gup_dev_opt_in_apps = 8;
|
||||
// Apps on the black list that are forbidden to useGame Update Package.
|
||||
optional SettingProto gup_black_list = 9;
|
||||
}
|
||||
optional Gpu gpu = 59;
|
||||
|
||||
|
||||
@@ -444,7 +444,8 @@ public class SettingsBackupTest {
|
||||
Settings.Global.ENABLE_GPU_DEBUG_LAYERS,
|
||||
Settings.Global.GPU_DEBUG_APP,
|
||||
Settings.Global.GPU_DEBUG_LAYERS,
|
||||
Settings.Global.UPDATED_GFX_DRIVER_DEV_OPT_IN_APP,
|
||||
Settings.Global.GUP_DEV_OPT_IN_APPS,
|
||||
Settings.Global.GUP_BLACK_LIST,
|
||||
Settings.Global.ENABLE_GNSS_RAW_MEAS_FULL_TRACKING,
|
||||
Settings.Global.INSTALL_CARRIER_APP_NOTIFICATION_PERSISTENT,
|
||||
Settings.Global.INSTALL_CARRIER_APP_NOTIFICATION_SLEEP_MILLIS,
|
||||
|
||||
@@ -1133,5 +1133,5 @@
|
||||
<string name="notice_header" translatable="false"></string>
|
||||
|
||||
<!-- UI debug setting: opt in to use updated graphics driver? [CHAR LIMIT=100] -->
|
||||
<string name="updated_gfx_driver_dev_opt_in_app_summary">Opt in app to use updated graphcis driver in developement</string>
|
||||
<string name="gup_dev_opt_in_app_summary">Opt in app to use Game Update Package in developement</string>
|
||||
</resources>
|
||||
|
||||
@@ -648,8 +648,11 @@ class SettingsProtoDumpUtil {
|
||||
Settings.Global.GPU_DEBUG_LAYERS,
|
||||
GlobalSettingsProto.Gpu.DEBUG_LAYERS);
|
||||
dumpSetting(s, p,
|
||||
Settings.Global.UPDATED_GFX_DRIVER_DEV_OPT_IN_APP,
|
||||
GlobalSettingsProto.Gpu.UPDATED_GFX_DRIVER_DEV_OPT_IN_APP);
|
||||
Settings.Global.GUP_DEV_OPT_IN_APPS,
|
||||
GlobalSettingsProto.Gpu.GUP_DEV_OPT_IN_APPS);
|
||||
dumpSetting(s, p,
|
||||
Settings.Global.GUP_BLACK_LIST,
|
||||
GlobalSettingsProto.Gpu.GUP_BLACK_LIST);
|
||||
p.end(gpuToken);
|
||||
|
||||
final long hdmiToken = p.start(GlobalSettingsProto.HDMI);
|
||||
|
||||
@@ -55,8 +55,8 @@ final class CoreSettingsObserver extends ContentObserver {
|
||||
// add other system settings here...
|
||||
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.DEBUG_VIEW_ATTRIBUTES, int.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.UPDATED_GFX_DRIVER_DEV_OPT_IN_APP,
|
||||
String.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GUP_DEV_OPT_IN_APPS, String.class);
|
||||
sGlobalSettingToTypeMap.put(Settings.Global.GUP_BLACK_LIST, String.class);
|
||||
// add other global settings here...
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user