1 /*
2 * Copyright (c) 2021-2022 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 #include "bundle_manager_helper.h"
17
18 #include "if_system_ability_manager.h"
19 #include "iservice_registry.h"
20 #include "system_ability_definition.h"
21
22 namespace OHOS {
23 namespace Notification {
BundleManagerHelper()24 BundleManagerHelper::BundleManagerHelper()
25 {}
26
~BundleManagerHelper()27 BundleManagerHelper::~BundleManagerHelper()
28 {}
29
OnRemoteDied(const wptr<IRemoteObject> & object)30 void BundleManagerHelper::OnRemoteDied(const wptr<IRemoteObject> &object)
31 {}
32
GetBundleNameByUid(int uid)33 std::string BundleManagerHelper::GetBundleNameByUid(int uid)
34 {
35 return "bundleName";
36 }
37
IsSystemApp(int uid)38 bool BundleManagerHelper::IsSystemApp(int uid)
39 {
40 return true;
41 }
42
CheckApiCompatibility(const sptr<NotificationBundleOption> & bundleOption)43 bool BundleManagerHelper::CheckApiCompatibility(const sptr<NotificationBundleOption> &bundleOption)
44 {
45 return true;
46 }
47
GetDefaultUidByBundleName(const std::string & bundle,const int32_t userId)48 int BundleManagerHelper::GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId)
49 {
50 return 1000;
51 }
52
GetBundleInfoByBundleName(const std::string bundle,const int32_t userId,AppExecFwk::BundleInfo & bundleInfo)53 bool BundleManagerHelper::GetBundleInfoByBundleName(
54 const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo)
55 {
56 return true;
57 }
58
Connect()59 void BundleManagerHelper::Connect()
60 {}
61
Disconnect()62 void BundleManagerHelper::Disconnect()
63 {}
64 } // namespace Notification
65 } // namespace OHOS