Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 44) sorted by relevance

12

/drivers/peripheral/distributed_camera/hdi_service/src/utils/
Danonymous_string.cpp27 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/
Dadaptor_time.c28 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/
Dwifi.cpp86 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 …]
Dwifi_vendor_hal_list.cpp67 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/
Dse_vendor_adaptions.cpp78 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/
Dadaptor_time.c27 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/
Dwifi_driver_client.c247 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/
Dusb_device_performance_test.cpp75 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);
Dusb_host_performance_test.cpp76 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/
Ddrm_device.cpp147 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 …]
Ddrm_device.h65 void FindAllCrtc(const drmModeResPtr &res);
66 void FindAllEncoder(const drmModeResPtr &res);
67 void FindAllConnector(const drmModeResPtr &res);
/drivers/peripheral/display/composer/vdi_base/src/
Ddrm_device.cpp171 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/
Dwpa_p2p_hal.c101 int res; in WpaP2pCliCmdWpsPin() local
103res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN any %s", this->groupIfname, in WpaP2pCliCmdWpsPin()
106res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN any", this->groupIfname); in WpaP2pCliCmdWpsPin()
108res = 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
375res = 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 …]
Dwpa_supplicant_hal.c257 int res; in WpaCliCmdSetNetwork() local
259res = 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
320res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s REMOVE_NETWORK all", this->ifname); in WpaCliCmdRemoveNetwork()
322res = 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/
Ddaudio_utils.cpp36 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/
Dse_vendor_adaptions.cpp215 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/
Dsmq_test.cpp88 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/
Dcamera_hdi_uttest_securestream_v1_3.cpp58 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/
Dbuffer_test.cpp242 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/
Dbuffer_test.cpp260 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/
Dddk_sysfs_device.c85 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/
Dthermal_dfx.cpp126 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/
Dicamera_host_vdi.h80 bool res = remote->AddDeathRecipient(callBackDeathRecipient); in SetCallback() local
81 if (!res) { in SetCallback()
/drivers/peripheral/user_auth/test/unittest/attribute_test/
Dattribute_test.cpp58 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/
Daudio_usb_mixer.c137 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 …]

12