Home
last modified time | relevance | path

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

/build/soong/android/
Dregister.go25 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 …]
Dsoong_config_modules.go287 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
Dhooks.go38 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)
Dtesting.go104 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))
Dmutator.go330 func (t *topDownMutatorContext) CreateModule(factory ModuleFactory, props ...interface{}) Module {
332 module := t.bp.CreateModule(ModuleFactoryAdaptor(factory), append(inherited, props...)...).(Module)
/build/soong/rust/config/
Dtoolchain.go117 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/
Dtoolchain.go28 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/
Dwritedocs.go65 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/
Dprocess_wrapper.sh16 gnome-terminal -t "Wrapper: $1" --disable-factory -x $2/process_wrapper_gdb.sh "$@"
/build/blueprint/
Dcontext.go181 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 …]
Dmodule_ctx.go1036 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/
Dreader.go62 func (r *Reader) ModuleType(name string, factory reflect.Value) (*ModuleType, error) {
63 f := runtime.FuncForPC(factory.Pointer())
Dbpdoc.go107 func assembleModuleTypeInfo(r *Reader, name string, factory reflect.Value,
110 mt, err := r.ModuleType(name, factory)
/build/soong/cmd/soong_build/
Dwritedocs.go101 for moduleType, factory := range moduleTypeFactories {
102 bpModuleTypeFactories[moduleType] = reflect.ValueOf(factory)
/build/soong/android/soongconfig/
Dmodules.go275 func CreateProperties(factory blueprint.ModuleFactory, moduleType *ModuleType) reflect.Value {
278 _, factoryProps := factory()