1ba5c3796Sopenharmony_ci/* 2ba5c3796Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 3ba5c3796Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4ba5c3796Sopenharmony_ci * you may not use this file except in compliance with the License. 5ba5c3796Sopenharmony_ci * You may obtain a copy of the License at 6ba5c3796Sopenharmony_ci * 7ba5c3796Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8ba5c3796Sopenharmony_ci * 9ba5c3796Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10ba5c3796Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11ba5c3796Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12ba5c3796Sopenharmony_ci * See the License for the specific language governing permissions and 13ba5c3796Sopenharmony_ci * limitations under the License. 14ba5c3796Sopenharmony_ci */ 15ba5c3796Sopenharmony_ci 16ba5c3796Sopenharmony_ci#ifndef OHOS_MEMORY_MEMMGR_INTERFACES_INNERKITS_INCLUDE_MEMMGRSERVICE_IPC_INTERFACE_CODE_H 17ba5c3796Sopenharmony_ci#define OHOS_MEMORY_MEMMGR_INTERFACES_INNERKITS_INCLUDE_MEMMGRSERVICE_IPC_INTERFACE_CODE_H 18ba5c3796Sopenharmony_ci 19ba5c3796Sopenharmony_ci/* SAID: 1909*/ 20ba5c3796Sopenharmony_cinamespace OHOS { 21ba5c3796Sopenharmony_cinamespace Memory { 22ba5c3796Sopenharmony_cienum class MemMgrInterfaceCode { 23ba5c3796Sopenharmony_ci MEM_MGR_GET_BUNDLE_PRIORITY_LIST = 1, 24ba5c3796Sopenharmony_ci MEM_MGR_NOTIFY_DIST_DEV_STATUS = 2, 25ba5c3796Sopenharmony_ci MEM_MGR_GET_KILL_LEVEL_OF_LMKD = 3, 26ba5c3796Sopenharmony_ci#ifdef USE_PURGEABLE_MEMORY 27ba5c3796Sopenharmony_ci MEM_MGR_REGISTER_ACTIVE_APPS = 4, 28ba5c3796Sopenharmony_ci MEM_MGR_DEREGISTER_ACTIVE_APPS = 5, 29ba5c3796Sopenharmony_ci MEM_MGR_SUBSCRIBE_APP_STATE = 6, 30ba5c3796Sopenharmony_ci MEM_MGR_UNSUBSCRIBE_APP_STATE = 7, 31ba5c3796Sopenharmony_ci MEM_MGR_GET_AVAILABLE_MEMORY = 8, 32ba5c3796Sopenharmony_ci MEM_MGR_GET_TOTAL_MEMORY = 9, 33ba5c3796Sopenharmony_ci#endif 34ba5c3796Sopenharmony_ci MEM_MGR_ON_WINDOW_VISIBILITY_CHANGED = 10, 35ba5c3796Sopenharmony_ci MEM_MGR_GET_PRIORITY_BY_PID = 11, 36ba5c3796Sopenharmony_ci MEM_MGR_NOTIFY_PROCESS_STATE_CHANGED_SYNC = 12, 37ba5c3796Sopenharmony_ci MEM_MGR_NOTIFY_PROCESS_STATE_CHANGED_ASYNC = 13, 38ba5c3796Sopenharmony_ci MEM_MGR_NOTIFY_PROCESS_STATUS = 14, 39ba5c3796Sopenharmony_ci MEM_MGR_SET_CRITICAL = 15, 40ba5c3796Sopenharmony_ci}; 41ba5c3796Sopenharmony_ci 42ba5c3796Sopenharmony_cienum class AppStateSubscriberInterfaceCode { 43ba5c3796Sopenharmony_ci ON_CONNECTED = FIRST_CALL_TRANSACTION, 44ba5c3796Sopenharmony_ci ON_DISCONNECTED, 45ba5c3796Sopenharmony_ci ON_APP_STATE_CHANGED, 46ba5c3796Sopenharmony_ci FORCE_RECLAIM, 47ba5c3796Sopenharmony_ci ON_TRIM, 48ba5c3796Sopenharmony_ci}; 49ba5c3796Sopenharmony_ci} // namespace Memory 50ba5c3796Sopenharmony_ci} // namespace OHOS 51ba5c3796Sopenharmony_ci#endif // OHOS_MEMORY_MEMMGR_INTERFACES_INNERKITS_INCLUDE_MEMMGRSERVICE_IPC_INTERFACE_CODE_H