1import {TraceType} from 'trace/trace_type'; 2 3const WINDOW_MANAGER_ICON = 'view_compact'; 4const SURFACE_FLINGER_ICON = 'filter_none'; 5const SCREEN_RECORDING_ICON = 'videocam'; 6const TRANSACTION_ICON = 'timeline'; 7const WAYLAND_ICON = 'filter_none'; 8const PROTO_LOG_ICON = 'notes'; 9const SYSTEM_UI_ICON = 'filter_none'; 10const LAUNCHER_ICON = 'filter_none'; 11const IME_ICON = 'keyboard'; 12const ACCESSIBILITY_ICON = 'filter_none'; 13const TAG_ICON = 'details'; 14const TRACE_ERROR_ICON = 'warning'; 15 16interface IconMap { 17 [key: number]: string; 18} 19 20export const TRACE_ICONS: IconMap = { 21 [TraceType.ACCESSIBILITY]: ACCESSIBILITY_ICON, 22 [TraceType.WINDOW_MANAGER]: WINDOW_MANAGER_ICON, 23 [TraceType.SURFACE_FLINGER]: SURFACE_FLINGER_ICON, 24 [TraceType.SCREEN_RECORDING]: SCREEN_RECORDING_ICON, 25 [TraceType.TRANSACTIONS]: TRANSACTION_ICON, 26 [TraceType.TRANSACTIONS_LEGACY]: TRANSACTION_ICON, 27 [TraceType.WAYLAND]: WAYLAND_ICON, 28 [TraceType.WAYLAND_DUMP]: WAYLAND_ICON, 29 [TraceType.PROTO_LOG]: PROTO_LOG_ICON, 30 [TraceType.SYSTEM_UI]: SYSTEM_UI_ICON, 31 [TraceType.LAUNCHER]: LAUNCHER_ICON, 32 [TraceType.INPUT_METHOD_CLIENTS]: IME_ICON, 33 [TraceType.INPUT_METHOD_SERVICE]: IME_ICON, 34 [TraceType.INPUT_METHOD_MANAGER_SERVICE]: IME_ICON, 35 [TraceType.TAG]: TAG_ICON, 36 [TraceType.ERROR]: TRACE_ERROR_ICON, 37}; 38