Home
last modified time | relevance | path

Searched refs:productId (Results 1 - 25 of 25) sorted by relevance

/base/customization/enterprise_device_management/common/native/src/
H A Dusb_device_id.cpp32 int32_t productId = parcel.ReadInt32(); in Unmarshalling() local
34 usbDeviceId.SetProductId(productId); in Unmarshalling()
43 void UsbDeviceId::SetProductId(int32_t productId) in SetProductId() argument
45 productId_ = productId; in SetProductId()
/base/startup/init/interfaces/hals/utils/token/
H A Dhal_token.c44 __attribute__((weak)) static int OEMGetProdId(char* productId, unsigned int len) in OEMGetProdId() argument
47 (void)(productId); in OEMGetProdId()
87 __attribute__((weak)) int HalGetProdId(char* productId, unsigned int len) in HalGetProdId() argument
89 if (productId == NULL) { in HalGetProdId()
93 return OEMGetProdId(productId, len); in HalGetProdId()
/base/startup/init/interfaces/innerkits/token/src/token_impl_hal/
H A Dtoken.c51 int GetProdId(char *productId, unsigned int len) in GetProdId() argument
53 if (productId == NULL) { in GetProdId()
54 HILOG_ERROR(HILOG_MODULE_HIVIEW, "productId is nullptr"); in GetProdId()
58 return HalGetProdId(productId, len); in GetProdId()
/base/startup/init/interfaces/innerkits/token/src/token_impl_posix/
H A Dtoken.c94 int GetProdId(char *productId, unsigned int len) in GetProdId() argument
96 if (productId == NULL) { in GetProdId()
97 HILOG_ERROR(HILOG_MODULE_HIVIEW, "productId is nullptr"); in GetProdId()
101 return HalGetProdId(productId, len); in GetProdId()
/base/usb/usb_manager/test/native/service_unittest/src/
H A Dusb_manage_interface_test.cpp120 * @tc.desc: Test functions to ManageDevice(int32_t vendorId, int32_t productId, bool disable);
131 int32_t productId = 0; in HWTEST_F() local
134 productId = devi.at(0).GetProductId(); 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);
155 int32_t productId = 0; in HWTEST_F() local
158 productId = devi.at(0).GetProductId(); 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);
178 int32_t productId in HWTEST_F() local
[all...]
/base/startup/init/test/unittest/token/
H A Dtoken_unittest.cpp71 char *productId; in HWTEST_F() local
73 int ret = HalGetProdId(productId, len); in HWTEST_F()
/base/startup/init/interfaces/innerkits/include/token/
H A Dtoken.h56 * @param productId The productId value, len The productId len.
59 int GetProdId(char *productId, unsigned int len);
/base/startup/init/interfaces/hals/
H A Dhal_token.h62 * @param productId product IDs to be populated with.
63 * @param len length of the productId.
66 int HalGetProdId(char *productId, unsigned int len);
/base/startup/init/interfaces/innerkits/token/
H A Dhal_token.h62 * @param productId product IDs to be populated with.
63 * @param len length of the productId.
66 int HalGetProdId(char *productId, unsigned int len);
/base/customization/enterprise_device_management/common/native/include/
H A Dusb_device_id.h30 void SetProductId(int32_t productId);
/base/usb/usb_manager/interfaces/innerkits/native/include/
H A Dusb_device.h33 uint8_t devAddr, uint8_t busNum, int32_t vendorId, int32_t productId, int32_t baseClass, int32_t subClass, in UsbDevice()
43 this->productId_ = productId; in UsbDevice()
63 productId_ = GetIntValue(device, "productId"); in UsbDevice()
218 void SetProductId(int32_t productId) in SetProductId() argument
220 productId_ = productId; in SetProductId()
359 cJSON_AddNumberToObject(device, "productId", static_cast<double>(productId_)); 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 Dusb_interface_type.h127 int32_t productId; member
H A Dusb_srv_client.h96 int32_t ManageDevice(int32_t vendorId, int32_t productId, bool disable);
H A Diusb_srv.h80 virtual int32_t ManageDevice(int32_t vendorId, int32_t productId, bool disable) = 0;
/base/customization/enterprise_device_management/interfaces/kits/usb_manager/src/
H A Dusb_manager_addon.cpp289 int32_t productId = 0; in GetUsbDeviceIdFromNAPI() local
290 if (!JsObjectToInt(env, value, "productId", true, productId)) { in GetUsbDeviceIdFromNAPI()
291 EDMLOGE("Add/RemoveAllowedUsbDevices productId parse error!"); in GetUsbDeviceIdFromNAPI()
295 usbDeviceId.SetProductId(productId); in GetUsbDeviceIdFromNAPI()
296 EDMLOGD("GetUsbDeviceIdFromNAPI vendorId: %{public}d, productId: %{public}d", vendorId, productId); in GetUsbDeviceIdFromNAPI()
344 napi_value productId = nullptr; in UsbDeviceIdToJsObj() local
345 NAPI_CALL(env, napi_create_int32(env, usbDeviceId.GetProductId(), &productId)); in UsbDeviceIdToJsObj()
346 NAPI_CALL(env, napi_set_named_property(env, value, "productId", productI in UsbDeviceIdToJsObj()
[all...]
/base/print/print_fwk/test/unittest/service_test/
H A Dprint_http_server_manager_test.cpp51 R"("productId":4293,"productName":" ","protocol":0,"serial":"","subClass":0,"vendorId":4817,"version":"0404"})";
H A Dprint_usb_manager_test.cpp49 R"("productId":4293,"productName":" ","protocol":0,"serial":"","subClass":0,"vendorId":4817,"version":"0404"})";
61 R"(\u0000\u0000\u0000","name":"2-4","productId":10048,"productName":"Hub Controller\u0000\u0000\u0000\u0000)"\
/base/usb/usb_manager/services/native/include/
H A Dusb_service.h129 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 Dusb_server_proxy.h88 int32_t ManageDevice(int32_t vendorId, int32_t productId, bool disable) override;
/base/usb/usb_manager/services/native/src/
H A Dusb_service.cpp1363 usbDeviceId.productId = 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 Dusb_srv_client.cpp524 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/update/sys_installer_lite/frameworks/source/updater/
H A Dhota_updater.c60 char productId[PRODUCT_ID_LENGTH]; member
/base/usb/usb_manager/services/zidl/src/
H A Dusb_srv_stub.cpp1118 int32_t productId = 0; in DoManageDevice() local
1121 READ_PARCEL_WITH_RET(data, Int32, productId, UEC_SERVICE_READ_PARCEL_ERROR); in DoManageDevice()
1123 int32_t ret = ManageDevice(vendorId, productId, disable); in DoManageDevice()
H A Dusb_srv_proxy.cpp1303 int32_t UsbServerProxy::ManageDevice(int32_t vendorId, int32_t productId, bool disable) in ManageDevice() argument
1314 WRITE_PARCEL_WITH_RET(data, Int32, productId, UEC_SERVICE_WRITE_PARCEL_ERROR); in ManageDevice()
/base/usb/usb_manager/interfaces/kits/js/napi/src/
H A Dusb_info.cpp158 NapiUtil::SetValueInt32(env, "productId", usbDevice.GetProductId(), obj); in CtoJSUsbDevice()
429 int32_t productId = 0; in ParseDeviceObj() local
430 NapiUtil::JsObjectToInt(env, deviceObj, "productId", productId); in ParseDeviceObj()
439 dev = UsbDevice(name, manufacturerName, productName, version, devAddr, busNum, vendorId, productId, clazz, subClass, in ParseDeviceObj()

Completed in 20 milliseconds