Lines Matching refs:m
86 func (m *aidlApi) apiDir() string {
87 return filepath.Join(aidlApiDir, m.properties.BaseName)
91 func (m *aidlApi) nextVersion() string {
92 return nextVersion(m.properties.Versions)
95 func (m *aidlApi) hasVersion() bool {
96 return len(m.properties.Versions) > 0
99 func (m *aidlApi) latestVersion() string {
100 if !m.hasVersion() {
103 return m.properties.Versions[len(m.properties.Versions)-1]
106 func (m *aidlApi) isFrozen() bool {
107 return proptools.Bool(m.properties.Frozen)
112 func (m *aidlApi) isExplicitlyUnFrozen() bool {
113 return m.properties.Frozen != nil && !proptools.Bool(m.properties.Frozen)
123 func (m *aidlApi) getImports(ctx android.ModuleContext, version string) map[string]string {
124 iface := ctx.GetDirectDepWithTag(m.properties.BaseName, interfaceDep).(*aidlInterface)
128 func (m *aidlApi) createApiDumpFromSource(ctx android.ModuleContext) apiDump {
129 srcs, imports := getPaths(ctx, m.properties.Srcs, m.properties.AidlRoot)
136 deps := getDeps(ctx, m.getImports(ctx, m.nextVersion()))
151 if m.properties.Stability != nil {
152 optionalFlags = append(optionalFlags, "--stability", *m.properties.Stability)
154 if proptools.Bool(m.properties.Dumpapi.No_license) {
159 version := nextVersion(m.properties.Versions)
176 func wrapWithDiffCheckIfElse(m *aidlApi, rb *android.RuleBuilder, writer func(*android.RuleBuilderC…
178 rbc.Text("if [ \"$(cat ").Input(m.hasDevelopment).Text(")\" = \"1\" ]; then")
185 func wrapWithDiffCheckIf(m *aidlApi, rb *android.RuleBuilder, writer func(*android.RuleBuilderComma…
188 rbc.Text("if [ \"$(cat ").Input(m.hasDevelopment).Text(")\" = \"1\" ]; then")
197 func (m *aidlApi) migrateAndAppendVersion(ctx android.ModuleContext, rb *android.RuleBuilder, versi…
201 wrapWithDiffCheckIf(m, rb, func(rbc *android.RuleBuilderCommand) {
203 Text("-w -m " + m.properties.BaseName).
216 ctx.ModuleErrorf("aidl_interface %s doesn't exist", m.properties.BaseName)
249 wrapWithDiffCheckIf(m, rb, func(rbc *android.RuleBuilderCommand) {
251 Text("-w -m " + m.properties.BaseName).
260 ….Sprintf(`echo "Call %s-freeze-api because %s depends on %s."`, moduleName, m.properties.BaseName,…
276 Text("-w -m " + m.properties.BaseName).
299 Text("-w -m " + m.properties.BaseName).
304 Text("-w -m " + m.properties.BaseName).
340 Text("-w -m " + m.properties.BaseName).
606 m.checkApiTimestamps = append(m.checkApiTimestamps, alwaysChecked)
612 for _, ver := range m.properties.Versions {
613 apiDir := filepath.Join(ctx.ModuleDir(), m.apiDir(), ver)
627 m.properties.BaseName, ver, cmd)
645 checkHashTimestamp := m.checkIntegrity(ctx, dumps[i])
646 m.checkHashTimestamps = append(m.checkHashTimestamps, checkHashTimestamp)
652 checked := m.checkCompatibility(ctx, dumps[i-1], dumps[i])
653 m.checkApiTimestamps = append(m.checkApiTimestamps, checked)
657 m.hasDevelopment = m.checkForDevelopment(ctx, latestVersionDump, totApiDump)
660 m.updateApiTimestamp = m.makeApiDumpAsVersion(ctx, totApiDump, currentVersion, nil)
663 nextVersion := m.nextVersion()
664 m.freezeApiTimestamp = m.makeApiDumpAsVersion(ctx, totApiDump, nextVersion, latestVersionDump)
666 nextApiDir := filepath.Join(ctx.ModuleDir(), m.apiDir(), nextVersion)
672 func (m *aidlApi) AndroidMk() android.AndroidMkData {
676 targetName := m.properties.BaseName + "-freeze-api"
678 fmt.Fprintln(w, targetName+":", m.freezeApiTimestamp.String())
680 targetName = m.properties.BaseName + "-update-api"
682 fmt.Fprintln(w, targetName+":", m.updateApiTimestamp.String())
687 func (m *aidlApi) DepsMutator(ctx android.BottomUpMutatorContext) {
692 m := &aidlApi{}
693 m.AddProperties(&m.properties)
694 android.InitAndroidModule(m)
695 return m
742 if m, ok := module.(*aidlApi); ok {
746 shouldBeFrozen = android.InList(m.Owner(), ownersToFreeze)
748 shouldBeFrozen = m.Owner() == ""
751 files = append(files, m.freezeApiTimestamp)