Lines Matching refs:i
29 func addLibrary(mctx android.LoadHookContext, i *aidlInterface, version string, lang string) string…
31 return addJavaLibrary(mctx, i, version)
33 return addRustLibrary(mctx, i, version)
35 return addCppLibrary(mctx, i, version, lang)
38 func addCppLibrary(mctx android.LoadHookContext, i *aidlInterface, version string, lang string) str…
39 cppSourceGen := i.versionedName(version) + "-" + lang + "-source"
40 cppModuleGen := i.versionedName(version) + "-" + lang
42 srcs, aidlRoot := i.srcsForVersion(mctx, version)
52 if !i.isModuleForVndk(version) {
65 commonProperties = &i.properties.Backend.Cpp.CommonNativeBackendProperties
67 commonProperties = &i.properties.Backend.Ndk.CommonNativeBackendProperties
71 genTrace := proptools.Bool(i.properties.Gen_trace)
78 IsToT: version == i.nextVersion(),
79 ImportsWithoutVersion: i.properties.ImportsWithoutVersion,
80 Stability: i.properties.Stability,
82 BaseName: i.ModuleBase.Name(),
84 Version: i.versionForAidlGenRule(version),
86 Unstable: i.properties.Unstable,
88 Flags: i.flagsForAidlGenRule(version),
106 hostSupported = i.properties.Host_supported
107 minSdkVersion = i.properties.Backend.Cpp.Min_sdk_version
115 minSdkVersion = i.properties.Backend.Ndk.Min_sdk_version
122 hostSupported = i.properties.Host_supported
124 minSdkVersion = i.properties.Backend.Ndk.Min_sdk_version
129 vendorAvailable := i.properties.Vendor_available
130 odmAvailable := i.properties.Odm_available
131 productAvailable := i.properties.Product_available
140 if "vintf" == proptools.String(i.properties.Stability) {
165 AidlInterfaceName: i.ModuleBase.Name(),
175 Double_loadable: i.properties.Double_loadable,
205 }, &i.properties.VndkProperties,
214 func addJavaLibrary(mctx android.LoadHookContext, i *aidlInterface, version string) string {
215 javaSourceGen := i.versionedName(version) + "-java-source"
216 javaModuleGen := i.versionedName(version) + "-java"
217 srcs, aidlRoot := i.srcsForVersion(mctx, version)
225 sdkVersion := i.properties.Backend.Java.Sdk_version
226 if !proptools.Bool(i.properties.Backend.Java.Platform_apis) && sdkVersion == nil {
236 IsToT: version == i.nextVersion(),
237 ImportsWithoutVersion: i.properties.ImportsWithoutVersion,
238 Stability: i.properties.Stability,
240 BaseName: i.ModuleBase.Name(),
241 Version: i.versionForAidlGenRule(version),
242 GenTrace: proptools.Bool(i.properties.Gen_trace),
243 Unstable: i.properties.Unstable,
245 Flags: i.flagsForAidlGenRule(version),
252 AidlInterfaceName: i.ModuleBase.Name(),
259 Platform_apis: i.properties.Backend.Java.Platform_apis,
261 Apex_available: i.properties.Backend.Java.Apex_available,
262 Min_sdk_version: i.properties.Backend.Java.Min_sdk_version,
269 func addRustLibrary(mctx android.LoadHookContext, i *aidlInterface, version string) string {
270 rustSourceGen := i.versionedName(version) + "-rust-source"
271 rustModuleGen := i.versionedName(version) + "-rust"
272 srcs, aidlRoot := i.srcsForVersion(mctx, version)
285 ImportsWithoutVersion: i.properties.ImportsWithoutVersion,
286 IsToT: version == i.nextVersion(),
287 Stability: i.properties.Stability,
289 BaseName: i.ModuleBase.Name(),
290 Version: i.versionForAidlGenRule(version),
291 Unstable: i.properties.Unstable,
293 Flags: i.flagsForAidlGenRule(version),
296 versionedRustName := fixRustName(i.versionedName(version))
297 rustCrateName := fixRustName(i.ModuleBase.Name())
304 Host_supported: i.properties.Host_supported,
305 Apex_available: i.properties.Backend.Rust.Apex_available,
311 Imports: i.properties.Imports,
313 AidlInterfaceName: i.ModuleBase.Name(),
326 func (i *aidlInterface) versionedName(version string) string {
327 name := i.ModuleBase.Name()
334 func (i *aidlInterface) srcsForVersion(mctx android.LoadHookContext, version string) (srcs []string…
335 if version == i.nextVersion() {
336 return i.properties.Srcs, i.properties.Local_include_dir
338 aidlRoot = filepath.Join(aidlApiDir, i.ModuleBase.Name(), version)
351 func (i *aidlInterface) versionForAidlGenRule(version string) string {
352 if !i.hasVersion() {
358 func (i *aidlInterface) flagsForAidlGenRule(version string) (flags []string) {
359 flags = append(flags, i.properties.Flags...)
361 if version == i.nextVersion() {
367 func (i *aidlInterface) isModuleForVndk(version string) bool {
368 if i.properties.Vndk_use_version != nil {
369 if !i.hasVersion() {
373 return version == *i.properties.Vndk_use_version
377 if !i.hasVersion() {
378 return version == i.nextVersion()
381 return version == i.latestVersion()
390 func (i *aidlInterface) getImportWithVersion(version string, anImport string, config android.Config…
398 if version == i.nextVersion() || !other.hasVersion() {
430 i := lookupInterface(g.properties.AidlInterfaceName, ctx.Config())
434 imports := make([]string, len(i.properties.Imports))
435 for idx, anImport := range i.properties.Imports {
436 imports[idx] = i.getImportWithVersion(version, anImport, ctx.Config()) + "-" + langJava
443 imports := make([]string, len(i.properties.Imports))
444 for idx, anImport := range i.properties.Imports {
445 imports[idx] = i.getImportWithVersion(version, anImport, ctx.Config()) + "-" + lang