Lines Matching refs:m
63 func (m *apexKey) installable() bool {
67 func (m *apexKey) GenerateAndroidBuildActions(ctx android.ModuleContext) {
71 if android.SrcIsModule(String(m.properties.Public_key)) != "" {
72 m.public_key_file = android.PathForModuleSrc(ctx, String(m.properties.Public_key))
74 m.public_key_file = ctx.Config().ApexKeyDir(ctx).Join(ctx, String(m.properties.Public_key))
76 if !android.ExistentPathForSource(ctx, m.public_key_file.String()).Valid() {
77 m.public_key_file = android.PathForModuleSrc(ctx, String(m.properties.Public_key))
81 if android.SrcIsModule(String(m.properties.Private_key)) != "" {
82 m.private_key_file = android.PathForModuleSrc(ctx, String(m.properties.Private_key))
84 m.private_key_file = ctx.Config().ApexKeyDir(ctx).Join(ctx, String(m.properties.Private_key))
85 if !android.ExistentPathForSource(ctx, m.private_key_file.String()).Valid() {
86 m.private_key_file = android.PathForModuleSrc(ctx, String(m.properties.Private_key))
90 …pubKeyName := m.public_key_file.Base()[0 : len(m.public_key_file.Base())-len(m.public_key_file.Ext…
91 …privKeyName := m.private_key_file.Base()[0 : len(m.private_key_file.Base())-len(m.private_key_file…
93 if m.properties.Public_key != nil && m.properties.Private_key != nil && pubKeyName != privKeyName {
95 m.public_key_file.String(), pubKeyName, m.private_key_file, privKeyName)
98 m.keyName = pubKeyName
129 if m, ok := module.(*apexBundle); ok && m.Enabled() && m.installable() {
130 apexKeyMap[m.Name()] = apexKeyEntry{
131 name: m.Name() + ".apex",
133 public_key: m.public_key_file.String(),
134 private_key: m.private_key_file.String(),
135 container_certificate: m.container_certificate_file.String(),
136 container_private_key: m.container_private_key_file.String(),
137 partition: m.PartitionTag(ctx.DeviceConfig()),
144 if m, ok := module.(*Prebuilt); ok && m.Enabled() && m.installable() &&
145 m.Prebuilt().UsePrebuilt() {
146 apexKeyMap[m.BaseModuleName()] = apexKeyEntry{
147 name: m.InstallFilename(),
149 partition: m.PartitionTag(ctx.DeviceConfig()),
157 if m, ok := module.(*ApexSet); ok && m.Enabled() {
159 name: m.InstallFilename(),
161 partition: m.PartitionTag(ctx.DeviceConfig()),
163 apexKeyMap[m.BaseModuleName()] = entry