Add a Generate_get_transaction_name flag.
Add a flag to be able to generate the Binder#getTransactionName method Test: manual Bug: 111200705 Change-Id: I3e8106261df5c63cdc005d07c9d8efcc6732db70
This commit is contained in:
@@ -193,6 +193,9 @@ type CompilerDeviceProperties struct {
|
|||||||
|
|
||||||
// whether to generate traces (for systrace) for this interface
|
// whether to generate traces (for systrace) for this interface
|
||||||
Generate_traces *bool
|
Generate_traces *bool
|
||||||
|
|
||||||
|
// whether to generate Binder#GetTransaction name method.
|
||||||
|
Generate_get_transaction_name *bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// If true, export a copy of the module as a -hostdex module for host testing.
|
// If true, export a copy of the module as a -hostdex module for host testing.
|
||||||
@@ -645,6 +648,10 @@ func (j *Module) aidlFlags(ctx android.ModuleContext, aidlPreprocess android.Opt
|
|||||||
flags = append(flags, "-t")
|
flags = append(flags, "-t")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if Bool(j.deviceProperties.Aidl.Generate_get_transaction_name) {
|
||||||
|
flags = append(flags, "--transaction_names")
|
||||||
|
}
|
||||||
|
|
||||||
return flags
|
return flags
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user