/base/customization/enterprise_device_management/common/native/src/ |
H A D | usb_device_id.cpp | 31 int32_t vendorId = parcel.ReadInt32(); in Unmarshalling() local 33 usbDeviceId.SetVendorId(vendorId); in Unmarshalling() 38 void UsbDeviceId::SetVendorId(int32_t vendorId) in SetVendorId() argument 40 vendorId_ = vendorId; in SetVendorId()
|
/base/usb/usb_manager/test/native/service_unittest/src/ |
H A D | usb_manage_interface_test.cpp | 120 * @tc.desc: Test functions to ManageDevice(int32_t vendorId, int32_t productId, bool disable);
130 int32_t vendorId = 0;
in HWTEST_F() local 133 vendorId = devi.at(0).GetVendorId();
in HWTEST_F() 136 ret = client.ManageDevice(vendorId, productId, true);
in HWTEST_F() 143 * @tc.desc: Test functions to ManageDevice(int32_t vendorId, int32_t productId, bool disable);
154 int32_t vendorId = 0;
in HWTEST_F() local 157 vendorId = devi.at(0).GetVendorId();
in HWTEST_F() 160 ret = client.ManageDevice(vendorId, productId, true);
in HWTEST_F() 168 * @tc.desc: Test functions to ManageDevice(int32_t vendorId, int32_t productId, bool disable);
177 int32_t vendorId in HWTEST_F() local [all...] |
/base/print/print_fwk/frameworks/helper/print_helper/src/ |
H A D | print_extension_info_helper.cpp | 22 static constexpr const char *PARAM_EXTINFO_VENDOR_ID = "vendorId"; 49 std::string vendorId = NapiPrintUtils::GetStringPropertyUtf8(env, jsValue, PARAM_EXTINFO_VENDOR_ID); in BuildFromJs() local 54 nativeObj->SetVendorId(vendorId); in BuildFromJs()
|
/base/print/print_fwk/frameworks/models/print_models/src/ |
H A D | print_extension_info.cpp | 50 void PrintExtensionInfo::SetVendorId(const std::string &vendorId) in SetVendorId() argument 52 vendorId_ = vendorId; in SetVendorId()
|
/base/customization/enterprise_device_management/common/native/include/ |
H A D | usb_device_id.h | 29 void SetVendorId(int32_t vendorId);
|
/base/usb/usb_manager/interfaces/innerkits/native/include/ |
H A D | usb_device.h | 33 uint8_t devAddr, uint8_t busNum, int32_t vendorId, int32_t productId, int32_t baseClass, int32_t subClass, in UsbDevice() 42 this->vendorId_ = vendorId; in UsbDevice() 62 vendorId_ = GetIntValue(device, "vendorId"); in UsbDevice() 213 void SetVendorId(int32_t vendorId) in SetVendorId() argument 215 vendorId_ = vendorId; in SetVendorId() 358 cJSON_AddNumberToObject(device, "vendorId", static_cast<double>(vendorId_)); in getJsonString() 32 UsbDevice(std::string name, std::string manufacturerName, std::string productName, std::string version, uint8_t devAddr, uint8_t busNum, int32_t vendorId, int32_t productId, int32_t baseClass, int32_t subClass, int32_t protocol, std::vector<USBConfig> configs) UsbDevice() argument
|
H A D | usb_interface_type.h | 128 int32_t vendorId;
member
|
H A D | usb_srv_client.h | 96 int32_t ManageDevice(int32_t vendorId, int32_t productId, bool disable);
|
H A D | iusb_srv.h | 80 virtual int32_t ManageDevice(int32_t vendorId, int32_t productId, bool disable) = 0;
|
/base/print/print_fwk/frameworks/models/print_models/include/ |
H A D | print_extension_info.h | 32 void SetVendorId(const std::string &vendorId);
|
/base/customization/enterprise_device_management/interfaces/kits/usb_manager/src/ |
H A D | usb_manager_addon.cpp | 284 int32_t vendorId = 0; in GetUsbDeviceIdFromNAPI() local 285 if (!JsObjectToInt(env, value, "vendorId", true, vendorId)) { in GetUsbDeviceIdFromNAPI() 286 EDMLOGE("Add/RemoveAllowedUsbDevices vendorId parse error!"); in GetUsbDeviceIdFromNAPI() 294 usbDeviceId.SetVendorId(vendorId); in GetUsbDeviceIdFromNAPI() 296 EDMLOGD("GetUsbDeviceIdFromNAPI vendorId: %{public}d, productId: %{public}d", vendorId, productId); in GetUsbDeviceIdFromNAPI() 340 napi_value vendorId = nullptr; in UsbDeviceIdToJsObj() local 341 NAPI_CALL(env, napi_create_int32(env, usbDeviceId.GetVendorId(), &vendorId)); in UsbDeviceIdToJsObj() 342 NAPI_CALL(env, napi_set_named_property(env, value, "vendorId", vendorI in UsbDeviceIdToJsObj() [all...] |
/base/print/print_fwk/test/unittest/service_test/ |
H A D | print_http_server_manager_test.cpp | 51 R"("productId":4293,"productName":" ","protocol":0,"serial":"","subClass":0,"vendorId":4817,"version":"0404"})";
|
H A D | print_usb_manager_test.cpp | 49 R"("productId":4293,"productName":" ","protocol":0,"serial":"","subClass":0,"vendorId":4817,"version":"0404"})"; 68 R"(\u0000", "protocol":0, "serial":"", "subClass":0, "vendorId":1060, "version":"0002"})";
|
/base/usb/usb_manager/services/native/include/ |
H A D | usb_service.h | 129 int32_t ManageDevice(int32_t vendorId, int32_t productId, bool disable) override; 183 int32_t ManageDeviceImpl(int32_t vendorId, int32_t productId, bool disable);
|
/base/usb/usb_manager/services/zidl/include/ |
H A D | usb_server_proxy.h | 88 int32_t ManageDevice(int32_t vendorId, int32_t productId, bool disable) override;
|
/base/usb/usb_manager/services/native/src/ |
H A D | usb_service.cpp | 1362 usbDeviceId.vendorId = reply.ReadInt32(); in GetEdmWhiteListPolicy() 1521 if (it->second->GetProductId() == dev.productId && it->second->GetVendorId() == dev.vendorId) { in ExecuteManageDevicePolicy() 2124 int32_t UsbService::ManageDevice(int32_t vendorId, int32_t productId, bool disable) in ManageDevice() argument 2131 return ManageDeviceImpl(vendorId, productId, disable); in ManageDevice() 2189 int32_t UsbService::ManageDeviceImpl(int32_t vendorId, int32_t productId, bool disable) in ManageDeviceImpl() argument 2197 devices.size(), vendorId, productId, disable); in ManageDeviceImpl() 2199 if ((it->second->GetVendorId() == vendorId) && (it->second->GetProductId() == productId)) { in ManageDeviceImpl()
|
/base/usb/usb_manager/interfaces/innerkits/native/src/ |
H A D | usb_srv_client.cpp | 524 int32_t UsbSrvClient::ManageDevice(int32_t vendorId, int32_t productId, bool disable) in ManageDevice() argument 527 int32_t ret = proxy_->ManageDevice(vendorId, productId, disable); in ManageDevice()
|
/base/usb/usb_manager/services/zidl/src/ |
H A D | usb_srv_stub.cpp | 1117 int32_t vendorId = 0; in DoManageDevice() local 1120 READ_PARCEL_WITH_RET(data, Int32, vendorId, UEC_SERVICE_READ_PARCEL_ERROR); in DoManageDevice() 1123 int32_t ret = ManageDevice(vendorId, productId, disable); in DoManageDevice()
|
H A D | usb_srv_proxy.cpp | 1303 int32_t UsbServerProxy::ManageDevice(int32_t vendorId, int32_t productId, bool disable) in ManageDevice() argument 1313 WRITE_PARCEL_WITH_RET(data, Int32, vendorId, UEC_SERVICE_WRITE_PARCEL_ERROR); in ManageDevice()
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
H A D | usb_info.cpp | 157 NapiUtil::SetValueInt32(env, "vendorId", usbDevice.GetVendorId(), obj); in CtoJSUsbDevice() 427 int32_t vendorId = 0; in ParseDeviceObj() local 428 NapiUtil::JsObjectToInt(env, deviceObj, "vendorId", vendorId); in ParseDeviceObj() 439 dev = UsbDevice(name, manufacturerName, productName, version, devAddr, busNum, vendorId, productId, clazz, subClass, in ParseDeviceObj()
|