/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/secure_element/vendor_adaptor/ |
D | se_vendor_adaptions.cpp | 60 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in getAtr() local 62 int ret = HuaweiSecureElementCaGetAtr(res, &resLen); in getAtr() 64 response.push_back(res[i]); in getAtr() 92 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in openLogicalChannel() local 94 …int ret = HuaweiSecureElementCaOpenLogicalChannel((uint8_t *)&aid[0], aid.size(), p2, res, &resLen, in openLogicalChannel() 97 response.push_back(res[i]); in openLogicalChannel() 116 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in openBasicChannel() local 118 int ret = HuaweiSecureElementCaOpenBasicChannel((uint8_t *)&aid[0], aid.size(), res, &resLen); in openBasicChannel() 120 response.push_back(res[i]); in openBasicChannel() 146 uint8_t res[RES_BUFFER_MAX_LENGTH] = {0}; in transmit() local [all …]
|
/drivers/peripheral/user_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/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 | 181 void FreeScanResult(WifiScanResult *res) in FreeScanResult() argument 183 if (res == NULL) { in FreeScanResult() 186 if (res->bssid != NULL) { in FreeScanResult() 187 OsalMemFree(res->bssid); in FreeScanResult() 189 if (res->ie != NULL) { in FreeScanResult() 190 OsalMemFree(res->ie); in FreeScanResult() 192 if (res->beaconIe != NULL) { in FreeScanResult() 193 OsalMemFree(res->beaconIe); in FreeScanResult() 197 void FreeScanResults(WifiScanResults *res) in FreeScanResults() argument 200 if (res == NULL) { in FreeScanResults() [all …]
|
D | wifi_common_cmd.h | 169 void FreeScanResult(WifiScanResult *res); 170 void FreeScanResults(WifiScanResults *res);
|
/drivers/peripheral/usb/test/moduletest/common/ |
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);
|
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);
|
/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/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/user_auth/test/unittest/base_test/src/ |
D | buffer_test.cpp | 236 Buffer *res = CreateBufferBySize(4); variable 237 EXPECT_NE(res, nullptr); 238 res->contentSize = res->maxSize; 240 result = GetBufferData(buffer1, res->buf, &(res->contentSize)); 242 DestoryBuffer(res);
|
/drivers/peripheral/pin_auth/test/uinttest/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 DestoryBuffer(res);
|
/drivers/peripheral/usb/ddk/host/src/ |
D | ddk_sysfs_device.c | 84 int64_t res = strtoll(buf, NULL, DdkSysfsGetBase(propName)); in DdkSysfsReadProperty() local 85 if (res == LLONG_MAX || res == LLONG_MIN || res > (int64_t)maxVal) { in DdkSysfsReadProperty() 86 …F_LOGE("%{public}s: convert failed path:%{public}s, res:%{public}" PRId64 "", __func__, path, res); in DdkSysfsReadProperty() 91 *value = res; in DdkSysfsReadProperty()
|
D | ddk_device_manager.c | 63 struct UsbDdkDeviceInfo *res = NULL; in DdkDevMgrIsDevExists() local 68 res = infoPos; in DdkDevMgrIsDevExists() 73 return res; in DdkDevMgrIsDevExists()
|
/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/user_auth/test/unittest/attribute_test/ |
D | attribute_test.cpp | 58 void *res = malloc(size); in __anon25f2d4540102() local 59 static_cast<void>(memset_s(res, size, 0, size)); in __anon25f2d4540102() 60 return res; in __anon25f2d4540102() 280 void *res = malloc(size); in __anon25f2d4540302() local 281 static_cast<void>(memset_s(res, size, 0, size)); in __anon25f2d4540302() 282 return res; in __anon25f2d4540302() 386 void *res = malloc(size); in __anon25f2d4540502() local 387 static_cast<void>(memset_s(res, size, 0, size)); in __anon25f2d4540502() 388 return res; in __anon25f2d4540502() 462 void *res = malloc(size); in __anon25f2d4540702() 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 …]
|
/drivers/peripheral/codec/test/demo/jpeg/src/ |
D | jpeg_decoder.cpp | 214 auto res = memcpy_s(bufferHandle->virAddr, compDataLen_, compressBuffer_.get(), compDataLen_); in Decode() local 215 if (res != 0) { in Decode() 216 HDF_LOGE("memcpy_s failed, err [%{public}d] !", res); in Decode()
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
D | hdf_utils.py | 528 for res in res_list: 529 re_name = re.search(self.driver_re_name, res) 530 if res and re_name: 531 res_splicing = "".join([self.driver_re_flg, res]) 538 for res in res_list: 539 if res.startswith("-"): 540 flag_split_list.append(res)
|
/drivers/interface/location/lpfence/geofence/v1_0/ |
D | IGeofenceCallback.idl | 66 …* @param res Indicates the result of the geofence addition. For details, see {@link GeofenceResult… 73 OnGeofenceAddResultCb([in] struct GeofenceResult[] res); 80 …* @param res Indicates the result of the geofence removal. For details, see {@link GeofenceResult}. 87 OnGeofenceRemoveResultCb([in] struct GeofenceResult[] res);
|
/drivers/peripheral/codec/hal/idl_service/src/ |
D | codec_component_service.cpp | 201 errno_t res = strncpy_s(reinterpret_cast<char *>(role.cRole), OMX_MAX_STRINGNAME_SIZE, in SetComponentRole() local 203 if (res != EOK) { in SetComponentRole()
|
/drivers/hdf_core/framework/tools/hc-gen/src/ |
D | text_gen.cpp | 234 bool res = GenObjectDefinitionGen(termIt); in GenNodeDefinition() local 235 if (!res) { in GenNodeDefinition() 236 return res; in GenNodeDefinition() 698 auto res = Ast::WalkRound( in TemplateVariableGen() local 706 if (!res) { in TemplateVariableGen()
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
D | hdf_delete_handler.py | 312 res = temp_file.get_driver_config_str( 315 hdf_utils.write_file(file_path, "".join(temp_info.split(res))) 324 res = driver_config_index[key_name].rstrip("endif") 326 hdf_utils.write_file(file_path, "".join(temp_info.split(res)))
|
/drivers/hdf_core/adapter/uhdf2/hdi/test/servmgr/ |
D | service_manager_hdi_c_test.cpp | 445 bool res = HdfRemoteServiceSetInterfaceDesc(sampleService, TEST_SERVICE_INTERFACE_DESC); variable 446 ASSERT_EQ(res, true); 463 res = HdfRemoteServiceWriteInterfaceToken(sampleService, data); 464 ASSERT_EQ(res, true); 465 res = HdfSbufWriteString(data, info.data()); 466 ASSERT_TRUE(res);
|