Home
last modified time | relevance | path

Searched refs:model (Results 1 - 25 of 28) sorted by relevance

12

/base/msdp/device_status/tools/vdev/src/
H A Dvirtual_keyboard_builder.cpp236 json model; in ReadActions() local
237 int32_t ret = VirtualDeviceBuilder::ReadFile(realPath, model); in ReadActions()
242 ReadModel(model, MAXIMUM_LEVEL_ALLOWED); in ReadActions()
245 void VirtualKeyboardBuilder::ReadModel(const nlohmann::json &model, int32_t level) in ReadModel() argument
248 if (!model.is_object() && !model.is_array()) { in ReadModel()
249 FI_HILOGE("model is not an array or object"); in ReadModel()
252 if (model.is_object()) { in ReadModel()
253 auto tIter = model.find("actions"); in ReadModel()
254 if (tIter != model in ReadModel()
265 ReadAction(const nlohmann::json &model) ReadAction() argument
286 HandleDown(const nlohmann::json &model) HandleDown() argument
296 HandleUp(const nlohmann::json &model) HandleUp() argument
306 HandleWait(const nlohmann::json &model) HandleWait() argument
331 json model; ReadRawInput() local
341 ReadRawModel(const nlohmann::json &model, int32_t level) ReadRawModel() argument
366 ReadRawData(const nlohmann::json &model) ReadRawData() argument
[all...]
H A Dvirtual_touchscreen_builder.cpp387 json model; in ReadActions() local
388 int32_t ret = VirtualDeviceBuilder::ReadFile(path, model); in ReadActions()
393 ReadModel(model, MAXIMUM_LEVEL_ALLOWED); in ReadActions()
396 void VirtualTouchScreenBuilder::ReadModel(const nlohmann::json &model, int32_t level) in ReadModel() argument
399 if (model.is_object()) { in ReadModel()
400 auto it = model.find("actions"); in ReadModel()
401 if (it != model.cend() && it->is_array()) { in ReadModel()
404 } else if (model.is_array() && level > 0) { in ReadModel()
405 for (const auto &m : model) { in ReadModel()
411 void VirtualTouchScreenBuilder::ReadAction(const nlohmann::json &model) in ReadAction() argument
434 GetModelValue(const nlohmann::json &model, const std::string &targetName, int32_t defaultValue) GetModelValue() argument
444 HandleDown(const nlohmann::json &model) HandleDown() argument
456 HandleMove(const nlohmann::json &model) HandleMove() argument
468 HandleUp(const nlohmann::json &model) HandleUp() argument
476 HandleMoveTo(const nlohmann::json &model) HandleMoveTo() argument
488 HandleWait(const nlohmann::json &model) HandleWait() argument
501 json model; ReadRawInput() local
510 ReadRawModel(const nlohmann::json &model, int32_t level) ReadRawModel() argument
530 ReadRawData(const nlohmann::json &model) ReadRawData() argument
[all...]
H A Dvirtual_mouse_builder.cpp363 json model; in ReadActions() local
364 int32_t result = VirtualDeviceBuilder::ReadFile(path, model); in ReadActions()
369 ReadModel(model, MAXIMUM_LEVEL_ALLOWED); in ReadActions()
372 void VirtualMouseBuilder::ReadModel(const nlohmann::json &model, int32_t level) in ReadModel() argument
375 if (model.is_object()) { in ReadModel()
376 auto tIter = model.find("actions"); in ReadModel()
377 if (tIter != model.cend() && tIter->is_array()) { in ReadModel()
380 } else if (model.is_array() && level > 0) { in ReadModel()
381 for (const auto &m : model) { in ReadModel()
387 void VirtualMouseBuilder::ReadAction(const nlohmann::json &model) in ReadAction() argument
410 HandleDown(const nlohmann::json &model) HandleDown() argument
423 HandleMove(const nlohmann::json &model) HandleMove() argument
441 HandleUp(const nlohmann::json &model) HandleUp() argument
454 HandleScroll(const nlohmann::json &model) HandleScroll() argument
465 HandleWait(const nlohmann::json &model) HandleWait() argument
479 json model; ReadRawInput() local
488 ReadRawModel(const nlohmann::json &model, int32_t level) ReadRawModel() argument
508 ReadRawData(const nlohmann::json &model) ReadRawData() argument
[all...]
H A Dvirtual_device_builder.cpp395 int32_t VirtualDeviceBuilder::ReadFile(const char *path, json &model)
416 model = nlohmann::json::parse(fileStream.ifStream, nullptr, false);
417 if (model.is_discarded()) {
418 FI_HILOGE("model parse failed");
/base/msdp/device_status/tools/vdev/include/
H A Dvirtual_keyboard_builder.h43 static void ReadModel(const nlohmann::json &model, int32_t level);
44 static void ReadAction(const nlohmann::json &model);
45 static void HandleDown(const nlohmann::json &model);
46 static void HandleUp(const nlohmann::json &model);
47 static void HandleWait(const nlohmann::json &model);
49 static void ReadRawModel(const nlohmann::json &model, int32_t level);
50 static void ReadRawData(const nlohmann::json &model);
H A Dvirtual_touchscreen_builder.h49 static void ReadModel(const nlohmann::json &model, int32_t level);
50 static void ReadAction(const nlohmann::json &model);
51 static void HandleDown(const nlohmann::json &model);
52 static void HandleMove(const nlohmann::json &model);
53 static void HandleUp(const nlohmann::json &model);
54 static void HandleMoveTo(const nlohmann::json &model);
55 static void HandleWait(const nlohmann::json &model);
57 static void ReadRawModel(const nlohmann::json &model, int32_t level);
58 static void ReadRawData(const nlohmann::json &model);
59 static int32_t GetModelValue(const nlohmann::json &model, cons
[all...]
H A Dvirtual_mouse_builder.h44 static void ReadModel(const nlohmann::json &model, int32_t level);
51 static void ReadAction(const nlohmann::json &model);
52 static void HandleDown(const nlohmann::json &model);
53 static void HandleMove(const nlohmann::json &model);
54 static void HandleUp(const nlohmann::json &model);
55 static void HandleScroll(const nlohmann::json &model);
56 static void HandleWait(const nlohmann::json &model);
58 static void ReadRawModel(const nlohmann::json &model, int32_t level);
59 static void ReadRawData(const nlohmann::json &model);
H A Dvirtual_device_builder.h48 static int32_t ReadFile(const char *path, json &model);
/base/print/print_fwk/frameworks/helper/scan_helper/src/
H A Dscanner_info.cpp26 model=""; in ScanDeviceInfoTCP()
40 model = right.model; in ScanDeviceInfoTCP()
55 model = right.model; in operator =()
79 model = model_; in SetModel()
129 return model; in GetModel()
210 model = ""; in ScanDeviceInfo()
222 model = right.model; in ScanDeviceInfo()
[all...]
/base/security/device_security_level/services/dslm/
H A Ddslm_hievent.c55 if (memcpy_s(event.targetModel, MODEL_MAX_LEN, info->credInfo.model, CRED_INFO_MODEL_LEN) != EOK) { in ReportHiEventInfoSync()
80 if (memcpy_s(event.targetModel, MODEL_MAX_LEN, info->credInfo.model, CRED_INFO_MODEL_LEN) != EOK) { in ReportHiEventAppInvoke()
/base/print/print_fwk/services/scan_service/src/
H A Dscan_system_data.cpp35 const std::vector<std::string> keyList = {"deviceId", "manufacturer", "model", "deviceType", in CheckJsonObjectValue()
60 scanDeviceInfo.model = object["model"]; in ParseScannerListJsonV1()
181 iter->second->model = scannerInfo.model; in InsertScannerInfo()
220 iter->second->model = scannerInfo.model; in UpdateScannerInfoByUniqueId()
254 scannerInfo.model = info->model; in QueryScannerInfoByUniqueId()
294 scannerJson["model"] in SaveScannerMap()
[all...]
H A Dscan_service_ability.cpp380 if (info.model.find("(") > 0) { in SetScannerSerialNumber()
381 info.model = info.model.substr(0, info.model.find("(") - 1); in SetScannerSerialNumber()
417 info.deviceName = info.manufacturer + "-" + info.model + "-" + info.serialNumber; in SetScannerSerialNumber()
437 SCAN_HILOGI("AddFoundUsbScanner start model:[%{public}s]", info.model.c_str()); in AddFoundUsbScanner()
452 SCAN_HILOGI("AddFoundUsbScanner end model:[%{public}s]", info.model.c_str()); in AddFoundUsbScanner()
457 SCAN_HILOGI("AddFoundTcpScanner start: model in AddFoundTcpScanner()
[all...]
H A Dscan_mdns_service.cpp160 scannerInfo->model = value; in ToMDnsScaner()
/base/web/webview/test/unittest/ohos_adapter/system_properties_adapter/
H A Dsystem_properties_adapter_test.cpp80 std::string model = SystemPropertiesAdapterImpl::GetInstance().GetDeviceInfoProductModel(); in HWTEST_F() local
81 EXPECT_NE(model, ""); in HWTEST_F()
/base/security/security_guard/test/unittest/model_manager/src/
H A Dsecurity_guard_model_manager_test.cpp140 MockModel *model = new MockModel(); in HWTEST_F() local
141 EXPECT_CALL(*model, Release()).Times(1); in HWTEST_F()
144 attr->SetModelApi(model); in HWTEST_F()
/base/print/print_fwk/frameworks/ohscan/include/
H A Dohscan.h99 /** Scanner model. */
100 const char* model; member
211 * and only one copy will be stored in memory for each model.
/base/security/device_security_level/oem_property/include/
H A Ddslm_cred.h47 char model[CRED_INFO_MODEL_LEN]; member
/base/update/updater/services/include/fs_manager/
H A Dpartitions.h72 std::string model; // description of hardware(manufacturer, model) member
/base/print/print_fwk/frameworks/helper/scan_helper/include/
H A Dscanner_info.h78 std::string model; member in OHOS::Scan::final
131 std::string model; member in OHOS::Scan::final
/base/telephony/call_manager/services/satellite_call/src/
H A Dsatellite_call_control.cpp148 std::string model = OHOS::system::GetParameter("const.build.product", "0"); in HandleSatelliteCallStateUpdate() local
149 if (model != "") { in HandleSatelliteCallStateUpdate()
/base/print/print_fwk/test/fuzztest/scanhelper_fuzzer/
H A Dscanhelper_fuzzer.cpp356 std::string model = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in TestTCPSetModel() local
357 scanDevInfoTcp.SetModel(model); in TestTCPSetModel()
358 model = scanDevInfoTcp.GetModel(); in TestTCPSetModel()
437 std::string model = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in TestUSBSetModel() local
438 deviceInfo.SetModel(model); in TestUSBSetModel()
439 model = deviceInfo.GetModel(); in TestUSBSetModel()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/core/src/
H A Dhks_client_service_test.cpp453 const char *model = "model"; in HWTEST_F() local
460 const struct HksBlob modelBlob = { strlen(model), (uint8_t *)model }; in HWTEST_F()
/base/security/device_security_level/services/dfx/
H A Ddslm_hidumper.c224 dprintf(fd, "CRED_MODEL : %s" END_LINE, info->credInfo.model); in DumpDeviceDetails()
/base/print/print_fwk/test/fuzztest/scanserviceability_fuzzer/
H A Dscanserviceability_fuzzer.cpp327 std::string model = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in TestSetScannerInfo() local
331 currentDevice.vendor = model.c_str(); in TestSetScannerInfo()
/base/security/device_security_level/oem_property/common/
H A Ddslm_credential_utils.c51 #define CRED_KEY_MODEL_NAME "model"
505 (void)GetDataFromJson(json, CRED_KEY_MODEL_NAME, credInfo->model, CRED_INFO_MODEL_LEN); in CredentialCbToDslmCredInfo()

Completed in 26 milliseconds

12