1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef RME_CONSTANTS_H 17 #define RME_CONSTANTS_H 18 19 namespace OHOS { 20 namespace RME { 21 enum class AppStateUpdateReason { 22 APP_FOREGROUND, 23 APP_BACKGROUND, 24 APP_TERMINATED, 25 PROCESS_CREATE, 26 PROCESS_READY, 27 PROCESS_SUSPEND, 28 PROCESS_DIED, 29 REASON_UNKNOWN, 30 }; 31 32 enum class ThreadType { 33 UI, 34 RENDER, 35 }; 36 37 enum class ThreadState { 38 CREATE = 0, 39 DIED, 40 }; 41 42 enum class WindowState { 43 FOCUS_YES = 0, 44 FOCUS_NO, 45 }; 46 47 enum class ErrorCode { 48 FAIL, 49 SUCC, 50 }; 51 } // namespace RME 52 } // namespace OHOS 53 #endif 54