/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/ |
H A D | backup_file_utils.cpp | 130 string result = filePath; in ConvertLowQualityPath() local 131 size_t displayNameIndex = result.rfind("/"); in ConvertLowQualityPath() 133 return result; in ConvertLowQualityPath() 135 std::string displayName = result.substr(displayNameIndex + 1); in ConvertLowQualityPath() 140 size_t pos = result.find(relativePath); in ConvertLowQualityPath() 142 return result; in ConvertLowQualityPath() 144 string publicPath = result.substr(0, pos + 1); in ConvertLowQualityPath() 145 result = publicPath + LOW_QUALITY_PATH + displayName; in ConvertLowQualityPath() 146 return result; in ConvertLowQualityPath() 500 int result in GenerateThumbnailsAfterRestore() local [all...] |
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/src/ |
H A D | common.cpp | 55 napi_value result = nullptr; in NapiGetNull() local 56 napi_get_null(env, &result); in NapiGetNull() 57 return result; in NapiGetNull() 535 const napi_env &env, const napi_ref &callbackIn, int32_t errCode, const napi_value &result) in SetCallback() 551 results[1] = result; in SetCallback() 557 const napi_env &env, const AsyncWorkData &info, const napi_value &result) in SetPromise() 560 napi_resolve_deferred(env, info.deferred, result); in SetPromise() 576 return result; in SetPromise() 579 void Common::ReturnCallbackPromise(const napi_env &env, const AsyncWorkData &info, const napi_value &result) in ReturnCallbackPromise() argument 582 SetCallback(env, info.callback, info.errorCode, result); in ReturnCallbackPromise() 534 SetCallback( const napi_env &env, const napi_ref &callbackIn, int32_t errCode, const napi_value &result) SetCallback() argument 556 SetPromise( const napi_env &env, const AsyncWorkData &info, const napi_value &result) SetPromise() argument [all...] |
/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_hotspot_proxy.cpp | 176 ErrCode WifiHotspotProxy::GetHotspotConfig(HotspotConfig &result) in GetHotspotConfig() argument 209 result.SetSsid((readStr != nullptr) ? readStr : ""); in GetHotspotConfig() 210 result.SetSecurityType(static_cast<KeyMgmt>(reply.ReadInt32())); in GetHotspotConfig() 211 result.SetBand(static_cast<BandType>(reply.ReadInt32())); in GetHotspotConfig() 212 result.SetChannel(reply.ReadInt32()); in GetHotspotConfig() 214 result.SetPreSharedKey((readStr != nullptr) ? readStr : ""); in GetHotspotConfig() 215 result.SetMaxConn(reply.ReadInt32()); in GetHotspotConfig() 216 result.SetIpAddress(reply.ReadString()); in GetHotspotConfig() 217 result.SetLeaseTime(reply.ReadInt32()); in GetHotspotConfig() 293 ErrCode WifiHotspotProxy::GetStationList(std::vector<StationInfo> &result) in GetStationList() argument [all...] |
/foundation/distributeddatamgr/data_share/frameworks/native/proxy/src/ |
H A D | data_share_service_proxy.cpp | 84 int32_t result = -1; in InsertEx() local 95 if (!ITypesUtil::Unmarshal(reply, errCode, result)) { in InsertEx() 99 return std::make_pair(errCode, result); in InsertEx() 116 int32_t result = -1; in UpdateEx() local 127 if (!ITypesUtil::Unmarshal(reply, errCode, result)) { in UpdateEx() 131 return std::make_pair(errCode, result); in UpdateEx() 148 int32_t result = -1; in DeleteEx() local 159 if (!ITypesUtil::Unmarshal(reply, errCode, result)) { in DeleteEx() 163 return std::make_pair(errCode, result); in DeleteEx() 186 auto result in Query() local [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/ |
H A D | js_config.cpp | 334 std::map<std::string, StatisticInfos> result; in QueryStatistics() member 370 auto [status, result] = proxy->QueryStatistics(ctxt->accountId, ctxt->bundleName, ctxt->storeId); in QueryStatistics() 373 ctxt->result = std::move(result); in QueryStatistics() 375 auto output = [env, ctxt](napi_value& result) { in QueryStatistics() 376 result = JSUtils::Convert2JSValue(env, ctxt->result); in QueryStatistics() 377 ASSERT_VALUE(ctxt, result != nullptr, napi_generic_failure, "output failed"); in QueryStatistics() 506 auto output = [env, ctxt](napi_value &result) { in QueryLastSyncInfo() 507 result in QueryLastSyncInfo() [all...] |
/foundation/distributedhardware/device_manager/services/implementation/src/dependency/softbus/ |
H A D | softbus_connector.cpp | 412 void SoftbusConnector::OnSoftbusPublishResult(int32_t publishId, PublishResult result) in OnSoftbusPublishResult() argument 414 LOGI("Callback In, publishId: %{public}d, result: %{public}d.", publishId, result); in OnSoftbusPublishResult() 418 iter.second->OnPublishResult(iter.first, publishId, result); in OnSoftbusPublishResult() 422 void SoftbusConnector::OnSoftbusJoinLNNResult(ConnectionAddr *addr, const char *networkId, int32_t result) in OnSoftbusJoinLNNResult() argument 426 LOGD("[SOFTBUS]OnSoftbusJoinLNNResult, result: %{public}d.", result); in OnSoftbusJoinLNNResult() 528 void SoftbusConnector::OnSoftbusDiscoveryResult(int subscribeId, RefreshResult result) in OnSoftbusDiscoveryResult() argument 532 if (result == REFRESH_LNN_SUCCESS) { in OnSoftbusDiscoveryResult() 533 LOGI("[SOFTBUS]start to discovery device successfully with subscribeId: %{public}d, result in OnSoftbusDiscoveryResult() [all...] |
/foundation/distributeddatamgr/udmf/framework/ndkimpl/data/ |
H A D | udmf.cpp | 115 OH_UdmfRecord** result = new (std::nothrow) OH_UdmfRecord* [size] { nullptr };
in CreateUnifiedDataRecordsArray() local 116 if (result == nullptr) {
in CreateUnifiedDataRecordsArray() 120 result[i] = new (std::nothrow) OH_UdmfRecord;
in CreateUnifiedDataRecordsArray() 121 if (result[i] == nullptr) {
in CreateUnifiedDataRecordsArray() 122 DestroyUnifiedRecordArray(result, size);
in CreateUnifiedDataRecordsArray() 125 result[i]->record_ = records[i];
in CreateUnifiedDataRecordsArray() 127 unifiedData->records = result;
in CreateUnifiedDataRecordsArray() 506 auto result = GetValueFromUint8Array(record, typeId, value);
in OH_UdmfRecord_GetGeneralEntry() local 507 if (result != UDMF_E_OK) {
in OH_UdmfRecord_GetGeneralEntry() 508 LOG_ERROR(UDMF_CAPI, "Get value from valueType failed. typeId: %{public}s, result in OH_UdmfRecord_GetGeneralEntry() [all...] |
/foundation/distributeddatamgr/pasteboard/interfaces/cj/src/ |
H A D | pasteboard_ffi.cpp | 389 char **result = new char *[vec.size()]; in VectorToCArrString() local 390 if (result == nullptr) { in VectorToCArrString() 395 result[i] = new char[vec[i].length() + 1]; in VectorToCArrString() 396 if (result[i] == nullptr) { in VectorToCArrString() 399 if (strcpy_s(result[i], vec[i].length() + 1, vec[i].c_str()) != 0) { in VectorToCArrString() 400 delete[] result[i]; in VectorToCArrString() 401 result[i] = nullptr; in VectorToCArrString() 408 delete[] result[j - 1]; in VectorToCArrString() 409 result[j - 1] = nullptr; in VectorToCArrString() 411 delete[] result; in VectorToCArrString() [all...] |
/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/ |
H A D | napi_pastedata_record.cpp | 319 auto output = [exeContext](napi_env env, napi_value *result) -> napi_status { in ConvertToText() 321 napi_create_string_utf8(env, (exeContext->text).c_str(), (exeContext->text).length(), result); in ConvertToText() 355 napi_value result = nullptr; in ToPlainText() local 356 napi_create_string_utf8(env, str.c_str(), NAPI_AUTO_LENGTH, &result); in ToPlainText() 357 return result; in ToPlainText() 413 napi_value result = nullptr; in GetValidTypes() local 414 NAPI_CALL(env, napi_create_array(env, &result)); in GetValidTypes() 418 NAPI_CALL(env, napi_set_element(env, result, i, element)); in GetValidTypes() 420 return result; in GetValidTypes() 456 auto output = [exeContext](napi_env env, napi_value *result) in GetRecordData() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | softbus_channel_adapter.cpp | 106 static void onDevTimeSyncResult(const TimeSyncResultInfo *info, int32_t result)
in onDevTimeSyncResult() argument 108 SoftbusChannelAdapter::GetInstance().OnSoftbusTimeSyncResult(info, result);
in onDevTimeSyncResult() 471 std::string peerDevId, int32_t result)
in OnSoftbusChannelOpened() 473 AVTRANS_LOGI("On softbus channel opened, sessionId: %{public}" PRId32", result: %{public}" PRId32
in OnSoftbusChannelOpened() 474 " peerSessionName: %{public}s", sessionId, result, peerSessionName.c_str());
in OnSoftbusChannelOpened() 481 EventType type = (result == 0) ? EventType::EVENT_CHANNEL_OPENED : EventType::EVENT_CHANNEL_OPEN_FAIL;
in OnSoftbusChannelOpened() 561 void SoftbusChannelAdapter::OnSoftbusTimeSyncResult(const TimeSyncResultInfo *info, int32_t result)
in OnSoftbusTimeSyncResult() argument 563 AVTRANS_LOGI("On softbus channel time sync result:%{public}" PRId32, result);
in OnSoftbusTimeSyncResult() 564 TRUE_RETURN(result in OnSoftbusTimeSyncResult() 470 OnSoftbusChannelOpened(std::string peerSessionName, int32_t sessionId, std::string peerDevId, int32_t result) OnSoftbusChannelOpened() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
H A D | s5h1420.c | 168 int result = 0; in s5h1420_send_master_cmd() local 197 result = -ETIMEDOUT; in s5h1420_send_master_cmd() 203 return result; in s5h1420_send_master_cmd() 214 int result = 0; in s5h1420_recv_slave_reply() local 230 result = -ETIMEDOUT; in s5h1420_recv_slave_reply() 237 result = -EIO; in s5h1420_recv_slave_reply() 244 result = -EOVERFLOW; in s5h1420_recv_slave_reply() 258 return result; in s5h1420_recv_slave_reply() 266 int result = 0; in s5h1420_send_burst() local 291 result in s5h1420_send_burst() [all...] |
/kernel/linux/linux-5.10/drivers/mmc/host/ |
H A D | sdhci-acpi.c | 118 unsigned int fn, u32 *result) in __intel_dsm() 128 *result = obj->integer.value; in __intel_dsm() 132 *result = 0; in __intel_dsm() 133 memcpy(result, obj->buffer.pointer, len); in __intel_dsm() 146 unsigned int fn, u32 *result) in intel_dsm() 151 return __intel_dsm(intel_host, dev, fn, result); in intel_dsm() 181 u32 result = 0; in intel_start_signal_voltage_switch() local 199 err = intel_dsm(intel_host, dev, fn, &result); in intel_start_signal_voltage_switch() 200 pr_debug("%s: %s DSM fn %u error %d result %u\n", in intel_start_signal_voltage_switch() 201 mmc_hostname(mmc), __func__, fn, err, result); in intel_start_signal_voltage_switch() 117 __intel_dsm(struct intel_host *intel_host, struct device *dev, unsigned int fn, u32 *result) __intel_dsm() argument 145 intel_dsm(struct intel_host *intel_host, struct device *dev, unsigned int fn, u32 *result) intel_dsm() argument 1003 u32 result = 0; sdhci_acpi_reset_signal_voltage_if_needed() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/unisys/visorhba/ |
H A D | visorhba_main.c | 255 * and where to stash the result 260 * @result: The location to place the result of the event handle into 264 wait_queue_head_t *event, int *result) in setup_scsitaskmgmt_handles() 271 simple_idr_get(idrtable, result, lock); in setup_scsitaskmgmt_handles() 349 "visorhba: taskmgmt type=%d success; result=0x%x\n", in forward_taskmgmt_command() 383 scsicmd->result = DID_ABORT << 16; in visorhba_abort_handler() 410 scsicmd->result = DID_RESET << 16; in visorhba_device_reset_handler() 439 scsicmd->result = DID_RESET << 16; in visorhba_bus_reset_handler() 689 * @result 262 setup_scsitaskmgmt_handles(struct idr *idrtable, spinlock_t *lock, struct uiscmdrsp *cmdrsp, wait_queue_head_t *event, int *result) setup_scsitaskmgmt_handles() argument 694 complete_taskmgmt_command(struct idr *idrtable, struct uiscmdrsp *cmdrsp, int result) complete_taskmgmt_command() argument [all...] |
/kernel/linux/linux-5.10/drivers/tty/serial/ |
H A D | ifx6x60.c | 1333 int result; in ifx_spi_init() local 1351 result = tty_register_driver(tty_drv); in ifx_spi_init() 1352 if (result) { in ifx_spi_init() 1354 DRVNAME, result); in ifx_spi_init() 1358 result = spi_register_driver(&ifx_spi_driver); in ifx_spi_init() 1359 if (result) { in ifx_spi_init() 1361 DRVNAME, result); in ifx_spi_init() 1365 result = register_reboot_notifier(&ifx_modem_reboot_notifier_block); in ifx_spi_init() 1366 if (result) { in ifx_spi_init() 1368 DRVNAME, result); in ifx_spi_init() [all...] |
/kernel/linux/linux-5.10/include/net/bluetooth/ |
H A D | l2cap.h | 250 __le16 result; member 315 __le16 result; member 402 __le16 result; member 415 __le16 result; member 426 __le16 result; member 439 __le16 result; member 454 /* info result */ 466 __le16 result; member 469 /* Connection Parameters result */ 486 __le16 result; member 510 __le16 result; global() member 525 __le16 result; global() member [all...] |
/kernel/linux/linux-5.10/sound/oss/dmasound/ |
H A D | dmasound_core.c | 987 int val, result; in sq_ioctl() local 1033 result = 0 ; in sq_ioctl() 1035 result = sq_fsync(); in sq_ioctl() 1041 return result ; in sq_ioctl() 1091 result = IOCTL_OUT(arg, format); in sq_ioctl() 1092 if (result < 0) in sq_ioctl() 1093 return result; in sq_ioctl() 1109 result = 0 ; in sq_ioctl() 1113 result = set_queue_frags(&write_sq, nbufs, size) ; in sq_ioctl() 1114 if (result) in sq_ioctl() [all...] |
/kernel/linux/linux-5.10/fs/hmdfs/ |
H A D | inode_remote.c | 176 struct hmdfs_lookup_ret *result = NULL; in hmdfs_lookup_by_con() local 188 result = get_remote_inode_info(con, dentry, in hmdfs_lookup_by_con() 191 return result; in hmdfs_lookup_by_con() 197 result = lookup_remote_dentry(dentry, qstr, in hmdfs_lookup_by_con() 204 !result) in hmdfs_lookup_by_con() 205 result = get_remote_inode_info(con, dentry, 0); in hmdfs_lookup_by_con() 210 result = get_remote_inode_info(con, dentry, 0); in hmdfs_lookup_by_con() 214 return result; in hmdfs_lookup_by_con() 909 struct hmdfs_getattr_ret **result) in hmdfs_remote_getattr() 915 if (dentry->d_sb != conn->sbi->sb || !result) in hmdfs_remote_getattr() 907 hmdfs_remote_getattr(struct hmdfs_peer *conn, struct dentry *dentry, unsigned int lookup_flags, struct hmdfs_getattr_ret **result) hmdfs_remote_getattr() argument [all...] |
/kernel/linux/linux-6.6/drivers/mmc/host/ |
H A D | sdhci-acpi.c | 117 unsigned int fn, u32 *result) in __intel_dsm() 127 *result = obj->integer.value; in __intel_dsm() 131 *result = 0; in __intel_dsm() 132 memcpy(result, obj->buffer.pointer, len); in __intel_dsm() 145 unsigned int fn, u32 *result) in intel_dsm() 150 return __intel_dsm(intel_host, dev, fn, result); in intel_dsm() 180 u32 result = 0; in intel_start_signal_voltage_switch() local 198 err = intel_dsm(intel_host, dev, fn, &result); in intel_start_signal_voltage_switch() 199 pr_debug("%s: %s DSM fn %u error %d result %u\n", in intel_start_signal_voltage_switch() 200 mmc_hostname(mmc), __func__, fn, err, result); in intel_start_signal_voltage_switch() 116 __intel_dsm(struct intel_host *intel_host, struct device *dev, unsigned int fn, u32 *result) __intel_dsm() argument 144 intel_dsm(struct intel_host *intel_host, struct device *dev, unsigned int fn, u32 *result) intel_dsm() argument 954 u32 result = 0; sdhci_acpi_reset_signal_voltage_if_needed() local [all...] |
/kernel/linux/linux-6.6/fs/hmdfs/ |
H A D | inode_remote.c | 176 struct hmdfs_lookup_ret *result = NULL; in hmdfs_lookup_by_con() local 188 result = get_remote_inode_info(con, dentry, in hmdfs_lookup_by_con() 191 return result; in hmdfs_lookup_by_con() 197 result = lookup_remote_dentry(dentry, qstr, in hmdfs_lookup_by_con() 204 !result) in hmdfs_lookup_by_con() 205 result = get_remote_inode_info(con, dentry, 0); in hmdfs_lookup_by_con() 210 result = get_remote_inode_info(con, dentry, 0); in hmdfs_lookup_by_con() 214 return result; in hmdfs_lookup_by_con() 909 struct hmdfs_getattr_ret **result) in hmdfs_remote_getattr() 915 if (dentry->d_sb != conn->sbi->sb || !result) in hmdfs_remote_getattr() 907 hmdfs_remote_getattr(struct hmdfs_peer *conn, struct dentry *dentry, unsigned int lookup_flags, struct hmdfs_getattr_ret **result) hmdfs_remote_getattr() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | scsi_ioctl.c | 70 int result; in ioctl_internal_command() local 79 result = scsi_execute_cmd(sdev, cmd, REQ_OP_DRV_IN, NULL, 0, timeout, in ioctl_internal_command() 83 "Ioctl returned 0x%x\n", result)); in ioctl_internal_command() 85 if (result < 0) in ioctl_internal_command() 106 result = 0; /* This is no longer considered an error */ in ioctl_internal_command() 113 result); in ioctl_internal_command() 121 return result; in ioctl_internal_command() 381 hdr->status = scmd->result & 0xff; in scsi_complete_sghdr_rq() 382 hdr->masked_status = sg_status_byte(scmd->result); in scsi_complete_sghdr_rq() 384 hdr->host_status = host_byte(scmd->result); in scsi_complete_sghdr_rq() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-ecc.c | 221 struct ecc_point *result, in kmb_ecc_point_mult() 286 /* Read result. */ in kmb_ecc_point_mult() 287 ocs_ecc_read_cx_out(ecc_dev, result->x, nbytes); in kmb_ecc_point_mult() 288 ocs_ecc_read_cy_out(ecc_dev, result->y, nbytes); in kmb_ecc_point_mult() 583 struct ecc_point *pk, *result; in kmb_ecc_do_shared_secret() local 617 result = ecc_alloc_point(pk->ndigits); in kmb_ecc_do_shared_secret() 618 if (!result) { in kmb_ecc_do_shared_secret() 624 rc = kmb_ecc_point_mult(ecc_dev, result, pk, tctx->private_key, curve); in kmb_ecc_do_shared_secret() 628 if (ecc_point_is_zero(result)) { in kmb_ecc_do_shared_secret() 634 ecc_swap_digits(result in kmb_ecc_do_shared_secret() 220 kmb_ecc_point_mult(struct ocs_ecc_dev *ecc_dev, struct ecc_point *result, const struct ecc_point *point, u64 *scalar, const struct ecc_curve *curve) kmb_ecc_point_mult() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/ |
H A D | s5h1420.c | 168 int result = 0; in s5h1420_send_master_cmd() local 197 result = -ETIMEDOUT; in s5h1420_send_master_cmd() 203 return result; in s5h1420_send_master_cmd() 214 int result = 0; in s5h1420_recv_slave_reply() local 230 result = -ETIMEDOUT; in s5h1420_recv_slave_reply() 237 result = -EIO; in s5h1420_recv_slave_reply() 244 result = -EOVERFLOW; in s5h1420_recv_slave_reply() 258 return result; in s5h1420_recv_slave_reply() 266 int result = 0; in s5h1420_send_burst() local 291 result in s5h1420_send_burst() [all...] |
/kernel/linux/linux-6.6/sound/oss/dmasound/ |
H A D | dmasound_core.c | 987 int val, result; in sq_ioctl() local 1030 result = 0 ; in sq_ioctl() 1032 result = sq_fsync(); in sq_ioctl() 1038 return result ; in sq_ioctl() 1087 result = IOCTL_OUT(arg, format); in sq_ioctl() 1088 if (result < 0) in sq_ioctl() 1089 return result; in sq_ioctl() 1105 result = 0 ; in sq_ioctl() 1109 result = set_queue_frags(&write_sq, nbufs, size) ; in sq_ioctl() 1110 if (result) in sq_ioctl() [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | msfmrgts.cpp | 97 //Apply pattern with param and print the result in Test4074764() 112 //Apply pattern without param and print the result in Test4074764() 134 errln("Formatted with arguments > substitution failed. result = " + tempBuffer); in Test4074764() 759 UnicodeString result; in Test4118594() local 761 result = mf->format( oldobjs, 1, result, pos, status ); in Test4118594() 765 logln("text for parsing: \"" + result + "\""); in Test4118594() 766 // result now equals "3.14, 3.1" in Test4118594() 767 if (result != "3.14, 3.1") in Test4118594() 768 dataerrln("result in Test4118594() 815 UnicodeString result; Test4105380() local [all...] |
H A D | itspoof.cpp | 249 int32_t result = uspoof_areConfusableUnicodeString(sc, s1, s2, &status); in testAreConfusable() local 251 TEST_ASSERT_EQ(USPOOF_SINGLE_SCRIPT_CONFUSABLE, result); in testAreConfusable() 293 UnicodeString result; in parseHex() local 299 result.append(cc); in parseHex() 310 result.append(cc); in parseHex() 312 return result; in parseHex() 616 int32_t result = uspoof_checkUnicodeString(sc, testString, NULL, &status); in testRestrictionLevel() local 619 TEST_ASSERT_EQ(expectedLevel, result & USPOOF_RESTRICTION_LEVEL_MASK); in testRestrictionLevel() 620 TEST_ASSERT_EQ(expectedValue, result & USPOOF_ALL_CHECKS); in testRestrictionLevel() 706 UnicodeString result; in testBug12815() local [all...] |