/foundation/arkui/ace_engine/frameworks/core/common/stylus/ |
H A D | stylus_detector_mgr.h | 78 static int32_t SetText(int32_t nodeId, void* data, RefPtr<TaskExecutor> taskScheduler, 82 static int32_t DeleteText(int32_t nodeId, void* data, RefPtr<TaskExecutor> taskScheduler); 83 static int32_t ChoiceText(int32_t nodeId, void* data, RefPtr<TaskExecutor> taskScheduler); 84 static int32_t InsertSpace(int32_t nodeId, void* data, RefPtr<TaskExecutor> taskScheduler); 85 static int32_t MoveCursor(int32_t nodeId, void* data, RefPtr<TaskExecutor> taskScheduler); 90 const CommandType& command, void* data, std::shared_ptr<IAceStylusCallback> callback) override;
|
/foundation/arkui/ace_engine/adapter/ohos/services/uiservice/test/unittest/phone/ui_mgr_service_test/ |
H A D | ui_mgr_service_test.cpp | 151 const std::string data = "data"; in HWTEST_F() local 153 EXPECT_EQ(testVal, uiMgrService->Push(want, name, jsonPath, data, extraData)); in HWTEST_F() 171 const std::string data = "data"; in HWTEST_F() local 172 EXPECT_EQ(testVal, uiMgrService->Request(want, name, data)); in HWTEST_F() 190 const std::string data = "data"; in HWTEST_F() local 192 EXPECT_EQ(testVal, uiMgrService->ReturnRequest(want, source, data, extraData)); in HWTEST_F()
|
/foundation/arkui/ace_engine/adapter/ohos/services/uiservice/test/unittest/phone/ui_service_mgr_client_test/ |
H A D | ui_service_mgr_client_test.cpp | 112 const std::string data = "data"; in HWTEST_F() local 114 MockUIServiceMgrClient::GetInstance()->Push(want, name, jsonPath, data, extraData); in HWTEST_F() 137 const std::string data = "data"; in HWTEST_F() local 138 MockUIServiceMgrClient::GetInstance()->Request(want, name, data); in HWTEST_F() 161 const std::string data = "data"; in HWTEST_F() local 163 MockUIServiceMgrClient::GetInstance()->ReturnRequest(want, source, data, extraData); in HWTEST_F()
|
/foundation/arkui/ace_engine/adapter/ohos/services/uiservice/test/unittest/phone/ui_service_mgr_proxy_test/ |
H A D | ui_service_mgr_proxy_test.cpp | 118 const std::string data = "data"; in HWTEST_F() local 120 const int retVal = uiServiceManagerProxy->Push(want, name, jsonPath, data, extraData); in HWTEST_F() 144 const std::string data = "data"; in HWTEST_F() local 145 const int retVal = uiServiceManagerProxy->Request(want, name, data); in HWTEST_F() 169 const std::string data = "data"; in HWTEST_F() local 171 const int retVal = uiServiceManagerProxy->ReturnRequest(want, source, data, extraData); in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | common_event_info.cpp | 36 const char* JSON_KEY_DATA = "data"; 50 CONTAINER_SECURITY_VERIFY(parcel, typeSize, &data); in ReadFromParcel() 52 data.emplace_back(Str16ToStr8(parcel.ReadString16())); in ReadFromParcel() 86 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, data.size()); in Marshalling() 87 for (auto &dataSingle : data) { in Marshalling() 108 {JSON_KEY_DATA, commonEvent.data}, in to_json() 147 commonEvent.data, in from_json()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/ |
H A D | profile_list.h | 96 * @param data Used to set profile value. 99 void SetProfile(const BTTransport transport, const std::string &name, const T &data) in SetProfile() argument 103 profiles_[transport][name] = data; in SetProfile() 153 * @param data Get profile pointer. 158 bool Find(const BTTransport transport, const std::string &name, T &data) in Find() argument 166 data = profiles_[transport][name]; in Find() 177 * @param data Get profile pointer. 182 bool Find(const std::string &name, T &data) in Find() argument 189 data = profiles_[its->first][name]; in Find()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresmgr_fuzzer/ |
H A D | bundleresmgr_fuzzer.cpp | 32 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 35 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI() 53 std::string targetBundleName(data, size); in DoSomethingInterestingWithMyAPI() 93 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 95 /* Run your code on data */ in LLVMFuzzerTestOneInput() 96 if (data == nullptr) { in LLVMFuzzerTestOneInput() 115 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/benchmarks/benchmark_dcl/ |
H A D | skia_recording.cpp | 156 auto data = picture->serialize(&procs); in EndCapture() local 165 SavePicture(data, fileName); in EndCapture() 174 void SkiaRecording::SavePicture(const sk_sp<SkData>& data, const std::string& filename) in SavePicture() argument 178 stream.write(data->data(), data->size()); in SavePicture()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | list.h | 29 * @brief Defines a linked list template class, which implements the data structure of bidirectional linked list and 44 * @brief Stores linked list data and contains pointers to the previous node and the next node. 46 * @param T Indicates the type of the data stored in the linked list. 59 * @brief Defines a linked list template class, which implements the data structure of bidirectional linked list and 63 * @param T Indicates the type of the data stored in the linked list. 91 * @brief Obtains the head node data of a linked list. 93 * @return Returns the head node data. 103 * @brief Obtains the tail node data of a linked list. 105 * @return Returns the tail node data. 115 * @brief Inserts data a 121 PushBack(T data) PushBack() argument 144 PushFront(T data) PushFront() argument 213 Insert(ListNode<T>* node, T data) Insert() argument [all...] |
/foundation/multimedia/av_codec/test/fuzztest/demuxer_fuzzer/ |
H A D | demuxer_fuzzer.cpp | 60 const char *file = "/data/test/media/01_video_audio.mp4"; in RunNormalDemuxer() 111 const char *file = "/data/test/media/01_video_audio.mp4"; in RunNormalDemuxerApi11() 156 bool DoSomethingInterestingWithMyAPI(const uint8_t *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 164 int32_t fd = *reinterpret_cast<const int32_t *>(data); in DoSomethingInterestingWithMyAPI() 165 int64_t offset = *reinterpret_cast<const int64_t *>(data); in DoSomethingInterestingWithMyAPI() 166 int64_t fileSize = *reinterpret_cast<const int64_t *>(data); in DoSomethingInterestingWithMyAPI() 176 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 178 /* Run your code on data */ in LLVMFuzzerTestOneInput() 179 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/multimedia/av_session/frameworks/common/src/ |
H A D | avcall_meta_data.cpp | 29 AVCallMetaData *AVCallMetaData::Unmarshalling(Parcel& data) in Unmarshalling() argument 32 CHECK_AND_RETURN_RET_LOG(data.ReadString(mask) && mask.length() == AVCALL_META_KEY_MAX, nullptr, "mask not valid"); in Unmarshalling() 38 if (!data.ReadString(result->name_) || in Unmarshalling() 39 !data.ReadString(result->phoneNumber_) || in Unmarshalling() 40 !data.ReadString(result->mediaImageUri_)) { in Unmarshalling() 43 result->mediaImage_ = std::shared_ptr<AVSessionPixelMap>(data.ReadParcelable<AVSessionPixelMap>()); in Unmarshalling()
|
/foundation/multimedia/ringtone_library/services/ringtone_restore/src/ |
H A D | ringtone_restore.cpp | 109 string srcPath = backupPath_ + it->data; in CheckRestoreFileInfos() 113 it->restorePath = it->data; in CheckRestoreFileInfos() 163 string fileName = RingtoneFileUtils::GetFileNameFromPath(info.data); in OnPrepare() 168 string baseName = RingtoneFileUtils::GetBaseNameFromPath(info.data); in OnPrepare() 173 string extensionName = RingtoneFileUtils::GetExtensionFromPath(info.data); in OnPrepare() 176 string srcPath = backupPath_ + info.data; in OnPrepare()
|
/foundation/communication/dsoftbus/core/connection/ble/include/ |
H A D | softbus_conn_ble_connection.h | 107 // ble connection may be devide the data to several packet, so we should assemble them together 143 void (*onDataReceived)(uint32_t connectionId, bool isConnCharacteristic, uint8_t *data, uint32_t dataLen); 152 void (*onClientDataReceived)(uint32_t connectionId, bool isConnCharacteristic, uint8_t *data, uint32_t dataLen); 161 void (*onServerDataReceived)(uint32_t connectionId, bool isConnCharacteristic, uint8_t *data, uint32_t dataLen); 169 int32_t (*bleClientSend)(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, int32_t module); 173 int32_t (*bleServerSend)(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, int32_t module); 190 int32_t ConnBleSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, int32_t module);
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/ |
H A D | trans_auth_message.c | 131 char *data = cJSON_PrintUnformatted(obj); in TransAuthChannelErrorPack() local 133 if (data == NULL) { in TransAuthChannelErrorPack() 137 if (memcpy_s(cJsonStr, maxLen, data, strlen(data)) != EOK) { in TransAuthChannelErrorPack() 138 cJSON_free(data); in TransAuthChannelErrorPack() 141 cJSON_free(data); in TransAuthChannelErrorPack()
|
/foundation/communication/dsoftbus/tests/core/connection/ble/mock/ |
H A D | connection_ble_manager_mock.cpp | 72 int ConnBlePostBytesInner(uint32_t connectionId, uint8_t *data, uint32_t dataLen, int32_t pid, int32_t flag, in ConnBlePostBytesInner() argument 76 connectionId, data, dataLen, pid, flag, module, seq, postBytesFinishAction); in ConnBlePostBytesInner() 155 int32_t ConnGattClientSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, int32_t module) in ConnGattClientSend() argument 157 return GetConnectionBleInterface()->ConnGattClientSend(connection, data, dataLen, module); in ConnGattClientSend() 175 int32_t ConnGattServerSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, int32_t module) in ConnGattServerSend() argument 177 return GetConnectionBleInterface()->ConnGattServerSend(connection, data, dataLen, module); in ConnGattServerSend()
|
/foundation/communication/dsoftbus/interfaces/kits/transport/ |
H A D | session.h | 24 * to support service publishing and data transmission. 33 * @brief Declares unified data transmission interfaces. 35 * This file provides data transmission capabilities, including creating and removing a session server, 36 * opening and closing sessions, receiving data, and querying basic session information. \n 37 * You can use the interfaces to transmit data across the nearby devices that are discovered and networked. 275 * When a session is opened or closed, or there is data to process, the related callback is invoked. 308 * @brief Called when data is received. 310 * This callback is invoked to notify that data is received. 313 * @param data Indicates the pointer to the data receive [all...] |
/foundation/communication/netstack/frameworks/js/napi/socket/async_context/src/ |
H A D | udp_send_context.cpp | 110 std::string data = NapiUtils::GetStringFromValueUtf8(GetEnv(), jsData); in GetData() local 111 if (data.empty()) { in GetData() 112 NETSTACK_LOGI("string data is empty"); in GetData() 115 options.SetData(data); in GetData() 121 void *data = NapiUtils::GetInfoFromArrayBufferValue(GetEnv(), jsData, &length); in GetData() local 122 if (data == nullptr) { in GetData() 123 NETSTACK_LOGI("arraybuffer data is empty"); in GetData() 126 options.SetData(data, length); in GetData()
|
/foundation/communication/nfc/interfaces/inner_api/common/ |
H A D | ndef_message.h | 25 // record data, see NFC Data Exchange Format (NDEF) Technical Specification.
135 * @param data raw bytes to parse ndef message
138 static std::shared_ptr<NdefMessage> GetNdefMessage(const std::string& data);
152 * @Description Create a ndef record with uri data.
153 * @param uriString uri data for new a ndef record
158 * @Description Create a ndef record with text data.
159 * @param text text data for new a ndef record
165 * @Description Create a ndef record with mime data.
166 * @param mimeType type of mime data for new a ndef record
167 * @param mimeData mime data fo [all...] |
/foundation/communication/netmanager_ext/frameworks/native/netfirewallclient/src/ |
H A D | netfirewall_common.cpp | 127 uint32_t size = data.size();
in Marshalling() 134 for (auto value : data) {
in Marshalling() 172 ptr->data.push_back(*value);
in Unmarshalling() 189 uint32_t size = data.size();
in Marshalling() 196 for (auto value : data) {
in Marshalling() 234 ptr->data.push_back(*value);
in Unmarshalling()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ |
H A D | wifi_p2p_dns_sd_service_response.cpp | 22 P2pServiceStatus status, int tranId, const std::vector<unsigned char> &data) in WifiP2pDnsSdServiceResponse() 23 : WifiP2pServiceResponse(P2pServicerProtocolType::SERVICE_TYPE_BONJOUR, status, tranId, data), in WifiP2pDnsSdServiceResponse() 101 std::vector<unsigned char> data = GetData(); in ParseData() local 102 if (data.empty()) { in ParseData() 106 strData.insert(strData.begin(), data.begin(), data.end()); in ParseData() 21 WifiP2pDnsSdServiceResponse( P2pServiceStatus status, int tranId, const std::vector<unsigned char> &data) WifiP2pDnsSdServiceResponse() argument
|
/foundation/communication/nfc/frameworks/js/napi/tag/ |
H A D | nfc_napi_tag_isodep.cpp | 95 static void NativeIsExtendedApduSupported(napi_env env, void *data) in NativeIsExtendedApduSupported() argument 97 auto context = static_cast<CallBackContext<bool, NapiIsoDepTag> *>(data); in NativeIsExtendedApduSupported() 115 static void IsExtendedApduSupportedCallback(napi_env env, napi_status status, void *data) in IsExtendedApduSupportedCallback() argument 117 auto context = static_cast<CallBackContext<bool, NapiIsoDepTag> *>(data); in IsExtendedApduSupportedCallback() 134 void *data = nullptr; in IsExtendedApduSupported() local 137 napi_get_cb_info(env, info, ¶msCount, params, &thisVar, &data); in IsExtendedApduSupported()
|
/foundation/distributedhardware/device_manager/test/commonfuzztest/authenticatedeviceserviceimpl_fuzzer/ |
H A D | authenticate_device_service_impl_fuzzer.cpp | 110 void AuthenticateDeviceServiceImplFuzzTest(const uint8_t* data, size_t size) in AuthenticateDeviceServiceImplFuzzTest() argument 112 if ((data == nullptr) || (size == 0) || (size < sizeof(int32_t))) { in AuthenticateDeviceServiceImplFuzzTest() 116 std::string str(reinterpret_cast<const char*>(data), size); in AuthenticateDeviceServiceImplFuzzTest() 117 int32_t bindLevel = *(reinterpret_cast<const int32_t*>(data)); in AuthenticateDeviceServiceImplFuzzTest() 166 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 168 /* Run your code on data */ in LLVMFuzzerTestOneInput() 169 OHOS::DistributedHardware::AuthenticateDeviceServiceImplFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/device_manager/test/commonfuzztest/dmauthmanager_fuzzer/ |
H A D | dm_auth_manager_fuzzer.cpp | 59 void DmAuthManagerFuzzTest(const uint8_t* data, size_t size) in DmAuthManagerFuzzTest() argument 61 if ((data == nullptr) || (size < sizeof(int32_t))) { in DmAuthManagerFuzzTest() 64 std::string str(reinterpret_cast<const char*>(data), size); in DmAuthManagerFuzzTest() 65 int32_t bindLevel = *(reinterpret_cast<const int32_t*>(data)); in DmAuthManagerFuzzTest() 114 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 116 /* Run your code on data */ in LLVMFuzzerTestOneInput() 117 OHOS::DistributedHardware::DmAuthManagerFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | values_bucket.cpp | 145 MessageParcel *data = static_cast<MessageParcel *>(&parcel); in Marshalling() local 146 if (data == nullptr) { in Marshalling() 149 return ITypesUtil::Marshal(*data, values_); in Marshalling() 154 MessageParcel *data = static_cast<MessageParcel *>(&parcel); in Unmarshalling() local 155 if (data == nullptr) { in Unmarshalling() 159 ITypesUtil::Unmarshal(*data, bucket.values_); in Unmarshalling()
|
/foundation/distributedhardware/device_manager/test/unittest/ |
H A D | UTTest_ipc_client_stub.cpp | 73 MessageParcel data; in HWTEST_F() local 80 int32_t result = instance->OnRemoteRequest(code, data, reply, option); in HWTEST_F() 104 MessageParcel data; in HWTEST_F() local 111 int ret = instance->OnRemoteRequest(code, data, reply, option); in HWTEST_F() 123 MessageParcel data; in HWTEST_F() local 131 int ret = instance->OnRemoteRequest(code, data, reply, option); in HWTEST_F()
|