Searched refs:factory (Results 1 – 15 of 15) sorted by relevance
/build/soong/android/ |
D | register.go | 25 factory ModuleFactory member 32 factory blueprint.SingletonFactory member 49 func ModuleFactoryAdaptor(factory ModuleFactory) blueprint.ModuleFactory { 51 module := factory() 60 func SingletonFactoryAdaptor(factory SingletonFactory) blueprint.SingletonFactory { 62 singleton := factory() 70 func RegisterModuleType(name string, factory ModuleFactory) { 71 moduleTypes = append(moduleTypes, moduleType{name, factory}) 74 func RegisterSingletonType(name string, factory SingletonFactory) { 75 singletons = append(singletons, singleton{name, SingletonFactoryAdaptor(factory)}) [all …]
|
D | soong_config_modules.go | 287 if factory, ok := moduleTypeDefinitions[moduleType]; ok { 288 ctx.registerScopedModuleType(moduleType, factory) 332 factory := globalModuleTypes[moduleType.BaseModuleType] 333 if factory != nil { 334 factories[name] = soongConfigModuleFactory(factory, moduleType) 352 func soongConfigModuleFactory(factory blueprint.ModuleFactory, 355 conditionalFactoryProps := soongconfig.CreateProperties(factory, moduleType) 358 module, props := factory() 378 return factory
|
D | hooks.go | 38 registerScopedModuleType(name string, factory blueprint.ModuleFactory) 96 func (l *loadHookContext) CreateModule(factory ModuleFactory, props ...interface{}) Module { 98 module := l.bp.CreateModule(ModuleFactoryAdaptor(factory), append(inherited, props...)...).(Module) 117 func (l *loadHookContext) registerScopedModuleType(name string, factory blueprint.ModuleFactory) { 118 l.bp.RegisterScopedModuleType(name, factory)
|
D | testing.go | 104 func (ctx *TestContext) RegisterModuleType(name string, factory ModuleFactory) { 105 ctx.Context.RegisterModuleType(name, ModuleFactoryAdaptor(factory)) 108 func (ctx *TestContext) RegisterSingletonType(name string, factory SingletonFactory) { 109 ctx.Context.RegisterSingletonType(name, SingletonFactoryAdaptor(factory))
|
D | mutator.go | 330 func (t *topDownMutatorContext) CreateModule(factory ModuleFactory, props ...interface{}) Module { 332 module := t.bp.CreateModule(ModuleFactoryAdaptor(factory), append(inherited, props...)...).(Module)
|
/build/soong/rust/config/ |
D | toolchain.go | 117 func registerToolchainFactory(os android.OsType, arch android.ArchType, factory toolchainFactory) { 121 toolchainFactories[os][arch] = factory 125 factory := toolchainFactories[os][arch.ArchType] 126 if factory == nil { 129 return factory(arch)
|
/build/soong/cc/config/ |
D | toolchain.go | 28 func registerToolchainFactory(os android.OsType, arch android.ArchType, factory toolchainFactory) { 32 toolchainFactories[os][arch] = factory 36 factory := toolchainFactories[os][arch.ArchType] 37 if factory == nil { 40 return factory(arch)
|
/build/blueprint/bootstrap/ |
D | writedocs.go | 65 for moduleType, factory := range factories { 66 mergedFactories[moduleType] = factory 69 for moduleType, factory := range ctx.ModuleTypeFactories() { 71 mergedFactories[moduleType] = reflect.ValueOf(factory)
|
/build/make/core/ |
D | process_wrapper.sh | 16 gnome-terminal -t "Wrapper: $1" --disable-factory -x $2/process_wrapper_gdb.sh "$@"
|
/build/blueprint/ |
D | context.go | 181 factory ModuleFactory member 292 factory SingletonFactory member 401 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) { 405 c.moduleFactories[name] = factory 421 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory) { 429 factory: factory, 430 singleton: factory(), 443 func (c *Context) RegisterPreSingletonType(name string, factory SingletonFactory) { 451 factory: factory, 452 singleton: factory(), [all …]
|
D | module_ctx.go | 1036 func (mctx *mutatorContext) CreateModule(factory ModuleFactory, props ...interface{}) Module { 1037 module := newModule(factory) 1080 RegisterScopedModuleType(name string, factory ModuleFactory) 1083 func (l *loadHookContext) CreateModule(factory ModuleFactory, props ...interface{}) Module { 1084 module := newModule(factory) 1103 func (l *loadHookContext) RegisterScopedModuleType(name string, factory ModuleFactory) { 1116 (*l.scopedModuleFactories)[name] = factory
|
/build/blueprint/bootstrap/bpdoc/ |
D | reader.go | 62 func (r *Reader) ModuleType(name string, factory reflect.Value) (*ModuleType, error) { 63 f := runtime.FuncForPC(factory.Pointer())
|
D | bpdoc.go | 107 func assembleModuleTypeInfo(r *Reader, name string, factory reflect.Value, 110 mt, err := r.ModuleType(name, factory)
|
/build/soong/cmd/soong_build/ |
D | writedocs.go | 101 for moduleType, factory := range moduleTypeFactories { 102 bpModuleTypeFactories[moduleType] = reflect.ValueOf(factory)
|
/build/soong/android/soongconfig/ |
D | modules.go | 275 func CreateProperties(factory blueprint.ModuleFactory, moduleType *ModuleType) reflect.Value { 278 _, factoryProps := factory()
|