Home
last modified time | relevance | path

Searched refs:factory (Results 1 – 21 of 21) sorted by relevance

/build/soong/android/
Dregister.go53 factory ModuleFactory member
57 ctx.RegisterModuleType(t.name, ModuleFactoryAdaptor(t.factory))
69 factory SingletonFactory member
72 func newSingleton(name string, factory SingletonFactory) singleton {
73 return singleton{false, name, factory}
76 func newPreSingleton(name string, factory SingletonFactory) singleton {
77 return singleton{true, name, factory}
85 adaptor := SingletonFactoryAdaptor(ctx, s.factory)
111 func ModuleFactoryAdaptor(factory ModuleFactory) blueprint.ModuleFactory {
113 module := factory()
[all …]
Dsoong_config_modules.go349 if factory, ok := moduleTypeDefinitions[moduleType]; ok {
350 ctx.registerScopedModuleType(moduleType, factory)
398 factory := globalModuleTypes[moduleType.BaseModuleType]
399 if factory != nil {
400 factories[name] = configModuleFactory(factory, moduleType, ctx.Config().runningAsBp2Build)
417 func configModuleFactory(factory blueprint.ModuleFactory, moduleType *soongconfig.ModuleType, bp2bu…
418 conditionalFactoryProps := soongconfig.CreateProperties(factory, moduleType)
420 return factory
424 module, props := factory()
Dhooks.go41 registerScopedModuleType(name string, factory blueprint.ModuleFactory)
92 func (l *loadHookContext) CreateModule(factory ModuleFactory, props ...interface{}) Module {
96 if typeNameLookup, ok := ModuleTypeByFactory()[reflect.ValueOf(factory)]; ok {
99 factoryPtr := reflect.ValueOf(factory).Pointer()
106 …module := l.bp.CreateModule(ModuleFactoryAdaptor(factory), typeName, append(inherited, props...)..…
125 func (l *loadHookContext) registerScopedModuleType(name string, factory blueprint.ModuleFactory) {
126 l.bp.RegisterScopedModuleType(name, factory)
Dsingleton_module.go93 func SingletonModuleFactoryAdaptor(name string, factory SingletonModuleFactory) (SingletonFactory, …
101 sm = factory()
Dtesting.go474 func (ctx *TestContext) RegisterModuleType(name string, factory ModuleFactory) {
475 ctx.Context.RegisterModuleType(name, ModuleFactoryAdaptor(factory))
478 func (ctx *TestContext) RegisterSingletonModuleType(name string, factory SingletonModuleFactory) {
479 s, m := SingletonModuleFactoryAdaptor(name, factory)
484 func (ctx *TestContext) RegisterSingletonType(name string, factory SingletonFactory) {
485 ctx.singletons = append(ctx.singletons, newSingleton(name, factory))
488 func (ctx *TestContext) RegisterPreSingletonType(name string, factory SingletonFactory) {
489 ctx.preSingletons = append(ctx.preSingletons, newPreSingleton(name, factory))
Dmutator.go556 func (t *topDownMutatorContext) CreateModule(factory ModuleFactory, props ...interface{}) Module {
558 module := t.bp.CreateModule(ModuleFactoryAdaptor(factory), append(inherited, props...)...).(Module)
577 func (t *topDownMutatorContext) createModuleWithoutInheritance(factory ModuleFactory, props ...inte…
578 module := t.bp.CreateModule(ModuleFactoryAdaptor(factory), props...).(Module)
/build/soong/bp2build/
Dgenrule_conversion_test.go57 factory android.ModuleFactory
62 factory: genrule.GenRuleFactory,
67 factory: cc.GenRuleFactory,
72 factory: java.GenRuleFactory,
77 factory: java.GenRuleFactoryHost,
122 moduleTypeUnderTestFactory: tc.factory,
133 factory android.ModuleFactory
137 factory: genrule.GenRuleFactory,
141 factory: cc.GenRuleFactory,
145 factory: java.GenRuleFactory,
[all …]
Dbzl_conversion.go108 factory := moduleTypeFactories[moduleType]
109 factoryName := runtime.FuncForPC(reflect.ValueOf(factory).Pointer()).Name()
116 attrs += getAttributes(factory)
231 func getAttributes(factory android.ModuleFactory) string {
233 for _, p := range getPropertyDescriptions(factory().GetProperties()) {
/build/soong/rust/config/
Dtoolchain.go146 func registerToolchainFactory(os android.OsType, arch android.ArchType, factory toolchainFactory) {
150 toolchainFactories[os][arch] = factory
154 factory := toolchainFactories[os][arch.ArchType]
155 if factory == nil {
158 return factory(arch)
/build/blueprint/bootstrap/
Dwritedocs.go52 for moduleType, factory := range factories {
53 mergedFactories[moduleType] = factory
56 for moduleType, factory := range ctx.ModuleTypeFactories() {
58 mergedFactories[moduleType] = reflect.ValueOf(factory)
/build/soong/cc/config/
Dtoolchain.go27 func registerToolchainFactory(os android.OsType, arch android.ArchType, factory toolchainFactory) {
31 toolchainFactories[os][arch] = factory
65 factory := toolchainFactories[os][arch.ArchType]
66 if factory == nil {
69 return factory(arch), nil
/build/blueprint/bootstrap/bpdoc/
Dreader_test.go128 for name, factory := range factories {
129 moduleTypeNameFactories[name] = reflect.ValueOf(factory)
130 _, structs := factory()
Dreader.go62 func (r *Reader) ModuleType(name string, factory reflect.Value) (*ModuleType, error) {
63 f := runtime.FuncForPC(factory.Pointer())
Dbpdoc.go109 func assembleModuleTypeInfo(r *Reader, name string, factory reflect.Value,
112 mt, err := r.ModuleType(name, factory)
/build/soong/snapshot/
Drecovery_snapshot.go74 …) RegisterAdditionalModule(ctx android.RegistrationContext, name string, factory android.ModuleFac…
75 ctx.RegisterModuleType(name, factory)
Dvendor_snapshot.go85 …) RegisterAdditionalModule(ctx android.RegistrationContext, name string, factory android.ModuleFac…
86 ctx.RegisterModuleType(name, factory)
/build/make/core/
Dprocess_wrapper.sh16 gnome-terminal -t "Wrapper: $1" --disable-factory -x $2/process_wrapper_gdb.sh "$@"
/build/blueprint/
Dcontext.go271 factory ModuleFactory member
393 factory SingletonFactory member
506 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) {
510 c.moduleFactories[name] = factory
526 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory) {
534 factory: factory,
535 singleton: factory(),
548 func (c *Context) RegisterPreSingletonType(name string, factory SingletonFactory) {
556 factory: factory,
557 singleton: factory(),
[all …]
Dmodule_ctx.go1204 func (mctx *mutatorContext) CreateModule(factory ModuleFactory, props ...interface{}) Module {
1205 module := newModule(factory)
1268 RegisterScopedModuleType(name string, factory ModuleFactory)
1271 func (l *loadHookContext) CreateModule(factory ModuleFactory, typeName string, props ...interface{}…
1272 module := newModule(factory)
1292 func (l *loadHookContext) RegisterScopedModuleType(name string, factory ModuleFactory) {
1305 (*l.scopedModuleFactories)[name] = factory
/build/soong/android/soongconfig/
Dmodules.go363 func CreateProperties(factory blueprint.ModuleFactory, moduleType *ModuleType) reflect.Value {
366 _, factoryProps := factory()
/build/bazel/docs/
Dinternal_concepts.md94 factory itself (via
415 …[factory](https://cs.android.com/android/platform/superproject/+/master:build/soong/android/soong_…