Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 1854) sorted by relevance

12345678910>>...75

/base/notification/distributed_notification_service/services/distributed/include/
Ddistributed_flow_control.h34 DistributedFlowControl(size_t kvManagerSecondMaxinum = KVMANAGER_MAXINUM_PER_SECOND,
35 size_t kvManagerMinuteMaxinum = KVMANAGER_MAXINUM_PER_MINUTE,
36 size_t kvStoreSecondMaxinum = KVSTORE_MAXINUM_PER_SECOND,
37 size_t kvStoreMinuteMaxinum = KVSTORE_MAXINUM_PER_MINUTE);
64 static const size_t KVMANAGER_MAXINUM_PER_SECOND = 50;
65 static const size_t KVMANAGER_MAXINUM_PER_MINUTE = 500;
66 static const size_t KVSTORE_MAXINUM_PER_SECOND = 1000;
67 static const size_t KVSTORE_MAXINUM_PER_MINUTE = 10000;
70 size_t kvManagerSecondMaxinum_;
71 size_t kvManagerMinuteMaxinum_;
[all …]
/base/location/test/fuzztest/locator/locator_fuzzer/
Dlocator_fuzzer.h45 bool LocatorProxySendRequestTest(const uint8_t* data, size_t size);
46 bool LocatorImplFuzzerTest(const uint8_t* data, size_t size);
47 bool TestMockFunc(const uint8_t* data, size_t size);
48 bool TestCallbackRegister(const uint8_t* data, size_t size);
49 bool CachedLocationsCallbackHostFuzzerTest(const uint8_t* data, size_t size);
50 bool CountryCodeCallbackHostFuzzerTest(const uint8_t* data, size_t size);
51 bool GnssStatusCallbackHostFuzzerTest(const uint8_t* data, size_t size);
52 bool LocationSwitchCallbackHostFuzzerTest(const uint8_t* data, size_t size);
53 bool LocationCallbackHostFuzzerTest(const uint8_t* data, size_t size);
54 bool NmeaMessageCallbackHostFuzzerTest(const uint8_t* data, size_t size);
[all …]
/base/update/updater/test/unittest/fs_manager/
Ddo_partition_unittest.cpp34 constexpr size_t BOOT_PARTITION_LEN = 2048;
35 constexpr size_t KERNEL_PARTITION_LEN = 30720;
36 constexpr size_t UPDATER_PARTITION_LEN = 40960;
37 constexpr size_t MISC_PARTITION_LEN = 2048;
38 constexpr size_t SYSTEM_PARTITION_LEN = 3627008;
39 constexpr size_t HOS_PARTITION_LEN = 3133440;
40 constexpr size_t VENDOR_PARTITION_LEN = 3133440;
41 constexpr size_t DATA_PARTITION_LEN = 3133440;
42 constexpr size_t XXX_PARTITION_LEN = 2998272;
43 constexpr size_t BUFFER_SIZE = 100;
[all …]
/base/update/updater/services/package/pkg_manager/
Dpkg_stream.h34 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override in Read()
50 virtual int32_t Write(const PkgBuffer &data, size_t size, size_t start) = 0;
54 virtual int32_t Flush(size_t size) = 0;
72 void PostDecodeProgress(int type, size_t writeDataLen, const void *context) const;
87 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override;
89 int32_t Write(const PkgBuffer &data, size_t size, size_t start) override;
93 int32_t Flush(size_t size) override;
95 size_t GetFileLength() override;
104 size_t fileLength_;
115 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override;
[all …]
Dpkg_stream.cpp54 void PkgStreamImpl::PostDecodeProgress(int type, size_t writeDataLen, const void *context) const in PostDecodeProgress()
70 int32_t FileStream::Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read()
97 int32_t FileStream::Write(const PkgBuffer &data, size_t size, size_t start) in Write()
111 size_t len = fwrite(data.buffer, size, 1, stream_); in Write()
120 size_t FileStream::GetFileLength() in GetFileLength()
136 fileLength_ = static_cast<size_t>(ret); in GetFileLength()
154 int32_t FileStream::Flush(size_t size) in Flush()
172 fileLength_ = static_cast<size_t>(ret); in Flush()
194 int32_t MemoryMapStream::Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read()
210 size_t copyLen = GetFileLength() - start; in Read()
[all …]
/base/telephony/ril_adapter/services/vendor/include/
Dat_sms.h22 void ReqSendGsmSms(const ReqDataInfo *requestInfo, const char *const *data, size_t dataLen);
23 void ReqSendSmsAck(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen);
24 void ReqSendCdmaSms(const ReqDataInfo *requestInfo, const char *data, size_t dataLen);
25 void ReqSendCdmaSmsAck(const ReqDataInfo *requestInfo, const char *data, size_t dataLen);
26 void ReqWriteSimMessage(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *data, size_t dataLen…
27 void ReqDelSimMessage(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen);
28 void ReqSetSmscAddr(const ReqDataInfo *requestInfo, const HRilServiceCenterAddress *data, size_t da…
30 void ReqSetCBConfig(const ReqDataInfo *requestInfo, const HRilCBConfigInfo *data, size_t dataLen);
33 void ReqSetCdmaCBConfig(const ReqDataInfo *requestInfo, const HRilCdmaCBConfigInfo *data, size_t da…
34 void ReqAddCdmaSimMessage(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *data, size_t dataL…
[all …]
/base/account/os_account/frameworks/appaccount/native/include/
Dapp_account_constants.h52 constexpr std::size_t APP_ACCOUNT_SUBSCRIBER_MAX_SIZE = 200;
53 constexpr std::size_t NAME_MAX_SIZE = 512;
54 constexpr std::size_t EXTRA_INFO_MAX_SIZE = 1024;
55 constexpr std::size_t BUNDLE_NAME_MAX_SIZE = 512;
56 constexpr std::size_t ASSOCIATED_KEY_MAX_SIZE = 1024;
57 constexpr std::size_t ASSOCIATED_VALUE_MAX_SIZE = 1024;
58 constexpr std::size_t CREDENTIAL_TYPE_MAX_SIZE = 1024;
59 constexpr std::size_t CREDENTIAL_MAX_SIZE = 1024;
60 constexpr std::size_t TOKEN_MAX_SIZE = 1024;
61 constexpr std::size_t OWNER_MAX_SIZE = 1024;
[all …]
/base/telephony/ril_adapter/services/hril/include/
Dhril_call.h71 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
73 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
75 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
77 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
79 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
81 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
83 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
85 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
87 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
89 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
[all …]
Dhril_sim.h31 … int32_t code, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
32 …void ProcessSimNotify(const struct ReportInfo *reportInfo, const void *response, size_t responseLe…
64 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
66 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
68 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
70 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
72 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
74 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
76 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
78 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
[all …]
Dhril_network.h46 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
48 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
50 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
52 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
54 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
56 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
58 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
60 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
62 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
64 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
[all …]
Dhril_sms.h50 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
52 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
54 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
56 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
58 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
60 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
62 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
64 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
66 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
68 …int32_t requestNum, HRilRadioResponseInfo &responseInfo, const void *response, size_t responseLen);
[all …]
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algorithm.h24 size_t srcOffset;
25 size_t destOffset;
26 PkgContextOffset(size_t srcOffset, size_t destOffset) in PkgContextOffset()
34 size_t packedSize = 0;
35 size_t unpackedSize = 0;
36 PkgContextSize(size_t packedSize, size_t unpackedSize) in PkgContextSize()
44 size_t srcOffset;
45 size_t destOffset;
46 size_t packedSize = 0;
47 size_t unpackedSize = 0;
[all …]
Dpkg_algo_lz4.cpp64 size_t blockSize = static_cast<size_t>(GetBlockSizeFromBlockId(blockSizeID_)); in Pack()
75 size_t srcOffset = context.srcOffset; in Pack()
76 size_t destOffset = context.destOffset; in Pack()
77 size_t remainSize = context.unpackedSize; in Pack()
78 size_t readLen = 0; in Pack()
101 destOffset += static_cast<size_t>(outSize) + LZ4B_REVERSED_LEN; in Pack()
116 PkgBuffer inBuffer(static_cast<size_t>(inBuffSize)); in Unpack()
121 size_t srcOffset = context.srcOffset; in Unpack()
122 size_t destOffset = context.destOffset; in Unpack()
123 size_t remainSize = context.packedSize; in Unpack()
[all …]
/base/update/updater/services/package/pkg_package/
Dpkg_zipfile.h140 int32_t EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override;
142 int32_t Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override;
146 int32_t DecodeHeader(const PkgBuffer &buffer, size_t headOffset, size_t dataOffset,
147 size_t &decodeLen) override;
149 int32_t EncodeCentralDirEntry(const PkgStreamPtr stream, size_t startOffset, size_t &encodeLen);
151 int32_t DecodeCentralDirEntry(PkgStreamPtr inStream, PkgBuffer &buffer, size_t currentPos,
152 size_t &decodeLen);
159 …int32_t DecodeLocalFileHeaderCheck(PkgStreamPtr inStream, const PkgBuffer &data, size_t currentPos…
161 int32_t DecodeLocalFileHeader(PkgStreamPtr inStream, const PkgBuffer &data, size_t currentPos,
162 size_t &decodeLen);
[all …]
Dpkg_upgradefile.h62 int32_t EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override;
64 int32_t Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override;
66 int32_t DecodeHeader(const PkgBuffer &buffer, size_t offset, size_t dataOffset,
67 size_t &decodeLen) override;
96 int32_t SavePackage(size_t &signOffset) override;
100 size_t GetUpgradeSignatureLen() const;
102 size_t GetDigestLen() const;
111 int32_t ReadComponents(const PkgBuffer &buffer, size_t &parsedLen,
114 int32_t ReadUpgradePkgHeader(const PkgBuffer &buffer, size_t &realLen,
117 int32_t Verify(size_t start, DigestAlgorithm::DigestAlgorithmPtr algorithm,
[all …]
Dpkg_gzipfile.h45 int32_t EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override;
47 int32_t Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override;
51 int32_t DecodeHeader(const PkgBuffer &buffer, size_t, size_t, size_t &decodeLen) override;
54 void DecodeHeaderCalOffset(uint8_t flags, const PkgBuffer &buffer, size_t &offset,
71 int32_t SavePackage(size_t &offset) override;
77 size_t currentOffset_ = 0;
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/inc/
Dauth_common.h30 constexpr size_t ARGS_ZERO = 0;
31 constexpr size_t ARGS_ONE = 1;
32 constexpr size_t ARGS_TWO = 2;
33 constexpr size_t ARGS_THREE = 3;
34 constexpr size_t ARGS_FOUR = 4;
36 constexpr size_t PARAM0 = 0;
37 constexpr size_t PARAM1 = 1;
38 constexpr size_t PARAM2 = 2;
39 constexpr size_t PARAM3 = 3;
/base/update/updater/services/include/applypatch/
Dblock_set.h22 #define SIZE_MAX (~(size_t)0)
25 using BlockPair = std::pair<size_t, size_t>;
53 size_t CountOfRanges() const;
56 size_t TotalBlockSize() const;
75 const BlockPair& operator[] (size_t index) const
80 static int32_t VerifySha256(const std::vector<uint8_t> &buffer, const size_t size,
88 …t LoadTargetBuffer(const Command &cmd, std::vector<uint8_t> &buffer, size_t &blockSize, size_t pos,
92 …int32_t WriteDiffToBlock(const Command &cmd, std::vector<uint8_t> &sourceBuffer, const size_t srcB…
96 size_t ReadDataFromBlock(int fd, std::vector<uint8_t> &buffer);
99 size_t WriteDataToBlock(int fd, std::vector<uint8_t> &buffer);
[all …]
/base/telephony/ril_adapter/interfaces/innerkits/include/
Dhril_vendor_sms_defs.h105 void (*SendGsmSms)(const ReqDataInfo *requestInfo, const char *const *data, size_t dataLen);
106 void (*SendSmsAck)(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen);
107 void (*SendCdmaSms)(const ReqDataInfo *requestInfo, const char *data, size_t dataLen);
108 void (*SendCdmaAck)(const ReqDataInfo *requestInfo, const char *data, size_t dataLen);
109 …void (*AddSimMessage)(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *data, size_t dataLen);
110 void (*DelSimMessage)(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen);
111 …void (*UpdateSimMessage)(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *data, size_t dataL…
112 …SetSmscAddr)(const ReqDataInfo *requestInfo, const HRilServiceCenterAddress *data, size_t dataLen);
114 … void (*SetCBConfig)(const ReqDataInfo *requestInfo, const HRilCBConfigInfo *data, size_t dataLen);
117 …SetCdmaCBConfig)(const ReqDataInfo *requestInfo, const HRilCdmaCBConfigInfo *data, size_t dataLen);
[all …]
/base/update/updater/services/diffpatch/bzip2/
Dbzip2_adapter.h40 BZipBuffer2Adapter(std::vector<uint8_t> &buffer, size_t offset) in BZipBuffer2Adapter()
45 int32_t FlushData(size_t &dataSize) override;
47 size_t offset_ { 0 };
48 size_t dataSize_ { 0 };
59 int32_t FlushData(size_t &dataSize) override;
62 size_t dataSize_ { 0 };
68 BZip2ReadAdapter(size_t offset, size_t length) : offset_(offset), dataLength_(length) {} in BZip2ReadAdapter()
79 size_t offset_ { 0 };
80 size_t dataLength_ = { 0 };
86 BZip2BufferReadAdapter(size_t offset, size_t length, const BlockBuffer &info) in BZip2BufferReadAdapter()
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/
Dn_func_arg.cpp26 void NFuncArg::SetArgc(size_t argc) in SetArgc()
36 size_t NFuncArg::GetArgc(void) const in GetArgc()
46 napi_value NFuncArg::GetArg(size_t argPos) const in GetArg()
51 napi_value NFuncArg::operator[](size_t argPos) const in operator []()
61 size_t argc; in InitArgs()
80 bool NFuncArg::InitArgs(size_t argc) in InitArgs()
83 size_t realArgc = GetArgc(); in InitArgs()
91 bool NFuncArg::InitArgs(size_t minArgc, size_t maxArgc) in InitArgs()
94 size_t realArgc = GetArgc(); in InitArgs()
Dn_func_arg.h65 bool InitArgs(size_t argc);
67 bool InitArgs(size_t minArgc, size_t maxArgc);
69 size_t GetArgc() const;
73 napi_value operator[](size_t idx) const;
75 napi_value GetArg(size_t argPos) const;
81 size_t argc_ = 0;
87 void SetArgc(size_t argc);
/base/update/updater/services/diffpatch/diff/
Dblocks_diff.h55 … const BlockBuffer &oldInfo, std::vector<uint8_t> &patchData, size_t offset, size_t &patchSize);
57 const BlockBuffer &oldInfo, std::fstream &patchFile, size_t &patchSize);
59 int32_t MakePatch(const BlockBuffer &newInfo, const BlockBuffer &oldInfo, size_t &patchSize);
62 virtual std::unique_ptr<DeflateAdapter> CreateBZip2Adapter(size_t patchOffset) = 0;
64 int64_t diffDataSize, int64_t newSize, size_t &headerLen) = 0;
68 int32_t WriteControlData(const std::vector<ControlData> controlDatas, size_t &patchSize);
69 int32_t WriteDiffData(const std::vector<ControlData> controlDatas, size_t &patchSize);
70 int32_t WriteExtraData(const std::vector<ControlData> controlDatas, size_t &patchSize);
88 …BlocksStreamDiff(std::fstream &stream, size_t offset) : BlocksDiff(), stream_(stream), offset_(off… in BlocksStreamDiff()
92 std::unique_ptr<DeflateAdapter> CreateBZip2Adapter(size_t patchOffset) override;
[all …]
/base/update/updater/services/diffpatch/
Ddiffpatch.h124 static constexpr size_t GZIP_HEADER_LEN = 10;
125 static constexpr size_t VERSION = 2;
134 static constexpr size_t GZIP_FOOTER_LEN = 8;
135 static constexpr size_t LZ4_HEADER_LEN = 4;
136 static constexpr size_t IGMDIFF_LIMIT_UNIT = 10240;
150 size_t srcStart = 0;
151 size_t srcLength = 0;
152 size_t patchOffset = 0;
153 size_t expandedLen = 0;
154 size_t targetSize = 0;
[all …]
/base/startup/hvb/libhvb/include/
Dhvb_sysdeps.h28 int hvb_memcmp(const void *src1, const void *src2, size_t n);
30 int hvb_strncmp(const char *s1, const char *s2, size_t n);
31 void *hvb_memcpy(void *dest, const void *src, size_t n);
32 void *hvb_memset(void *dest, const int c, size_t n);
35 void *hvb_malloc_(size_t size);
38 size_t hvb_strlen(const char *str);

12345678910>>...75