Home
last modified time | relevance | path

Searched refs:deviceNode (Results 1 - 6 of 6) sorted by relevance

/foundation/multimodalinput/input/tools/event_inject/src/
H A Dmanage_inject_device.cpp40 std::string deviceNode; in TransformJsonData() local
41 if (getDeviceNodeObject_.GetDeviceNodeName(deviceName, devIndex, deviceNode) == RET_ERR) { in TransformJsonData()
47 inputEventArray.target = deviceNode; in TransformJsonData()
76 std::string deviceNode = inputEventArray.target; in SendEventToDeviceNode() local
77 if (deviceNode.empty()) { in SendEventToDeviceNode()
78 MMI_HILOGE("Device node:%{public}s is not exit", deviceNode.c_str()); in SendEventToDeviceNode()
82 if (realpath(deviceNode.c_str(), realPath) == nullptr) { in SendEventToDeviceNode()
83 MMI_HILOGE("Path is error, path:%{private}s", deviceNode.c_str()); in SendEventToDeviceNode()
88 MMI_HILOGE("Open device node:%{public}s failed", deviceNode.c_str()); in SendEventToDeviceNode()
H A Dinjection_tools_help_func.cpp119 std::string deviceNode = argv[optind]; in SendEventOption() local
120 if (deviceNode.empty()) { in SendEventOption()
121 std::cout << "Device node does not exist: " << deviceNode.c_str() << std::endl; in SendEventOption()
125 if (realpath(deviceNode.c_str(), realPath) == nullptr) { in SendEventOption()
126 std::cout << "Device node path is error, path: " << deviceNode.c_str() << std::endl; in SendEventOption()
H A Dinjection_event_dispatch.cpp250 std::string deviceNode = injectArgvs_[SEND_EVENT_DEV_NODE_INDEX]; in OnSendEvent() local
251 if (deviceNode.empty()) { in OnSendEvent()
252 MMI_HILOGE("Device node:%{public}s is not existent", deviceNode.c_str()); in OnSendEvent()
256 if (realpath(deviceNode.c_str(), realPath) == nullptr) { in OnSendEvent()
257 MMI_HILOGE("Path is error, path:%{private}s", deviceNode.c_str()); in OnSendEvent()
262 MMI_HILOGE("Open device node:%{public}s failed, errCode:%{public}d", deviceNode.c_str(), FILE_OPEN_FAIL); in OnSendEvent()
H A Dget_device_node.cpp33 int32_t GetDeviceNode::GetDeviceNodeName(const std::string &targetName, uint16_t devIndex, std::string &deviceNode) in GetDeviceNodeName() argument
58 deviceNode = nodeRootPath + iter->second[devIndex]; in GetDeviceNodeName()
60 deviceNode.c_str()); in GetDeviceNodeName()
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/config/
H A Daudio_device_parser.cpp80 xmlNode *deviceNode = node; in ParseDevicePrivacyInfo() local
82 while (deviceNode != nullptr) { in ParseDevicePrivacyInfo()
83 if (deviceNode->type == XML_ELEMENT_NODE) { in ParseDevicePrivacyInfo()
85 char *pValue = reinterpret_cast<char*>(xmlGetProp(deviceNode, in ParseDevicePrivacyInfo()
90 pValue = reinterpret_cast<char*>(xmlGetProp(deviceNode, in ParseDevicePrivacyInfo()
95 pValue = reinterpret_cast<char*>(xmlGetProp(deviceNode, in ParseDevicePrivacyInfo()
102 pValue = reinterpret_cast<char*>(xmlGetProp(deviceNode, in ParseDevicePrivacyInfo()
109 pValue = reinterpret_cast<char*>(xmlGetProp(deviceNode, in ParseDevicePrivacyInfo()
120 deviceNode = deviceNode in ParseDevicePrivacyInfo()
[all...]
/foundation/multimodalinput/input/tools/event_inject/include/
H A Dget_device_node.h29 int32_t GetDeviceNodeName(const std::string &targetName, uint16_t devIndex, std::string &deviceNode);

Completed in 3 milliseconds