Searched refs:factory (Results 1 – 16 of 16) sorted by relevance
/build/soong/android/ |
D | register.go | 53 factory ModuleFactory member 57 ctx.RegisterModuleType(t.name, ModuleFactoryAdaptor(t.factory)) 68 factory SingletonFactory member 71 func newSingleton(name string, factory SingletonFactory) singleton { 72 return singleton{false, name, factory} 75 func newPreSingleton(name string, factory SingletonFactory) singleton { 76 return singleton{true, name, factory} 84 adaptor := SingletonFactoryAdaptor(ctx, s.factory) 110 func ModuleFactoryAdaptor(factory ModuleFactory) blueprint.ModuleFactory { 112 module := factory() [all …]
|
D | soong_config_modules.go | 350 if factory, ok := moduleTypeDefinitions[moduleType]; ok { 351 ctx.registerScopedModuleType(moduleType, factory) 395 factory := globalModuleTypes[moduleType.BaseModuleType] 396 if factory != nil { 397 factories[name] = soongConfigModuleFactory(factory, moduleType) 415 func soongConfigModuleFactory(factory blueprint.ModuleFactory, 418 conditionalFactoryProps := soongconfig.CreateProperties(factory, moduleType) 421 module, props := factory() 441 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 | singleton_module.go | 93 func SingletonModuleFactoryAdaptor(name string, factory SingletonModuleFactory) (SingletonFactory, … 101 sm = factory()
|
/build/soong/rust/config/ |
D | toolchain.go | 153 func registerToolchainFactory(os android.OsType, arch android.ArchType, factory toolchainFactory) { 157 toolchainFactories[os][arch] = factory 161 factory := toolchainFactories[os][arch.ArchType] 162 if factory == nil { 165 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 66 factory := toolchainFactories[os][arch.ArchType] 67 if factory == nil { 70 return factory(arch), nil
|
/build/soong/bp2build/ |
D | bzl_conversion.go | 108 factory := moduleTypeFactories[moduleType] 109 factoryName := runtime.FuncForPC(reflect.ValueOf(factory).Pointer()).Name() 116 attrs += getAttributes(factory) 224 func getAttributes(factory android.ModuleFactory) string { 226 for _, p := range getPropertyDescriptions(factory().GetProperties()) {
|
D | build_conversion_test.go | 1135 for m, factory := range testCase.moduleTypesUnderTest { 1136 ctx.RegisterModuleType(m, factory)
|
/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/bootstrap/bpdoc/ |
D | reader_test.go | 128 for name, factory := range factories { 129 moduleTypeNameFactories[name] = reflect.ValueOf(factory) 130 _, structs := factory()
|
D | reader.go | 62 func (r *Reader) ModuleType(name string, factory reflect.Value) (*ModuleType, error) { 63 f := runtime.FuncForPC(factory.Pointer())
|
D | bpdoc.go | 110 func assembleModuleTypeInfo(r *Reader, name string, factory reflect.Value, 113 mt, err := r.ModuleType(name, factory)
|
/build/blueprint/ |
D | context.go | 244 factory ModuleFactory member 366 factory SingletonFactory member 476 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) { 480 c.moduleFactories[name] = factory 496 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory) { 504 factory: factory, 505 singleton: factory(), 518 func (c *Context) RegisterPreSingletonType(name string, factory SingletonFactory) { 526 factory: factory, 527 singleton: factory(), [all …]
|
D | module_ctx.go | 1211 func (mctx *mutatorContext) CreateModule(factory ModuleFactory, props ...interface{}) Module { 1212 module := newModule(factory) 1275 RegisterScopedModuleType(name string, factory ModuleFactory) 1278 func (l *loadHookContext) CreateModule(factory ModuleFactory, props ...interface{}) Module { 1279 module := newModule(factory) 1298 func (l *loadHookContext) RegisterScopedModuleType(name string, factory ModuleFactory) { 1311 (*l.scopedModuleFactories)[name] = factory
|
/build/soong/android/soongconfig/ |
D | modules.go | 257 func CreateProperties(factory blueprint.ModuleFactory, moduleType *ModuleType) reflect.Value { 260 _, factoryProps := factory()
|