Lines Matching refs:j
214 func (j *Javadoc) OutputFiles(tag string) (android.Paths, error) {
217 return android.Paths{j.stubsSrcJar}, nil
219 return android.Paths{j.docZip}, nil
247 func (j *Javadoc) SdkVersion(ctx android.EarlyModuleContext) android.SdkSpec {
248 return android.SdkSpecFrom(ctx, String(j.properties.Sdk_version))
251 func (j *Javadoc) SystemModules() string {
252 return proptools.String(j.properties.System_modules)
255 func (j *Javadoc) MinSdkVersion(ctx android.EarlyModuleContext) android.SdkSpec {
256 return j.SdkVersion(ctx)
259 func (j *Javadoc) TargetSdkVersion(ctx android.EarlyModuleContext) android.SdkSpec {
260 return j.SdkVersion(ctx)
263 func (j *Javadoc) addDeps(ctx android.BottomUpMutatorContext) {
265 sdkDep := decodeSdkDep(ctx, android.SdkContext(j))
274 ctx.AddVariationDependencies(nil, libTag, j.properties.Libs...)
277 func (j *Javadoc) collectAidlFlags(ctx android.ModuleContext, deps deps) droiddocBuilderFlags {
280 flags.aidlFlags, flags.aidlDeps = j.aidlFlags(ctx, deps.aidlPreprocess, deps.aidlIncludeDirs)
285 func (j *Javadoc) aidlFlags(ctx android.ModuleContext, aidlPreprocess android.OptionalPath,
288 aidlIncludes := android.PathsForModuleSrc(ctx, j.properties.Aidl.Local_include_dirs)
289 aidlIncludes = append(aidlIncludes, android.PathsForSource(ctx, j.properties.Aidl.Include_dirs)...)
311 func (j *Javadoc) genSources(ctx android.ModuleContext, srcFiles android.Paths,
340 func (j *Javadoc) collectDeps(ctx android.ModuleContext) deps {
343 sdkDep := decodeSdkDep(ctx, android.SdkContext(j))
372 deps.classpath = append(deps.classpath, dep.SdkHeaderJars(ctx, j.SdkVersion(ctx))...)
401 srcFiles := android.PathsForModuleSrcExcludes(ctx, j.properties.Srcs, j.properties.Exclude_srcs)
402 j.implicits = append(j.implicits, srcFiles...)
426 srcFiles = filterByPackage(srcFiles, j.properties.Filter_packages)
428 aidlFlags := j.collectAidlFlags(ctx, deps)
429 srcFiles = j.genSources(ctx, srcFiles, aidlFlags)
432 j.srcJars = srcFiles.FilterByExt(".srcjar")
433 j.srcJars = append(j.srcJars, deps.srcJars...)
435 j.srcFiles = srcFiles.FilterOutByExt(".srcjar")
436 j.srcFiles = append(j.srcFiles, deps.srcs...)
438 if len(j.srcFiles) > 0 {
439 j.sourcepaths = android.PathsForModuleSrc(ctx, []string{"."})
445 func (j *Javadoc) expandArgs(ctx android.ModuleContext, cmd *android.RuleBuilderCommand) {
450 for _, label := range j.properties.Arg_files {
464 if j.properties.Args != nil && j.properties.Flags != nil {
466 } else if args := proptools.String(j.properties.Args); args != "" {
470 flags = append(flags, j.properties.Flags...)
499 func (j *Javadoc) DepsMutator(ctx android.BottomUpMutatorContext) {
500 j.addDeps(ctx)
503 func (j *Javadoc) GenerateAndroidBuildActions(ctx android.ModuleContext) {
504 deps := j.collectDeps(ctx)
506 j.docZip = android.PathForModuleOut(ctx, ctx.ModuleName()+"-"+"docs.zip")
511 j.stubsSrcJar = nil
518 srcJarList := zipSyncCmd(ctx, rule, srcJarDir, j.srcJars)
520 javaVersion := getJavaVersion(ctx, String(j.properties.Java_version), android.SdkContext(j))
522 cmd := javadocSystemModulesCmd(ctx, rule, j.srcFiles, outDir, srcJarDir, srcJarList,
523 deps.systemModules, deps.classpath, j.sourcepaths)
530 j.expandArgs(ctx, cmd)
536 FlagWithOutput("-o ", j.docZip).