/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/src/appmgr/ |
H A D | render_scheduler_host.cpp | 27 int RenderSchedulerHost::OnRemoteRequest(uint32_t code, MessageParcel &data, in OnRemoteRequest() argument 33 std::u16string remoteDescriptor = data.ReadInterfaceToken(); in OnRemoteRequest() 40 return HandleNotifyBrowserFd(data, reply); in OnRemoteRequest() 44 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest() 47 int RenderSchedulerHost::HandleNotifyBrowserFd(MessageParcel &data, MessageParcel &reply) in HandleNotifyBrowserFd() argument 49 int32_t ipcFd = data.ReadFileDescriptor(); in HandleNotifyBrowserFd() 50 int32_t sharedFd = data.ReadFileDescriptor(); in HandleNotifyBrowserFd() 51 int32_t crashFd = data.ReadFileDescriptor(); in HandleNotifyBrowserFd() 52 sptr<IRemoteObject> browser = data.ReadRemoteObject(); in HandleNotifyBrowserFd()
|
/foundation/ability/ability_runtime/interfaces/inner_api/ability_manager/include/ |
H A D | window_manager_service_handler_stub.h | 35 int OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override; 39 int NotifyWindowTransitionInner(MessageParcel &data, MessageParcel &reply); 40 int GetFocusWindowInner(MessageParcel &data, MessageParcel &reply); 41 int StartingWindowCold(MessageParcel &data, MessageParcel &reply); 42 int StartingWindowHot(MessageParcel &data, MessageParcel &reply); 43 int CancelStartingWindowInner(MessageParcel &data, MessageParcel &reply); 44 int NotifyAnimationAbilityDiedInner(MessageParcel &data, MessageParcel &reply); 45 int MoveMissionsToForegroundInner(MessageParcel &data, MessageParcel &reply); 46 int MoveMissionsToBackgroundInner(MessageParcel &data, MessageParcel &reply);
|
/foundation/ability/ability_runtime/interfaces/inner_api/uri_permission/include/ |
H A D | uri_permission_manager_stub.h | 33 int OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override; 38 int HandleRevokeUriPermission(MessageParcel &data, MessageParcel &reply); 39 int HandleRevokeAllUriPermission(MessageParcel &data, MessageParcel &reply); 40 int HandleGrantUriPermission(MessageParcel &data, MessageParcel &reply); 41 int32_t HandleGrantUriPermissionPrivileged(MessageParcel &data, MessageParcel &reply); 42 int32_t HandleCheckUriAuthorization(MessageParcel &data, MessageParcel &reply); 43 int HandleBatchGrantUriPermission(MessageParcel &data, MessageParcel &reply); 44 int HandleRevokeUriPermissionManually(MessageParcel &data, MessageParcel &reply); 45 int HandleVerifyUriPermission(MessageParcel &data, MessageParcel &reply);
|
/foundation/communication/bluetooth/frameworks/inner/ipc/src/ |
H A D | bluetooth_a2dp_sink_observer_stub.cpp | 34 uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) in OnRemoteRequest() 38 if (BluetoothA2dpSinkObserverStub::GetDescriptor() != data.ReadInterfaceToken()) { in OnRemoteRequest() 47 errCode = OnConnectionStateChangedInner(data, reply); in OnRemoteRequest() 51 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest() 57 ErrCode BluetoothA2dpSinkObserverStub::OnConnectionStateChangedInner(MessageParcel &data, MessageParcel &reply) in OnConnectionStateChangedInner() argument 59 if (BluetoothA2dpSinkObserverStub::GetDescriptor() != data.ReadInterfaceToken()) { in OnConnectionStateChangedInner() 63 std::string addr = data.ReadString(); in OnConnectionStateChangedInner() 64 int state = data.ReadInt32(); in OnConnectionStateChangedInner() 65 int cause = data.ReadInt32(); in OnConnectionStateChangedInner() 33 OnRemoteRequest( uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) OnRemoteRequest() argument
|
/foundation/bundlemanager/distributed_bundle_framework/services/dbms/include/ |
H A D | distributed_bms_host.h | 32 uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override; 34 int HandleGetRemoteAbilityInfo(Parcel &data, Parcel &reply); 35 int HandleGetRemoteAbilityInfos(Parcel &data, Parcel &reply); 36 int HandleGetAbilityInfo(Parcel &data, Parcel &reply); 37 int HandleGetAbilityInfos(Parcel &data, Parcel &reply); 38 int HandleGetDistributedBundleInfo(Parcel &data, Parcel &reply); 39 int HandleGetDistributedBundleName(Parcel &data, Parcel &reply); 41 bool GetParcelableInfos(Parcel &data, std::vector<T> &parcelableInfos); 43 bool WriteParcelableVector(std::vector<T> &parcelableVector, Parcel &data);
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/textblobbuilder_fuzzer/ |
H A D | text_blob_builder_fuzzer.cpp | 29 bool TextBlobBuilderFuzzTest001(const uint8_t* data, size_t size) in TextBlobBuilderFuzzTest001() argument 31 if (data == nullptr) { in TextBlobBuilderFuzzTest001() 35 g_data = data; in TextBlobBuilderFuzzTest001() 47 bool TextBlobBuilderFuzzTest002(const uint8_t* data, size_t size) in TextBlobBuilderFuzzTest002() argument 49 if (data == nullptr) { in TextBlobBuilderFuzzTest002() 53 g_data = data; in TextBlobBuilderFuzzTest002() 68 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 70 /* Run your code on data */ in LLVMFuzzerTestOneInput() 71 OHOS::Rosen::Drawing::TextBlobBuilderFuzzTest001(data, size); in LLVMFuzzerTestOneInput() 72 OHOS::Rosen::Drawing::TextBlobBuilderFuzzTest002(data, siz in LLVMFuzzerTestOneInput() [all...] |
/foundation/multimedia/drm_framework/services/drm_service/server/src/ |
H A D | mediakeysystem_service_callback_stub.cpp | 23 int32_t MediaKeySystemServiceCallbackStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, in OnRemoteRequest() argument 28 if (data.ReadInterfaceToken() != GetDescriptor()) { in OnRemoteRequest() 34 ret = MediaKeySystemServiceCallbackStub::HandleSendEvent(data); in OnRemoteRequest() 38 ret = IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest() 44 int32_t MediaKeySystemServiceCallbackStub::HandleSendEvent(MessageParcel &data) in HandleSendEvent() argument 47 int32_t event = data.ReadInt32(); in HandleSendEvent() 48 int32_t extra = data.ReadInt32(); in HandleSendEvent() 49 uint32_t dataSize = data.ReadUint32(); in HandleSendEvent() 51 "The size of event data is too large."); in HandleSendEvent() 54 customizedData.emplace_back(data in HandleSendEvent() [all...] |
/foundation/multimedia/player_framework/services/services/screen_capture/server/ |
H A D | ui_extension_ability_connection.cpp | 33 MessageParcel data; in OnAbilityConnectDone() local 36 data.WriteInt32(SIGNAL_NUM); in OnAbilityConnectDone() 37 data.WriteString16(u"bundleName"); in OnAbilityConnectDone() 38 data.WriteString16(Str8ToStr16(GetScreenCaptureSystemParam() in OnAbilityConnectDone() 40 data.WriteString16(u"abilityName"); in OnAbilityConnectDone() 41 data.WriteString16(Str8ToStr16(GetScreenCaptureSystemParam() in OnAbilityConnectDone() 43 data.WriteString16(u"parameters"); in OnAbilityConnectDone() 44 data.WriteString16(Str8ToStr16(commandStr_)); in OnAbilityConnectDone() 46 remoteObject->SendRequest(IAbilityConnection::ON_ABILITY_CONNECT_DONE, data, reply, option); in OnAbilityConnectDone()
|
/foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/ |
H A D | system_ability_status_change_stub.h | 28 int32_t OnRemoteRequest(uint32_t code, MessageParcel& data, MessageParcel& reply, MessageOption& option) override; 34 static int32_t LocalOnAddSystemAbility(SystemAbilityStatusChangeStub* stub, MessageParcel& data, in LocalOnAddSystemAbility() argument 37 return stub->OnAddSystemAbilityInner(data, reply); in LocalOnAddSystemAbility() 39 static int32_t LocalOnRemoveSystemAbility(SystemAbilityStatusChangeStub* stub, MessageParcel& data, in LocalOnRemoveSystemAbility() argument 42 return stub->OnRemoveSystemAbilityInner(data, reply); in LocalOnRemoveSystemAbility() 44 int32_t OnAddSystemAbilityInner(MessageParcel& data, MessageParcel& reply); 45 int32_t OnRemoveSystemAbilityInner(MessageParcel& data, MessageParcel& reply); 47 static bool EnforceInterceToken(MessageParcel& data); 50 int32_t (*)(SystemAbilityStatusChangeStub* stub, MessageParcel& data, MessageParcel& reply);
|
H A D | system_process_status_change_stub.h | 28 int32_t OnRemoteRequest(uint32_t code, MessageParcel& data, MessageParcel& reply, MessageOption& option) override; 31 MessageParcel& data, MessageParcel& reply) in LocalSystemProcessStarted() 33 return stub->OnSystemProcessStartedInner(data, reply); in LocalSystemProcessStarted() 36 MessageParcel& data, MessageParcel& reply) in LocalSystemProcessStopped() 38 return stub->OnSystemProcessStoppedInner(data, reply); in LocalSystemProcessStopped() 40 int32_t OnSystemProcessStartedInner(MessageParcel& data, MessageParcel& reply); 41 int32_t OnSystemProcessStoppedInner(MessageParcel& data, MessageParcel& reply); 42 static bool EnforceInterceToken(MessageParcel& data); 45 int32_t (*)(SystemProcessStatusChangeStub* stub, MessageParcel& data, MessageParcel& reply); 30 LocalSystemProcessStarted(SystemProcessStatusChangeStub *stub, MessageParcel& data, MessageParcel& reply) LocalSystemProcessStarted() argument 35 LocalSystemProcessStopped(SystemProcessStatusChangeStub *stub, MessageParcel& data, MessageParcel& reply) LocalSystemProcessStopped() argument
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/streamdepacketizer_fuzzer/ |
H A D | streamdepacketizer_fuzzer.cpp | 29 void DepacketizeHeaderTest(const uint8_t* data, size_t size) in DepacketizeHeaderTest() argument 31 if ((data == nullptr) || (size < Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN)) { in DepacketizeHeaderTest() 35 if (memcpy_s(tmp, sizeof(tmp) - 1, data, sizeof(tmp) - 1) != EOK) { in DepacketizeHeaderTest() 43 void DepacketizeBufferTest(const uint8_t* data, size_t size) in DepacketizeBufferTest() argument 45 if ((data == nullptr) || (size < Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN)) { in DepacketizeBufferTest() 49 if (memcpy_s(tmp, sizeof(tmp) - 1, data, sizeof(tmp) - 1) != EOK) { in DepacketizeBufferTest() 59 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 61 /* Run your code on data */ in LLVMFuzzerTestOneInput() 62 OHOS::DepacketizeHeaderTest(data, size); in LLVMFuzzerTestOneInput() 63 OHOS::DepacketizeBufferTest(data, siz in LLVMFuzzerTestOneInput() [all...] |
/foundation/communication/dsoftbus/tests/core/adapter/fuzztest/softbusrsacrypto_fuzzer/ |
H A D | softbusrsacrypto_fuzzer.cpp | 28 bool SoftBusRsaEncryptFuzzTest(const uint8_t *data, size_t size) in SoftBusRsaEncryptFuzzTest() argument 32 PublicKey peerPublicKey = { data, size }; in SoftBusRsaEncryptFuzzTest() 34 if (SoftBusRsaEncrypt(data, size, &peerPublicKey, &encryptedData, &encryptedDataLen) != SOFTBUS_OK) { in SoftBusRsaEncryptFuzzTest() 42 bool SoftBusRsaDecryptFuzzTest(const uint8_t *data, size_t size) in SoftBusRsaDecryptFuzzTest() argument 47 if (SoftBusRsaDecrypt(data, size, &decryptedData, &decryptedDataLen) != SOFTBUS_OK) { in SoftBusRsaDecryptFuzzTest() 57 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 59 if (data == nullptr || size == 0) { in LLVMFuzzerTestOneInput() 63 OHOS::SoftBusRsaEncryptFuzzTest(data, size); in LLVMFuzzerTestOneInput() 64 OHOS::SoftBusRsaDecryptFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/activemetanode_fuzzer/ |
H A D | activemetanode_fuzzer.cpp | 27 void GenMetaNodeConfig(const uint8_t *data, size_t size) in GenMetaNodeConfig() argument 29 memcpy_s(meta.udid, UDID_BUF_LEN, data, size); in GenMetaNodeConfig() 30 memcpy_s(meta.deviceName, DEVICE_NAME_BUF_LEN, data, size); in GenMetaNodeConfig() 33 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 35 if (data == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI() 38 GenMetaNodeConfig(data, size); in DoSomethingInterestingWithMyAPI() 49 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in DoSomethingInterestingWithMyAPI() 65 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 67 /* Run your code on data */ in LLVMFuzzerTestOneInput() 68 OHOS::DoSomethingInterestingWithMyAPI(data, siz in LLVMFuzzerTestOneInput() [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sourcefuzztest/callbackonnotifyunregresult_fuzzer/ |
H A D | callbackonnotifyunregresult_fuzzer.cpp | 24 void CallbackOnNotifyRegResultFuzzTest(const uint8_t* data, size_t size) in CallbackOnNotifyRegResultFuzzTest() argument 26 if ((data == nullptr) || (size < sizeof(int32_t))) { in CallbackOnNotifyRegResultFuzzTest() 29 std::string devId(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyRegResultFuzzTest() 30 std::string dhId(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyRegResultFuzzTest() 31 std::string reqId(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyRegResultFuzzTest() 32 int32_t status = *(reinterpret_cast<const int32_t*>(data)); in CallbackOnNotifyRegResultFuzzTest() 33 std::string dataStr(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyRegResultFuzzTest() 47 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 49 /* Run your code on data */ in LLVMFuzzerTestOneInput() 50 OHOS::DistributedHardware::CallbackOnNotifyRegResultFuzzTest(data, siz in LLVMFuzzerTestOneInput() [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sourcefuzztest/callbackonnotifyregresult_fuzzer/ |
H A D | callbackonnotifyregresult_fuzzer.cpp | 24 void CallbackOnNotifyRegResultFuzzTest(const uint8_t* data, size_t size) in CallbackOnNotifyRegResultFuzzTest() argument 26 if ((data == nullptr) || (size < sizeof(int32_t))) { in CallbackOnNotifyRegResultFuzzTest() 29 std::string devId(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyRegResultFuzzTest() 30 std::string dhId(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyRegResultFuzzTest() 31 std::string reqId(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyRegResultFuzzTest() 32 int32_t status = *(reinterpret_cast<const int32_t*>(data)); in CallbackOnNotifyRegResultFuzzTest() 33 std::string dataStr(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyRegResultFuzzTest() 47 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 49 /* Run your code on data */ in LLVMFuzzerTestOneInput() 50 OHOS::DistributedHardware::CallbackOnNotifyRegResultFuzzTest(data, siz in LLVMFuzzerTestOneInput() [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/callbackonnotifyresourceinfo_fuzzer/ |
H A D | callbackonnotifyresourceinfo_fuzzer.cpp | 32 void CallbackOnNotifyResourceInfoFuzzTest(const uint8_t* data, size_t size) in CallbackOnNotifyResourceInfoFuzzTest() argument 34 if ((data == nullptr) || (size < sizeof(int32_t))) { in CallbackOnNotifyResourceInfoFuzzTest() 37 ResourceEventType type = resourceEventType[data[0] % DC_RESOURCE_SIZE]; in CallbackOnNotifyResourceInfoFuzzTest() 38 std::string subtype(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyResourceInfoFuzzTest() 39 std::string networkId(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyResourceInfoFuzzTest() 40 bool isSensitive = data[0] % DC_RESOURCE_VALUE; in CallbackOnNotifyResourceInfoFuzzTest() 41 bool isSameAccout = data[0] % DC_RESOURCE_VALUE; in CallbackOnNotifyResourceInfoFuzzTest() 55 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 57 /* Run your code on data */ in LLVMFuzzerTestOneInput() 58 OHOS::DistributedHardware::CallbackOnNotifyResourceInfoFuzzTest(data, siz in LLVMFuzzerTestOneInput() [all...] |
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfo_fuzzer/ |
H A D | sinkipccallbackonnotifyresourceinfo_fuzzer.cpp | 30 void SinkIpcCallbackOnNotifyResourceInfoFuzzTest(const uint8_t* data, size_t size) in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() argument 32 if ((data == nullptr) || (size < (sizeof(int32_t)))) { in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() 36 ResourceEventType type = resourceEventType[data[0] % DC_RESOURCE_SIZE]; in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() 37 std::string subtype(reinterpret_cast<const char*>(data), size); in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() 38 std::string networkId(reinterpret_cast<const char*>(data), size); in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() 39 bool isSensitive = data[0] % DC_RESOURCE_VALUE; in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() 40 bool isSameAccout = data[0] % DC_RESOURCE_VALUE; in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() 49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 51 /* Run your code on data */ in LLVMFuzzerTestOneInput() 52 OHOS::DistributedHardware::SinkIpcCallbackOnNotifyResourceInfoFuzzTest(data, siz in LLVMFuzzerTestOneInput() [all...] |
/foundation/distributedhardware/device_manager/test/servicesfuzztest/devicepublish_fuzzer/ |
H A D | device_publish_fuzzer.cpp | 39 void DevicePublishFuzzTest(const uint8_t* data, size_t size) in DevicePublishFuzzTest() argument 41 if ((data == nullptr) || (size < sizeof(int32_t))) { in DevicePublishFuzzTest() 44 std::string bundleName(reinterpret_cast<const char*>(data), size); in DevicePublishFuzzTest() 47 publishInfo.publishId = *(reinterpret_cast<const int32_t*>(data)); in DevicePublishFuzzTest() 48 publishInfo.mode = *(reinterpret_cast<const DmDiscoverMode*>(data)); in DevicePublishFuzzTest() 49 publishInfo.freq = *(reinterpret_cast<const DmExchangeFreq*>(data)); in DevicePublishFuzzTest() 51 int32_t publishId = *(reinterpret_cast<const int32_t*>(data)); in DevicePublishFuzzTest() 62 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 64 /* Run your code on data */ in LLVMFuzzerTestOneInput() 65 OHOS::DistributedHardware::DevicePublishFuzzTest(data, siz in LLVMFuzzerTestOneInput() [all...] |
/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner/src/ |
H A D | cloud_sync_callback_stub.cpp | 25 opToInterfaceMap_[SERVICE_CMD_ON_SYNC_STATE_CHANGED] = [this](MessageParcel &data, MessageParcel &reply) { in CloudSyncCallbackStub() 26 return this->HandleOnSyncStateChanged(data, reply); in CloudSyncCallbackStub() 31 MessageParcel &data, in OnRemoteRequest() 35 if (data.ReadInterfaceToken() != GetDescriptor()) { in OnRemoteRequest() 41 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest() 44 return memberFunc(data, reply); in OnRemoteRequest() 47 int32_t CloudSyncCallbackStub::HandleOnSyncStateChanged(MessageParcel &data, MessageParcel &reply) in HandleOnSyncStateChanged() argument 49 CloudSyncState state = CloudSyncState(data.ReadInt32()); in HandleOnSyncStateChanged() 50 ErrorType error = ErrorType(data.ReadInt32()); in HandleOnSyncStateChanged() 30 OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) OnRemoteRequest() argument
|
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonnotifyregresult_fuzzer/ |
H A D | callbackonnotifyregresult_fuzzer.cpp | 29 void OnNotifyRegResultFuzzTest(const uint8_t* data, size_t size) in OnNotifyRegResultFuzzTest() argument 31 if ((data == nullptr) || (size < sizeof(int32_t))) { in OnNotifyRegResultFuzzTest() 35 std::string devId(reinterpret_cast<const char*>(data), size); in OnNotifyRegResultFuzzTest() 36 std::string dhId(reinterpret_cast<const char*>(data), size); in OnNotifyRegResultFuzzTest() 37 std::string reqId(reinterpret_cast<const char*>(data), size); in OnNotifyRegResultFuzzTest() 38 int32_t status = *(reinterpret_cast<const int32_t*>(data)); in OnNotifyRegResultFuzzTest() 39 std::string dataStr(reinterpret_cast<const char*>(data), size); in OnNotifyRegResultFuzzTest() 50 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 52 /* Run your code on data */ in LLVMFuzzerTestOneInput() 53 OHOS::DistributedHardware::OnNotifyRegResultFuzzTest(data, siz in LLVMFuzzerTestOneInput() [all...] |
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonnotifyunregresult_fuzzer/ |
H A D | callbackonnotifyunregresult_fuzzer.cpp | 29 void OnNotifyUnregResultFuzzTest(const uint8_t* data, size_t size) in OnNotifyUnregResultFuzzTest() argument 31 if ((data == nullptr) || (size < sizeof(int32_t))) { in OnNotifyUnregResultFuzzTest() 35 std::string devId(reinterpret_cast<const char*>(data), size); in OnNotifyUnregResultFuzzTest() 36 std::string dhId(reinterpret_cast<const char*>(data), size); in OnNotifyUnregResultFuzzTest() 37 std::string reqId(reinterpret_cast<const char*>(data), size); in OnNotifyUnregResultFuzzTest() 38 int32_t status = *(reinterpret_cast<const int32_t*>(data)); in OnNotifyUnregResultFuzzTest() 39 std::string dataStr(reinterpret_cast<const char*>(data), size); in OnNotifyUnregResultFuzzTest() 51 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 53 /* Run your code on data */ in LLVMFuzzerTestOneInput() 54 OHOS::DistributedHardware::OnNotifyUnregResultFuzzTest(data, siz in LLVMFuzzerTestOneInput() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | performanceCaculate.h | 20 #define DRAWING_PERFORMANCE_TEST_JS_RETURN(data) \ 22 return (data); \ 24 #define DRAWING_PERFORMANCE_TEST_NAP_RETURN(data) \ 26 return (data); \ 28 #define DRAWING_PERFORMANCE_TEST_SKIA_RETURN(data) \ 30 return (data); \ 39 #define DRAWING_PERFORMANCE_TEST_JS_RETURN(data) 40 #define DRAWING_PERFORMANCE_TEST_NAP_RETURN(data) 41 #define DRAWING_PERFORMANCE_TEST_SKIA_RETURN(data)
|
/kernel/linux/linux-5.10/drivers/base/firmware_loader/ |
H A D | fallback_platform.c | 13 const u8 *data; in firmware_fallback_platform() local 24 rc = efi_get_embedded_fw(fw_priv->fw_name, &data, &size); in firmware_fallback_platform() 28 if (fw_priv->data && size > fw_priv->allocated_size) in firmware_fallback_platform() 31 rc = security_kernel_post_load_data((u8 *)data, size, LOADING_FIRMWARE, in firmware_fallback_platform() 36 if (!fw_priv->data) in firmware_fallback_platform() 37 fw_priv->data = vmalloc(size); in firmware_fallback_platform() 38 if (!fw_priv->data) in firmware_fallback_platform() 41 memcpy(fw_priv->data, data, size); in firmware_fallback_platform()
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh3/ |
H A D | serial-sh7720.c | 10 unsigned short data; in sh7720_sci_init_pins() local 16 data = __raw_readw(PORT_PTCR); in sh7720_sci_init_pins() 17 __raw_writew((data & 0xfc03), PORT_PTCR); in sh7720_sci_init_pins() 20 data = __raw_readw(PORT_PVCR); in sh7720_sci_init_pins() 21 __raw_writew((data & 0xfc03), PORT_PVCR); in sh7720_sci_init_pins() 26 data = __raw_readw(PORT_PTCR); in sh7720_sci_init_pins() 27 __raw_writew((data & 0xffc3), PORT_PTCR); in sh7720_sci_init_pins() 30 data = __raw_readw(PORT_PVCR); in sh7720_sci_init_pins() 31 __raw_writew((data & 0xffc3), PORT_PVCR); in sh7720_sci_init_pins()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-fpu.c | 9 int ptrace_get_fpr(struct task_struct *child, int index, unsigned long *data) in ptrace_get_fpr() argument 23 *data = ((u32 *)child->thread.fp_state.fpr)[fpidx]; in ptrace_get_fpr() 25 memcpy(data, &child->thread.TS_FPR(fpidx), sizeof(long)); in ptrace_get_fpr() 27 *data = child->thread.fp_state.fpscr; in ptrace_get_fpr() 29 *data = 0; in ptrace_get_fpr() 35 int ptrace_put_fpr(struct task_struct *child, int index, unsigned long data) in ptrace_put_fpr() argument 49 ((u32 *)child->thread.fp_state.fpr)[fpidx] = data; in ptrace_put_fpr() 51 memcpy(&child->thread.TS_FPR(fpidx), &data, sizeof(long)); in ptrace_put_fpr() 53 child->thread.fp_state.fpscr = data; in ptrace_put_fpr()
|