Allow capturing accessibility trace through adb connected device.
Bug: 157601519 Test: Manual test using local windscope Change-Id: I776d38dfc22ac4577b568e1d9a67c71ce132df7d
This commit is contained in:
@@ -115,6 +115,11 @@ TRACE_TARGETS = {
|
||||
'su root cmd window tracing start\necho "WM trace started."',
|
||||
'su root cmd window tracing stop >/dev/null 2>&1'
|
||||
),
|
||||
"accessibility_trace": TraceTarget(
|
||||
File("/data/misc/a11ytrace/a11y_trace.pb", "accessibility_trace"),
|
||||
'su root cmd accessibility start-trace\necho "Accessibility trace started."',
|
||||
'su root cmd accessibility stop-trace >/dev/null 2>&1'
|
||||
),
|
||||
"layers_trace": TraceTarget(
|
||||
File("/data/misc/wmtrace/layers_trace.pb", "layers_trace"),
|
||||
'su root service call SurfaceFlinger 1025 i32 1\necho "SF trace started."',
|
||||
|
||||
@@ -158,6 +158,9 @@ const TRACES = {
|
||||
'window_trace': {
|
||||
name: 'Window Manager',
|
||||
},
|
||||
'accessibility_trace': {
|
||||
name: 'Accessibility',
|
||||
},
|
||||
'layers_trace': {
|
||||
name: 'Surface Flinger',
|
||||
},
|
||||
@@ -200,6 +203,7 @@ const DUMPS = {
|
||||
|
||||
const proxyFileTypeAdapter = {
|
||||
'window_trace': FILE_TYPES.WINDOW_MANAGER_TRACE,
|
||||
'accessibility_trace': FILE_TYPES.ACCESSIBILITY_TRACE,
|
||||
'layers_trace': FILE_TYPES.SURFACE_FLINGER_TRACE,
|
||||
'wl_trace': FILE_TYPES.WAYLAND_TRACE,
|
||||
'layers_dump': FILE_TYPES.SURFACE_FLINGER_DUMP,
|
||||
|
||||
Reference in New Issue
Block a user