Lines Matching refs:a
83 `-a provideNativeLibs ${provideNativeLibs} ` +
84 `-a requireNativeLibs ${requireNativeLibs} ` +
177 func (a *apexBundle) buildManifest(ctx android.ModuleContext, provideNativeLibs, requireNativeLibs …
178 …manifestSrc := android.PathForModuleSrc(ctx, proptools.StringDefault(a.properties.Manifest, "apex_…
188 if a.properties.Apex_name != nil {
189 optCommands = append(optCommands, "-v name "+*a.properties.Apex_name)
203 if a.minSdkVersion(ctx) == android.SdkVersion_Android10 {
206 a.manifestJsonOut = android.PathForModuleOut(ctx, "apex_manifest.json")
210 Output: a.manifestJsonOut,
215 a.manifestPbOut = android.PathForModuleOut(ctx, "apex_manifest.pb")
219 Output: a.manifestPbOut,
223 func (a *apexBundle) buildNoticeFiles(ctx android.ModuleContext, apexFileName string) android.Notic…
226 …a.walkPayloadDeps(ctx, func(ctx android.ModuleContext, from blueprint.Module, to android.ApexModul…
244 …return android.BuildNoticeOutput(ctx, a.installDir, apexFileName, android.SortedUniquePaths(notice…
247 func (a *apexBundle) buildInstalledFilesFile(ctx android.ModuleContext, builtApex android.Path, ima…
256 rule.Build(pctx, ctx, "installed-files."+a.Name(), "Installed files")
260 func (a *apexBundle) buildBundleConfig(ctx android.ModuleContext) android.OutputPath {
283 for _, fi := range a.filesInfo {
315 func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
325 apexType := a.properties.ApexType
328 unsignedOutputFile := android.PathForModuleOut(ctx, a.Name()+suffix+".unsigned")
332 for _, fi := range a.filesInfo {
339 if a.linkToSystemLib && fi.transitiveDep && fi.AvailableToPlatform() {
363 if a.minSdkVersion(ctx) == android.SdkVersion_Android10 {
366 for _, fi := range a.filesInfo {
370 implicitInputs = append(implicitInputs, a.manifestPbOut)
372 if a.overridableProperties.Allowed_files != nil {
383 …allowedFilesFile := android.PathForModuleSrc(ctx, proptools.String(a.overridableProperties.Allowed…
385 phonyOutput := android.PathForModuleOut(ctx, a.Name()+"-diff-phony-output")
394 "apex_module_name": a.Name(),
411 for _, f := range a.filesInfo {
452 …implicitInputs = append(implicitInputs, cannedFsConfig, a.fileContexts, a.private_key_file, a.publ…
453 optFlags = append(optFlags, "--pubkey "+a.public_key_file.String())
455 manifestPackageName := a.getOverrideManifestPackageName(ctx)
460 if a.properties.AndroidManifest != nil {
461 …androidManifestFile := android.PathForModuleSrc(ctx, proptools.String(a.properties.AndroidManifest…
470 if a.minSdkVersion(ctx) == android.SdkVersion_Android10 {
471 minSdkVersion = strconv.Itoa(a.minSdkVersion(ctx))
485 if a.overridableProperties.Logging_parent != "" {
486 optFlags = append(optFlags, "--logging_parent ", a.overridableProperties.Logging_parent)
489 a.mergedNotices = a.buildNoticeFiles(ctx, a.Name()+suffix)
490 if a.mergedNotices.HtmlGzOutput.Valid() {
492 implicitInputs = append(implicitInputs, a.mergedNotices.HtmlGzOutput.Path())
493 optFlags = append(optFlags, "--assets_dir "+filepath.Dir(a.mergedNotices.HtmlGzOutput.String()))
496 …pex/apexd/apexd_testdata" && ctx.ModuleDir() != "system/apex/shim/build" && a.testOnlyShouldSkipHa…
500 …if a.minSdkVersion(ctx) > android.SdkVersion_Android10 || a.testOnlyShouldSkipHashtreeGeneration()…
507 if a.testOnlyShouldSkipPayloadSign() {
511 if a.properties.Apex_name != nil {
517 if a.minSdkVersion(ctx) == android.SdkVersion_Android10 {
518 implicitInputs = append(implicitInputs, a.manifestJsonOut)
519 optFlags = append(optFlags, "--manifest_json "+a.manifestJsonOut.String())
531 "manifest": a.manifestPbOut.String(),
532 "file_contexts": a.fileContexts.String(),
534 "key": a.private_key_file.String(),
539 apexProtoFile := android.PathForModuleOut(ctx, a.Name()+".pb"+suffix)
540 bundleModuleFile := android.PathForModuleOut(ctx, a.Name()+suffix+"-base.zip")
541 a.bundleModuleFile = bundleModuleFile
550 bundleConfig := a.buildBundleConfig(ctx)
556 Output: a.bundleModuleFile,
573 "manifest": a.manifestPbOut.String(),
578 a.outputFile = android.PathForModuleOut(ctx, a.Name()+suffix)
581 …"certificates": a.container_certificate_file.String() + " " + a.container_private_key_file.String(…
585 a.container_certificate_file,
586 a.container_private_key_file,
591 args["outCommaList"] = a.outputFile.String()
596 Output: a.outputFile,
603 if a.installable() {
604 ctx.InstallFile(a.installDir, a.Name()+suffix, a.outputFile)
606 a.buildFilesInfo(ctx)
609 a.installedFilesFile = a.buildInstalledFilesFile(ctx, a.outputFile, imageDir)
612 func (a *apexBundle) buildFlattenedApex(ctx android.ModuleContext) {
619 apexBundleName := a.Name()
620 a.outputFile = android.PathForModuleInstall(&factx, "apex", apexBundleName)
622 if a.installable() {
625 addFlattenedFileContextsInfos(ctx, apexBundleName+":"+devicePath+":"+a.fileContexts.String())
627 a.buildFilesInfo(ctx)
630 func (a *apexBundle) setCertificateAndPrivateKey(ctx android.ModuleContext) {
631 if a.container_certificate_file == nil {
632 cert := String(a.properties.Certificate)
635 a.container_certificate_file = pem
636 a.container_private_key_file = key
639 a.container_certificate_file = defaultDir.Join(ctx, cert+".x509.pem")
640 a.container_private_key_file = defaultDir.Join(ctx, cert+".pk8")
645 func (a *apexBundle) buildFilesInfo(ctx android.ModuleContext) {
646 if a.installable() {
649 …a.filesInfo = append(a.filesInfo, newApexFile(ctx, a.manifestPbOut, "apex_manifest.pb", ".", etc, …
655 Input: a.public_key_file,
658 a.filesInfo = append(a.filesInfo, newApexFile(ctx, copiedPubkey, "apex_pubkey", ".", etc, nil))
660 if a.properties.ApexType == flattenedApex {
661 apexBundleName := a.Name()
662 for _, fi := range a.filesInfo {
673 func (a *apexBundle) getOverrideManifestPackageName(ctx android.ModuleContext) string {
677 if a.vndkApex {
680 return strings.Replace(*a.properties.Apex_name, vndkApexName, overrideName, 1)
684 if a.overridableProperties.Package_name != "" {
685 return a.overridableProperties.Package_name
694 func (a *apexBundle) buildApexDependencyInfo(ctx android.ModuleContext) {
695 if !a.primaryApexType {
699 if a.properties.IsCoverageVariant {
711 …a.walkPayloadDeps(ctx, func(ctx android.ModuleContext, from blueprint.Module, to android.ApexModul…
744 …a.ApexBundleDepsInfo.BuildDepsInfoLists(ctx, proptools.String(a.properties.Min_sdk_version), depIn…
748 Output: android.PathForPhony(ctx, a.Name()+"-deps-info"),
750 a.ApexBundleDepsInfo.FullListPath(),
751 a.ApexBundleDepsInfo.FlatListPath(),
756 func (a *apexBundle) buildLintReports(ctx android.ModuleContext) {
758 for _, fi := range a.filesInfo {
762 a.lintReports = java.BuildModuleLintReportZips(ctx, depSetsBuilder.Build())