/base/msdp/device_status/tools/vdev/src/ |
H A D | virtual_keyboard_builder.cpp | 236 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 D | virtual_touchscreen_builder.cpp | 387 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 D | virtual_mouse_builder.cpp | 363 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 D | virtual_device_builder.cpp | 395 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 D | virtual_keyboard_builder.h | 43 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 D | virtual_touchscreen_builder.h | 49 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 D | virtual_mouse_builder.h | 44 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 D | virtual_device_builder.h | 48 static int32_t ReadFile(const char *path, json &model);
|
/base/print/print_fwk/frameworks/helper/scan_helper/src/ |
H A D | scanner_info.cpp | 26 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 D | dslm_hievent.c | 55 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 D | scan_system_data.cpp | 35 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 D | scan_service_ability.cpp | 380 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 D | scan_mdns_service.cpp | 160 scannerInfo->model = value; in ToMDnsScaner()
|
/base/web/webview/test/unittest/ohos_adapter/system_properties_adapter/ |
H A D | system_properties_adapter_test.cpp | 80 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 D | security_guard_model_manager_test.cpp | 140 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 D | ohscan.h | 99 /** 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 D | dslm_cred.h | 47 char model[CRED_INFO_MODEL_LEN]; member
|
/base/update/updater/services/include/fs_manager/ |
H A D | partitions.h | 72 std::string model; // description of hardware(manufacturer, model) member
|
/base/print/print_fwk/frameworks/helper/scan_helper/include/ |
H A D | scanner_info.h | 78 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 D | satellite_call_control.cpp | 148 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 D | scanhelper_fuzzer.cpp | 356 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 D | hks_client_service_test.cpp | 453 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 D | dslm_hidumper.c | 224 dprintf(fd, "CRED_MODEL : %s" END_LINE, info->credInfo.model); in DumpDeviceDetails()
|
/base/print/print_fwk/test/fuzztest/scanserviceability_fuzzer/ |
H A D | scanserviceability_fuzzer.cpp | 327 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 D | dslm_credential_utils.c | 51 #define CRED_KEY_MODEL_NAME "model" 505 (void)GetDataFromJson(json, CRED_KEY_MODEL_NAME, credInfo->model, CRED_INFO_MODEL_LEN); in CredentialCbToDslmCredInfo()
|