manual merge of 2ef16cfcd4
to rvc-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution. Bug: None Change-Id: I768c3fe568fee764cb0b533e73a3fef719adf30c
This commit is contained in:
@@ -166,7 +166,7 @@ func createMediaRules() []Rule {
|
||||
}
|
||||
|
||||
func createJavaDeviceForHostRules() []Rule {
|
||||
javaDeviceForHostProjectsWhitelist := []string{
|
||||
javaDeviceForHostProjectsAllowedList := []string{
|
||||
"external/guava",
|
||||
"external/robolectric-shadows",
|
||||
"framework/layoutlib",
|
||||
@@ -174,14 +174,14 @@ func createJavaDeviceForHostRules() []Rule {
|
||||
|
||||
return []Rule{
|
||||
NeverAllow().
|
||||
NotIn(javaDeviceForHostProjectsWhitelist...).
|
||||
NotIn(javaDeviceForHostProjectsAllowedList...).
|
||||
ModuleType("java_device_for_host", "java_host_for_device").
|
||||
Because("java_device_for_host can only be used in whitelisted projects"),
|
||||
Because("java_device_for_host can only be used in allowed projects"),
|
||||
}
|
||||
}
|
||||
|
||||
func createCcSdkVariantRules() []Rule {
|
||||
sdkVersionOnlyWhitelist := []string{
|
||||
sdkVersionOnlyAllowedList := []string{
|
||||
// derive_sdk_prefer32 has stem: "derive_sdk" which conflicts with the derive_sdk.
|
||||
// This sometimes works because the APEX modules that contain derive_sdk and
|
||||
// derive_sdk_prefer32 suppress the platform installation rules, but fails when
|
||||
@@ -194,7 +194,7 @@ func createCcSdkVariantRules() []Rule {
|
||||
"vendor/xts/gts-tests/hostsidetests/gamedevicecert/apps/javatests",
|
||||
}
|
||||
|
||||
platformVariantPropertiesWhitelist := []string{
|
||||
platformVariantPropertiesAllowedList := []string{
|
||||
// android_native_app_glue and libRSSupport use native_window.h but target old
|
||||
// sdk versions (minimum and 9 respectively) where libnativewindow didn't exist,
|
||||
// so they can't add libnativewindow to shared_libs to get the header directory
|
||||
@@ -206,13 +206,13 @@ func createCcSdkVariantRules() []Rule {
|
||||
|
||||
return []Rule{
|
||||
NeverAllow().
|
||||
NotIn(sdkVersionOnlyWhitelist...).
|
||||
NotIn(sdkVersionOnlyAllowedList...).
|
||||
WithMatcher("sdk_variant_only", isSetMatcherInstance).
|
||||
Because("sdk_variant_only can only be used in whitelisted projects"),
|
||||
Because("sdk_variant_only can only be used in allowed projects"),
|
||||
NeverAllow().
|
||||
NotIn(platformVariantPropertiesWhitelist...).
|
||||
NotIn(platformVariantPropertiesAllowedList...).
|
||||
WithMatcher("platform.shared_libs", isSetMatcherInstance).
|
||||
Because("platform variant properties can only be used in whitelisted projects"),
|
||||
Because("platform variant properties can only be used in allowed projects"),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user