/* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "bundle_manager_helper.h" #include "if_system_ability_manager.h" #include "iservice_registry.h" #include "system_ability_definition.h" namespace OHOS { namespace Notification { BundleManagerHelper::BundleManagerHelper() {} BundleManagerHelper::~BundleManagerHelper() {} void BundleManagerHelper::OnRemoteDied(const wptr &object) {} std::string BundleManagerHelper::GetBundleNameByUid(int uid) { return "bundleName"; } bool BundleManagerHelper::IsSystemApp(int uid) { return true; } bool BundleManagerHelper::CheckApiCompatibility(const sptr &bundleOption) { return true; } int BundleManagerHelper::GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId) { return 1000; } bool BundleManagerHelper::GetBundleInfoByBundleName( const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo) { return true; } void BundleManagerHelper::Connect() {} void BundleManagerHelper::Disconnect() {} } // namespace Notification } // namespace OHOS