cmsdk: add keys which to intercept from SettingsProvider
Change-Id: Id5d86cc97eb2411322af5686e6d79fa5fb190891 Signed-off-by: Roman Birg <roman@cyngn.com>
This commit is contained in:
@@ -1880,6 +1880,13 @@ public final class CMSettings {
|
||||
return ArrayUtils.contains(LEGACY_SYSTEM_SETTINGS, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public static boolean shouldInterceptSystemProvider(String key) {
|
||||
return key.equals(System.SYSTEM_PROFILES_ENABLED);
|
||||
}
|
||||
|
||||
/**
|
||||
* Mapping of validators for all system settings. This map is used to validate both valid
|
||||
* keys as well as validating the values for those keys.
|
||||
@@ -2699,6 +2706,13 @@ public final class CMSettings {
|
||||
static {
|
||||
VALIDATORS.put(PROTECTED_COMPONENTS, PROTECTED_COMPONENTS_VALIDATOR);
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public static boolean shouldInterceptSystemProvider(String key) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3123,5 +3137,12 @@ public final class CMSettings {
|
||||
public static boolean isLegacySetting(String key) {
|
||||
return ArrayUtils.contains(LEGACY_GLOBAL_SETTINGS, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public static boolean shouldInterceptSystemProvider(String key) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user