2 * Copyright (c) 2018 - 2020 Samsung Electronics Co., Ltd. All rights reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
24 API const char *aul_cmd_convert_to_string(int cmd)
26 static const char *cmd_string_table[] = {
33 "APP_TERM_BY_PID_WITHOUT_RESTART",
38 "APP_UPDATE_RUA_STAT",
43 "APP_RUNNING_INFO_RESULT",
45 "APP_GET_APPID_BYPID",
46 "APP_GET_PKGID_BYPID",
54 "APP_RUNNING_LIST_UPDATE",
55 "APP_TERM_REQ_BY_PID",
56 "APP_TERM_BY_PID_ASYNC",
57 "APP_TERM_BGAPP_BY_PID",
60 "APP_GROUP_GET_WINDOW",
62 "APP_GROUP_SET_WINDOW",
64 "APP_GROUP_GET_LEADER_PID",
65 "APP_GROUP_GET_LEADER_PIDS",
66 "APP_GROUP_GET_GROUP_PIDS",
67 "APP_GROUP_GET_IDLE_PIDS",
69 "APP_GROUP_CLEAR_TOP",
70 "APP_GROUP_ACTIVATE_BELOW",
76 "APP_GET_DC_SOCKET_PAIR",
77 "APP_GET_MP_SOCKET_PAIR",
95 "LAUNCHPAD_DEAD_SIGNAL",
96 "APP_ALL_RUNNING_INFO",
97 "APP_SET_APP_CONTROL_DEFAULT_APP",
98 "APP_UNSET_APP_CONTROL_DEFAULT_APP",
100 "APP_SET_PROCESS_GROUP",
101 "APP_PREPARE_CANDIDATE_PROCESS",
102 "APP_TERM_BY_PID_SYNC",
103 "APP_GET_STATUS_BY_APPID",
104 "APP_GET_LAST_CALLER_PID",
106 "APP_TERM_BY_PID_SYNC_WITHOUT_RESTART",
107 "APP_RESUME_BY_PID_ASYNC",
108 "APP_SET_ALIAS_APPID",
109 "APP_UNSET_ALIAS_APPID",
110 "APP_ENABLE_ALIAS_INFO",
111 "APP_DISABLE_ALIAS_INFO",
112 "APP_GROUP_ACTIVATE_ABOVE",
115 "APP_UPDATE_REQUESTED",
118 "REMOVE_SCREEN_VIEWER",
119 "LAUNCHPAD_LAUNCH_SIGNAL",
120 "APP_RUNNING_INSTANCE_INFO",
121 "APP_GET_INSTANCE_ID_BYPID",
123 "APP_GET_APPID_FROM_CACHE",
124 "APP_INVALIDATE_CACHE",
125 "APP_STARTUP_SIGNAL",
129 "APP_START_RES_ASYNC",
131 "APP_GET_APPID_BY_SURFACE_ID",
132 "APP_GET_INSTANCE_ID_BY_SURFACE_ID",
133 "UPDATE_SCREEN_VIEWER_STATUS",
134 "WIDGET_RUNNING_INFO",
136 "WIDGET_CHANGE_STATUS",
137 "RPC_PORT_PREPARE_STUB",
139 "RPC_PORT_CREATE_SOCKET_PAIR",
140 "RPC_PORT_NOTIFY_RPC_FINISHED",
141 "COMPLICATION_UPDATE_REQUEST",
147 "APP_SEND_LAUNCH_REQUEST",
148 "APP_SEND_LAUNCH_REQUEST_SYNC",
152 "COMP_STATUS_UPDATE",
153 "APP_TERM_INSTANCE_ASYNC",
154 "APP_GROUP_SET_WINDOW_V2",
155 "APP_GROUP_LOWER_V2",
156 "APP_GROUP_GET_LEADER_IDS",
157 "APP_GROUP_GET_GROUP_INFO",
158 "APP_GROUP_GET_IDLE_INFO",
159 "COMP_CONTEXT_FOREACH",
162 "COMP_CONTEXT_IS_RUNNING",
163 "COMP_CONTEXT_RESUME",
164 "COMP_CONTEXT_PAUSE",
165 "COMP_CONTEXT_TERMINATE_BG_COMP",
166 "COMP_CONTEXT_TERMINATE",
167 "APP_RESUME_INSTANCE",
168 "APP_PAUSE_INSTANCE",
169 "APP_TERM_BG_INSTANCE",
170 "LAUNCHPAD_CHILD_PROCESS", /* unused */
177 "APP_GET_RUNNING_CONTEXT",
178 "LAUNCHER_SERVICE_NOTIFY_ANIMATION_STARTED",
179 "LAUNCHER_SERVICE_NOTIFY_ANIMATION_FINISHED",
180 "APP_SEND_RESUME_REQUEST",
181 "APP_PREPARE_APP_DEFINED_LOADER",
184 "TRIGGER_APP_SCREEN_FOCUSED_FORCE",
186 "SET_PRIVATE_SHARING",
187 "UNSET_PRIVATE_SHARING",
189 "APP_CONTEXT_GET_BY_INSTANCE_ID",
190 "APP_CONTEXT_GET_BY_PID",
194 "APP_GET_APPID_LIST",
198 "APP_LIFECYCLE_UPDATE_STATE",
200 "APP_STATUS_UPDATE_V2",
201 "APP_GET_APP_CONTROL_DEFAULT_APPS",
202 "APP_GET_APPID_BY_ALIAS_APPID",
203 "APP_GET_APP_CONTROL_DEFAULT_APP",
204 "APP_LIFECYCLE_GET_STATE",
214 "APP_WINDOW_ATTACH_BELOW",
219 "APP_SET_AUTO_RESTART",
220 "BOOT_SEQUENCE_START_APP",
221 "BOOT_SEQUENCE_GET_APPINFO_LIST",
222 "BOOT_SEQUENCE_RELOAD",
224 "PKG_PRE_EVENT_SEND",
229 if (cmd < 0 || cmd >= APP_CMD_MAX)
230 return cmd_string_table[APP_CMD_MAX];
232 return cmd_string_table[cmd];