• Home
  • Raw
  • Download

Lines Matching refs:j

226 func (j *Javadoc) OutputFiles(tag string) (android.Paths, error) {
229 return android.Paths{j.stubsSrcJar}, nil
231 return android.Paths{j.docZip}, nil
259 func (j *Javadoc) SdkVersion(ctx android.EarlyModuleContext) android.SdkSpec {
260 return android.SdkSpecFrom(ctx, String(j.properties.Sdk_version))
263 func (j *Javadoc) SystemModules() string {
264 return proptools.String(j.properties.System_modules)
267 func (j *Javadoc) MinSdkVersion(ctx android.EarlyModuleContext) android.ApiLevel {
268 return j.SdkVersion(ctx).ApiLevel
271 func (j *Javadoc) ReplaceMaxSdkVersionPlaceholder(ctx android.EarlyModuleContext) android.ApiLevel {
272 return j.SdkVersion(ctx).ApiLevel
275 func (j *Javadoc) TargetSdkVersion(ctx android.EarlyModuleContext) android.ApiLevel {
276 return j.SdkVersion(ctx).ApiLevel
279 func (j *Javadoc) addDeps(ctx android.BottomUpMutatorContext) {
281 sdkDep := decodeSdkDep(ctx, android.SdkContext(j))
290 ctx.AddVariationDependencies(nil, libTag, j.properties.Libs...)
293 func (j *Javadoc) collectAidlFlags(ctx android.ModuleContext, deps deps) droiddocBuilderFlags {
296 flags.aidlFlags, flags.aidlDeps = j.aidlFlags(ctx, deps.aidlPreprocess, deps.aidlIncludeDirs)
301 func (j *Javadoc) aidlFlags(ctx android.ModuleContext, aidlPreprocess android.OptionalPath,
304 aidlIncludes := android.PathsForModuleSrc(ctx, j.properties.Aidl.Local_include_dirs)
305 aidlIncludes = append(aidlIncludes, android.PathsForSource(ctx, j.properties.Aidl.Include_dirs)...)
323 minSdkVersion := j.MinSdkVersion(ctx).FinalOrFutureInt()
330 func (j *Javadoc) genSources(ctx android.ModuleContext, srcFiles android.Paths,
359 func (j *Javadoc) collectDeps(ctx android.ModuleContext) deps {
362 sdkDep := decodeSdkDep(ctx, android.SdkContext(j))
390 deps.classpath = append(deps.classpath, dep.SdkHeaderJars(ctx, j.SdkVersion(ctx))...)
431 srcFiles := android.PathsForModuleSrcExcludes(ctx, j.properties.Srcs, j.properties.Exclude_srcs)
432 j.implicits = append(j.implicits, srcFiles...)
436 for _, src := range j.properties.Srcs {
469 srcFiles = filterByPackage(srcFiles, j.properties.Filter_packages)
471 aidlFlags := j.collectAidlFlags(ctx, deps)
472 srcFiles = j.genSources(ctx, srcFiles, aidlFlags)
475 j.srcJars = srcFiles.FilterByExt(".srcjar")
476 j.srcJars = append(j.srcJars, deps.srcJars...)
478 j.srcFiles = srcFiles.FilterOutByExt(".srcjar")
479 j.srcFiles = append(j.srcFiles, deps.srcs...)
481 if len(j.srcFiles) > 0 {
482 j.sourcepaths = android.PathsForModuleSrc(ctx, []string{"."})
488 func (j *Javadoc) expandArgs(ctx android.ModuleContext, cmd *android.RuleBuilderCommand) {
493 for _, label := range j.properties.Arg_files {
507 if j.properties.Args != nil && j.properties.Flags != nil {
509 } else if args := proptools.String(j.properties.Args); args != "" {
513 flags = append(flags, j.properties.Flags...)
542 func (j *Javadoc) DepsMutator(ctx android.BottomUpMutatorContext) {
543 j.addDeps(ctx)
546 func (j *Javadoc) GenerateAndroidBuildActions(ctx android.ModuleContext) {
547 deps := j.collectDeps(ctx)
549 j.docZip = android.PathForModuleOut(ctx, ctx.ModuleName()+"-"+"docs.zip")
554 j.stubsSrcJar = nil
561 srcJarList := zipSyncCmd(ctx, rule, srcJarDir, j.srcJars)
563 javaVersion := getJavaVersion(ctx, String(j.properties.Java_version), android.SdkContext(j))
565 cmd := javadocSystemModulesCmd(ctx, rule, j.srcFiles, outDir, srcJarDir, srcJarList,
566 deps.systemModules, deps.classpath, j.sourcepaths)
573 j.expandArgs(ctx, cmd)
579 FlagWithOutput("-o ", j.docZip).