Home
last modified time | relevance | path

Searched refs:usbDeviceId (Results 1 - 10 of 10) sorted by relevance

/base/customization/enterprise_device_management/test/fuzztest/allowedusbdevicesplugin_fuzzer/
H A Dallowed_usb_devices_plugin_fuzzer.cpp60 UsbDeviceId usbDeviceId = GetData<UsbDeviceId>(); in LLVMFuzzerTestOneInput() local
61 std::vector<UsbDeviceId> usbDeviceIds = { usbDeviceId }; in LLVMFuzzerTestOneInput()
63 [&](const auto usbDeviceId) { usbDeviceId.Marshalling(parcel); }); in LLVMFuzzerTestOneInput()
/base/customization/enterprise_device_management/common/native/src/
H A Dusb_device_id.cpp29 bool UsbDeviceId::Unmarshalling(MessageParcel &parcel, UsbDeviceId &usbDeviceId) in Unmarshalling() argument
33 usbDeviceId.SetVendorId(vendorId); in Unmarshalling()
34 usbDeviceId.SetProductId(productId); in Unmarshalling()
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dallowed_usb_devices_plugin.cpp155 std::for_each(data.begin(), data.end(), [&](const auto usbDeviceId) { in OnRemovePolicy()
156 if (srvClient.ManageDevice(usbDeviceId.GetVendorId(), usbDeviceId.GetProductId(), true) != ERR_OK) { in OnRemovePolicy()
158 usbDeviceId.GetVendorId(), usbDeviceId.GetProductId()); in OnRemovePolicy()
174 for (const auto &usbDeviceId : usbDeviceIds) { in OnGetPolicy()
176 usbDeviceId.GetVendorId(), usbDeviceId.GetProductId()); in OnGetPolicy()
177 if (!usbDeviceId.Marshalling(reply)) { in OnGetPolicy()
/base/customization/enterprise_device_management/interfaces/inner_api/usb_manager/src/
H A Dusb_manager_proxy.cpp87 for (const auto &usbDeviceId : usbDeviceIds) { in AddAllowedUsbDevices()
88 if (!usbDeviceId.Marshalling(data)) { in AddAllowedUsbDevices()
109 for (const auto &usbDeviceId : usbDeviceIds) { in RemoveAllowedUsbDevices()
110 if (!usbDeviceId.Marshalling(data)) { in RemoveAllowedUsbDevices()
143 UsbDeviceId usbDeviceId; in GetAllowedUsbDevices() local
144 if (!UsbDeviceId::Unmarshalling(reply, usbDeviceId)) { in GetAllowedUsbDevices()
148 result.emplace_back(usbDeviceId); in GetAllowedUsbDevices()
/base/customization/enterprise_device_management/services/edm_plugin/src/utils/
H A Darray_usb_device_id_serializer.cpp120 UsbDeviceId usbDeviceId; in GetPolicy() local
121 if (!UsbDeviceId::Unmarshalling(data, usbDeviceId)) { in GetPolicy()
125 result.emplace_back(usbDeviceId); in GetPolicy()
132 std::for_each(result.begin(), result.end(), [&](const auto usbDeviceId) { in WritePolicy()
133 usbDeviceId.Marshalling(reply); in WritePolicy()
/base/customization/enterprise_device_management/interfaces/kits/usb_manager/include/
H A Dusb_manager_addon.h63 static bool GetUsbDeviceIdFromNAPI(napi_env env, napi_value value, UsbDeviceId &usbDeviceId);
65 static napi_value UsbDeviceIdToJsObj(napi_env env, const UsbDeviceId &usbDeviceId);
/base/customization/enterprise_device_management/common/native/include/
H A Dusb_device_id.h27 static bool Unmarshalling(MessageParcel &parcel, UsbDeviceId &usbDeviceId);
/base/customization/enterprise_device_management/interfaces/kits/usb_manager/src/
H A Dusb_manager_addon.cpp272 UsbDeviceId usbDeviceId; in ParseUsbDevicesArray() local
273 if (!GetUsbDeviceIdFromNAPI(env, value, usbDeviceId)) { in ParseUsbDevicesArray()
277 usbDeviceIds.push_back(usbDeviceId); in ParseUsbDevicesArray()
282 bool UsbManagerAddon::GetUsbDeviceIdFromNAPI(napi_env env, napi_value value, UsbDeviceId &usbDeviceId) in GetUsbDeviceIdFromNAPI() argument
294 usbDeviceId.SetVendorId(vendorId); in GetUsbDeviceIdFromNAPI()
295 usbDeviceId.SetProductId(productId); in GetUsbDeviceIdFromNAPI()
335 napi_value UsbManagerAddon::UsbDeviceIdToJsObj(napi_env env, const UsbDeviceId &usbDeviceId) in UsbDeviceIdToJsObj() argument
341 NAPI_CALL(env, napi_create_int32(env, usbDeviceId.GetVendorId(), &vendorId)); in UsbDeviceIdToJsObj()
345 NAPI_CALL(env, napi_create_int32(env, usbDeviceId.GetProductId(), &productId)); in UsbDeviceIdToJsObj()
/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/mock/src/
H A Denterprise_device_mgr_stub_mock.cpp259 std::for_each(usbDeviceIds.begin(), usbDeviceIds.end(), [&](const auto usbDeviceId) { in InvokeAllowedUsbDevicesSendRequestGetPolicy()
260 usbDeviceId.Marshalling(reply); in InvokeAllowedUsbDevicesSendRequestGetPolicy()
/base/usb/usb_manager/services/native/src/
H A Dusb_service.cpp1361 UsbDeviceId usbDeviceId; in GetEdmWhiteListPolicy() local
1362 usbDeviceId.vendorId = reply.ReadInt32(); in GetEdmWhiteListPolicy()
1363 usbDeviceId.productId = reply.ReadInt32(); in GetEdmWhiteListPolicy()
1364 trustUsbDeviceIds.emplace_back(usbDeviceId); in GetEdmWhiteListPolicy()

Completed in 8 milliseconds