Home
last modified time | relevance | path

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

/test/xts/hats/hdf/external_device_manager/ddk_base_test/
H A Dddk_base_test.cpp54 DDK_Ashmem *ashmem = nullptr; in HWTEST_F() local
57 auto ret = OH_DDK_CreateAshmem(name, bufferLen, &ashmem); in HWTEST_F()
70 DDK_Ashmem *ashmem = nullptr; in HWTEST_F() local
73 auto ret = OH_DDK_CreateAshmem(name, bufferLen, &ashmem); in HWTEST_F()
86 DDK_Ashmem *ashmem = nullptr; in HWTEST_F() local
89 auto ret = OH_DDK_CreateAshmem(name, bufferLen, &ashmem); in HWTEST_F()
102 DDK_Ashmem *ashmem = nullptr; in HWTEST_F() local
105 auto ret = OH_DDK_CreateAshmem(name, bufferLen, &ashmem); in HWTEST_F()
108 ret = OH_DDK_MapAshmem(ashmem, ashmemMapType); in HWTEST_F()
135 DDK_Ashmem *ashmem in HWTEST_F() local
155 DDK_Ashmem *ashmem = nullptr; HWTEST_F() local
174 DDK_Ashmem *ashmem = nullptr; HWTEST_F() local
195 DDK_Ashmem *ashmem = nullptr; HWTEST_F() local
216 DDK_Ashmem *ashmem = nullptr; HWTEST_F() local
237 DDK_Ashmem *ashmem = nullptr; HWTEST_F() local
[all...]
/test/xts/acts/hdf/base/base_ndk/entry/src/main/cpp/
H A Dbase_ddk_test.cpp34 DDK_Ashmem *ashmem = nullptr; in DdkCreateAshmemOne() local
37 int32_t returnValue = OH_DDK_CreateAshmem(name, bufferLen, &ashmem); in DdkCreateAshmemOne()
46 DDK_Ashmem *ashmem = nullptr; in DdkCreateAshmemTwo() local
49 int32_t returnValue = OH_DDK_CreateAshmem(name, bufferLen, &ashmem); in DdkCreateAshmemTwo()
57 DDK_Ashmem *ashmem = nullptr; in DdkCreateAshmemThree() local
60 int32_t returnValue = OH_DDK_CreateAshmem(name, bufferLen, &ashmem); in DdkCreateAshmemThree()
68 DDK_Ashmem *ashmem = nullptr; in DdkMapAshmemOne() local
71 int32_t ddkCreateAshmemValue = OH_DDK_CreateAshmem(name, bufferLen, &ashmem); in DdkMapAshmemOne()
74 int32_t returnValue = OH_DDK_MapAshmem(ashmem, ashmemMapType); in DdkMapAshmemOne()
91 DDK_Ashmem *ashmem in DdkMapAshmemThree() local
106 DDK_Ashmem *ashmem = nullptr; DdkMapAshmemFour() local
120 DDK_Ashmem *ashmem = nullptr; DdkUnmapAshmemOne() local
144 DDK_Ashmem *ashmem = nullptr; DdkDestroyAshmemOne() local
[all...]
/test/xts/acts/communication/dsoftbus/rpc/entry/src/ohosTest/js/test/
H A DRpcClientJsunit.test.js12269 let ashmem = rpc.Ashmem.createAshmem("JsAshmemTest", -1);
12270 console.info("SUB_DSoftbus_IPC_API_Ashmem_0010: ashmem " + ashmem);
12296 let ashmem = rpc.Ashmem.createAshmem(jsash, mapSize);
12297 expect(ashmem != null).assertTrue();
12298 ashmem.unmapAshmem();
12299 ashmem.closeAshmem();
12323 let ashmem = rpc.Ashmem.createAshmem(jsash, mapSize);
12324 ashmem.unmapAshmem();
12325 ashmem
[all...]
/test/xts/acts/communication/dsoftbus/rpc_request/entry/src/ohosTest/js/test/
H A DActsRpcRequestJsTest.test.js513 let ashmem = rpc.Ashmem.create("ashmem", 1024);
514 data.writeAshmem(ashmem);
517 ashmem.unmapAshmem();
518 ashmem.closeAshmem();
541 let ashmem = rpc.Ashmem.create("ashmem", 1024);
542 data.writeAshmem(ashmem);
549 ashmem.unmapAshmem();
550 ashmem
[all...]
/test/xts/hats/hdf/usb/transferTest_additional/common/
H A Dusbd_transfer_test_additional.cpp1340 sptr<Ashmem> ashmem; in HWTEST_F() local
1350 (void)InitAshmemOne(ashmem, asmSize, rflg); in HWTEST_F()
1351 ret = g_usbInterface->BulkRead(dev, pipe, ashmem); in HWTEST_F()
1362 sptr<Ashmem> ashmem; in HWTEST_F() local
1372 (void)InitAshmemOne(ashmem, asmSize, rflg); in HWTEST_F()
1373 ret = g_usbInterface->BulkRead(dev, pipe, ashmem); in HWTEST_F()
1384 sptr<Ashmem> ashmem; in HWTEST_F() local
1394 (void)InitAshmemOne(ashmem, asmSize, rflg); in HWTEST_F()
1395 ret = g_usbInterface->BulkRead(dev, pipe, ashmem); in HWTEST_F()
1406 sptr<Ashmem> ashmem; in HWTEST_F() local
1428 sptr<Ashmem> ashmem; HWTEST_F() local
1450 sptr<Ashmem> ashmem; HWTEST_F() local
1472 sptr<Ashmem> ashmem; HWTEST_F() local
1494 sptr<Ashmem> ashmem; HWTEST_F() local
1516 sptr<Ashmem> ashmem; HWTEST_F() local
1538 sptr<Ashmem> ashmem; HWTEST_F() local
[all...]
/test/xts/hats/hdf/usb/transferTest/common/
H A Dusbd_transfer_test.cpp2095 * @tc.desc: Test functions to int32_t BulkWrite(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem)
2101 sptr<Ashmem> ashmem; in HWTEST_F() local
2112 (void)InitAshmemOne(ashmem, asmSize, rflg); in HWTEST_F()
2113 ret = g_usbInterface->BulkWrite(dev, pipe, ashmem); in HWTEST_F()
2121 * @tc.desc: Test functions to int32_t BulkWrite(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem)
2127 sptr<Ashmem> ashmem; in HWTEST_F() local
2139 (void)InitAshmemOne(ashmem, asmSize, rflg); in HWTEST_F()
2140 ret = g_usbInterface->BulkWrite(dev, pipe, ashmem); in HWTEST_F()
2148 * @tc.desc: Test functions to int32_t BulkWrite(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem)
2154 sptr<Ashmem> ashmem; in HWTEST_F() local
2181 sptr<Ashmem> ashmem; HWTEST_F() local
2208 sptr<Ashmem> ashmem; HWTEST_F() local
2235 sptr<Ashmem> ashmem; HWTEST_F() local
2261 sptr<Ashmem> ashmem; HWTEST_F() local
2288 sptr<Ashmem> ashmem; HWTEST_F() local
2315 sptr<Ashmem> ashmem; HWTEST_F() local
2342 sptr<Ashmem> ashmem; HWTEST_F() local
[all...]
/test/xts/hats/hdf/usb/usbdBenchmarkTest/common/
H A DHdfUsbdBenchmarkTransferTest.cpp384 * @tc.desc: Test functions to int32_t BulkWrite(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem)
395 sptr<Ashmem> ashmem; in BENCHMARK_F() local
404 (void)InitAshmemOne(ashmem, asmSize, rflg); in BENCHMARK_F()
406 ret = g_usbInterface->BulkWrite(dev, pipe, ashmem); in BENCHMARK_F()
420 * @tc.desc: Test functions to int32_t BulkRead(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem)
431 sptr<Ashmem> ashmem; in BENCHMARK_F() local
440 (void)InitAshmemOne(ashmem, asmSize, rflg); in BENCHMARK_F()
442 ret = g_usbInterface->BulkRead(dev, pipe, ashmem); in BENCHMARK_F()
/test/xts/acts/hdf/usb/usb_ndk/entry/src/main/cpp/
H A Dusbddk.cpp785 DDK_Ashmem *ashmem = nullptr; in UsbSendPipeRequestWithAshmemOne() local
786 int32_t createAshmemValue = OH_DDK_CreateAshmem(name, bufferLen, &ashmem); in UsbSendPipeRequestWithAshmemOne()
789 int32_t mapAshmemValue = OH_DDK_MapAshmem(ashmem, ashmemMapType); in UsbSendPipeRequestWithAshmemOne()
795 int32_t returnValue = OH_Usb_SendPipeRequestWithAshmem(&pipe, ashmem); in UsbSendPipeRequestWithAshmemOne()
796 OH_DDK_DestroyAshmem(ashmem); in UsbSendPipeRequestWithAshmemOne()
809 DDK_Ashmem *ashmem = nullptr; in UsbSendPipeRequestWithAshmemTwo() local
810 int32_t createAshmemValue = OH_DDK_CreateAshmem(name, bufferLen, &ashmem); in UsbSendPipeRequestWithAshmemTwo()
813 int32_t mapAshmemValue = OH_DDK_MapAshmem(ashmem, ashmemMapType); in UsbSendPipeRequestWithAshmemTwo()
815 int32_t returnValue = OH_Usb_SendPipeRequestWithAshmem(nullptr, ashmem); in UsbSendPipeRequestWithAshmemTwo()
816 OH_DDK_DestroyAshmem(ashmem); in UsbSendPipeRequestWithAshmemTwo()
874 DDK_Ashmem *ashmem = nullptr; UsbSendPipeRequestWithAshmemFour() local
[all...]
/test/xts/hats/hdf/external_device_manager/bus_extension_usb/include/
H A Dusb_impl_mock.h95 MOCK_METHOD3(BulkRead, int32_t(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem));
96 MOCK_METHOD3(BulkWrite, int32_t(const UsbDev &dev, const UsbPipe &pipe, const sptr<Ashmem> &ashmem));
H A Dusb_ddk_service_mock.h45 MOCK_METHOD3(SendPipeRequestWithAshmem, int32_t(const UsbRequestPipe &pipe, const UsbAshmem &ashmem,
/test/xts/hats/hdf/external_device_manager/ndk_permission_js_test/ndk_permission/entry/src/main/cpp/
H A Dddk_permission_test.cpp132 DDK_Ashmem *ashmem = nullptr; in UsbSendPipeRequestWithAshmem() local
134 int32_t returnValue = OH_Usb_SendPipeRequestWithAshmem(&pipe, ashmem); in UsbSendPipeRequestWithAshmem()
/test/xts/hats/hdf/codec/hdi_omx/
H A Dcodec_hdi_omx_test.cpp20 #include <ashmem.h>

Completed in 43 milliseconds