Home
last modified time | relevance | path

Searched refs:GetProductId (Results 1 - 12 of 12) sorted by relevance

/base/customization/enterprise_device_management/common/native/include/
H A Dusb_device_id.h33 [[nodiscard]] int32_t GetProductId() const;
38 (GetProductId() < other.GetProductId()) : (GetVendorId() < other.GetVendorId()); in operator <()
50 (id1.GetProductId() < id2.GetProductId()) : (id1.GetVendorId() < id2.GetVendorId()); in operator ()()
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dallowed_usb_devices_plugin.cpp80 return item.GetVendorId() == trustItem.GetVendorId() && item.GetProductId() == trustItem.GetProductId(); in OnSetPolicy()
82 if (srvClient.ManageDevice(item.GetVendorId(), item.GetProductId(), !isAllowed) != ERR_OK) { in OnSetPolicy()
84 item.GetVendorId(), item.GetProductId(), isAllowed); in OnSetPolicy()
145 if (srvClient.ManageDevice(usbDevice.GetVendorId(), usbDevice.GetProductId(), false) != ERR_OK) { in OnRemovePolicy()
147 usbDevice.GetVendorId(), usbDevice.GetProductId()); in OnRemovePolicy()
156 if (srvClient.ManageDevice(usbDeviceId.GetVendorId(), usbDeviceId.GetProductId(), true) != ERR_OK) { in OnRemovePolicy()
158 usbDeviceId.GetVendorId(), usbDeviceId.GetProductId()); in OnRemovePolicy()
176 usbDeviceId.GetVendorId(), usbDeviceId.GetProductId()); in OnGetPolicy()
/base/customization/enterprise_device_management/common/native/src/
H A Dusb_device_id.cpp53 int32_t UsbDeviceId::GetProductId() const in GetProductId() function in OHOS::EDM::UsbDeviceId
/base/usb/usb_manager/test/native/service_unittest/src/
H A Dusb_manage_interface_test.cpp134 productId = devi.at(0).GetProductId(); in HWTEST_F()
158 productId = devi.at(0).GetProductId(); in HWTEST_F()
181 productId = devi.at(0).GetProductId(); in HWTEST_F()
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/utils/
H A Darray_usb_device_id_serializer_test.cpp103 ASSERT_TRUE(dataObj[0].GetProductId() == 222); in HWTEST_F()
/base/customization/enterprise_device_management/services/edm_plugin/src/utils/
H A Darray_usb_device_id_serializer.cpp101 root["productId"] = item.GetProductId(); in Serialize()
/base/usb/usb_manager/interfaces/innerkits/native/include/
H A Dusb_device.h129 int32_t GetProductId() const in GetProductId() function in OHOS::USB::UsbDevice
/base/usb/usb_manager/services/native/src/
H A Dusb_host_manager.cpp273 "VENDOR_ID", dev.GetVendorId(), "PRODUCT_ID", dev.GetProductId(), in ReportHostPlugSysEvent()
H A Dusb_service.cpp1521 if (it->second->GetProductId() == dev.productId && it->second->GetVendorId() == dev.vendorId) { in ExecuteManageDevicePolicy()
1527 ret = ManageDeviceImpl(it->second->GetVendorId(), it->second->GetProductId(), false); in ExecuteManageDevicePolicy()
1529 ret = ManageDeviceImpl(it->second->GetVendorId(), it->second->GetProductId(), true); in ExecuteManageDevicePolicy()
1613 std::string uniqueName = std::to_string(devInfo->GetVendorId()) + "-" + std::to_string(devInfo->GetProductId()) + in AddDevice()
2199 if ((it->second->GetVendorId() == vendorId) && (it->second->GetProductId() == productId)) { in ManageDeviceImpl()
2308 ManageDeviceImpl(it->second->GetVendorId(), it->second->GetProductId(), disable); in ManageDeviceTypeImpl()
/base/customization/enterprise_device_management/interfaces/kits/usb_manager/src/
H A Dusb_manager_addon.cpp345 NAPI_CALL(env, napi_create_int32(env, usbDeviceId.GetProductId(), &productId)); in UsbDeviceIdToJsObj()
/base/usb/usb_manager/services/zidl/src/
H A Dusb_srv_stub.cpp893 WRITE_PARCEL_WITH_RET(data, Int32, devInfo.GetProductId(), UEC_SERVICE_WRITE_PARCEL_ERROR); in SetDeviceMessageParcel()
/base/usb/usb_manager/interfaces/kits/js/napi/src/
H A Dusb_info.cpp158 NapiUtil::SetValueInt32(env, "productId", usbDevice.GetProductId(), obj); in CtoJSUsbDevice()

Completed in 14 milliseconds