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 }; 36 37 enum class AppStateSubscriberInterfaceCode { 38 ON_CONNECTED = FIRST_CALL_TRANSACTION, 39 ON_DISCONNECTED, 40 ON_APP_STATE_CHANGED, 41 FORCE_RECLAIM, 42 ON_TRIM, 43 }; 44 } // namespace Memory 45 } // namespace OHOS 46 #endif // OHOS_MEMORY_MEMMGR_INTERFACES_INNERKITS_INCLUDE_MEMMGRSERVICE_IPC_INTERFACE_CODE_H