Lines Matching refs:module
126 module := &platformCompatConfig{}
127 module.AddProperties(&module.properties)
128 android.InitSdkAwareModule(module)
129 android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibCommon)
130 return module
141 func (b *compatConfigMemberType) IsInstance(module android.Module) bool {
142 _, ok := module.(*platformCompatConfig)
161 module := variant.(*platformCompatConfig)
162 b.Metadata = module.metadataFile
191 func (module *prebuiltCompatConfigModule) Prebuilt() *android.Prebuilt {
192 return &module.prebuilt
195 func (module *prebuiltCompatConfigModule) Name() string {
196 return module.prebuilt.Name(module.ModuleBase.Name())
199 func (module *prebuiltCompatConfigModule) compatConfigMetadata() android.Path {
200 return module.metadataFile
205 func (module *prebuiltCompatConfigModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
206 module.metadataFile = module.prebuilt.SingleSourcePath(ctx)
226 func isModulePreferredByCompatConfig(module android.Module) bool {
229 if android.IsModuleInVersionedSdk(module) {
233 return android.IsModulePreferred(module)
240 ctx.VisitAllModules(func(module android.Module) {
241 if !module.Enabled() {
244 if c, ok := module.(platformCompatConfigMetadataProvider); ok {
245 if !isModulePreferredByCompatConfig(module) {
321 module := &globalCompatConfig{}
322 module.AddProperties(&module.properties)
323 android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibCommon)
324 return module