/drivers/peripheral/distributed_camera/hdi_service/src/utils/ |
H A D | anonymous_string.cpp | 27 std::string res; in GetAnonyString() local 35 res += value[0]; in GetAnonyString() 36 res += tmpStr; in GetAnonyString() 37 res += value[strLen - 1]; in GetAnonyString() 39 res.append(value, 0, INT32_PLAINTEXT_LENGTH); in GetAnonyString() 40 res += tmpStr; in GetAnonyString() 41 res.append(value, strLen - INT32_PLAINTEXT_LENGTH, INT32_PLAINTEXT_LENGTH); in GetAnonyString() 44 return res; in GetAnonyString()
|
/drivers/peripheral/user_auth/hdi_service/adaptor/src/ |
H A D | adaptor_time.c | 28 int res = clock_gettime(CLOCK_MONOTONIC, &curTime); in GetRtcTime() local 29 if (res != 0) { in GetRtcTime() 39 int res = clock_gettime(CLOCK_MONOTONIC, &curTime); in GetSystemTime() local 40 if (res != 0) { in GetSystemTime() 50 int res = gettimeofday(&curTime, NULL); in GetReeTime() local 51 if (res != 0) { in GetReeTime()
|
/drivers/peripheral/wlan/chip/hdi_service/ |
H A D | wifi.cpp | 91 ErrorCode res = InitializVendorHal(); in Init() local 92 if (res == ErrorCode::SUCCESS) { in Init() 95 ErrorCode res = ErrorCode::UNKNOWN; in Init() 97 callback->OnVendorHalRestart(res); in Init() 132 ErrorCode res = StopVendorHal(&lock); in Release() local 133 if (res == ErrorCode::SUCCESS) { in Release() 175 ErrorCode res; in StopVendorHal() local 190 res = ErrorCode::UNKNOWN; in StopVendorHal() 191 return res; in StopVendorHal() 193 res in StopVendorHal() 199 ErrorCode res; InitializVendorHal() local [all...] |
H A D | wifi_vendor_hal_list.cpp | 67 WifiError res; in LoadVendorHalLib() local 82 res = initfn(&desc.fn); in LoadVendorHalLib() 83 if (res != HAL_SUCCESS) { in LoadVendorHalLib() 85 path.c_str(), res); in LoadVendorHalLib() 88 res = desc.fn.vendorHalPreInit(); in LoadVendorHalLib() 89 if (res != HAL_SUCCESS && res != HAL_NOT_SUPPORTED) { in LoadVendorHalLib() 90 HDF_LOGE("early initialization failed in: %{public}s, error: %{public}d", path.c_str(), res); in LoadVendorHalLib()
|
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/ |
H A D | adaptor_time.c | 27 int res = clock_gettime(CLOCK_MONOTONIC, &curTime); in GetRtcTime() local 28 if (res != 0) { in GetRtcTime() 38 int res = clock_gettime(CLOCK_MONOTONIC, &curTime); in GetSystemTime() local 39 if (res != 0) { in GetSystemTime()
|
/drivers/peripheral/secure_element/vendor_adaptor/ |
H A D | se_vendor_adaptions.cpp | 84 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0};
in getAtr() local 86 int ret = SecureElementCaProxy::GetInstance().VendorSecureElementCaGetAtr(res, &resLen);
in getAtr() 88 response.push_back(res[i]);
in getAtr() 120 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0};
in openLogicalChannel() local 124 (uint8_t *)&aid[0], aid.size(), p2, res, &resLen, &channelCreated);
in openLogicalChannel() 126 response.push_back(res[i]);
in openLogicalChannel() 138 status = getStatusBySW(res[resLen - SW1_OFFSET], res[resLen - SW2_OFFSET]);
in openLogicalChannel() 167 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0};
in openBasicChannel() local 170 (uint8_t *)&aid[0], aid.size(), res, in openBasicChannel() 228 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; transmit() local [all...] |
/drivers/peripheral/wlan/client/src/ |
H A D | wifi_driver_client.c | 248 void FreeScanResult(WifiScanResult *res) in FreeScanResult() argument 250 if (res == NULL) { in FreeScanResult() 253 if (res->bssid != NULL) { in FreeScanResult() 254 OsalMemFree(res->bssid); in FreeScanResult() 255 res->bssid = NULL; in FreeScanResult() 257 if (res->ie != NULL) { in FreeScanResult() 258 OsalMemFree(res->ie); in FreeScanResult() 259 res->ie = NULL; in FreeScanResult() 261 if (res->beaconIe != NULL) { in FreeScanResult() 262 OsalMemFree(res in FreeScanResult() 267 FreeScanResults(WifiScanResults *res) FreeScanResults() argument [all...] |
/drivers/peripheral/usb/test/moduletest/common/ |
H A D | usb_device_performance_test.cpp | 75 FILE *res = nullptr; in HWTEST_F() local 89 res = popen("ps -ef | grep 'usb_watch_process.sh' | grep -v grep | cut -F 2", "r"); in HWTEST_F() 90 pch = ParseSysCmdResult(*res, 1, 1); in HWTEST_F() 98 res = popen("ps -ef | grep 'usbfn_host' | grep -v grep | wc -l", "r"); in HWTEST_F() 99 pch = ParseSysCmdResult(*res, 1, 1); in HWTEST_F()
|
H A D | usb_host_performance_test.cpp | 76 FILE *res = nullptr; in HWTEST_F() local 90 res = popen("ps -ef | grep 'usb_watch_process.sh' | grep -v grep | cut -F 2", "r"); in HWTEST_F() 91 pch = ParseSysCmdResult(*res, 1, 1); in HWTEST_F() 98 res = popen("ps -ef | grep 'pnp_host' | grep -v grep | wc -l", "r"); in HWTEST_F() 99 pch = ParseSysCmdResult(*res, 1, 1); in HWTEST_F()
|
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
H A D | wpa_p2p_hal.c | 101 int res; in WpaP2pCliCmdWpsPin() local 103 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN any %s", this->groupIfname, in WpaP2pCliCmdWpsPin() 106 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN any", this->groupIfname); in WpaP2pCliCmdWpsPin() 108 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN %s", this->groupIfname, argv->bssid); in WpaP2pCliCmdWpsPin() 110 if (res < 0) { in WpaP2pCliCmdWpsPin() 373 int res; in WpaP2pCliCmdP2pFound() local 375 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s P2P_FIND %d", this->ifName, timeout); in WpaP2pCliCmdP2pFound() 377 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s P2P_FIND", this->ifName); in WpaP2pCliCmdP2pFound() 379 if (res < 0) { in WpaP2pCliCmdP2pFound() 400 int res; in WpaP2pCliCmdRemoveNetwork() local 471 int res; WpaP2pCliCmdExtListen() local 496 int res; WpaP2pCliCmdSetListenChannel() local 599 int res; WpaP2pCliCmdServiceAdd() local 643 int res; WpaP2pCliCmdServiceDel() local 729 int res = 0; WpaP2pCliCmdProvisionDiscovery() local 760 int res; WpaP2pCliCmdGroupAdd() local 1011 int res; WpaP2pCliCmdSetGroupConfig() local [all...] |
H A D | wpa_supplicant_hal.c | 257 int res; in WpaCliCmdSetNetwork() local 259 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET_NETWORK %d %s %s", this->ifname, in WpaCliCmdSetNetwork() 262 if (res < 0) { in WpaCliCmdSetNetwork() 318 int res = 0; in WpaCliCmdRemoveNetwork() local 320 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s REMOVE_NETWORK all", this->ifname); in WpaCliCmdRemoveNetwork() 322 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s REMOVE_NETWORK %d", this->ifname, networkId); in WpaCliCmdRemoveNetwork() 326 if (res < 0) { in WpaCliCmdRemoveNetwork() 370 int res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PBC", this->ifname); in WpaCliCmdWpsPbc() local 371 if (res < 0) { in WpaCliCmdWpsPbc() 375 pos += res; in WpaCliCmdWpsPbc() 416 int res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN", this->ifname); WpaCliCmdWpsPin() local 895 int res; ConcatScanSetting() local 983 int res = 0; WpaCliCmdScan() local [all...] |
/drivers/peripheral/display/composer/vdi_base/src/ |
H A D | drm_device.cpp | 171 void DrmDevice::FindAllCrtc(const drmModeResPtr &res) in FindAllCrtc() argument 173 DISPLAY_CHK_RETURN_NOT_VALUE((res == nullptr), DISPLAY_LOGE("the res is null")); in FindAllCrtc() 175 for (int i = 0; i < res->count_crtcs; i++) { in FindAllCrtc() 176 drmModeCrtcPtr crtc = drmModeGetCrtc(GetDrmFd(), res->crtcs[i]); in FindAllCrtc() 193 void DrmDevice::FindAllEncoder(const drmModeResPtr &res) in FindAllEncoder() argument 195 DISPLAY_CHK_RETURN_NOT_VALUE((res == nullptr), DISPLAY_LOGE("the res is null")); in FindAllEncoder() 197 for (int i = 0; i < res->count_encoders; i++) { in FindAllEncoder() 198 drmModeEncoderPtr encoder = drmModeGetEncoder(GetDrmFd(), res in FindAllEncoder() 210 FindAllConnector(const drmModeResPtr &res) FindAllConnector() argument 323 drmModeResPtr res = drmModeGetResources(GetDrmFd()); DiscoveryDisplay() local [all...] |
/drivers/peripheral/display/hal/default_standard/src/display_device/drm/ |
H A D | drm_device.cpp | 147 void DrmDevice::FindAllCrtc(const drmModeResPtr &res)
in FindAllCrtc() argument 149 DISPLAY_CHK_RETURN_NOT_VALUE((res == nullptr), DISPLAY_LOGE("the res is null"));
in FindAllCrtc() 151 for (int i = 0; i < res->count_crtcs; i++) {
in FindAllCrtc() 152 drmModeCrtcPtr crtc = drmModeGetCrtc(GetDrmFd(), res->crtcs[i]);
in FindAllCrtc() 169 void DrmDevice::FindAllEncoder(const drmModeResPtr &res)
in FindAllEncoder() argument 171 DISPLAY_CHK_RETURN_NOT_VALUE((res == nullptr), DISPLAY_LOGE("the res is null"));
in FindAllEncoder() 173 for (int i = 0; i < res->count_encoders; i++) {
in FindAllEncoder() 174 drmModeEncoderPtr encoder = drmModeGetEncoder(GetDrmFd(), res in FindAllEncoder() 186 FindAllConnector(const drmModeResPtr &res) FindAllConnector() argument 283 drmModeResPtr res = drmModeGetResources(GetDrmFd()); DiscoveryDisplay() local [all...] |
H A D | drm_device.h | 65 void FindAllCrtc(const drmModeResPtr &res);
66 void FindAllEncoder(const drmModeResPtr &res);
67 void FindAllConnector(const drmModeResPtr &res);
|
/drivers/peripheral/distributed_audio/hdi_service/common/utils/src/ |
H A D | daudio_utils.cpp | 40 std::string res; in GetAnonyString() local 48 res += value[0]; in GetAnonyString() 49 res += tmpStr; in GetAnonyString() 50 res += value[strLen - 1]; in GetAnonyString() 52 res.append(value, 0, INT32_PLAINTEXT_LENGTH); in GetAnonyString() 53 res += tmpStr; in GetAnonyString() 54 res.append(value, strLen - INT32_PLAINTEXT_LENGTH, INT32_PLAINTEXT_LENGTH); in GetAnonyString() 57 return res; in GetAnonyString() 312 auto res = GetParameter(key, "-1", paraValue, sizeof(paraValue)); in GetSysPara() local 314 CHECK_AND_RETURN_RET_LOG(res < in GetSysPara() 346 bool res = GetSysPara(para.c_str(), dumpPara); OpenDumpFileInner() local 388 bool res = GetSysPara(para.c_str(), dumpPara); ChangeDumpFileState() local [all...] |
/drivers/peripheral/usb/ddk/host/src/ |
H A D | ddk_sysfs_device.c | 85 int64_t res = strtoll(buf, NULL, DdkSysfsGetBase(propName)); in DdkSysfsReadProperty() local 86 if (res == LLONG_MAX || res == LLONG_MIN || res > (int64_t)maxVal) { in DdkSysfsReadProperty() 87 HDF_LOGE("%{public}s: convert failed path:%{public}s, res:%{public}" PRId64 "", __func__, path, res); in DdkSysfsReadProperty() 92 *value = res; in DdkSysfsReadProperty()
|
/drivers/peripheral/secure_element/vendor_sim_adaptor/ |
H A D | se_vendor_adaptions.cpp | 226 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0};
in getAtr() local 228 int ret = VendorSimSecureElementGetAtr(res, &resLen);
in getAtr() 234 response.push_back(res[i]);
in getAtr() 256 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0};
in openLogicalChannel() local 272 response.push_back(res[i]);
in openLogicalChannel() 300 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0};
in openBasicChannel() local 303 (uint8_t *)&aid[0], aid.size(), res, &resLen, &tmpStatus);
in openBasicChannel() 315 response.push_back(res[i]);
in openBasicChannel() 353 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0};
in transmit() local 356 (uint8_t *)&command[0], command.size(), res, in transmit() [all...] |
/drivers/peripheral/pin_auth/test/unittest/pin_auth/adaptor/src/ |
H A D | buffer_test.cpp | 260 Buffer *res = CreateBufferBySize(4); in HWTEST_F() local 261 EXPECT_NE(res, nullptr); in HWTEST_F() 262 res->contentSize = res->maxSize; in HWTEST_F() 264 result = GetBufferData(buffer1, res->buf, &(res->contentSize)); in HWTEST_F() 266 DestroyBuffer(res); in HWTEST_F()
|
/drivers/peripheral/user_auth/test/unittest/base_test/src/ |
H A D | buffer_test.cpp | 242 Buffer *res = CreateBufferBySize(BUFFER_LEN_4); in HWTEST_F() local 243 EXPECT_NE(res, nullptr); in HWTEST_F() 244 res->contentSize = res->maxSize; in HWTEST_F() 246 result = GetBufferData(buffer1, res->buf, &(res->contentSize)); in HWTEST_F() 248 DestoryBuffer(res); in HWTEST_F()
|
/drivers/hdf_core/adapter/uhdf2/hdi/test/smq_test/ |
H A D | smq_test.cpp | 97 FILE *res = popen(cmdStr.str().c_str(), "r");
in QueryPidOfHostName() local 98 if (res == nullptr) {
in QueryPidOfHostName() 105 (void)fread(resBuf, HOST_PID_BUFF_SIZE - 1, 1, res);
in QueryPidOfHostName() 106 pclose(res);
in QueryPidOfHostName() 127 FILE *res = popen(cmdStr.str().c_str(), "r");
in QueryOpendFdsByHostPid() local 128 if (res == nullptr) {
in QueryOpendFdsByHostPid() 133 int resFd = fileno(res);
in QueryOpendFdsByHostPid() 136 (void)fread(resBuf, CMD_RESULT_BUFF_SIZE - 1, 1, res);
in QueryOpendFdsByHostPid() 137 pclose(res);
in QueryOpendFdsByHostPid()
|
/drivers/peripheral/camera/vdi_base/interfaces/v1_0/ |
H A D | icamera_host_vdi.h | 79 bool res = remote->AddDeathRecipient(callBackDeathRecipient); in SetCallback() local 80 if (!res) { in SetCallback()
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
H A D | audio_usb_mixer.c | 137 int32_t min, max, res; /* min & max is volume range, res is volume reset state */ member 458 if (mixElemInfo->res == 0) { /* 0 is volume reset off */ in AudioUsbGetRelativeValue() 459 mixElemInfo->res = 1; /* 1 is volume reset on */ in AudioUsbGetRelativeValue() 466 return (mixElemInfo->max - mixElemInfo->min + mixElemInfo->res - 1) / mixElemInfo->res; in AudioUsbGetRelativeValue() 469 return (value - mixElemInfo->min) / mixElemInfo->res; in AudioUsbGetRelativeValue() 477 if (mixElemInfo->res == 0) { in AudioUsbGetAbsValue() 478 mixElemInfo->res = 1; in AudioUsbGetAbsValue() 480 value *= mixElemInfo->res; in AudioUsbGetAbsValue() [all...] |
/drivers/peripheral/user_auth/test/unittest/attribute_test/ |
H A D | attribute_test.cpp | 58 void *res = malloc(size); in HWTEST_F() 59 static_cast<void>(memset_s(res, size, 0, size)); in HWTEST_F() 60 return res; in HWTEST_F() 280 void *res = malloc(size); in HWTEST_F() 281 static_cast<void>(memset_s(res, size, 0, size)); in HWTEST_F() 282 return res; in HWTEST_F() 386 void *res = malloc(size); in HWTEST_F() 387 static_cast<void>(memset_s(res, size, 0, size)); in HWTEST_F() 388 return res; in HWTEST_F() 462 void *res in HWTEST_F() [all...] |
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
H A D | thermal_dfx.cpp | 127 char res[LOG_INDEX_LEN]; in GetFileNameIndex() local 128 (void)snprintf_s(res, sizeof(res), sizeof(res) - 1, "%03d", index % MAX_FILE_NUM); in GetFileNameIndex() 129 std::string fileNameIndex(res); in GetFileNameIndex() 158 std::string res(resolvedPath); in CanonicalizeSpecPath() 159 return res; in CanonicalizeSpecPath()
|
/drivers/peripheral/camera/test/hdi/v1_3/src/ |
H A D | camera_hdi_uttest_securestream_v1_3.cpp | 48 int32_t res = cameraTest->cameraDeviceV1_3->GetSecureCameraSeq(SeqId);
in HWTEST_F() local 50 (void)res;
in HWTEST_F()
|