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 FOUNDATION_BUNDLEMANAGER_BUNDLE_FRAMEWORK_SERVICES_BUNDLEMGR_INCLUDE_BUNDLE_RESOURCE_CONSTANTS_H 17 #define FOUNDATION_BUNDLEMANAGER_BUNDLE_FRAMEWORK_SERVICES_BUNDLEMGR_INCLUDE_BUNDLE_RESOURCE_CONSTANTS_H 18 19 namespace OHOS { 20 namespace AppExecFwk { 21 namespace BundleResourceConstants { 22 // resource rdb path 23 constexpr const char* BUNDLE_RESOURCE_RDB_PATH = "/data/service/el1/public/bms/bundle_resources"; 24 // resource rdb storage path 25 constexpr const char* BUNDLE_RESOURCE_RDB_STORAGE_PATH = "/data/storage/bundle_resources"; 26 // resource database name 27 constexpr const char* BUNDLE_RESOURCE_RDB_NAME = "/bundleResource.db"; 28 // resource table name 29 constexpr const char* BUNDLE_RESOURCE_RDB_TABLE_NAME = "bundleResource"; 30 constexpr const char* BUNDLE_ICON_RESOURCE_RDB_TABLE_NAME = "bundleIconResource"; 31 constexpr const char* SEPARATOR = "/"; 32 constexpr const char* UNDER_LINE = "_"; 33 constexpr const char* EXTENSION_ABILITY_SEPARATOR = "+"; 34 // bundle resource rdb table key 35 constexpr const char* NAME = "NAME"; 36 constexpr const char* USER_ID = "USER_ID"; 37 constexpr const char* ICON_TYPE = "ICON_TYPE"; 38 constexpr const char* UPDATE_TIME = "UPDATE_TIME"; 39 constexpr const char* LABEL = "LABEL"; 40 constexpr const char* ICON = "ICON"; 41 constexpr const char* SYSTEM_STATE = "SYSTEM_STATE"; 42 constexpr const char* FOREGROUND = "FOREGROUND"; 43 constexpr const char* BACKGROUND = "BACKGROUND"; 44 constexpr const char* USER_FILE_NAME = "/userFile.json"; 45 constexpr const char* USER = "user"; 46 constexpr const char* THEME = "theme"; 47 constexpr const char* LANGUAGE = "language"; 48 constexpr const char* THEME_ID = "themeId"; 49 constexpr const char* TYPE = "type"; 50 constexpr const char* THEME_ICON = "themeIcon"; 51 52 constexpr int32_t INDEX_NAME = 0; 53 constexpr int32_t INDEX_UPDATE_TIME = 1; 54 constexpr int32_t INDEX_LABEL = 2; 55 constexpr int32_t INDEX_ICON = 3; 56 constexpr int32_t INDEX_SYSTEM_STATE = 4; 57 constexpr int32_t INDEX_FOREGROUND = 5; 58 constexpr int32_t INDEX_BACKGROUND = 6; 59 } 60 } // AppExecFwk 61 } // OHOS 62 #endif // FOUNDATION_BUNDLEMANAGER_BUNDLE_FRAMEWORK_SERVICES_BUNDLEMGR_INCLUDE_BUNDLE_RESOURCE_CONSTANTS_H 63