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* SEPARATOR = "/"; 31 // bundle resource rdb table key 32 constexpr const char* NAME = "NAME"; 33 constexpr const char* UPDATE_TIME = "UPDATE_TIME"; 34 constexpr const char* LABEL = "LABEL"; 35 constexpr const char* ICON = "ICON"; 36 constexpr const char* SYSTEM_STATE = "SYSTEM_STATE"; 37 constexpr const char* FOREGROUND = "FOREGROUND"; 38 constexpr const char* BACKGROUND = "BACKGROUND"; 39 40 constexpr int32_t INDEX_NAME = 0; 41 constexpr int32_t INDEX_UPDATE_TIME = 1; 42 constexpr int32_t INDEX_LABEL = 2; 43 constexpr int32_t INDEX_ICON = 3; 44 constexpr int32_t INDEX_SYSTEM_STATE = 4; 45 constexpr int32_t INDEX_FOREGROUND = 5; 46 constexpr int32_t INDEX_BACKGROUND = 6; 47 } 48 } // AppExecFwk 49 } // OHOS 50 #endif // FOUNDATION_BUNDLEMANAGER_BUNDLE_FRAMEWORK_SERVICES_BUNDLEMGR_INCLUDE_BUNDLE_RESOURCE_CONSTANTS_H 51