/drivers/peripheral/battery/interfaces/hdi_service/test/fuzztest/batteryhdi_fuzzer/ |
H A D | batteryhdi_fuzz.cpp | 69 int32_t out; in GetCapacity() local 70 g_batteryInterface->GetCapacity(out); in GetCapacity() 75 int32_t out; in GetVoltage() local 76 g_batteryInterface->GetVoltage(out); in GetVoltage() 81 int32_t out; in GetTemperature() local 82 g_batteryInterface->GetTemperature(out); in GetTemperature() 117 int32_t out; in GetTotalEnergy() local 118 g_batteryInterface->GetTotalEnergy(out); in GetTotalEnergy() 123 int32_t out; in GetCurrentAverage() local 124 g_batteryInterface->GetCurrentAverage(out); in GetCurrentAverage() 129 int32_t out; GetCurrentNow() local 135 int32_t out; GetRemainEnergy() local [all...] |
/drivers/hdf_core/framework/tools/hc-gen/src/ |
H A D | bytecode_gen.cpp | 62 ofs_.open(outFileName, std::ofstream::out | std::ofstream::binary); in Initialize() 259 bool ByteCodeGen::HexdumpInitialize(FILE *&in, FILE *&out) 270 out = fopen(hexdumpOutName.data(), "wb"); 271 if (out == nullptr) { 283 FILE *out = nullptr; 284 if (!HexdumpInitialize(in, out)) { 288 auto ret = HexdumpOutput(in, out); 290 (void)fclose(out); 295 bool ByteCodeGen::HexdumpOutput(FILE *in, FILE *out) 301 if (fprintf(out, "stati [all...] |
H A D | bytecode_gen.h | 63 bool HexdumpInitialize(FILE *&in, FILE *&out); 65 static bool HexdumpOutput(FILE *in, FILE *out);
|
H A D | text_gen.cpp | 137 auto out = ToCamelString(str); in ToUpperCamelString() local 138 out[0] = static_cast<char>(toupper(out[0])); in ToUpperCamelString() 140 return out; in ToUpperCamelString() 148 auto out = ToCamelString(str); in ToLowerCamelString() local 149 out[0] = static_cast<char>(tolower(out[0])); in ToLowerCamelString() 151 return out; in ToLowerCamelString() 164 std::string out; in ToCamelString() local 174 out in ToCamelString() [all...] |
/drivers/peripheral/user_auth/hdi_service/coauth/src/ |
H A D | coauth.c | 377 ResultCode CopyTemplateArrays(const Uint64Array *in, Uint64Array *out) in CopyTemplateArrays() argument 379 if (!IsTemplateArraysValid(in) || out == NULL || out->data != NULL) { in CopyTemplateArrays() 384 out->len = 0; in CopyTemplateArrays() 387 out->len = in->len; in CopyTemplateArrays() 388 out->data = (uint64_t *)Malloc(sizeof(uint64_t) * out->len); in CopyTemplateArrays() 389 if (out->data == NULL) { in CopyTemplateArrays() 390 LOG_ERROR("out data is null"); in CopyTemplateArrays() 391 out in CopyTemplateArrays() [all...] |
/drivers/peripheral/user_auth/hdi_service/service/ |
H A D | user_auth_interface_service.cpp | 109 static bool CopyScheduleInfo(const CoAuthSchedule *in, HdiScheduleInfo *out)
in CopyScheduleInfo() argument 116 out->executorIndexes.clear();
in CopyScheduleInfo() 117 out->templateIds.clear();
in CopyScheduleInfo() 118 out->scheduleId = in->scheduleId;
in CopyScheduleInfo() 119 out->authType = static_cast<AuthType>(in->authType);
in CopyScheduleInfo() 121 out->templateIds.push_back(in->templateIds.data[i]);
in CopyScheduleInfo() 123 out->executorMatcher = static_cast<uint32_t>(in->executors[0].executorMatcher);
in CopyScheduleInfo() 124 out->scheduleMode = static_cast<ScheduleMode>(in->scheduleMode);
in CopyScheduleInfo() 126 out->executorIndexes.push_back(in->executors[i].executorIndex);
in CopyScheduleInfo() 128 out in CopyScheduleInfo() 424 CopyAuthScheduleInfo(AuthParamHal paramHal, const CoAuthSchedule *in, HdiScheduleInfo *out) CopyAuthScheduleInfo() argument 917 CopyCredentialInfo(const CredentialInfoHal &in, HdiCredentialInfo &out) CopyCredentialInfo() argument 1185 verifyExecutorRegisterInfo(const HdiExecutorRegisterInfo &in, ExecutorInfoHal &out) verifyExecutorRegisterInfo() argument 1198 CopyExecutorInfo(const HdiExecutorRegisterInfo &in, ExecutorInfoHal &out) CopyExecutorInfo() argument 1426 CopyHdiScheduleInfo(const ScheduleInfoParam *in, HdiScheduleInfo *out) CopyHdiScheduleInfo() argument 1571 CopyHdiAuthResultInfo(const AuthResultParam *in, HdiAuthResultInfo *out, const std::vector<uint8_t>& message) CopyHdiAuthResultInfo() argument [all...] |
/drivers/peripheral/pin_auth/hdi_service/main/src/ |
H A D | pin_auth.cpp | 378 uint8_t *out = new (std::nothrow) uint8_t[MAX_EXECUTOR_MSG_LEN]; in Collect() local 379 if (out == nullptr) { in Collect() 380 LOG_ERROR("malloc out fail!"); in Collect() 384 int32_t result = DoCollect(scheduleId, extraInfo.data(), extraInfo.size(), out, &outSize); in Collect() 387 delete[] out; in Collect() 390 result = SetVectorByBuffer(msg, out, outSize); in Collect() 391 delete[] out; in Collect() 442 uint8_t *out = new (std::nothrow) uint8_t[MAX_EXECUTOR_MSG_LEN]; in SetDataToCollector() local 444 if (out == nullptr) { in SetDataToCollector() 445 LOG_ERROR("new out fai in SetDataToCollector() 484 uint8_t *out = new (std::nothrow) uint8_t[MAX_EXECUTOR_MSG_LEN]; VerifierAuth() local 532 uint8_t *out = new (std::nothrow) uint8_t[MAX_EXECUTOR_MSG_LEN]; SendMessageToVerifier() local [all...] |
/drivers/peripheral/huks/test/fuzztest/initfuzz/ |
H A D | huks_hdi_fuzzer.cpp | 70 struct HksBlob out = {
in DoSomethingInterestingWithMyAPI() local 75 (void)g_instance->HuksHdiInit(&key, paramSet, &handle, &out);
in DoSomethingInterestingWithMyAPI() 76 (void)g_instance->HuksHdiUpdate(&handle, paramSetUpdate, &inData, &out);
in DoSomethingInterestingWithMyAPI() 77 (void)g_instance->HuksHdiFinish(&handle, paramSetFinish, &inData, &out);
in DoSomethingInterestingWithMyAPI()
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
H A D | thermal_hdf_utils.cpp | 45 bool ThermalHdfUtils::ReadNode(const std::string& path, std::string& out) in ReadNode() argument 47 bool ret = LoadStringFromFile(path, out); in ReadNode() 48 TrimStr(out); in ReadNode()
|
/drivers/peripheral/user_auth/test/unittest/attribute_test/ |
H A D | attribute_test.cpp | 125 uint32_t out = 0; in HWTEST_F() local 126 ASSERT_EQ(GetAttributeUint32(nullptr, ATTR_LOCKOUT_DURATION, &out), RESULT_BAD_PARAM); in HWTEST_F() 128 ASSERT_EQ(GetAttributeUint32(attribute, ATTR_PROPERTY_MODE, &out), RESULT_GENERAL_ERROR); in HWTEST_F() 129 ASSERT_EQ(GetAttributeUint32(attribute, ATTR_LOCKOUT_DURATION, &out), RESULT_SUCCESS); in HWTEST_F() 164 int32_t out = 0; in HWTEST_F() local 165 ASSERT_EQ(GetAttributeInt32(nullptr, ATTR_RESULT_CODE, &out), RESULT_BAD_PARAM); in HWTEST_F() 167 ASSERT_EQ(GetAttributeInt32(attribute, ATTR_REMAIN_ATTEMPTS, &out), RESULT_GENERAL_ERROR); in HWTEST_F() 168 ASSERT_EQ(GetAttributeInt32(attribute, ATTR_RESULT_CODE, &out), RESULT_SUCCESS); in HWTEST_F() 203 uint64_t out = 0; in HWTEST_F() local 204 ASSERT_EQ(GetAttributeUint64(nullptr, ATTR_TEMPLATE_ID, &out), RESULT_BAD_PARA in HWTEST_F() [all...] |
/drivers/liteos/hievent/src/ |
H A D | hievent_driver.c | 174 goto out; in HieventRead() 180 goto out; in HieventRead() 189 goto out; in HieventRead() 196 goto out; in HieventRead() 202 out: in HieventRead() 283 goto out; in HieventWriteInternal() 290 goto out; in HieventWriteInternal() 300 goto out; in HieventWriteInternal() 308 goto out; in HieventWriteInternal() 315 out in HieventWriteInternal() [all...] |
/drivers/peripheral/camera/vdi_base/usb_camera/pipeline_core/src/node/ |
H A D | fork_node.cpp | 45 for (auto& out : outPutPorts_) { in Start() 46 if (out->format_.streamId_ != in->format_.streamId_) { in Start() 47 id = out->format_.streamId_; in Start() 48 bufferPoolId = out->format_.bufferPoolId_; in Start() 49 CAMERA_LOGI("fork buffer get buffer streamId = %{public}d", out->format_.streamId_); in Start()
|
/drivers/hdf_core/adapter/khdf/linux/test/test_helper_driver/src/ |
H A D | Makefile | 19 export KERNEL_ROOT?=$(OHOS_ROOT_PATH)/out/KERNEL_OBJ/kernel/src_tmp/$(KERNEL_VERSION) 20 export KBUILD_OUTPUT=$(OHOS_ROOT_PATH)/out/KERNEL_OBJ/kernel/OBJ/$(KERNEL_VERSION)
|
/drivers/hdf_core/framework/support/platform/src/mipi/ |
H A D | mipi_dsi_if.c | 49 int32_t MipiDsiRx(DevHandle handle, struct DsiCmdDesc *cmd, int32_t readLen, uint8_t *out) in MipiDsiRx() argument 51 return MipiDsiCntlrRx((struct MipiDsiCntlr *)handle, cmd, readLen, out); in MipiDsiRx()
|
/drivers/peripheral/huks/test/fuzztest/agreekeyfuzz/ |
H A D | huks_hdi_fuzzer.cpp | 54 struct HksBlob out = {
in DoSomethingInterestingWithMyAPI() local 58 (void)g_instance->HuksHdiAgreeKey(paramSetIn, &privatekey, &publickey, &out);
in DoSomethingInterestingWithMyAPI()
|
/drivers/peripheral/huks/test/fuzztest/generatekeyfuzz/ |
H A D | huks_hdi_fuzzer.cpp | 53 struct HksBlob out = {
in DoSomethingInterestingWithMyAPI() local 57 (void)g_instance->HuksHdiGenerateKey(&keyAlias, paramSetIn, &key, &out);
in DoSomethingInterestingWithMyAPI()
|
/drivers/peripheral/huks/test/fuzztest/importwrappedkeyfuzz/ |
H A D | huks_hdi_fuzzer.cpp | 55 struct HksBlob out = {
in DoSomethingInterestingWithMyAPI() local 59 (void)g_instance->HuksHdiImportWrappedKey(nullptr, &key, &wrappedKeyData, paramSetIn, &out);
in DoSomethingInterestingWithMyAPI()
|
/drivers/peripheral/huks/test/fuzztest/importkeyfuzz/ |
H A D | huks_hdi_fuzzer.cpp | 54 struct HksBlob out = {
in DoSomethingInterestingWithMyAPI() local 58 (void)g_instance->HuksHdiImportKey(&keyAlias, &aesKey, paramSet, &out);
in DoSomethingInterestingWithMyAPI()
|
/drivers/peripheral/camera/vdi_base/common/pipeline_core/nodes/src/fork_node/ |
H A D | fork_node.cpp | 46 for (auto& out : outPutPorts_) { in Start() 47 if (out->format_.streamId_ != in->format_.streamId_) { in Start() 48 id = out->format_.streamId_; in Start() 49 bufferPoolId = out->format_.bufferPoolId_; in Start() 50 CAMERA_LOGI("fork buffer get buffer streamId = %{public}d", out->format_.streamId_); in Start()
|
/drivers/hdf_core/framework/support/platform/include/mipi/ |
H A D | mipi_dsi_core.h | 41 int32_t (*getCmd)(struct MipiDsiCntlr *cntlr, struct DsiCmdDesc *cmd, uint32_t readLen, uint8_t *out); 144 * @param out Indicates the pointer to the read data. 150 int32_t MipiDsiCntlrRx(struct MipiDsiCntlr *cntlr, struct DsiCmdDesc *cmd, int32_t readLen, uint8_t *out);
|
/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/ |
H A D | usb_bus_extension.cpp | 166 stringstream out; in ParseCommaStrToVectorUint16() local 167 out << hex << s; in ParseCommaStrToVectorUint16() 168 out >> num; in ParseCommaStrToVectorUint16()
|
/drivers/hdf_core/adapter/khdf/linux/platform/mipi_dsi/ |
H A D | mipi_tx_dev.h | 27 uint8_t *out; member
|
/drivers/hdf_core/framework/model/display/driver/adapter_soc/ |
H A D | hi35xx_disp.c | 234 static int32_t GetLcdIntfType(enum LcdIntfType type, uint32_t *out) in GetLcdIntfType() argument 240 *out = INTF_MIPI; in GetLcdIntfType() 243 *out = INTF_LCD_6BIT; in GetLcdIntfType() 246 *out = INTF_LCD_8BIT; in GetLcdIntfType() 249 *out = INTF_LCD_16BIT; in GetLcdIntfType() 252 *out = INTF_LCD_18BIT; in GetLcdIntfType() 255 *out = INTF_LCD_24BIT; in GetLcdIntfType()
|
/drivers/peripheral/thermal/interfaces/hdi_service/include/ |
H A D | thermal_hdf_utils.h | 33 static bool ReadNode(const std::string& path, std::string& out);
|
/drivers/peripheral/input/hal/src/ |
H A D | input_controller.c | 101 static bool ObtainSbufData(struct HdfSBuf *reply, int32_t cmd, void *out, uint32_t length)
in ObtainSbufData() argument 110 *((uint32_t *)out) = tempInt;
in ObtainSbufData() 117 ret = ReadStrBuf(reply, out, length);
in ObtainSbufData() 120 ret = ReadAttrBuf(reply, out);
in ObtainSbufData() 123 ret = ReadAbilityBuf(reply, out);
in ObtainSbufData() 166 static int32_t IoServiceOps(struct HdfIoService *service, int32_t cmd, const void *in, void *out, uint32_t outLen)
in IoServiceOps() argument 188 if (out != NULL) {
in IoServiceOps() 189 if (!ObtainSbufData(reply, cmd, out, outLen)) {
in IoServiceOps()
|