Loading java/hiddenapi_singleton.go +1 −14 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ import ( ) func init() { android.RegisterPreSingletonType("pre-hiddenapi", hiddenAPIPreSingletonFactory) android.RegisterSingletonType("hiddenapi", hiddenAPISingletonFactory) } Loading @@ -44,18 +43,6 @@ func hiddenAPISingletonPaths(ctx android.PathContext) hiddenAPISingletonPathsStr }).(hiddenAPISingletonPathsStruct) } func hiddenAPIPreSingletonFactory() android.Singleton { return hiddenAPIPreSingleton{} } type hiddenAPIPreSingleton struct{} // hiddenAPI pre-singleton rules to ensure paths are always generated before // makevars func (hiddenAPIPreSingleton) GenerateBuildActions(ctx android.SingletonContext) { hiddenAPISingletonPaths(ctx) } func hiddenAPISingletonFactory() android.Singleton { return hiddenAPISingleton{} } Loading Loading @@ -296,7 +283,7 @@ func init() { // Both paths are used to call dist-for-goals. func hiddenAPIMakeVars(ctx android.MakeVarsContext) { if !ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") { singletonPaths := ctx.Config().Get(hiddenAPISingletonPathsKey).(hiddenAPISingletonPathsStruct) singletonPaths := hiddenAPISingletonPaths(ctx) ctx.Strict("INTERNAL_PLATFORM_HIDDENAPI_FLAGS", singletonPaths.flags.String()) ctx.Strict("INTERNAL_PLATFORM_HIDDENAPI_GREYLIST_METADATA", singletonPaths.metadata.String()) } Loading Loading
java/hiddenapi_singleton.go +1 −14 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ import ( ) func init() { android.RegisterPreSingletonType("pre-hiddenapi", hiddenAPIPreSingletonFactory) android.RegisterSingletonType("hiddenapi", hiddenAPISingletonFactory) } Loading @@ -44,18 +43,6 @@ func hiddenAPISingletonPaths(ctx android.PathContext) hiddenAPISingletonPathsStr }).(hiddenAPISingletonPathsStruct) } func hiddenAPIPreSingletonFactory() android.Singleton { return hiddenAPIPreSingleton{} } type hiddenAPIPreSingleton struct{} // hiddenAPI pre-singleton rules to ensure paths are always generated before // makevars func (hiddenAPIPreSingleton) GenerateBuildActions(ctx android.SingletonContext) { hiddenAPISingletonPaths(ctx) } func hiddenAPISingletonFactory() android.Singleton { return hiddenAPISingleton{} } Loading Loading @@ -296,7 +283,7 @@ func init() { // Both paths are used to call dist-for-goals. func hiddenAPIMakeVars(ctx android.MakeVarsContext) { if !ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") { singletonPaths := ctx.Config().Get(hiddenAPISingletonPathsKey).(hiddenAPISingletonPathsStruct) singletonPaths := hiddenAPISingletonPaths(ctx) ctx.Strict("INTERNAL_PLATFORM_HIDDENAPI_FLAGS", singletonPaths.flags.String()) ctx.Strict("INTERNAL_PLATFORM_HIDDENAPI_GREYLIST_METADATA", singletonPaths.metadata.String()) } Loading