Home
last modified time | relevance | path

Searched refs:ashmem (Results 1 – 11 of 11) sorted by relevance

/drivers/peripheral/intelligent_voice/hdi_service/trigger/
Dintell_voice_trigger_adapter_impl.cpp113 int32_t IntellVoiceTriggerAdapterImpl::GetModelDataFromAshmem(sptr<Ashmem> ashmem, std::vector<uint… in GetModelDataFromAshmem() argument
115 if (ashmem == nullptr) { in GetModelDataFromAshmem()
120 uint32_t size = static_cast<uint32_t>(ashmem->GetAshmemSize()); in GetModelDataFromAshmem()
126 if (!ashmem->MapReadOnlyAshmem()) { in GetModelDataFromAshmem()
131 const uint8_t *buffer = static_cast<const uint8_t *>(ashmem->ReadFromAshmem(size, 0)); in GetModelDataFromAshmem()
Dintell_voice_trigger_adapter_impl.h56 int32_t GetModelDataFromAshmem(sptr<Ashmem> ashmem, std::vector<uint8_t> &modelData);
/drivers/peripheral/usb/test/fuzztest/usbbulkread_fuzzer/
Dusbbulkread_fuzzer.cpp44 sptr<Ashmem> ashmem; in UsbBulkReadFuzzTest() local
45 ret = usbInterface->BulkRead(dev, pipe, ashmem); in UsbBulkReadFuzzTest()
/drivers/peripheral/usb/test/fuzztest/usbbulkwrite_fuzzer/
Dusbbulkwrite_fuzzer.cpp44 sptr<Ashmem> ashmem; in UsbBulkWriteFuzzTest() local
45 ret = usbInterface->BulkWrite(dev, pipe, ashmem); in UsbBulkWriteFuzzTest()
/drivers/peripheral/usb/test/unittest/mock/src/
Dusbd_transfer_auto_test.cpp1477 sptr<Ashmem> ashmem; variable
1487 (void)InitAshmemOne(ashmem, asmSize, rflg);
1488 ret = g_usbInterface->BulkWrite(dev, pipe, ashmem);
1501 sptr<Ashmem> ashmem; variable
1512 (void)InitAshmemOne(ashmem, asmSize, rflg);
1513 ret = g_usbInterface->BulkWrite(dev, pipe, ashmem);
1526 sptr<Ashmem> ashmem; variable
1537 (void)InitAshmemOne(ashmem, asmSize, rflg);
1538 ret = g_usbInterface->BulkWrite(dev, pipe, ashmem);
1551 sptr<Ashmem> ashmem; variable
[all …]
/drivers/peripheral/usb/test/unittest/hal/src/
Dusbd_transfer_test.cpp1858 sptr<Ashmem> ashmem; variable
1868 (void)InitAshmemOne(ashmem, asmSize, rflg);
1869 ret = g_usbInterface->BulkWrite(dev, pipe, ashmem);
1882 sptr<Ashmem> ashmem; variable
1893 (void)InitAshmemOne(ashmem, asmSize, rflg);
1894 ret = g_usbInterface->BulkWrite(dev, pipe, ashmem);
1907 sptr<Ashmem> ashmem; variable
1918 (void)InitAshmemOne(ashmem, asmSize, rflg);
1919 ret = g_usbInterface->BulkWrite(dev, pipe, ashmem);
1932 sptr<Ashmem> ashmem; variable
[all …]
/drivers/peripheral/usb/test/benchmarktest/
Dusb_benchmark_transfer_test.cpp381 sptr<Ashmem> ashmem; in BENCHMARK_F() local
389 (void)InitAshmemOne(ashmem, asmSize, rflg); in BENCHMARK_F()
391 ret = g_usbInterface->BulkRead(g_dev, pipe, ashmem); in BENCHMARK_F()
413 sptr<Ashmem> ashmem; in BENCHMARK_F() local
421 (void)InitAshmemOne(ashmem, asmSize, rflg); in BENCHMARK_F()
423 ret = g_usbInterface->BulkWrite(g_dev, pipe, ashmem); in BENCHMARK_F()
/drivers/external_device_manager/test/unittest/bus_extension_usb_test/include/
Dusb_impl_mock.h95 …OCK_METHOD3(BulkRead, int32_t(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem));
96 …CK_METHOD3(BulkWrite, int32_t(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem));
/drivers/peripheral/usb/hdi_service/include/
Dusb_impl.h86 int32_t BulkRead(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem) override;
87 int32_t BulkWrite(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem) override;
/drivers/peripheral/usb/hdi_service/src/
Dusb_impl.cpp1829 int32_t UsbImpl::BulkRead(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem) in BulkRead() argument
1843 …int32_t ret = InitAsmBufferHandle(&list->asmHandle, ashmem->GetAshmemFd(), ashmem->GetAshmemSize()… in BulkRead()
1846 ret, ashmem->GetAshmemFd(), ashmem->GetAshmemSize()); in BulkRead()
1862 int32_t UsbImpl::BulkWrite(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem) in BulkWrite() argument
1876 …int32_t ret = InitAsmBufferHandle(&list->asmHandle, ashmem->GetAshmemFd(), ashmem->GetAshmemSize()… in BulkWrite()
1879 ret, ashmem->GetAshmemFd(), ashmem->GetAshmemSize()); in BulkWrite()
/drivers/interface/usb/v1_0/
DIUsbInterface.idl437 * @param ashmem Indicates the shared memory, which is used to store the read data.
442 BulkRead([in] struct UsbDev dev, [in] struct UsbPipe pipe, [in] Ashmem ashmem);
449 * @param ashmem Indicates the shared memory, which is used to store the written data.
454 BulkWrite([in] struct UsbDev dev, [in] struct UsbPipe pipe, [in] Ashmem ashmem);