Remove unused directories and files in video_in_hal
[staging/basesystem.git] / service / system / interface_unified / library / include / system_service / ss_error_event_common.h
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
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 /**
18  * @file ss_error_event_common.h
19  * @brief This file supports SM logging.
20  */
21
22 /** @addtogroup BaseSystem
23  *  @{
24  */
25 /** @addtogroup system_service
26  *  @ingroup BaseSystem
27  *  @{
28  */
29 /** @addtogroup interface_unified
30  *  @ingroup system_service
31  *  @{
32  */
33
34 #ifndef __SS_ERROR_EVENT_COMMON_H__  // NOLINT (build/header_guard)
35 #define __SS_ERROR_EVENT_COMMON_H__
36
37 #include <native_service/frameworkunified_types.h>  // added for test build
38
39
40 // Do not change enumeration order.
41 // HMI hard codes error event square
42 // colors based on expected enum order.
43 enum EErrorEventType {
44     eErrorEventTypeProcessCrash = 0,
45     eErrorEventTypeHeartBeatFailure,
46     eErrorEventTypeSystemLowMemory,
47     eErrorEventTypeReserved1,  // Formerly SS_SM_EVENT_ERROR_HIGH_CPU_LOAD, now HMI enum place holder.
48     eErrorEventTypeUserInvokedUserForceReset,
49     eErrorEventTypeReserved2,
50     eErrorEventTypeReserved3,
51     eErrorEventTypeUserInvokedCollectAllLogs,
52     eErrorEventTypeBootMicroReset,
53     eErrorEventTypeProcessExit,
54     eErrorEventTypeUserInvokedCollectScreenShot,
55     eErrorEventTypeUserInvokedCollectInterfaceunifiedLogs,
56     eErrorEventTypeEelExport,
57     eErrorEventTypeInterfaceunifiedEmmcLogs,
58     eErrorEventTypeDiagEvent,
59     eErrorEventTypeCanEvent,
60     eErrorEventTypeDtcEvent,
61     eErrorEventTypeModConnFailed,
62     eErrorEventTypeStartRespFailed,
63     eErrorEventTypeUserInvokedCollectDevLogs,
64     eErrorEventTypeModuleInvokedResetRequest,
65     eErrorEventTypeModuleInvokedCollectDebugLogs,
66     eErrorEventTypeUserInvokedClearLogs,
67     eErrorEventTypeUserInvokedCollectNaviLog,
68     eErrorEventTypeGroupRelaunch,
69     eErrorEventTypeMaxValue
70 };
71
72 /* Value range of EArtifactId must be defined within 32, */
73 /* because of it's definition is used by 4byte bitmask.  */
74 enum EArtifactId {
75     eArtifactIdInterfaceunifiedDebugLog = 0,
76     eArtifactIdTransmitLog,
77     eArtifactIdPerformanceLog,
78     eArtifactIdBootMicroLog,
79     eArtifactIdSystemDataCsv,
80     eArtifactIdShowMemTxt,              // << ID 5
81     eArtifactIdProcessCore,
82     eArtifactIdDebugDumpLog,
83     eArtifactIdKernelLog,
84     eArtifactIdDRInitialLog,
85     eArtifactIdDRLocationLog,           // << ID 10
86     eArtifactIdCpuHighLoadMonteCarloLogs,
87     eArtifactIdMetaCoreLogs,
88     eArtifactIdCmsLogs,
89     eArtifactIDInternalDTC,
90     eArtifactIdComDebugLog,             // << ID 15
91     eArtifactIdKernelBootLog,
92     eArtifactIdPstoreLog,
93     eArtifactIdClearAllLog,
94     eArtifactIdNaviLog,
95     eArtifactIdScreenShot,              // These three Log entries have to remain
96     eArtifactIdDebugFolder2Content,     // at the end of the list
97     eArtifactIdDebugFolderContent,
98     eArtifactIdMaxValue                 // << 23
99 };
100
101 struct ARTIFACT_RESPONSE {
102   EArtifactId  ArtifactId;
103     CHAR         FilePathAndName[MAX_PATH_LENGTH];
104 };
105
106
107 #endif /* __SS_ERROR_EVENT_COMMON_H___ */  // NOLINT (build/header_guard)
108
109 /** @}*/
110 /** @}*/
111 /** @}*/