Home
last modified time | relevance | path

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

/build/soong/android/
Dregister.go53 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 …]
Dsoong_config_modules.go350 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
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)
Dsingleton_module.go93 func SingletonModuleFactoryAdaptor(name string, factory SingletonModuleFactory) (SingletonFactory, …
101 sm = factory()
/build/soong/rust/config/
Dtoolchain.go153 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/
Dtoolchain.go28 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/
Dbzl_conversion.go108 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()) {
Dbuild_conversion_test.go1135 for m, factory := range testCase.moduleTypesUnderTest {
1136 ctx.RegisterModuleType(m, factory)
/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/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.go110 func assembleModuleTypeInfo(r *Reader, name string, factory reflect.Value,
113 mt, err := r.ModuleType(name, factory)
/build/blueprint/
Dcontext.go244 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 …]
Dmodule_ctx.go1211 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/
Dmodules.go257 func CreateProperties(factory blueprint.ModuleFactory, moduleType *ModuleType) reflect.Value {
260 _, factoryProps := factory()