Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 3096) sorted by relevance

12345678910>>...124

/base/telephony/cellular_call/services/manager/src/
Dcellular_call_stub.cpp167 int32_t size = data.ReadInt32(); in OnDialInner() local
168 size = ((size > MAX_SIZE) ? 0 : size); in OnDialInner()
169 if (size <= 0) { in OnDialInner()
186 int32_t size = data.ReadInt32(); in OnHangUpInner() local
187 size = ((size > MAX_SIZE) ? 0 : size); in OnHangUpInner()
188 if (size <= 0) { in OnHangUpInner()
206 int32_t size = data.ReadInt32(); in OnRejectInner() local
207 size = ((size > MAX_SIZE) ? 0 : size); in OnRejectInner()
208 if (size <= 0) { in OnRejectInner()
225 int32_t size = data.ReadInt32(); in OnAnswerInner() local
[all …]
/base/telephony/state_registry/test/fuzztest/telephonystateregistry_fuzzer/
Dtelephonystateregistry_fuzzer.cpp56 void OnRemoteRequest(const uint8_t *data, size_t size) in OnRemoteRequest() argument
65 dataMessageParcel.WriteBuffer(data, size); in OnRemoteRequest()
67 uint32_t code = static_cast<uint32_t>(size); in OnRemoteRequest()
74 void CreateGsmCellInfo(std::unique_ptr<GsmCellInformation> &cell, const uint8_t *data, size_t size) in CreateGsmCellInfo() argument
79 cell->lac_ = static_cast<int32_t>(size); in CreateGsmCellInfo()
80 cell->bsic_ = static_cast<int32_t>(size); in CreateGsmCellInfo()
81 cell->arfcn_ = static_cast<int32_t>(size); in CreateGsmCellInfo()
82 std::string mcc(reinterpret_cast<const char *>(data), size); in CreateGsmCellInfo()
84 std::string mnc(reinterpret_cast<const char *>(data), size); in CreateGsmCellInfo()
86 cell->cellId_ = static_cast<int32_t>(size); in CreateGsmCellInfo()
[all …]
/base/global/resource_management/test/fuzztest/resmgr_fuzzer/
Dresmgr_fuzzer.cpp29 bool GetStringByIdFuzzTest(const char* data, size_t size, ResourceManager *rm) in GetStringByIdFuzzTest() argument
32 if (size > 0) { in GetStringByIdFuzzTest()
40 bool GetStringArrayByIdFuzzTest(const char* data, size_t size, ResourceManager *rm) in GetStringArrayByIdFuzzTest() argument
43 if (size > 0) { in GetStringArrayByIdFuzzTest()
51 bool GetIntegerByIdFuzzTest(const char* data, size_t size, ResourceManager *rm) in GetIntegerByIdFuzzTest() argument
54 if (size > 0) { in GetIntegerByIdFuzzTest()
62 bool GetIntegerByNameFuzzTest(const char* data, size_t size, ResourceManager *rm) in GetIntegerByNameFuzzTest() argument
65 if (size > 0) { in GetIntegerByNameFuzzTest()
66 std::string testName(reinterpret_cast<const char*>(data), size); in GetIntegerByNameFuzzTest()
73 bool GetBooleanByIdFuzzTest(const char* data, size_t size, ResourceManager *rm) in GetBooleanByIdFuzzTest() argument
[all …]
/base/telephony/cellular_call/test/fuzztest/registercallmanagercallback_fuzzer/
Dregistercallmanagercallback_fuzzer.cpp47 void ReportCallsInfo(const uint8_t *data, size_t size) in ReportCallsInfo() argument
55 callsReportInfo.slotId = static_cast<int32_t>(size % SLOT_NUM); in ReportCallsInfo()
57 std::string number(reinterpret_cast<const char *>(data), size); in ReportCallsInfo()
63 TelCallState callState = static_cast<TelCallState>(size % CALL_STATE_NUM); in ReportCallsInfo()
66 info.eventId = static_cast<RequestResultEventId>(size % EVENT_ID_NUM); in ReportCallsInfo()
68 response.classCw = static_cast<int32_t>(size); in ReportCallsInfo()
69 response.result = static_cast<int32_t>(size % BOOL_NUM); in ReportCallsInfo()
70 response.status = static_cast<int32_t>(size % BOOL_NUM); in ReportCallsInfo()
71 int32_t result = static_cast<int32_t>(size % BOOL_NUM); in ReportCallsInfo()
73 callRestrictionResponse.classCw = static_cast<int32_t>(size); in ReportCallsInfo()
[all …]
/base/request/request/test/fuzztest/downloaduploadmanager_fuzzer/
Ddownloaduploadmanager_fuzzer.cpp36 uint32_t ConvertToUint32(const uint8_t *ptr, size_t size) in ConvertToUint32() argument
38 if (ptr == nullptr || (size < sizeof(uint32_t))) { in ConvertToUint32()
64 void CreateRequestFuzzTest(const uint8_t *data, size_t size) in CreateRequestFuzzTest() argument
67 auto tid = static_cast<int32_t>(size); in CreateRequestFuzzTest()
77 void StartRequestFuzzTest(const uint8_t *data, size_t size) in StartRequestFuzzTest() argument
79 std::string tid(reinterpret_cast<const char *>(data), size); in StartRequestFuzzTest()
84 void StopRequestFuzzTest(const uint8_t *data, size_t size) in StopRequestFuzzTest() argument
86 std::string tid(reinterpret_cast<const char *>(data), size); in StopRequestFuzzTest()
91 void ShowRequestFuzzTest(const uint8_t *data, size_t size) in ShowRequestFuzzTest() argument
94 std::string tid(reinterpret_cast<const char *>(data), size); in ShowRequestFuzzTest()
[all …]
/base/telephony/call_manager/test/fuzztest/bluetoothdialcall_fuzzer/
Dbluetoothdialcall_fuzzer.cpp29 void AnswerCall(const uint8_t *data, size_t size) in AnswerCall() argument
36 dataParcel.WriteBuffer(data, size); in AnswerCall()
42 void RejectCall(const uint8_t *data, size_t size) in RejectCall() argument
49 dataParcel.WriteBuffer(data, size); in RejectCall()
55 void HangUpCall(const uint8_t *data, size_t size) in HangUpCall() argument
62 dataParcel.WriteBuffer(data, size); in HangUpCall()
68 void GetBtCallState(const uint8_t *data, size_t size) in GetBtCallState() argument
75 dataParcel.WriteBuffer(data, size); in GetBtCallState()
81 void HoldCall(const uint8_t *data, size_t size) in HoldCall() argument
88 dataParcel.WriteBuffer(data, size); in HoldCall()
[all …]
/base/telephony/cellular_call/test/fuzztest/setimsfeaturevalue_fuzzer/
Dsetimsfeaturevalue_fuzzer.cpp48 void OnRemoteRequest(const uint8_t *data, size_t size) in OnRemoteRequest() argument
58 int32_t maxSize = static_cast<int32_t>(size) + OFFSET_SIZE; in OnRemoteRequest()
60 dataMessageParcel.WriteBuffer(data, size); in OnRemoteRequest()
62 uint32_t code = static_cast<uint32_t>(size); in OnRemoteRequest()
68 void SetDomainPreferenceMode(const uint8_t *data, size_t size) in SetDomainPreferenceMode() argument
74 int32_t mode = static_cast<int32_t>(size); in SetDomainPreferenceMode()
77 dataMessageParcel.WriteBuffer(data, size); in SetDomainPreferenceMode()
83 void GetDomainPreferenceMode(const uint8_t *data, size_t size) in GetDomainPreferenceMode() argument
90 dataMessageParcel.WriteBuffer(data, size); in GetDomainPreferenceMode()
96 void SetImsSwitchStatus(const uint8_t *data, size_t size) in SetImsSwitchStatus() argument
[all …]
/base/telephony/cellular_call/test/fuzztest/setpreviewwindow_fuzzer/
Dsetpreviewwindow_fuzzer.cpp47 void OnRemoteRequest(const uint8_t *data, size_t size) in OnRemoteRequest() argument
57 int32_t maxSize = static_cast<int32_t>(size) + OFFSET_SIZE; in OnRemoteRequest()
59 dataMessageParcel.WriteBuffer(data, size); in OnRemoteRequest()
61 uint32_t code = static_cast<uint32_t>(size); in OnRemoteRequest()
67 void SetPreviewWindow(const uint8_t *data, size_t size) in SetPreviewWindow() argument
73 int32_t maxSize = static_cast<int32_t>(size); in SetPreviewWindow()
74 int32_t slotId = static_cast<int32_t>(size % BOOL_NUM); in SetPreviewWindow()
75 int32_t index = static_cast<int32_t>(size); in SetPreviewWindow()
76 std::string surfaceId(reinterpret_cast<const char *>(data), size); in SetPreviewWindow()
105 void SetDisplayWindow(const uint8_t *data, size_t size) in SetDisplayWindow() argument
[all …]
/base/telephony/cellular_data/test/fuzztest/getcellulardatastate_fuzzer/
Dgetcellulardatastate_fuzzer.cpp43 void OnRemoteRequest(const uint8_t *data, size_t size) in OnRemoteRequest() argument
53 dataMessageParcel.WriteBuffer(data, size); in OnRemoteRequest()
55 uint32_t code = static_cast<uint32_t>(size); in OnRemoteRequest()
61 void EnableCellularData(const uint8_t *data, size_t size) in EnableCellularData() argument
68 dataMessageParcel.WriteBuffer(data, size); in EnableCellularData()
74 void GetCellularDataState(const uint8_t *data, size_t size) in GetCellularDataState() argument
81 dataMessageParcel.WriteBuffer(data, size); in GetCellularDataState()
87 void IsCellularDataEnabled(const uint8_t *data, size_t size) in IsCellularDataEnabled() argument
94 dataMessageParcel.WriteBuffer(data, size); in IsCellularDataEnabled()
100 void IsCellularDataRoamingEnabled(const uint8_t *data, size_t size) in IsCellularDataRoamingEnabled() argument
[all …]
/base/telephony/call_manager/test/fuzztest/call_fuzzer/
Dcall_fuzzer.cpp47 void CSCallFunc(const uint8_t *data, size_t size) in CSCallFunc() argument
54 dialParaInfo.dialType = static_cast<DialType>(size % DIAL_TYPE); in CSCallFunc()
55 dialParaInfo.callType = static_cast<CallType>(size % CALL_TYPE_NUM); in CSCallFunc()
56 dialParaInfo.videoState = static_cast<VideoStateType>(size % VIDIO_TYPE_NUM); in CSCallFunc()
57 dialParaInfo.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in CSCallFunc()
59 int32_t videoState = static_cast<int32_t>(size % VIDIO_TYPE_NUM); in CSCallFunc()
60 int32_t mute = static_cast<int32_t>(size % BOOL_NUM); in CSCallFunc()
61 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in CSCallFunc()
62 TelCallState nextState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in CSCallFunc()
63 …TelConferenceState telConferenceState = static_cast<TelConferenceState>(size % TEL_CONFERENCE_STAT… in CSCallFunc()
[all …]
/base/telephony/cellular_call/test/fuzztest/getcallrestriction_fuzzer/
Dgetcallrestriction_fuzzer.cpp45 void OnRemoteRequest(const uint8_t *data, size_t size) in OnRemoteRequest() argument
55 int32_t maxSize = static_cast<int32_t>(size) + OFFSET_SIZE; in OnRemoteRequest()
57 dataMessageParcel.WriteBuffer(data, size); in OnRemoteRequest()
59 uint32_t code = static_cast<uint32_t>(size); in OnRemoteRequest()
65 void UnRegisterCallManagerCallBack(const uint8_t *data, size_t size) in UnRegisterCallManagerCallBack() argument
71 int32_t maxSize = static_cast<int32_t>(size); in UnRegisterCallManagerCallBack()
74 dataMessageParcel.WriteBuffer(data, size); in UnRegisterCallManagerCallBack()
80 void IsEmergencyPhoneNumber(const uint8_t *data, size_t size) in IsEmergencyPhoneNumber() argument
86 int32_t errorCode = static_cast<int32_t>(size); in IsEmergencyPhoneNumber()
87 std::string phoneNum(reinterpret_cast<const char *>(data), size); in IsEmergencyPhoneNumber()
[all …]
/base/telephony/sms_mms/test/fuzztest/gsmsmsmessage_fuzzer/
Dgsmsmsmessage_fuzzer.cpp44 void CreateMessageTest(const uint8_t *data, size_t size) in CreateMessageTest() argument
49 std::string pdu(reinterpret_cast<const char *>(data), size); in CreateMessageTest()
61 void CalcReplyEncodeAddress(const uint8_t *data, size_t size) in CalcReplyEncodeAddress() argument
67 std::string replyAddr(reinterpret_cast<const char *>(data), size); in CalcReplyEncodeAddress()
73 times.format = static_cast<SmsTimeFormat>(size); in CalcReplyEncodeAddress()
74 times.time.absolute.day = static_cast<uint8_t>(size); in CalcReplyEncodeAddress()
75 times.time.absolute.hour = static_cast<uint8_t>(size); in CalcReplyEncodeAddress()
76 times.time.absolute.minute = static_cast<uint8_t>(size); in CalcReplyEncodeAddress()
77 times.time.absolute.month = static_cast<uint8_t>(size); in CalcReplyEncodeAddress()
78 times.time.absolute.second = static_cast<uint8_t>(size); in CalcReplyEncodeAddress()
[all …]
/base/telephony/sms_mms/test/fuzztest/cdmasmsdecode_fuzzer/
Dcdmasmsdecode_fuzzer.cpp30 void TeleserviceIdDecode(const uint8_t *data, size_t size) in TeleserviceIdDecode() argument
38 std::string strValue(reinterpret_cast<const char *>(data), size); in TeleserviceIdDecode()
44 ss1 << static_cast<uint8_t>(size); in TeleserviceIdDecode()
45 for (uint8_t i = 0; i < size; i++) { in TeleserviceIdDecode()
52 void ServiceCategoryDecode(const uint8_t *data, size_t size) in ServiceCategoryDecode() argument
60 std::string strValue(reinterpret_cast<const char *>(data), size); in ServiceCategoryDecode()
66 ss1 << static_cast<uint8_t>(size); in ServiceCategoryDecode()
67 for (uint8_t i = 0; i < size; i++) { in ServiceCategoryDecode()
74 void BearerReplyDecode(const uint8_t *data, size_t size) in BearerReplyDecode() argument
82 std::string strValue(reinterpret_cast<const char *>(data), size); in BearerReplyDecode()
[all …]
/base/telephony/sms_mms/test/fuzztest/cdmasmsencode_fuzzer/
Dcdmasmsencode_fuzzer.cpp28 void TeleserviceIdEncode(const uint8_t *data, size_t size) in TeleserviceIdEncode() argument
31 if (memcpy_s(&value, sizeof(value), data, size) != EOK) { in TeleserviceIdEncode()
43 void ServiceCategoryEncode(const uint8_t *data, size_t size) in ServiceCategoryEncode() argument
46 if (memcpy_s(&value, sizeof(value), data, size) != EOK) { in ServiceCategoryEncode()
58 void BearerReplyEncode(const uint8_t *data, size_t size) in BearerReplyEncode() argument
61 if (memcpy_s(&value, sizeof(value), data, size) != EOK) { in BearerReplyEncode()
73 void CauseCodesEncode(const uint8_t *data, size_t size) in CauseCodesEncode() argument
76 if (memcpy_s(&value, sizeof(value), data, size) != EOK) { in CauseCodesEncode()
88 void AddressParameterEncode(const uint8_t *data, size_t size) in AddressParameterEncode() argument
91 if (memcpy_s(&value, sizeof(value), data, size) != EOK) { in AddressParameterEncode()
[all …]
/base/telephony/call_manager/test/fuzztest/dialcall_fuzzer/
Ddialcall_fuzzer.cpp34 void OnRegisterVoipCallManagerCallback(const uint8_t *data, size_t size) in OnRegisterVoipCallManagerCallback() argument
49 void OnRemoteRequest(const uint8_t *data, size_t size) in OnRemoteRequest() argument
60 uint32_t code = static_cast<uint32_t>(size); in OnRemoteRequest()
66 int32_t OnRegisterCallBack(const uint8_t *data, size_t size) in OnRegisterCallBack() argument
81 bool HasCall(const uint8_t *data, size_t size) in HasCall() argument
87 dataParcel.WriteBuffer(data, size); in HasCall()
93 int32_t GetCallState(const uint8_t *data, size_t size) in GetCallState() argument
99 dataParcel.WriteBuffer(data, size); in GetCallState()
105 int32_t GetCallWaiting(const uint8_t *data, size_t size) in GetCallWaiting() argument
110 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in GetCallWaiting()
[all …]
/base/telephony/core_service/test/fuzztest/getsimeons_fuzzer/
Dgetsimeons_fuzzer.cpp54 void IsNrSupported(const uint8_t *data, size_t size) in IsNrSupported() argument
60 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in IsNrSupported()
63 dataMessageParcel.WriteBuffer(data, size); in IsNrSupported()
69 void GetPsRadioTech(const uint8_t *data, size_t size) in GetPsRadioTech() argument
75 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in GetPsRadioTech()
78 dataMessageParcel.WriteBuffer(data, size); in GetPsRadioTech()
84 void GetCsRadioTech(const uint8_t *data, size_t size) in GetCsRadioTech() argument
90 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in GetCsRadioTech()
93 dataMessageParcel.WriteBuffer(data, size); in GetCsRadioTech()
99 void GetNrOptionMode(const uint8_t *data, size_t size) in GetNrOptionMode() argument
[all …]
/base/telephony/core_service/test/fuzztest/addiccdiallingnumbers_fuzzer/
Daddiccdiallingnumbers_fuzzer.cpp55 void OnRemoteRequest(const uint8_t *data, size_t size) in OnRemoteRequest() argument
61 if (size < SIZE_LIMIT) { in OnRemoteRequest()
69 dataMessageParcel.WriteBuffer(data, size); in OnRemoteRequest()
80 void GetSimGid1(const uint8_t *data, size_t size) in GetSimGid1() argument
86 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in GetSimGid1()
89 dataMessageParcel.WriteBuffer(data, size); in GetSimGid1()
95 void GetSimGid2(const uint8_t *data, size_t size) in GetSimGid2() argument
101 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in GetSimGid2()
104 dataMessageParcel.WriteBuffer(data, size); in GetSimGid2()
110 void GetSimAccountInfo(const uint8_t *data, size_t size) in GetSimAccountInfo() argument
[all …]
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_ipc_check.c34 if ((keyAlias->size > MAX_PROCESS_SIZE) || in HksCheckIpcGenerateKey()
35 … ((sizeof(keyAlias->size) + ALIGN_SIZE(keyAlias->size) + ALIGN_SIZE(paramSetIn->paramSetSize) + in HksCheckIpcGenerateKey()
50 if ((keyAlias->size > MAX_PROCESS_SIZE) || (key->size > MAX_PROCESS_SIZE)) { in HksCheckIpcImportKey()
53 if ((sizeof(keyAlias->size) + ALIGN_SIZE(keyAlias->size) + ALIGN_SIZE(paramSet->paramSetSize) + in HksCheckIpcImportKey()
54 sizeof(key->size) + ALIGN_SIZE(key->size) > MAX_PROCESS_SIZE)) { in HksCheckIpcImportKey()
66 if ((keyAlias->size > MAX_PROCESS_SIZE) || (wrappingKeyAlias->size > MAX_PROCESS_SIZE) || in HksCheckIpcImportWrappedKey()
67 (wrappedKeyData->size > MAX_PROCESS_SIZE)) { in HksCheckIpcImportWrappedKey()
71 if ((sizeof(keyAlias->size) + ALIGN_SIZE(keyAlias->size) + in HksCheckIpcImportWrappedKey()
72 …sizeof(wrappingKeyAlias->size) + ALIGN_SIZE(wrappingKeyAlias->size) + ALIGN_SIZE(paramSet->paramSe… in HksCheckIpcImportWrappedKey()
73 sizeof(wrappedKeyData->size) + ALIGN_SIZE(wrappedKeyData->size)) > MAX_PROCESS_SIZE) { in HksCheckIpcImportWrappedKey()
[all …]
/base/telephony/state_registry/test/fuzztest/telephonyobserver_fuzzer/
Dtelephonyobserver_fuzzer.cpp49 void OnRemoteRequest(const uint8_t *data, size_t size) in OnRemoteRequest() argument
58 dataMessageParcel.WriteBuffer(data, size); in OnRemoteRequest()
60 uint32_t code = static_cast<uint32_t>(size); in OnRemoteRequest()
66 void CallStateUpdatedInner(const uint8_t *data, size_t size) in CallStateUpdatedInner() argument
71 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in CallStateUpdatedInner()
72 int32_t callState = static_cast<int32_t>(size); in CallStateUpdatedInner()
73 std::string phoneNumber(reinterpret_cast<const char *>(data), size); in CallStateUpdatedInner()
83 void SignalInfoUpdatedInner(const uint8_t *data, size_t size) in SignalInfoUpdatedInner() argument
88 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in SignalInfoUpdatedInner()
96 void NetworkStateUpdatedInner(const uint8_t *data, size_t size) in NetworkStateUpdatedInner() argument
[all …]
/base/location/test/fuzztest/locator/locatorabilitystub_fuzzer/
Dlocatorabilitystub_fuzzer.cpp33 char* ParseData(const uint8_t* data, size_t size) in ParseData() argument
39 if (size > MAX_MEM_SIZE) { in ParseData()
43 char* ch = (char *)malloc(size + 1); in ParseData()
48 (void)memset_s(ch, size + 1, 0x00, size + 1); in ParseData()
49 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData()
57 bool LocatorAbilityStub001FuzzTest(const char* data, size_t size) in LocatorAbilityStub001FuzzTest() argument
61 requestParcel.WriteBuffer(data, size); in LocatorAbilityStub001FuzzTest()
74 bool LocatorAbilityStub002FuzzTest(const char* data, size_t size) in LocatorAbilityStub002FuzzTest() argument
78 requestParcel.WriteBuffer(data, size); in LocatorAbilityStub002FuzzTest()
91 bool LocatorAbilityStub003FuzzTest(const char* data, size_t size) in LocatorAbilityStub003FuzzTest() argument
[all …]
/base/security/huks/test/unittest/huks_standard_test/storage_multithread_test/src/
Dhks_storage_test.cpp38 .size = TEST_PROCESS_NAME.size() + 1, in TearDown()
42 .size = TEST_USER_ID.size() + 1, in TearDown()
46 .size = TEST_KEY_ALIAS.size() + 1, in TearDown()
62 .size = TEST_PROCESS_NAME.size() + 1, in PrepareBlob()
66 .size = TEST_USER_ID.size() + 1, in PrepareBlob()
70 .size = TEST_KEY_ALIAS.size() + 1, in PrepareBlob()
74 .size = TEST_BLOB_SIZE, in PrepareBlob()
91 .size = TEST_PROCESS_NAME.size() + 1,
95 .size = TEST_USER_ID.size() + 1,
99 .size = TEST_BLOB_SIZE,
[all …]
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/
Ddcm_asn1.c30 uint32_t len = tlv->size; in BuildTlvHeader()
55 header->size = hptr - header->data; in BuildTlvHeader()
62 while ((value.size > 1) && (value.data[0] == 0)) { in Asn1InsertValue()
64 value.size--; in Asn1InsertValue()
72 uint32_t outSize = header.size + value.size; in Asn1InsertValue()
73 if (buf->size < outSize) { in Asn1InsertValue()
74 …HKS_LOG_E("output buffer too small: %" LOG_PUBLIC "u. expected%" LOG_PUBLIC "u", buf->size, outSiz… in Asn1InsertValue()
78 … if (memmove_s(buf->data + header.size, buf->size - header.size, value.data, value.size) != EOK) { in Asn1InsertValue()
82 (void)memcpy_s(buf->data, buf->size, header.data, header.size); in Asn1InsertValue()
84 buf->size -= outSize; in Asn1InsertValue()
[all …]
/base/telephony/core_service/test/fuzztest/updateiccdiallingnumbers_fuzzer/
Dupdateiccdiallingnumbers_fuzzer.cpp54 void GetOpKey(const uint8_t *data, size_t size) in GetOpKey() argument
60 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in GetOpKey()
63 dataMessageParcel.WriteBuffer(data, size); in GetOpKey()
69 void GetOpKeyExt(const uint8_t *data, size_t size) in GetOpKeyExt() argument
75 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in GetOpKeyExt()
79 dataMessageParcel.WriteBuffer(data, size); in GetOpKeyExt()
85 void GetOpName(const uint8_t *data, size_t size) in GetOpName() argument
91 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in GetOpName()
95 dataMessageParcel.WriteBuffer(data, size); in GetOpName()
101 void SendCallSetupRequestResult(const uint8_t *data, size_t size) in SendCallSetupRequestResult() argument
[all …]
/base/telephony/sms_mms/test/fuzztest/smsrecvitem_fuzzer/
Dsmsrecvitem_fuzzer.cpp39 void DoRecvItemsTest(const uint8_t *data, size_t size, std::shared_ptr<SmsReceiveManager> smsReceiv… in DoRecvItemsTest() argument
48 std::int32_t result = static_cast<int32_t>(size); in DoRecvItemsTest()
59 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in DoRecvItemsTest()
67 std::string strData(reinterpret_cast<const char *>(data), size); in DoRecvItemsTest()
68 …auto indexer = SmsReceiveIndexer(StringUtils::HexToByteVector(strData), size, size, size % SLOT_NU… in DoRecvItemsTest()
69 strData, size, size, size, size % SLOT_NUM, strData); in DoRecvItemsTest()
73 …StringUtils::HexToByteVector(strData), size, size, size % SLOT_NUM, size % SLOT_NUM, strData, strD… in DoRecvItemsTest()
82 reliabilityHandler->GetWapPushUserDataMultipage(pages, dbIndexers, size, userDataRaws); in DoRecvItemsTest()
84 reliabilityHandler->GetSmsUserDataMultipage(pages, dbIndexers, size, userDataRaws); in DoRecvItemsTest()
86 reliabilityHandler->DeleteMessageFormDb(size, size); in DoRecvItemsTest()
[all …]
/base/telephony/call_manager/test/fuzztest/setcalltransferinfo_fuzzer/
Dsetcalltransferinfo_fuzzer.cpp30 void IsImsSwitchEnabled(const uint8_t *data, size_t size) in IsImsSwitchEnabled() argument
36 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in IsImsSwitchEnabled()
39 dataMessageParcel.WriteBuffer(data, size); in IsImsSwitchEnabled()
45 void GetVoNRState(const uint8_t *data, size_t size) in GetVoNRState() argument
52 dataMessageParcel.WriteInt32(static_cast<int32_t>(size % SLOT_NUM)); in GetVoNRState()
53 dataMessageParcel.WriteBuffer(data, size); in GetVoNRState()
59 void GetImsConfig(const uint8_t *data, size_t size) in GetImsConfig() argument
65 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in GetImsConfig()
66 int32_t item = static_cast<int32_t>(size % IMS_CONFIG_ITEM_NUM); in GetImsConfig()
70 dataMessageParcel.WriteBuffer(data, size); in GetImsConfig()
[all …]

12345678910>>...124