summaryrefslogtreecommitdiff
path: root/android/transition.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/transition.go')
-rw-r--r--android/transition.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/android/transition.go b/android/transition.go
index 7c04effc3..a9346bbd1 100644
--- a/android/transition.go
+++ b/android/transition.go
@@ -108,6 +108,14 @@ type IncomingTransitionContext interface {
// is being computed
Module() Module
+ // ModuleName returns the name of the module. This is generally the value that was returned by Module.Name() when
+ // the module was created, but may have been modified by calls to BottomUpMutatorContext.Rename.
+ ModuleName() string
+
+ // DepTag() Returns the dependency tag through which this dependency is
+ // reached
+ DepTag() blueprint.DependencyTag
+
// Config returns the configuration for the build.
Config() Config
@@ -128,6 +136,10 @@ type OutgoingTransitionContext interface {
// is being computed
Module() Module
+ // ModuleName returns the name of the module. This is generally the value that was returned by Module.Name() when
+ // the module was created, but may have been modified by calls to BottomUpMutatorContext.Rename.
+ ModuleName() string
+
// DepTag() Returns the dependency tag through which this dependency is
// reached
DepTag() blueprint.DependencyTag
@@ -209,6 +221,14 @@ func (c *incomingTransitionContextImpl) Module() Module {
return c.bp.Module().(Module)
}
+func (c *incomingTransitionContextImpl) ModuleName() string {
+ return c.bp.ModuleName()
+}
+
+func (c *incomingTransitionContextImpl) DepTag() blueprint.DependencyTag {
+ return c.bp.DepTag()
+}
+
func (c *incomingTransitionContextImpl) Config() Config {
return c.bp.Config().(Config)
}
@@ -242,6 +262,10 @@ func (c *outgoingTransitionContextImpl) Module() Module {
return c.bp.Module().(Module)
}
+func (c *outgoingTransitionContextImpl) ModuleName() string {
+ return c.bp.ModuleName()
+}
+
func (c *outgoingTransitionContextImpl) DepTag() blueprint.DependencyTag {
return c.bp.DepTag()
}