1 /*
2  * Copyright 2024 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef TRACE_CATEGORIES_H
18 #define TRACE_CATEGORIES_H
19 
20 /**
21  * Keep these in sync with frameworks/base/core/java/android/os/Trace.java.
22  */
23 #define TRACE_CATEGORY_ALWAYS (1 << 0)
24 #define TRACE_CATEGORY_GRAPHICS (1 << 1)
25 #define TRACE_CATEGORY_INPUT (1 << 2)
26 #define TRACE_CATEGORY_VIEW (1 << 3)
27 #define TRACE_CATEGORY_WEBVIEW (1 << 4)
28 #define TRACE_CATEGORY_WINDOW_MANAGER (1 << 5)
29 #define TRACE_CATEGORY_ACTIVITY_MANAGER (1 << 6)
30 #define TRACE_CATEGORY_SYNC_MANAGER (1 << 7)
31 #define TRACE_CATEGORY_AUDIO (1 << 8)
32 #define TRACE_CATEGORY_VIDEO (1 << 9)
33 #define TRACE_CATEGORY_CAMERA (1 << 10)
34 #define TRACE_CATEGORY_HAL (1 << 11)
35 #define TRACE_CATEGORY_APP (1 << 12)
36 #define TRACE_CATEGORY_RESOURCES (1 << 13)
37 #define TRACE_CATEGORY_DALVIK (1 << 14)
38 #define TRACE_CATEGORY_RS (1 << 15)
39 #define TRACE_CATEGORY_BIONIC (1 << 16)
40 #define TRACE_CATEGORY_POWER (1 << 17)
41 #define TRACE_CATEGORY_PACKAGE_MANAGER (1 << 18)
42 #define TRACE_CATEGORY_SYSTEM_SERVER (1 << 19)
43 #define TRACE_CATEGORY_DATABASE (1 << 20)
44 #define TRACE_CATEGORY_NETWORK (1 << 21)
45 #define TRACE_CATEGORY_ADB (1 << 22)
46 #define TRACE_CATEGORY_VIBRATOR (1 << 23)
47 #define TRACE_CATEGORY_AIDL (1 << 24)
48 #define TRACE_CATEGORY_NNAPI (1 << 25)
49 #define TRACE_CATEGORY_RRO (1 << 26)
50 #define TRACE_CATEGORY_THERMAL (1 << 27)
51 
52 // Allow all categories except TRACE_CATEGORY_APP
53 #define TRACE_CATEGORIES                                                      \
54   TRACE_CATEGORY_ALWAYS | TRACE_CATEGORY_GRAPHICS | TRACE_CATEGORY_INPUT |    \
55       TRACE_CATEGORY_VIEW | TRACE_CATEGORY_WEBVIEW |                          \
56       TRACE_CATEGORY_WINDOW_MANAGER | TRACE_CATEGORY_ACTIVITY_MANAGER |       \
57       TRACE_CATEGORY_SYNC_MANAGER | TRACE_CATEGORY_AUDIO |                    \
58       TRACE_CATEGORY_VIDEO | TRACE_CATEGORY_CAMERA | TRACE_CATEGORY_HAL |     \
59       TRACE_CATEGORY_RESOURCES | TRACE_CATEGORY_DALVIK | TRACE_CATEGORY_RS |  \
60       TRACE_CATEGORY_BIONIC | TRACE_CATEGORY_POWER |                          \
61       TRACE_CATEGORY_PACKAGE_MANAGER | TRACE_CATEGORY_SYSTEM_SERVER |         \
62       TRACE_CATEGORY_DATABASE | TRACE_CATEGORY_NETWORK | TRACE_CATEGORY_ADB | \
63       TRACE_CATEGORY_VIBRATOR | TRACE_CATEGORY_AIDL | TRACE_CATEGORY_NNAPI |  \
64       TRACE_CATEGORY_RRO | TRACE_CATEGORY_THERMAL
65 #endif  // TRACE_CATEGORIES_H
66