Lines Matching refs:m
152 mctx.VisitDirectDepsIf(func(m android.Module) bool {
153 return android.InList(m.Name(), *unstableModules(mctx.Config()))
154 }, func(m android.Module) {
155 if mctx.ModuleName() == m.Name() {
164 …mctx.ModuleErrorf(m.Name() + " is disallowed in release version because it is unstable, and its \"…
544 func (m *aidlApi) apiDir() string {
545 return filepath.Join(aidlApiDir, m.properties.BaseName)
549 func (m *aidlApi) nextVersion(ctx android.ModuleContext) string {
550 if len(m.properties.Versions) == 0 {
553 latestVersion := m.properties.Versions[len(m.properties.Versions)-1]
570 func (m *aidlApi) createApiDumpFromSource(ctx android.ModuleContext) apiDump {
571 srcs, imports := getPaths(ctx, m.properties.Srcs)
590 aidlRoot := android.PathForModuleSrc(ctx, m.properties.AidlRoot)
599 if len(m.properties.Versions) >= 1 {
600 latestVersion = m.properties.Versions[len(m.properties.Versions)-1]
604 if m.properties.Stability != nil {
605 optionalFlags = append(optionalFlags, "--stability", *m.properties.Stability)
623 func (m *aidlApi) makeApiDumpAsVersion(ctx android.ModuleContext, dump apiDump, version string) and…
628 targetDir := filepath.Join(modulePath, m.apiDir(), version)
638 Text("-w -m " + m.properties.BaseName).
647 rb.Build(pctx, ctx, "dump_aidl_api"+m.properties.BaseName+"_"+version,
648 "Making AIDL API of "+m.properties.BaseName+" as version "+version)
652 func (m *aidlApi) checkCompatibility(ctx android.ModuleContext, oldDump apiDump, newDump apiDump) a…
658 if m.properties.Stability != nil {
659 optionalFlags = append(optionalFlags, "--stability", *m.properties.Stability)
680 func (m *aidlApi) checkEquality(ctx android.ModuleContext, oldDump apiDump, newDump apiDump) androi…
695 …rb.Command().Text("sed").Flag(" s/%s/" + m.properties.BaseName + "/g ").Input(messageFile).Text(" …
696 rb.Build(pctx, ctx, "format_message_"+m.properties.BaseName, "")
716 func (m *aidlApi) checkIntegrity(ctx android.ModuleContext, dump apiDump) android.WritablePath {
746 func (m *aidlApi) GenerateAndroidBuildActions(ctx android.ModuleContext) {
751 totApiDump := m.createApiDumpFromSource(ctx)
752 currentApiDir := android.ExistentPathForSource(ctx, ctx.ModuleDir(), m.apiDir(), currentVersion)
758 …hashFile: android.ExistentPathForSource(ctx, ctx.ModuleDir(), m.apiDir(), currentVersion, ".hash"),
760 checked := m.checkEquality(ctx, currentApiDump, totApiDump)
761 m.checkApiTimestamps = append(m.checkApiTimestamps, checked)
766 ifaceName := m.properties.BaseName
774 m.checkApiTimestamps = append(m.checkApiTimestamps, alwaysChecked)
780 for _, ver := range m.properties.Versions {
781 apiDir := filepath.Join(ctx.ModuleDir(), m.apiDir(), ver)
787 hashFile: android.ExistentPathForSource(ctx, ctx.ModuleDir(), m.apiDir(), ver, ".hash"),
800 checkHashTimestamp := m.checkIntegrity(ctx, dumps[i])
801 m.checkHashTimestamps = append(m.checkHashTimestamps, checkHashTimestamp)
807 checked := m.checkCompatibility(ctx, dumps[i-1], dumps[i])
808 m.checkApiTimestamps = append(m.checkApiTimestamps, checked)
812 m.updateApiTimestamp = m.makeApiDumpAsVersion(ctx, totApiDump, currentVersion)
815 nextVersion := m.nextVersion(ctx)
816 m.freezeApiTimestamp = m.makeApiDumpAsVersion(ctx, totApiDump, nextVersion)
819 func (m *aidlApi) AndroidMk() android.AndroidMkData {
823 targetName := m.properties.BaseName + "-freeze-api"
825 fmt.Fprintln(w, targetName+":", m.freezeApiTimestamp.String())
827 targetName = m.properties.BaseName + "-update-api"
829 fmt.Fprintln(w, targetName+":", m.updateApiTimestamp.String())
834 func (m *aidlApi) DepsMutator(ctx android.BottomUpMutatorContext) {
835 ctx.AddDependency(ctx.Module(), nil, wrap("", m.properties.Imports, aidlInterfaceSuffix)...)
839 m := &aidlApi{}
840 m.AddProperties(&m.properties)
841 android.InitAndroidModule(m)
842 return m
1529 func (m *aidlInterfacesMetadataSingleton) GenerateAndroidBuildActions(ctx android.ModuleContext) {
1530 if m.Name() != aidlMetadataSingletonName {
1543 ctx.VisitDirectDeps(func(m android.Module) {
1544 if !m.ExportedToMake() {
1548 switch t := m.(type) {