Lines Matching refs:ctx
188 Context ctx; in GetContext() local
192 ctx.AddApexModule(std::move(apex_info)); in GetContext()
196 ctx.SetStrictMode(true); in GetContext()
198 android::linkerconfig::contents::RegisterApexNamespaceBuilders(ctx); in GetContext()
199 return ctx; in GetContext()
202 Configuration GetConfiguration(Context& ctx) { in GetConfiguration() argument
204 return android::linkerconfig::contents::CreateRecoveryConfiguration(ctx); in GetConfiguration()
208 return android::linkerconfig::contents::CreateLegacyConfiguration(ctx); in GetConfiguration()
212 return android::linkerconfig::contents::CreateBaseConfiguration(ctx); in GetConfiguration()
232 Result<void> GenerateBaseLinkerConfiguration(Context& ctx, in GenerateBaseLinkerConfiguration() argument
234 return GenerateConfiguration(GetConfiguration(ctx), dir_path, true); in GenerateBaseLinkerConfiguration()
237 Result<void> GenerateRecoveryLinkerConfiguration(Context& ctx, in GenerateRecoveryLinkerConfiguration() argument
240 android::linkerconfig::contents::CreateRecoveryConfiguration(ctx), in GenerateRecoveryLinkerConfiguration()
246 const std::string& base_dir, android::linkerconfig::contents::Context& ctx, in GenerateApexConfiguration() argument
254 android::linkerconfig::contents::CreateApexConfiguration(ctx, target_apex), in GenerateApexConfiguration()
259 void GenerateApexConfigurations(Context& ctx, const std::string& dir_path) { in GenerateApexConfigurations() argument
260 for (auto const& apex_item : ctx.GetApexModules()) { in GenerateApexConfigurations()
262 auto result = GenerateApexConfiguration(dir_path, ctx, apex_item); in GenerateApexConfigurations()
270 void GenerateJniConfig(Context& ctx, const std::string& dir_path) { in GenerateJniConfig() argument
276 for (auto const& apex_item : ctx.GetApexModules()) { in GenerateJniConfig()
328 Context ctx = GetContext(args); in main() local
337 GenerateRecoveryLinkerConfiguration(ctx, args.target_directory)); in main()
339 ExitOnFailure(GenerateBaseLinkerConfiguration(ctx, args.target_directory)); in main()
340 GenerateApexConfigurations(ctx, args.target_directory); in main()
341 GenerateJniConfig(ctx, args.target_directory); in main()