Lines Matching refs:i
30 func addLibrary(mctx android.DefaultableHookContext, i *aidlInterface, version string, lang string,…
32 return addJavaLibrary(mctx, i, version, notFrozen, requireFrozenReason)
34 return addRustLibrary(mctx, i, version, notFrozen, requireFrozenReason)
36 return addCppAnalyzerLibrary(mctx, i, version, notFrozen, requireFrozenReason)
38 return addCppLibrary(mctx, i, version, lang, notFrozen, requireFrozenReason)
44 func addCppLibrary(mctx android.DefaultableHookContext, i *aidlInterface, version string, lang stri…
45 cppSourceGen := i.versionedName(version) + "-" + lang + "-source"
46 cppModuleGen := i.versionedName(version) + "-" + lang
48 srcs, aidlRoot := i.srcsForVersion(mctx, version)
58 commonProperties = &i.properties.Backend.Cpp.CommonNativeBackendProperties
60 commonProperties = &i.properties.Backend.Ndk.CommonNativeBackendProperties
64 genTrace := i.genTrace(lang)
65 aidlFlags := i.flagsForAidlGenRule(version)
72 Imports: i.getImportsForVersion(version),
73 Headers: i.properties.Headers,
74 Stability: i.properties.Stability,
75 Min_sdk_version: i.minSdkVersion(lang),
77 BaseName: i.ModuleBase.Name(),
79 Version: i.versionForInitVersionCompat(version),
81 Unstable: i.properties.Unstable,
85 UseUnfrozen: i.useUnfrozen(mctx),
104 hostSupported = i.properties.Host_supported
119 hostSupported = i.properties.Host_supported
120 if lang == langNdk && i.shouldGenerateAppNdkBackend() {
121 sdkVersion = i.properties.Backend.Ndk.Sdk_version
133 vendorAvailable := i.properties.Vendor_available
134 odmAvailable := i.properties.Odm_available
135 productAvailable := i.properties.Product_available
136 recoveryAvailable := i.properties.Recovery_available
155 AidlInterfaceName: i.ModuleBase.Name(),
157 Imports: i.getImportsForVersion(version),
170 Cmake_snapshot_supported: i.properties.Cmake_snapshot_supported,
172 Double_loadable: i.properties.Double_loadable,
185 Min_sdk_version: i.minSdkVersion(lang),
215 func addCppAnalyzerLibrary(mctx android.DefaultableHookContext, i *aidlInterface, version string, n…
216 cppAnalyzerSourceGen := i.versionedName("") + "-cpp-analyzer-source"
217 cppAnalyzerModuleGen := i.versionedName("") + "-cpp-analyzer"
219 srcs, aidlRoot := i.srcsForVersion(mctx, version)
229 Imports: i.getImportsForVersion(version),
230 Stability: i.properties.Stability,
231 Min_sdk_version: i.minSdkVersion(langCpp),
233 BaseName: i.ModuleBase.Name(),
234 Version: i.versionForInitVersionCompat(version),
235 Unstable: i.properties.Unstable,
238 Flags: i.flagsForAidlGenRule(version),
239 UseUnfrozen: i.useUnfrozen(mctx),
248 hostSupported = i.properties.Host_supported
250 vendorAvailable := i.properties.Vendor_available
251 odmAvailable := i.properties.Odm_available
252 productAvailable := i.properties.Product_available
253 recoveryAvailable := i.properties.Recovery_available
256 commonProperties := &i.properties.Backend.Cpp.CommonNativeBackendProperties
272 Double_loadable: i.properties.Double_loadable,
277 …Shared_libs: append(append(importExportDependencies, i.versionedName(version)+"-"+la…
282 Min_sdk_version: i.minSdkVersion(langCpp),
302 func addJavaLibrary(mctx android.DefaultableHookContext, i *aidlInterface, version string, notFroze…
303 javaSourceGen := i.versionedName(version) + "-java-source"
304 javaModuleGen := i.versionedName(version) + "-java"
305 srcs, aidlRoot := i.srcsForVersion(mctx, version)
312 minSdkVersion := i.minSdkVersion(langJava)
313 sdkVersion := i.properties.Backend.Java.Sdk_version
314 if !proptools.Bool(i.properties.Backend.Java.Platform_apis) && sdkVersion == nil {
328 Imports: i.getImportsForVersion(version),
329 Headers: i.properties.Headers,
330 Stability: i.properties.Stability,
332 Platform_apis: proptools.Bool(i.properties.Backend.Java.Platform_apis),
334 BaseName: i.ModuleBase.Name(),
336 GenRpc: proptools.Bool(i.properties.Backend.Java.Gen_rpc),
337 GenTrace: i.genTrace(langJava),
338 Unstable: i.properties.Unstable,
341 Flags: i.flagsForAidlGenRule(version),
342 UseUnfrozen: i.useUnfrozen(mctx),
349 AidlInterfaceName: i.ModuleBase.Name(),
351 Imports: i.getImportsForVersion(version),
359 Apex_available: i.properties.Backend.Java.Apex_available,
360 Min_sdk_version: i.minSdkVersion(langJava),
361 Static_libs: i.properties.Backend.Java.Additional_libs,
363 &i.properties.Backend.Java.LintProperties,
370 func addRustLibrary(mctx android.DefaultableHookContext, i *aidlInterface, version string, notFroze…
371 rustSourceGen := i.versionedName(version) + "-rust-source"
372 rustModuleGen := i.versionedName(version) + "-rust"
373 srcs, aidlRoot := i.srcsForVersion(mctx, version)
386 Imports: i.getImportsForVersion(version),
387 Headers: i.properties.Headers,
388 Stability: i.properties.Stability,
389 Min_sdk_version: i.minSdkVersion(langRust),
391 BaseName: i.ModuleBase.Name(),
392 Version: i.versionForInitVersionCompat(version),
393 Unstable: i.properties.Unstable,
396 Flags: i.flagsForAidlGenRule(version),
397 UseUnfrozen: i.useUnfrozen(mctx),
400 versionedRustName := fixRustName(i.versionedName(version))
401 rustCrateName := fixRustName(i.ModuleBase.Name())
412 Host_supported: i.properties.Host_supported,
413 Vendor_available: i.properties.Vendor_available,
414 Product_available: i.properties.Product_available,
415 Apex_available: i.properties.Backend.Rust.Apex_available,
416 Min_sdk_version: i.minSdkVersion(langRust),
417 Rustlibs: i.properties.Backend.Rust.Additional_rustlibs,
422 Imports: i.getImportsForVersion(version),
424 AidlInterfaceName: i.ModuleBase.Name(),
437 func (i *aidlInterface) versionedName(version string) string {
438 name := i.ModuleBase.Name()
445 func (i *aidlInterface) srcsForVersion(mctx android.EarlyModuleContext, version string) (srcs []str…
446 if version == i.nextVersion() {
447 return i.properties.Srcs, i.properties.Local_include_dir
449 aidlRoot = filepath.Join(aidlApiDir, i.ModuleBase.Name(), version)
465 func (i *aidlInterface) versionForInitVersionCompat(version string) string {
466 if !i.hasVersion() {
472 func (i *aidlInterface) flagsForAidlGenRule(version string) (flags []string) {
475 if version == i.nextVersion() && !i.isFrozen() {
477 flags = append(flags, i.properties.Flags...)
488 func (i *aidlInterface) getImportWithVersion(version string, anImport string, other *aidlInterface)…
495 if version == i.nextVersion() || !other.hasVersion() {
505 i := ctx.GetDirectDepWithTag(interfaceName+aidlInterfaceSuffix, interfaceDep).(*aidlInterface)
510 imports = append(imports, i.getImportWithVersion(version, tag.anImport, other))