• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023-2024 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_BUNDLE_FRAMEWORK_AOT_AOT_ARGS
17 #define FOUNDATION_BUNDLE_FRAMEWORK_AOT_AOT_ARGS
18 
19 #include "message_parcel.h"
20 
21 namespace OHOS {
22 namespace AppExecFwk {
23 struct HspInfo : public Parcelable {
24     uint32_t versionCode = 0;
25     uint32_t offset = 0;
26     uint32_t length = 0;
27     std::string bundleName;
28     std::string moduleName;
29     std::string hapPath;
30 
31     std::string ToString() const;
32     bool ReadFromParcel(Parcel &parcel);
33     virtual bool Marshalling(Parcel &parcel) const override;
34     static HspInfo *Unmarshalling(Parcel &parcel);
35 };
36 
37 struct AOTArgs : public Parcelable {
38     uint32_t offset = 0;
39     uint32_t length = 0;
40     uint32_t isEncryptedBundle = 0;
41     uint32_t isScreenOff = 0;
42     uint32_t isEnableBaselinePgo = 0;
43     int32_t bundleUid = -1;
44     int32_t bundleGid = -1;
45     std::string bundleName;
46     std::string moduleName;
47     std::string compileMode;
48     std::string hapPath;
49     std::string coreLibPath;
50     std::string outputPath;
51     std::string arkProfilePath;
52     std::string anFileName;
53     std::string appIdentifier;
54     std::string optBCRangeList;
55     std::vector<HspInfo> hspVector;
56 
57     std::string ToString() const;
58     bool ReadFromParcel(Parcel &parcel);
59     virtual bool Marshalling(Parcel &parcel) const override;
60     static AOTArgs *Unmarshalling(Parcel &parcel);
61 };
62 }  // namespace AppExecFwk
63 }  // namespace OHOS
64 #endif  // FOUNDATION_BUNDLE_FRAMEWORK_AOT_AOT_ARGS
65