mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2024-11-23 23:30:28 +00:00
IssueNo: #I4YRWE : fix code style
Description:fix code style Sig:SIG_ApplicaitonFramework Feature or Bugfix:BugFix Binary Source:No Signed-off-by: wangtiantian <wangtiantian19@huawei.com>
This commit is contained in:
parent
0b5de94956
commit
9cba509ec2
@ -13,8 +13,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef FOUNDATION_APPEXECFWK_LIBS_LOG_INCLUDE_APP_LOG_WRAPPER_H
|
||||
#define FOUNDATION_APPEXECFWK_LIBS_LOG_INCLUDE_APP_LOG_WRAPPER_H
|
||||
#ifndef FOUNDATION_APPEXECFWK_STANDARD_COMMON_LOG_INCLUDE_APP_LOG_WRAPPER_H
|
||||
#define FOUNDATION_APPEXECFWK_STANDARD_COMMON_LOG_INCLUDE_APP_LOG_WRAPPER_H
|
||||
|
||||
#include "hilog/log.h"
|
||||
#include <string>
|
||||
@ -69,4 +69,4 @@ private:
|
||||
#define APP_LOGF(fmt, ...) PRINT_LOG(FATAL, Fatal, fmt, ##__VA_ARGS__)
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
#endif // FOUNDATION_APPEXECFWK_LIBS_LOG_INCLUDE_APP_LOG_WRAPPER_H
|
||||
#endif // FOUNDATION_APPEXECFWK_STANDARD_COMMON_LOG_INCLUDE_APP_LOG_WRAPPER_H
|
||||
|
@ -13,8 +13,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef FOUNDATION_APPEXECFWK_SERVICES_COMMON_INCLUDE_PERF_PROFILE_H
|
||||
#define FOUNDATION_APPEXECFWK_SERVICES_COMMON_INCLUDE_PERF_PROFILE_H
|
||||
#ifndef FOUNDATION_APPEXECFWK_STANDARD_COMMON_PERF_INCLUDE_PERF_PROFILE_H
|
||||
#define FOUNDATION_APPEXECFWK_STANDARD_COMMON_PERF_INCLUDE_PERF_PROFILE_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@ -120,4 +120,4 @@ private:
|
||||
};
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
#endif // FOUNDATION_APPEXECFWK_SERVICES_COMMON_INCLUDE_PERF_PROFILE_H
|
||||
#endif // FOUNDATION_APPEXECFWK_STANDARD_COMMON_PERF_INCLUDE_PERF_PROFILE_H
|
||||
|
@ -127,7 +127,7 @@ struct ApplicationInfo : public Parcelable {
|
||||
std::string dataBaseDir;
|
||||
std::string cacheDir;
|
||||
std::string entryDir;
|
||||
|
||||
|
||||
std::string apiReleaseType;
|
||||
bool debug = false;
|
||||
std::string deviceId;
|
||||
|
@ -77,13 +77,13 @@ struct BundleInfo : public Parcelable {
|
||||
std::string vendor;
|
||||
std::string releaseType;
|
||||
bool isNativeApp = false;
|
||||
|
||||
|
||||
std::string mainEntry; // modulePackage
|
||||
std::string entryModuleName; // moduleName
|
||||
bool entryInstallationFree = false;
|
||||
|
||||
std::string appId;
|
||||
|
||||
|
||||
// user related fields, assign when calling the get interface
|
||||
int uid = -1;
|
||||
int gid = -1;
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "string_ex.h"
|
||||
#include "parcel_macro.h"
|
||||
#include "app_log_wrapper.h"
|
||||
#include "nlohmann/json.hpp"
|
||||
#include "bundle_constants.h"
|
||||
|
||||
namespace OHOS {
|
||||
|
@ -30,7 +30,7 @@ class BundleMonitor : public EventFwk::CommonEventSubscriber, public std::enable
|
||||
public:
|
||||
using Want = OHOS::AAFwk::Want;
|
||||
|
||||
BundleMonitor(const EventFwk::CommonEventSubscribeInfo &subscribeInfo);
|
||||
explicit BundleMonitor(const EventFwk::CommonEventSubscribeInfo &subscribeInfo);
|
||||
~BundleMonitor() = default;
|
||||
|
||||
/**
|
||||
|
@ -27,7 +27,7 @@ typedef void (*FileFDCallback)(int32_t filedescriptor);
|
||||
struct FileDescriptorCallbacks;
|
||||
struct EventRunnerNativeImplement {
|
||||
public:
|
||||
EventRunnerNativeImplement(bool current);
|
||||
explicit EventRunnerNativeImplement(bool current);
|
||||
~EventRunnerNativeImplement();
|
||||
|
||||
/**
|
||||
|
@ -23,7 +23,7 @@ namespace OHOS {
|
||||
namespace AppExecFwk {
|
||||
class BundleExceptionHandler {
|
||||
public:
|
||||
BundleExceptionHandler(const std::shared_ptr<BundleDataStorageDatabase> &dataStorage);
|
||||
explicit BundleExceptionHandler(const std::shared_ptr<BundleDataStorageDatabase> &dataStorage);
|
||||
virtual ~BundleExceptionHandler();
|
||||
|
||||
/**
|
||||
|
@ -114,7 +114,7 @@ private:
|
||||
|
||||
static std::vector<std::string> GetNeedDeleteDefinePermissionName(const InnerBundleInfo &oldInfo,
|
||||
const InnerBundleInfo &newInfo);
|
||||
|
||||
|
||||
static std::vector<std::string> GetNeedDeleteRequestPermissionName(const InnerBundleInfo &oldInfo,
|
||||
const InnerBundleInfo &newInfo);
|
||||
};
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "common_event_subscribe_info.h"
|
||||
#include "bundle_util.h"
|
||||
|
||||
#include "bundle_data_mgr.h"
|
||||
#include "json_serializer.h"
|
||||
#include "app_log_wrapper.h"
|
||||
|
||||
|
@ -22,7 +22,7 @@ namespace OHOS {
|
||||
namespace AppExecFwk {
|
||||
class SystemBundleInstaller : public BaseBundleInstaller {
|
||||
public:
|
||||
SystemBundleInstaller(const std::string &filePath);
|
||||
explicit SystemBundleInstaller(const std::string &filePath);
|
||||
virtual ~SystemBundleInstaller() override;
|
||||
/**
|
||||
* @brief Install system and system vendor bundles.
|
||||
|
@ -92,7 +92,7 @@ private:
|
||||
class STPageAbilityEvent {
|
||||
public:
|
||||
STPageAbilityEvent() = default;
|
||||
STPageAbilityEvent(const std::string &className);
|
||||
explicit STPageAbilityEvent(const std::string &className);
|
||||
~STPageAbilityEvent() = default;
|
||||
|
||||
static bool PublishEvent(const std::string &eventName, const int &code, const std::string &data);
|
||||
|
@ -164,7 +164,6 @@ uLong ReadZipBuffer(void *opaque, void *, void *buf, uLong size)
|
||||
// because this implementation is only for reading compressed data.
|
||||
uLong WriteZipBuffer(void *opaque, void *stream, const void *buf, uLong)
|
||||
{
|
||||
APP_LOGI("WriteZipBuffer opaque=%p, stream=%p, buf=%p", opaque, stream, buf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user