Home
last modified time | relevance | path

Searched refs:uint32_t (Results 1 – 25 of 2572) sorted by relevance

12345678910>>...103

/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
Dhks_native_api_compatibility_test.cpp65 ASSERT_EQ((uint32_t)OH_HUKS_DIGEST_NONE == (uint32_t)HKS_DIGEST_NONE, true);
66 ASSERT_EQ((uint32_t)OH_HUKS_DIGEST_MD5 == (uint32_t)HKS_DIGEST_MD5, true);
67 ASSERT_EQ((uint32_t)OH_HUKS_DIGEST_SM3 == (uint32_t)HKS_DIGEST_SM3, true);
68 ASSERT_EQ((uint32_t)OH_HUKS_DIGEST_SHA1 == (uint32_t)HKS_DIGEST_SHA1, true);
69 ASSERT_EQ((uint32_t)OH_HUKS_DIGEST_SHA224 == (uint32_t)HKS_DIGEST_SHA224, true);
70 ASSERT_EQ((uint32_t)OH_HUKS_DIGEST_SHA256 == (uint32_t)HKS_DIGEST_SHA256, true);
71 ASSERT_EQ((uint32_t)OH_HUKS_DIGEST_SHA384 == (uint32_t)HKS_DIGEST_SHA384, true);
72 ASSERT_EQ((uint32_t)OH_HUKS_DIGEST_SHA512 == (uint32_t)HKS_DIGEST_SHA512, true);
82 ASSERT_EQ((uint32_t)OH_HUKS_DIGEST_NONE == 0, true);
83 ASSERT_EQ((uint32_t)OH_HUKS_DIGEST_MD5 == 1, true);
[all …]
/base/update/updater/services/ptable_parse/
Dptable.h29 static constexpr uint32_t GPT_PARTITION_TYPE_GUID_LEN = 16;
36 uint32_t lun {};
41 uint32_t GetPtablePartitionNum() const;
43 uint32_t GetDefaultImageSize() const;
48 virtual bool ParsePartitionFromBuffer(uint8_t *ptbImgBuffer, const uint32_t imgBufSize) = 0;
54 static constexpr uint32_t PARTITION_ENTRY_SIZE = 128;
55 static constexpr uint32_t MAX_PARTITION_NUM = 128;
56 static constexpr uint32_t FIRST_LBA_OFFSET = 32;
57 static constexpr uint32_t LAST_LBA_OFFSET = 40;
58 static constexpr uint32_t GPT_PARTITION_NAME_OFFSET = 56;
[all …]
Dufs_ptable.h28 uint32_t GetDeviceLunNum() const;
29 bool ParsePartitionFromBuffer(uint8_t *ptbImgBuffer, const uint32_t imgBufSize) override;
34 static constexpr uint32_t TMP_DATA_SIZE = 32 * 1024;
35 static constexpr uint32_t MAX_LUN_NUMBERS = 26;
36 static constexpr uint32_t MIN_UFS_WRITE_SIZE = 4096;
40 uint32_t lunIndex;
42 uint32_t writeDataLen; // data len written to UFS
46 uint32_t deviceLunNum_ { 0 };
49 uint64_t GetDeviceLunCapacity(const uint32_t lunIndex);
50 …bool UfsReadGpt(const uint8_t *gptImage, const uint32_t len, const uint32_t lun, const uint32_t bl…
[all …]
/base/security/huks/interfaces/innerkits/huks_lite/
Dhks_types.h97 uint32_t size;
105 #define HKS_KEY_TYPE_RSA_PUBLIC_KEY ((uint32_t)0x60010000)
107 #define HKS_KEY_TYPE_RSA_KEYPAIR ((uint32_t)0x70010000)
109 #define HKS_KEY_TYPE_ECC_PUBLIC_KEY_BASE ((uint32_t)0x60030000)
111 #define HKS_KEY_TYPE_ECC_KEYPAIR_BASE ((uint32_t)0x70030000)
113 #define HKS_KEY_TYPE_ECC_CURVE_MASK ((uint32_t)0x0000ffff)
127 #define HKS_KEY_TYPE_EDDSA_PUBLIC_KEY_BASE ((uint32_t)0xe0010000)
129 #define HKS_KEY_TYPE_EDDSA_KEYPAIR_BASE ((uint32_t)0xf0010000)
144 #define HKS_KEY_TYPE_AES ((uint32_t)0x40000001)
146 #define HKS_KEY_TYPE_HMAC ((uint32_t)0x51000000)
[all …]
/base/hiviewdfx/hiview/core/
Dplatform_monitor.h34 uint32_t maxTotalCount;
35 uint32_t maxTotalSize;
37 std::vector<uint32_t> domainCounts;
38 uint32_t totalCount;
39 uint32_t totalSize;
42 uint32_t minSpeed;
43 uint32_t maxSpeed;
44 std::vector<uint32_t> realCounts;
45 std::vector<uint32_t> processCounts;
46 std::vector<uint32_t> waitCounts;
[all …]
/base/security/huks/test/unittest/huks_lite_test/common/include/
Dhks_test_common.h42 uint32_t blobSize; /* blob->size value */
44 uint32_t blobDataSize; /* blob->data malloc size */
51 uint32_t alg;
53 uint32_t keySize;
55 uint32_t purpose;
57 uint32_t digest;
59 uint32_t padding;
61 uint32_t mode;
63 uint32_t keyStorageFlag;
68 uint32_t paramSetSize;
[all …]
/base/security/huks/frameworks/huks_standard/main/common/include/
Dhks_base_check.h31 uint32_t value;
50 const uint32_t *values;
51 uint32_t valueCnt;
77 int32_t HksCheckValue(uint32_t inputValue, const uint32_t *expectValues, uint32_t valuesCount);
79 int32_t HksGetKeySize(uint32_t alg, const struct HksBlob *key, uint32_t *keySize);
81 int32_t HksCheckGenKeyPurpose(uint32_t alg, uint32_t inputPurpose);
83 int32_t HksGetInputParmasByAlg(uint32_t alg, enum CheckKeyType checkType, const struct HksParamSet …
86 int32_t HksCheckFixedParams(uint32_t alg, enum CheckKeyType checkType, const struct ParamsValues *i…
88 int32_t HksCheckGenKeyMutableParams(uint32_t alg, const struct ParamsValues *inputParams);
90 int32_t CheckImportMutableParams(uint32_t alg, const struct ParamsValues *params);
[all …]
Dhks_crypto_hal.h35 uint32_t algType;
36 uint32_t keyLen;
43 uint32_t iterations;
44 uint32_t digestAlg;
52 uint32_t tagLenEnc;
54 uint32_t payloadLen;
62 uint32_t algType;
63 uint32_t mode;
64 uint32_t padding;
65 uint32_t digest;
[all …]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/include/
Dhks_test_common.h54 uint32_t blobSize; /* blob->size value */
56 uint32_t blobDataSize; /* blob->data malloc size */
63 uint32_t alg;
65 uint32_t keySize;
67 uint32_t purpose;
69 uint32_t digest;
71 uint32_t padding;
73 uint32_t mode;
75 uint32_t keyStorageFlag;
80 uint32_t paramSetSize;
[all …]
/base/request/request/download/services/include/
Ddownload_service_manager.h40 bool Create(uint32_t threadNum);
43 uint32_t AddTask(const DownloadConfig &config);
44 void InstallCallback(uint32_t taskId, DownloadTaskCallback eventCb);
47 bool Pause(uint32_t taskId, uint32_t uid);
48 bool Resume(uint32_t taskId, uint32_t uid);
49 bool Remove(uint32_t taskId, uint32_t uid);
50 bool Query(uint32_t taskId, DownloadInfo &info);
51 bool Query(uint32_t taskId, uint32_t uid, DownloadInfo &info);
53 bool QueryMimeType(uint32_t taskId, uint32_t uid, std::string &mimeType);
55 uint32_t GetStartId() const;
[all …]
/base/global/i18n_lite/frameworks/i18n/include/
Ddata_resource.h107 static uint32_t GetFallbackMask(const LocaleInfo &src);
110 int32_t BinarySearchLocale(const uint32_t mask, unsigned char *locales);
111 …bool GetStringFromStringPool(char *configs, const uint32_t configsSize, int32_t infile, LocaleData…
112 uint32_t ConvertUint(unsigned char *src);
113 uint32_t ConvertUChar(unsigned char *src);
115 char *GetString(uint32_t index) const;
116 char *BinarySearchString(uint32_t *indexArray, uint32_t length,
117 uint32_t target, char **stringArray, uint32_t stringLength) const;
122 uint32_t &fallbackConfigOffset, uint32_t &defaultConfigOffset, char *locales);
123 …bool Retrieve(char *configs, const uint32_t configsSize, int32_t infile, const uint32_t originalCo…
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/sa/
Dcm_sa.h45 uint32_t MSG_CODE_BASE = CM_MSG_BASE;
47 uint32_t MSG_CODE_GEN_KEY = CM_MSG_GEN_KEY;
48 uint32_t MSG_CODE_GET_CERTIFICATE_LIST = CM_MSG_GET_CERTIFICATE_LIST;
49 uint32_t MSG_CODE_GET_CERTIFICATE_INFO = CM_MSG_GET_CERTIFICATE_INFO;
50 uint32_t MSG_CODE_SET_CERTIFICATE_STATUS = CM_MSG_SET_CERTIFICATE_STATUS;
51 uint32_t MSG_CODE_INSTALL_APP_CERTIFICATE = CM_MSG_INSTALL_APP_CERTIFICATE;
52 uint32_t MSG_CODE_UNINSTALL_APP_CERTIFICATE = CM_MSG_UNINSTALL_APP_CERTIFICATE;
53 uint32_t MSG_CODE_UNINSTALL_ALL_APP_CERTIFICATE = CM_MSG_UNINSTALL_ALL_APP_CERTIFICATE;
54 uint32_t MSG_CODE_GET_APP_CERTIFICATE_LIST = CM_MSG_GET_APP_CERTIFICATE_LIST;
55 uint32_t MSG_CODE_GET_APP_CERTIFICATE = CM_MSG_GET_APP_CERTIFICATE;
[all …]
/base/powermgr/power_manager/services/native/include/
Dpower_mode_policy.h33 static constexpr uint32_t DISPLAY_OFFTIME = 101;
34 static constexpr uint32_t SLEEPTIME = 102;
35 static constexpr uint32_t AUTO_ADJUST_BRIGHTNESS = 103;
36 static constexpr uint32_t AUTO_WINDOWN_RORATION = 107;
37 static constexpr uint32_t SMART_BACKLIGHT = 115;
38 static constexpr uint32_t VIBRATORS_STATE = 120;
42 int32_t GetPowerModeValuePolicy(uint32_t type);
43 int32_t GetPowerModeRecoverPolicy(uint32_t type);
44 void SetPowerModePolicy(uint32_t mode, uint32_t lastMode);
46 void AddAction(uint32_t type, ModeAction& action);
[all …]
/base/powermgr/display_manager/interfaces/innerkits/native/include/
Didisplay_power_mgr.h52 virtual bool SetDisplayState(uint32_t id, DisplayState state, uint32_t reason) = 0;
53 virtual DisplayState GetDisplayState(uint32_t id) = 0;
54 virtual std::vector<uint32_t> GetDisplayIds() = 0;
55 virtual uint32_t GetMainDisplayId() = 0;
56 virtual bool SetBrightness(uint32_t value, uint32_t displayId) = 0;
57 virtual bool DiscountBrightness(double discount, uint32_t displayId) = 0;
58 virtual bool OverrideBrightness(uint32_t value, uint32_t displayId) = 0;
59 virtual bool RestoreBrightness(uint32_t displayId) = 0;
60 virtual uint32_t GetBrightness(uint32_t displayId) = 0;
61 virtual uint32_t GetDefaultBrightness() = 0;
[all …]
Ddisplay_power_mgr_client.h36 uint32_t id = 0);
37 DisplayState GetDisplayState(uint32_t id = 0);
38 std::vector<uint32_t> GetDisplayIds();
40 bool SetBrightness(uint32_t value, uint32_t displayId = 0);
41 bool DiscountBrightness(double discount, uint32_t displayId = 0);
42 bool OverrideBrightness(uint32_t value, uint32_t displayId = 0);
43 bool RestoreBrightness(uint32_t displayId = 0);
44 uint32_t GetBrightness(uint32_t displayId = 0);
45 uint32_t GetDefaultBrightness();
46 uint32_t GetMaxBrightness();
[all …]
/base/startup/hvb/libhvb/include/
Dhvb_crypto.h24 #define BLK_BYTE_SIZE_SHA256 (BLK_WORD_SIZE_SHA256 * sizeof(uint32_t))
27 #define IV_BYTE_SIZE_SHA256 (IV_WORD_SIZE_SHA256 * sizeof(uint32_t))
35 uint32_t width;
36 uint32_t e;
38 uint32_t nlen;
40 uint32_t rlen;
49 uint32_t alg_type;
51 uint32_t buf_len;
52 uint32_t total_len;
54 uint32_t iv[IV_BYTE_SIZE_SHA256];
[all …]
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/
Dmock_image_source.cpp25 uint32_t g_mockImageSourceCreateImageSourceErrorCode = 0;
27 uint32_t g_mockImageSourceCreatePixelMapErrorCode = 0;
28 uint32_t g_mockImageSourceGetSupportedFormatsRet = 0;
31 void MockImageSourceCreateImageSource(bool mockRet, uint32_t errorCode) in MockImageSourceCreateImageSource()
37 void MockImageSourceCreatePixelMap(bool mockRet, uint32_t errorCode) in MockImageSourceCreatePixelMap()
43 void MockImageSourceGetSupportedFormats(uint32_t mockRet) in MockImageSourceGetSupportedFormats()
60 uint32_t ImageSource::GetSupportedFormats(std::set<std::string> &formats) in GetSupportedFormats()
66 const SourceOptions &opts, uint32_t &errorCode) in CreateImageSource()
71 std::unique_ptr<ImageSource> ImageSource::CreateImageSource(const uint8_t *data, uint32_t size, in CreateImageSource()
72 const SourceOptions &opts, uint32_t &errorCode) in CreateImageSource()
[all …]
Dmock_pixel_map.cpp39 void PixelMap::ReleaseSharedMemory(void *addr, void *context, uint32_t size) in ReleaseSharedMemory()
42 void PixelMap::SetPixelsAddr(void *addr, void *context, uint32_t size, AllocatorType type, CustomFr… in SetPixelsAddr()
45 std::unique_ptr<PixelMap> PixelMap::Create(const uint32_t *colors, uint32_t colorLength, in Create()
51 std::unique_ptr<PixelMap> PixelMap::Create(const uint32_t *colors, uint32_t colorLength, int32_t of… in Create()
57 bool PixelMap::CheckParams(const uint32_t *colors, uint32_t colorLength, int32_t offset, int32_t st… in CheckParams()
113 uint32_t PixelMap::SetImageInfo(ImageInfo &info) in SetImageInfo()
118 uint32_t PixelMap::SetImageInfo(ImageInfo &info, bool isReused) in SetImageInfo()
133 const uint32_t *PixelMap::GetPixel32(int32_t x, int32_t y) in GetPixel32()
143 bool PixelMap::GetARGB32Color(int32_t x, int32_t y, uint32_t &color) in GetARGB32Color()
148 bool PixelMap::ALPHA8ToARGB(const uint8_t *in, uint32_t inCount, uint32_t *out, uint32_t outCount) in ALPHA8ToARGB()
[all …]
/base/startup/init/services/param/include/
Dparam_trie.h39 uint32_t left;
40 uint32_t right;
41 uint32_t child;
42 uint32_t labelIndex;
43 uint32_t dataIndex;
78 uint32_t trieNodeCount;
79 uint32_t paramNodeCount;
80 uint32_t securityNodeCount;
81 uint32_t startIndex;
82 uint32_t currOffset;
[all …]
/base/powermgr/display_manager/service/zidl/include/
Ddisplay_power_mgr_proxy.h38 virtual bool SetDisplayState(uint32_t id, DisplayState state, uint32_t reason) override;
39 virtual DisplayState GetDisplayState(uint32_t id) override;
40 virtual std::vector<uint32_t> GetDisplayIds() override;
41 virtual uint32_t GetMainDisplayId() override;
43 virtual bool SetBrightness(uint32_t value, uint32_t displayId) override;
44 virtual bool DiscountBrightness(double value, uint32_t displayId) override;
45 virtual bool OverrideBrightness(uint32_t value, uint32_t displayId) override;
46 virtual bool RestoreBrightness(uint32_t displayId) override;
47 virtual uint32_t GetBrightness(uint32_t displayId) override;
48 virtual uint32_t GetDefaultBrightness() override;
[all …]
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/
Dhks_sa.h73 uint32_t MSG_CODE_BASE = HKS_MSG_BASE;
74 uint32_t MSG_CODE_INIT = HKS_MSG_INIT;
75 uint32_t MSG_CODE_UPDATE = HKS_MSG_UPDATE;
76 uint32_t MSG_CODE_FINISH = HKS_MSG_FINISH;
77 uint32_t MSG_CODE_ABORT = HKS_MSG_ABORT;
78 uint32_t MSG_CODE_GEN_KEY = HKS_MSG_GEN_KEY;
79 uint32_t MSG_CODE_IMPORT_KEY = HKS_MSG_IMPORT_KEY;
80 uint32_t MSG_CODE_EXPORT_PUBLIC_KEY = HKS_MSG_EXPORT_PUBLIC_KEY;
81 uint32_t MSG_CODE_IMPORT_WRAPPED_KEY = HKS_MSG_IMPORT_WRAPPED_KEY;
82 uint32_t MSG_CODE_DELETE_KEY = HKS_MSG_DELETE_KEY;
[all …]
/base/powermgr/display_manager/service/native/include/
Dscreen_controller.h33 ScreenController(uint32_t displayId, const std::shared_ptr<DisplayEventHandler>& handler);
42 void OnChanged(uint32_t currentValue) override;
52 bool UpdateState(DisplayState state, uint32_t reason);
55 bool SetBrightness(uint32_t value, uint32_t gradualDuration = 0);
56 uint32_t GetBrightness();
57 uint32_t GetDeviceBrightness();
59 bool DiscountBrightness(double discount, uint32_t gradualDuration = 0);
60 bool OverrideBrightness(uint32_t value, uint32_t gradualDuration = 0);
61 bool RestoreBrightness(uint32_t gradualDuration = 0);
64 bool BoostBrightness(uint32_t timeoutMs, uint32_t gradualDuration = 0);
[all …]
Ddisplay_power_mgr_service.h43 virtual bool SetDisplayState(uint32_t id, DisplayState state, uint32_t reason) override;
44 virtual DisplayState GetDisplayState(uint32_t id) override;
45 virtual std::vector<uint32_t> GetDisplayIds() override;
46 virtual uint32_t GetMainDisplayId() override;
47 virtual bool SetBrightness(uint32_t value, uint32_t displayId) override;
48 virtual bool DiscountBrightness(double discount, uint32_t displayId) override;
49 virtual bool OverrideBrightness(uint32_t value, uint32_t displayId) override;
50 virtual bool RestoreBrightness(uint32_t displayId) override;
51 virtual uint32_t GetBrightness(uint32_t displayId) override;
52 virtual uint32_t GetDefaultBrightness() override;
[all …]
/base/account/os_account/services/accountmgr/include/appaccount/
Dapp_account_stub.h26 …using MessageProcFunction = ErrCode (AppAccountStub::*)(uint32_t code, MessageParcel &data, Messag…
31 uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override;
39 ErrCode ProcAddAccount(uint32_t code, MessageParcel &data, MessageParcel &reply);
40 ErrCode ProcAddAccountImplicitly(uint32_t code, MessageParcel &data, MessageParcel &reply);
41 ErrCode ProcCreateAccount(uint32_t code, MessageParcel &data, MessageParcel &reply);
42 ErrCode ProcCreateAccountImplicitly(uint32_t code, MessageParcel &data, MessageParcel &reply);
43 ErrCode ProcDeleteAccount(uint32_t code, MessageParcel &data, MessageParcel &reply);
44 ErrCode ProcGetAccountExtraInfo(uint32_t code, MessageParcel &data, MessageParcel &reply);
45 ErrCode ProcSetAccountExtraInfo(uint32_t code, MessageParcel &data, MessageParcel &reply);
46 ErrCode ProcSetAppAccess(uint32_t code, MessageParcel &data, MessageParcel &reply);
[all …]
/base/security/huks/services/huks_standard/huks_engine/main/core/include/
Dhks_crypto_hal.h35 uint32_t algType;
36 uint32_t keyLen;
43 uint32_t iterations;
44 uint32_t digestAlg;
52 uint32_t tagLenEnc;
54 uint32_t payloadLen;
62 uint32_t algType;
63 uint32_t mode;
64 uint32_t padding;
65 uint32_t digest;
[all …]

12345678910>>...103