1 /* 2 * Copyright (c) 2023 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 OHOS_MEMORY_MEMMGR_INTERFACES_INNERKITS_INCLUDE_MEMMGRSERVICE_IPC_INTERFACE_CODE_H 17 #define OHOS_MEMORY_MEMMGR_INTERFACES_INNERKITS_INCLUDE_MEMMGRSERVICE_IPC_INTERFACE_CODE_H 18 19 /* SAID: 1909*/ 20 namespace OHOS { 21 namespace Memory { 22 enum class MemMgrInterfaceCode { 23 MEM_MGR_GET_BUNDLE_PRIORITY_LIST = 1, 24 MEM_MGR_NOTIFY_DIST_DEV_STATUS = 2, 25 MEM_MGR_GET_KILL_LEVEL_OF_LMKD = 3, 26 #ifdef USE_PURGEABLE_MEMORY 27 MEM_MGR_REGISTER_ACTIVE_APPS = 4, 28 MEM_MGR_DEREGISTER_ACTIVE_APPS = 5, 29 MEM_MGR_SUBSCRIBE_APP_STATE = 6, 30 MEM_MGR_UNSUBSCRIBE_APP_STATE = 7, 31 MEM_MGR_GET_AVAILABLE_MEMORY = 8, 32 MEM_MGR_GET_TOTAL_MEMORY = 9, 33 #endif 34 MEM_MGR_ON_WINDOW_VISIBILITY_CHANGED = 10, 35 MEM_MGR_GET_PRIORITY_BY_PID = 11, 36 MEM_MGR_NOTIFY_PROCESS_STATE_CHANGED_SYNC = 12, 37 MEM_MGR_NOTIFY_PROCESS_STATE_CHANGED_ASYNC = 13, 38 MEM_MGR_NOTIFY_PROCESS_STATUS = 14, 39 MEM_MGR_SET_CRITICAL = 15, 40 }; 41 42 enum class AppStateSubscriberInterfaceCode { 43 ON_CONNECTED = FIRST_CALL_TRANSACTION, 44 ON_DISCONNECTED, 45 ON_APP_STATE_CHANGED, 46 FORCE_RECLAIM, 47 ON_TRIM, 48 }; 49 } // namespace Memory 50 } // namespace OHOS 51 #endif // OHOS_MEMORY_MEMMGR_INTERFACES_INNERKITS_INCLUDE_MEMMGRSERVICE_IPC_INTERFACE_CODE_H