Home
last modified time | relevance | path

Searched refs:interfaces (Results 1 - 13 of 13) sorted by relevance

/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dget_all_network_interfaces_plugin.cpp47 std::vector<std::string> interfaces; in OnGetPolicy() local
48 DelayedSingleton<NetManagerStandard::EthernetClient>::GetInstance()->GetAllActiveIfaces(interfaces); in OnGetPolicy()
50 reply.WriteInt32(interfaces.size()); in OnGetPolicy()
51 reply.WriteStringVector(interfaces); in OnGetPolicy()
/base/usb/usb_manager/interfaces/innerkits/native/include/
H A Dusb_config.h33 std::vector<UsbInterface> interfaces) in USBConfig()
39 this->interfaces_ = interfaces; in USBConfig()
51 cJSON *jsonInterfaces = cJSON_GetObjectItem(config, "interfaces"); in USBConfig()
135 void SetInterfaces(const std::vector<UsbInterface> &interfaces) in SetInterfaces() argument
137 this->interfaces_ = interfaces; in SetInterfaces()
206 cJSON* interfaces = cJSON_CreateArray(); in getJsonString() local
207 if (!interfaces) { in getJsonString()
208 USB_HILOGE(MODULE_USB_SERVICE, "Create interfaces error"); in getJsonString()
214 cJSON_AddItemToArray(interfaces, pInterface); in getJsonString()
216 cJSON_AddItemToObject(config, "interfaces", interface in getJsonString()
32 USBConfig(uint32_t id, uint32_t attributes, std::string name, uint32_t maxPower, std::vector<UsbInterface> interfaces) USBConfig() argument
[all...]
/base/tee/tee_client/build_armpc/armpc/
H A DMakefile13 COMMON_INCLUDES := ${CURDIR}/../../interfaces/kits/c/include \
/base/usb/usb_manager/services/native/src/
H A Dusb_descriptor_parser.cpp89 USB_HILOGD(MODULE_USB_SERVICE, "add config, interfaces=%{public}u", configDescriptor->bNumInterfaces); in AddConfig()
213 std::vector<UsbInterface> interfaces; in ParseConfigDescriptor() local
224 auto iter = interfaces.begin(); in ParseConfigDescriptor()
225 while (iter != interfaces.end()) { in ParseConfigDescriptor()
233 interfaces.push_back(interface); in ParseConfigDescriptor()
236 if (interface.GetEndpointCount() > 0 && iter != interfaces.end()) { in ParseConfigDescriptor()
244 config.SetInterfaces(interfaces); in ParseConfigDescriptor()
H A Dusb_service.cpp1120 std::vector<UsbInterface> interfaces = it->GetInterfaces(); in FillDevStrings() local
1121 for (auto itIF = interfaces.begin(); itIF != interfaces.end(); ++itIF) { in FillDevStrings()
1126 it->SetInterfaces(interfaces); in FillDevStrings()
2173 std::vector<UsbInterface> interfaces = configs.GetInterfaces(); in ManageGlobalInterfaceImpl() local
2174 for (uint32_t i = 0; i < interfaces.size(); i++) { in ManageGlobalInterfaceImpl()
2175 ManageInterface(dev, interfaces[i].GetId(), disable); in ManageGlobalInterfaceImpl()
2216 std::vector<UsbInterface> interfaces = configs.GetInterfaces(); in ManageDeviceImpl() local
2217 for (uint32_t i = 0; i < interfaces.size(); i++) { in ManageDeviceImpl()
2218 ManageInterface(dev, interfaces[ in ManageDeviceImpl()
2258 std::vector<UsbInterface> interfaces = configs.GetInterfaces(); ManageInterfaceTypeImpl() local
[all...]
/base/print/print_fwk/test/unittest/service_test/
H A Dprint_http_server_manager_test.cpp30 R"({"busNum":2,"clazz":0,"configs":[{"attributes":192,"id":1,"interfaces":[{"alternateSetting":0,"clazz":7,)"\
H A Dprint_usb_manager_test.cpp28 R"({"busNum":2,"clazz":0,"configs":[{"attributes":192,"id":1,"interfaces":[{"alternateSetting":0,"clazz":7,)"\
52 R"({"busNum":2,"clazz":0,"configs":[{"attributes":192,"id":1,"interfaces":[{"alternateSetting":0,"clazz":255,)"\
/base/web/webview/
H A Dprepare.sh75 handle_copy_dir ${INTERFACE_INCLUDE_DIR}/ohos_adapter ${WORK_SPACE}/ohos_adapter/interfaces
/base/usb/usb_manager/services/zidl/include/
H A Dusb_server_proxy.h102 int32_t GetDeviceInterfacesMessageParcel(MessageParcel &data, std::vector<UsbInterface> &interfaces);
H A Dusb_server_stub.h85 int32_t SetDeviceInterfacesMessageParcel(std::vector<UsbInterface> &interfaces, MessageParcel &data);
/base/usb/usb_manager/services/zidl/src/
H A Dusb_srv_proxy.cpp209 std::vector<UsbInterface> interfaces; in GetDeviceConfigsMessageParcel() local
210 if (int32_t ret = GetDeviceInterfacesMessageParcel(data, interfaces); ret != UEC_OK) { in GetDeviceConfigsMessageParcel()
215 config.SetInterfaces(interfaces); in GetDeviceConfigsMessageParcel()
223 int32_t UsbServerProxy::GetDeviceInterfacesMessageParcel(MessageParcel &data, std::vector<UsbInterface> &interfaces) in GetDeviceInterfacesMessageParcel() argument
232 USB_HILOGE(MODULE_USB_SERVICE, "the maximum number of interfaces is exceeded!"); in GetDeviceInterfacesMessageParcel()
263 interfaces.push_back(interface); in GetDeviceInterfacesMessageParcel()
H A Dusb_srv_stub.cpp935 int32_t UsbServerStub::SetDeviceInterfacesMessageParcel(std::vector<UsbInterface> &interfaces, MessageParcel &data) in SetDeviceInterfacesMessageParcel() argument
937 for (auto it = interfaces.begin(); it != interfaces.end(); ++it) { in SetDeviceInterfacesMessageParcel()
/base/usb/usb_manager/interfaces/kits/js/napi/src/
H A Dusb_info.cpp146 napi_set_named_property(env, obj, "interfaces", arr); in CtoJSUsbConfig()
337 static bool ParseInterfacesObjs(const napi_env env, const napi_value configObj, std::vector<UsbInterface> &interfaces) in ParseInterfacesObjs() argument
340 bool isGetObjSuccess = NapiUtil::JsObjectGetProperty(env, configObj, "interfaces", interfacesObjs); in ParseInterfacesObjs()
342 env, isGetObjSuccess == true, SYSPARAM_INVALID_INPUT, "The config should have the interfaces property."); in ParseInterfacesObjs()
345 NAPI_CHECK_RETURN_FALSE(napi_is_array(env, interfacesObjs, &result), "Get interfaces type failed"); in ParseInterfacesObjs()
346 USB_ASSERT_RETURN_FALSE(env, result == true, SYSPARAM_INVALID_INPUT, "The type of interfaces must be array."); in ParseInterfacesObjs()
354 napi_get_element(env, interfacesObjs, i, &interfaceObj), "Get interfaces element failed"); in ParseInterfacesObjs()
358 interfaces.push_back(interface); in ParseInterfacesObjs()
379 std::vector<UsbInterface> interfaces; in ParseConfigObj() local
380 bool ret = ParseInterfacesObjs(env, configObj, interfaces); in ParseConfigObj()
[all...]

Completed in 15 milliseconds