/drivers/peripheral/distributed_camera/hdi_service/src/utils/ |
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/ |
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/ |
D | wifi.cpp | 86 ErrorCode res = InitializVendorHal(); in Init() local 87 if (res == ErrorCode::SUCCESS) { in Init() 90 ErrorCode res = ErrorCode::UNKNOWN; in Init() local 92 callback->OnVendorHalRestart(res); in Init() 127 ErrorCode res = StopVendorHal(&lock); in Release() local 128 if (res == ErrorCode::SUCCESS) { in Release() 170 ErrorCode res; in StopVendorHal() local 185 res = ErrorCode::UNKNOWN; in StopVendorHal() 186 return res; in StopVendorHal() 188 res = ErrorCode::SUCCESS; in StopVendorHal() [all …]
|
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/secure_element/vendor_adaptor/ |
D | se_vendor_adaptions.cpp | 78 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in getAtr() local 80 int ret = SecureElementCaProxy::GetInstance().VendorSecureElementCaGetAtr(res, &resLen); in getAtr() 82 response.push_back(res[i]); in getAtr() 112 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in openLogicalChannel() local 115 (uint8_t *)&aid[0], aid.size(), p2, res, &resLen, (uint32_t *)&channelNumber); in openLogicalChannel() 117 response.push_back(res[i]); in openLogicalChannel() 129 status = getStatusBySW(res[resLen - SW1_OFFSET], res[resLen - SW2_OFFSET]); in openLogicalChannel() 150 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in openBasicChannel() local 153 (uint8_t *)&aid[0], aid.size(), res, &resLen); in openBasicChannel() 155 response.push_back(res[i]); in openBasicChannel() [all …]
|
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/ |
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/wlan/client/src/ |
D | wifi_driver_client.c | 247 void FreeScanResult(WifiScanResult *res) in FreeScanResult() argument 249 if (res == NULL) { in FreeScanResult() 252 if (res->bssid != NULL) { in FreeScanResult() 253 OsalMemFree(res->bssid); in FreeScanResult() 254 res->bssid = NULL; in FreeScanResult() 256 if (res->ie != NULL) { in FreeScanResult() 257 OsalMemFree(res->ie); in FreeScanResult() 258 res->ie = NULL; in FreeScanResult() 260 if (res->beaconIe != NULL) { in FreeScanResult() 261 OsalMemFree(res->beaconIe); in FreeScanResult() [all …]
|
/drivers/peripheral/usb/test/moduletest/common/ |
D | usb_device_performance_test.cpp | 75 FILE *res = nullptr; variable 89 res = popen("ps -ef | grep 'usb_watch_process.sh' | grep -v grep | cut -F 2", "r"); 90 pch = ParseSysCmdResult(*res, 1, 1); 98 res = popen("ps -ef | grep 'usbfn_host' | grep -v grep | wc -l", "r"); 99 pch = ParseSysCmdResult(*res, 1, 1);
|
D | usb_host_performance_test.cpp | 76 FILE *res = nullptr; variable 90 res = popen("ps -ef | grep 'usb_watch_process.sh' | grep -v grep | cut -F 2", "r"); 91 pch = ParseSysCmdResult(*res, 1, 1); 98 res = popen("ps -ef | grep 'pnp_host' | grep -v grep | wc -l", "r"); 99 pch = ParseSysCmdResult(*res, 1, 1);
|
/drivers/peripheral/display/hal/default_standard/src/display_device/drm/ |
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->encoders[i]); in FindAllEncoder() 186 void DrmDevice::FindAllConnector(const drmModeResPtr &res) in FindAllConnector() argument 188 DISPLAY_CHK_RETURN_NOT_VALUE((res == nullptr), DISPLAY_LOGE("the res is null")); in FindAllConnector() [all …]
|
D | drm_device.h | 65 void FindAllCrtc(const drmModeResPtr &res); 66 void FindAllEncoder(const drmModeResPtr &res); 67 void FindAllConnector(const drmModeResPtr &res);
|
/drivers/peripheral/display/composer/vdi_base/src/ |
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->encoders[i]); in FindAllEncoder() 210 void DrmDevice::FindAllConnector(const drmModeResPtr &res) in FindAllConnector() argument 212 DISPLAY_CHK_RETURN_NOT_VALUE((res == nullptr), DISPLAY_LOGE("the res is null")); in FindAllConnector() [all …]
|
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
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, arg… 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 [all …]
|
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, n… 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() [all …]
|
/drivers/peripheral/distributed_audio/hdi_service/common/utils/src/ |
D | daudio_utils.cpp | 36 std::string res; in GetAnonyString() local 44 res += value[0]; in GetAnonyString() 45 res += tmpStr; in GetAnonyString() 46 res += value[strLen - 1]; in GetAnonyString() 48 res.append(value, 0, INT32_PLAINTEXT_LENGTH); in GetAnonyString() 49 res += tmpStr; in GetAnonyString() 50 res.append(value, strLen - INT32_PLAINTEXT_LENGTH, INT32_PLAINTEXT_LENGTH); in GetAnonyString() 53 return res; in GetAnonyString() 272 bool res = IsString(jsonObj, *it); in CJsonParamCheck() local 273 if (!res) { in CJsonParamCheck()
|
/drivers/peripheral/secure_element/vendor_sim_adaptor/ |
D | se_vendor_adaptions.cpp | 215 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in getAtr() local 217 int ret = VendorSimSecureElementGetAtr(res, &resLen); in getAtr() 223 response.push_back(res[i]); in getAtr() 245 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in openLogicalChannel() local 260 response.push_back(res[i]); in openLogicalChannel() 283 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in openBasicChannel() local 286 (uint8_t *)&aid[0], aid.size(), res, &resLen, &tmpStatus); in openBasicChannel() 298 response.push_back(res[i]); in openBasicChannel() 336 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in transmit() local 339 (uint8_t *)&command[0], command.size(), res, &resLen, &tmpStatus); in transmit() [all …]
|
/drivers/hdf_core/adapter/uhdf2/hdi/test/smq_test/ |
D | smq_test.cpp | 88 FILE *res = popen(cmdStr.str().c_str(), "r"); in QueryPidOfHostName() local 89 if (res == nullptr) { in QueryPidOfHostName() 96 (void)fread(resBuf, HOST_PID_BUFF_SIZE - 1, 1, res); in QueryPidOfHostName() 97 pclose(res); in QueryPidOfHostName() 118 FILE *res = popen(cmdStr.str().c_str(), "r"); in QueryOpendFdsByHostPid() local 119 if (res == nullptr) { in QueryOpendFdsByHostPid() 124 int resFd = fileno(res); in QueryOpendFdsByHostPid() 127 (void)fread(resBuf, CMD_RESULT_BUFF_SIZE - 1, 1, res); in QueryOpendFdsByHostPid() 128 pclose(res); in QueryOpendFdsByHostPid()
|
/drivers/peripheral/camera/test/hdi/v1_3/src/ |
D | camera_hdi_uttest_securestream_v1_3.cpp | 58 int32_t res = cameraTest->cameraDeviceV1_3->GetSecureCameraSeq(SeqId); variable 60 EXPECT_EQ(res, HDI::Camera::V1_0::NO_ERROR);
|
/drivers/peripheral/user_auth/test/unittest/base_test/src/ |
D | buffer_test.cpp | 242 Buffer *res = CreateBufferBySize(BUFFER_LEN_4); variable 243 EXPECT_NE(res, nullptr); 244 res->contentSize = res->maxSize; 246 result = GetBufferData(buffer1, res->buf, &(res->contentSize)); 248 DestoryBuffer(res);
|
/drivers/peripheral/pin_auth/test/unittest/pin_auth/common/src/ |
D | buffer_test.cpp | 260 Buffer *res = CreateBufferBySize(4); variable 261 EXPECT_NE(res, nullptr); 262 res->contentSize = res->maxSize; 264 result = GetBufferData(buffer1, res->buf, &(res->contentSize)); 266 DestroyBuffer(res);
|
/drivers/peripheral/usb/ddk/host/src/ |
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 …F_LOGE("%{public}s: convert failed path:%{public}s, res:%{public}" PRId64 "", __func__, path, res); in DdkSysfsReadProperty() 92 *value = res; in DdkSysfsReadProperty()
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
D | thermal_dfx.cpp | 126 char res[LOG_INDEX_LEN]; in GetFileNameIndex() local 127 (void)snprintf_s(res, sizeof(res), sizeof(res) - 1, "%03d", index % MAX_FILE_NUM); in GetFileNameIndex() 128 std::string fileNameIndex(res); in GetFileNameIndex() 157 std::string res(resolvedPath); in CanonicalizeSpecPath() local 158 return res; in CanonicalizeSpecPath()
|
/drivers/peripheral/camera/vdi_base/interfaces/v1_0/ |
D | icamera_host_vdi.h | 80 bool res = remote->AddDeathRecipient(callBackDeathRecipient); in SetCallback() local 81 if (!res) { in SetCallback()
|
/drivers/peripheral/user_auth/test/unittest/attribute_test/ |
D | attribute_test.cpp | 58 void *res = malloc(size); in __anona72911820102() local 59 static_cast<void>(memset_s(res, size, 0, size)); in __anona72911820102() 60 return res; in __anona72911820102() 280 void *res = malloc(size); in __anona72911820302() local 281 static_cast<void>(memset_s(res, size, 0, size)); in __anona72911820302() 282 return res; in __anona72911820302() 386 void *res = malloc(size); in __anona72911820502() local 387 static_cast<void>(memset_s(res, size, 0, size)); in __anona72911820502() 388 return res; in __anona72911820502() 462 void *res = malloc(size); in __anona72911820702() local [all …]
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
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() 1070 temp = temp + mixElemInfo->res; in AudioUsbCtlGetMaxVal() 1072 temp = temp - mixElemInfo->res; in AudioUsbCtlGetMaxVal() [all …]
|