Enable aidl#generate_traces by default for some Java SDK kinds
This will enable AIDL tags in perfetto traces for the following SDKs: 1. SdkSystemServer 2. SdkCore 3. SdkCorePlatform SdkModule requires exposing some Trace methods as @SystemApi(MODULE_LIBRARIES). This will come as a follow up Test: Manual Bug: 161393989 Change-Id: I01d520afa8e26eabb97318192151b707b002c28b
This commit is contained in:
parent
bf9c26c364
commit
8774ae1ba1
1 changed files with 3 additions and 1 deletions
|
@ -857,7 +857,9 @@ func (j *Module) aidlFlags(ctx android.ModuleContext, aidlPreprocess android.Opt
|
|||
// add flags for dirs containing AIDL srcs that haven't been specified yet
|
||||
flags = append(flags, genAidlIncludeFlags(ctx, aidlSrcs, includeDirs))
|
||||
|
||||
if Bool(j.deviceProperties.Aidl.Generate_traces) {
|
||||
sdkVersion := (j.SdkVersion(ctx)).Kind
|
||||
defaultTrace := ((sdkVersion == android.SdkSystemServer) || (sdkVersion == android.SdkCore) || (sdkVersion == android.SdkCorePlatform))
|
||||
if proptools.BoolDefault(j.deviceProperties.Aidl.Generate_traces, defaultTrace) {
|
||||
flags = append(flags, "-t")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue