Read from new storage in Java codegen
Change-Id: I8baa089f37dcc496096e124d605f08727647053c Test: m Bug: 312235596
This commit is contained in:
@@ -745,18 +745,33 @@ mod tests {
|
||||
} else {
|
||||
Log.i(TAG, String.format(MISMATCH_LOG, "disabledRw", val, disabledRw));
|
||||
}
|
||||
|
||||
if (DeviceConfig.getBoolean("core_experiments_team_internal", "com.android.providers.settings.use_new_storage_value", false)) {
|
||||
disabledRw = val;
|
||||
}
|
||||
|
||||
val = reader.getBooleanFlagValue(2);
|
||||
if (val == disabledRwExported) {
|
||||
Log.i(TAG, String.format(SUCCESS_LOG, "disabledRwExported"));
|
||||
} else {
|
||||
Log.i(TAG, String.format(MISMATCH_LOG, "disabledRwExported", val, disabledRwExported));
|
||||
}
|
||||
|
||||
if (DeviceConfig.getBoolean("core_experiments_team_internal", "com.android.providers.settings.use_new_storage_value", false)) {
|
||||
disabledRwExported = val;
|
||||
}
|
||||
|
||||
val = reader.getBooleanFlagValue(8);
|
||||
if (val == enabledRw) {
|
||||
Log.i(TAG, String.format(SUCCESS_LOG, "enabledRw"));
|
||||
} else {
|
||||
Log.i(TAG, String.format(MISMATCH_LOG, "enabledRw", val, enabledRw));
|
||||
}
|
||||
|
||||
if (DeviceConfig.getBoolean("core_experiments_team_internal", "com.android.providers.settings.use_new_storage_value", false)) {
|
||||
enabledRw = val;
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, ERROR_LOG, e);
|
||||
}
|
||||
@@ -789,6 +804,11 @@ mod tests {
|
||||
} else {
|
||||
Log.i(TAG, String.format(MISMATCH_LOG, "disabledRwInOtherNamespace", val, disabledRwInOtherNamespace));
|
||||
}
|
||||
|
||||
if (DeviceConfig.getBoolean("core_experiments_team_internal", "com.android.providers.settings.use_new_storage_value", false)) {
|
||||
disabledRwInOtherNamespace = val;
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, ERROR_LOG, e);
|
||||
}
|
||||
|
@@ -90,6 +90,11 @@ public final class FeatureFlagsImpl implements FeatureFlags \{
|
||||
} else \{
|
||||
Log.i(TAG, String.format(MISMATCH_LOG, "{flag.method_name}", val, {flag.method_name}));
|
||||
}
|
||||
|
||||
if (DeviceConfig.getBoolean("core_experiments_team_internal", "com.android.providers.settings.use_new_storage_value", false)) \{
|
||||
{flag.method_name} = val;
|
||||
}
|
||||
|
||||
{{ -endif }}
|
||||
{{ -endfor }}
|
||||
} catch (Exception e) \{
|
||||
|
Reference in New Issue
Block a user